Class Tool.ComputerUse.Builder (3.79.0)

public static final class Tool.ComputerUse.Builder extends GeneratedMessageV3.Builder<Tool.ComputerUse.Builder> implements Tool.ComputerUseOrBuilder

Tool to support computer use.

Protobuf type google.cloud.aiplatform.v1beta1.Tool.ComputerUse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllExcludedPredefinedFunctions(Iterable<String> values)

public Tool.ComputerUse.Builder addAllExcludedPredefinedFunctions(Iterable<String> values)

Optional. By default, predefined functions 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];

Parameter
Name Description
values Iterable<String>

The excludedPredefinedFunctions to add.

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

addExcludedPredefinedFunctions(String value)

public Tool.ComputerUse.Builder addExcludedPredefinedFunctions(String value)

Optional. By default, predefined functions 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];

Parameter
Name Description
value String

The excludedPredefinedFunctions to add.

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

addExcludedPredefinedFunctionsBytes(ByteString value)

public Tool.ComputerUse.Builder addExcludedPredefinedFunctionsBytes(ByteString value)

Optional. By default, predefined functions 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];

Parameter
Name Description
value ByteString

The bytes of the excludedPredefinedFunctions to add.

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Tool.ComputerUse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

build()

public Tool.ComputerUse build()
Returns
Type Description
Tool.ComputerUse

buildPartial()

public Tool.ComputerUse buildPartial()
Returns
Type Description
Tool.ComputerUse

clear()

public Tool.ComputerUse.Builder clear()
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

clearEnvironment()

public Tool.ComputerUse.Builder clearEnvironment()

Required. The environment being operated.

.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

clearExcludedPredefinedFunctions()

public Tool.ComputerUse.Builder clearExcludedPredefinedFunctions()

Optional. By default, predefined functions 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];

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Tool.ComputerUse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Tool.ComputerUse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

clone()

public Tool.ComputerUse.Builder clone()
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

getDefaultInstanceForType()

public Tool.ComputerUse getDefaultInstanceForType()
Returns
Type Description
Tool.ComputerUse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvironment()

public Tool.ComputerUse.Environment getEnvironment()

Required. The environment being operated.

.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.ComputerUse.Environment

The environment.

getEnvironmentValue()

public int getEnvironmentValue()

Required. The environment being operated.

.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for environment.

getExcludedPredefinedFunctions(int index)

public String getExcludedPredefinedFunctions(int index)

Optional. By default, predefined functions 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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedPredefinedFunctions at the given index.

getExcludedPredefinedFunctionsBytes(int index)

public ByteString getExcludedPredefinedFunctionsBytes(int index)

Optional. By default, predefined functions 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedPredefinedFunctions at the given index.

getExcludedPredefinedFunctionsCount()

public int getExcludedPredefinedFunctionsCount()

Optional. By default, predefined functions 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];

Returns
Type Description
int

The count of excludedPredefinedFunctions.

getExcludedPredefinedFunctionsList()

public ProtocolStringList getExcludedPredefinedFunctionsList()

Optional. By default, predefined functions 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];

Returns
Type Description
ProtocolStringList

A list containing the excludedPredefinedFunctions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tool.ComputerUse other)

public Tool.ComputerUse.Builder mergeFrom(Tool.ComputerUse other)
Parameter
Name Description
other Tool.ComputerUse
Returns
Type Description
Tool.ComputerUse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Tool.ComputerUse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ComputerUse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Tool.ComputerUse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tool.ComputerUse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

setEnvironment(Tool.ComputerUse.Environment value)

public Tool.ComputerUse.Builder setEnvironment(Tool.ComputerUse.Environment value)

Required. The environment being operated.

.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tool.ComputerUse.Environment

The environment to set.

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

setEnvironmentValue(int value)

public Tool.ComputerUse.Builder setEnvironmentValue(int value)

Required. The environment being operated.

.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for environment to set.

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

setExcludedPredefinedFunctions(int index, String value)

public Tool.ComputerUse.Builder setExcludedPredefinedFunctions(int index, String value)

Optional. By default, predefined functions 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];

Parameters
Name Description
index int

The index to set the value at.

value String

The excludedPredefinedFunctions to set.

Returns
Type Description
Tool.ComputerUse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Tool.ComputerUse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Tool.ComputerUse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Tool.ComputerUse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Tool.ComputerUse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.ComputerUse.Builder
Overrides