Class ToolUseExample.ExtensionOperation.Builder (3.41.0)

public static final class ToolUseExample.ExtensionOperation.Builder extends GeneratedMessageV3.Builder<ToolUseExample.ExtensionOperation.Builder> implements ToolUseExample.ExtensionOperationOrBuilder

Identifies one operation of the extension.

Protobuf type google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ToolUseExample.ExtensionOperation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

build()

public ToolUseExample.ExtensionOperation build()
Returns
TypeDescription
ToolUseExample.ExtensionOperation

buildPartial()

public ToolUseExample.ExtensionOperation buildPartial()
Returns
TypeDescription
ToolUseExample.ExtensionOperation

clear()

public ToolUseExample.ExtensionOperation.Builder clear()
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

clearExtension()

public ToolUseExample.ExtensionOperation.Builder clearExtension()

Resource name of the extension.

string extension = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ToolUseExample.ExtensionOperation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ToolUseExample.ExtensionOperation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

clearOperationId()

public ToolUseExample.ExtensionOperation.Builder clearOperationId()

Required. Operation ID of the extension.

string operation_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

clone()

public ToolUseExample.ExtensionOperation.Builder clone()
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

getDefaultInstanceForType()

public ToolUseExample.ExtensionOperation getDefaultInstanceForType()
Returns
TypeDescription
ToolUseExample.ExtensionOperation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExtension()

public String getExtension()

Resource name of the extension.

string extension = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The extension.

getExtensionBytes()

public ByteString getExtensionBytes()

Resource name of the extension.

string extension = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for extension.

getOperationId()

public String getOperationId()

Required. Operation ID of the extension.

string operation_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The operationId.

getOperationIdBytes()

public ByteString getOperationIdBytes()

Required. Operation ID of the extension.

string operation_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for operationId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ToolUseExample.ExtensionOperation other)

public ToolUseExample.ExtensionOperation.Builder mergeFrom(ToolUseExample.ExtensionOperation other)
Parameter
NameDescription
otherToolUseExample.ExtensionOperation
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ToolUseExample.ExtensionOperation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ToolUseExample.ExtensionOperation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolUseExample.ExtensionOperation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

setExtension(String value)

public ToolUseExample.ExtensionOperation.Builder setExtension(String value)

Resource name of the extension.

string extension = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The extension to set.

Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

setExtensionBytes(ByteString value)

public ToolUseExample.ExtensionOperation.Builder setExtensionBytes(ByteString value)

Resource name of the extension.

string extension = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for extension to set.

Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ToolUseExample.ExtensionOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

setOperationId(String value)

public ToolUseExample.ExtensionOperation.Builder setOperationId(String value)

Required. Operation ID of the extension.

string operation_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The operationId to set.

Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

setOperationIdBytes(ByteString value)

public ToolUseExample.ExtensionOperation.Builder setOperationIdBytes(ByteString value)

Required. Operation ID of the extension.

string operation_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for operationId to set.

Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

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

public ToolUseExample.ExtensionOperation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ToolUseExample.ExtensionOperation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ToolUseExample.ExtensionOperation.Builder
Overrides