public static final class Tool.ComputerUse.Builder extends com.google.protobuf.GeneratedMessage.Builder<Tool.ComputerUse.Builder> implements Tool.ComputerUseOrBuilder
Tool to support computer use.Protobuf type
google.cloud.aiplatform.v1.Tool.ComputerUseaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Tool.ComputerUse.Builder>public Tool.ComputerUse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Tool.ComputerUse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Tool.ComputerUse.Builder>public Tool.ComputerUse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Tool.ComputerUse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Tool.ComputerUse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Tool.ComputerUse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tool.ComputerUse.Builder>public Tool.ComputerUse.Builder mergeFrom(Tool.ComputerUse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Tool.ComputerUse.Builder>public Tool.ComputerUse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tool.ComputerUse.Builder>IOExceptionpublic int getEnvironmentValue()
Required. The environment being operated.
.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];
getEnvironmentValue in interface Tool.ComputerUseOrBuilderpublic Tool.ComputerUse.Builder setEnvironmentValue(int value)
Required. The environment being operated.
.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for environment to set.public Tool.ComputerUse.Environment getEnvironment()
Required. The environment being operated.
.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];
getEnvironment in interface Tool.ComputerUseOrBuilderpublic Tool.ComputerUse.Builder setEnvironment(Tool.ComputerUse.Environment value)
Required. The environment being operated.
.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];
value - The environment to set.public Tool.ComputerUse.Builder clearEnvironment()
Required. The environment being operated.
.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.ProtocolStringList getExcludedPredefinedFunctionsList()
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
getExcludedPredefinedFunctionsList in interface Tool.ComputerUseOrBuilderpublic int getExcludedPredefinedFunctionsCount()
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
getExcludedPredefinedFunctionsCount in interface Tool.ComputerUseOrBuilderpublic String getExcludedPredefinedFunctions(int index)
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
getExcludedPredefinedFunctions in interface Tool.ComputerUseOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExcludedPredefinedFunctionsBytes(int index)
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
getExcludedPredefinedFunctionsBytes in interface Tool.ComputerUseOrBuilderindex - The index of the value to return.public Tool.ComputerUse.Builder setExcludedPredefinedFunctions(int index, String value)
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The excludedPredefinedFunctions to set.public Tool.ComputerUse.Builder addExcludedPredefinedFunctions(String value)
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The excludedPredefinedFunctions to add.public Tool.ComputerUse.Builder addAllExcludedPredefinedFunctions(Iterable<String> values)
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
values - The excludedPredefinedFunctions to add.public Tool.ComputerUse.Builder clearExcludedPredefinedFunctions()
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
public Tool.ComputerUse.Builder addExcludedPredefinedFunctionsBytes(com.google.protobuf.ByteString value)
Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
repeated string excluded_predefined_functions = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes of the excludedPredefinedFunctions to add.Copyright © 2026 Google LLC. All rights reserved.