Class ToolUseExample.ExtensionOperation.Builder (3.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ToolUseExample.ExtensionOperation build()
Returns
Type Description
ToolUseExample.ExtensionOperation

buildPartial()

public ToolUseExample.ExtensionOperation buildPartial()
Returns
Type Description
ToolUseExample.ExtensionOperation

clear()

public ToolUseExample.ExtensionOperation.Builder clear()
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder
Overrides

clearExtension()

public ToolUseExample.ExtensionOperation.Builder clearExtension()

Resource name of the extension.

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

Returns
Type Description
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ToolUseExample.ExtensionOperation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ToolUseExample.ExtensionOperation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

clone()

public ToolUseExample.ExtensionOperation.Builder clone()
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder
Overrides

getDefaultInstanceForType()

public ToolUseExample.ExtensionOperation getDefaultInstanceForType()
Returns
Type Description
ToolUseExample.ExtensionOperation

getDescriptorForType()

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

getExtension()

public String getExtension()

Resource name of the extension.

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

Returns
Type Description
String

The extension.

getExtensionBytes()

public ByteString getExtensionBytes()

Resource name of the extension.

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

Returns
Type Description
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
Type Description
String

The operationId.

getOperationIdBytes()

public ByteString getOperationIdBytes()

Required. Operation ID of the extension.

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

Returns
Type Description
ByteString

The bytes for operationId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolUseExample.ExtensionOperation other)

public ToolUseExample.ExtensionOperation.Builder mergeFrom(ToolUseExample.ExtensionOperation other)
Parameter
Name Description
other ToolUseExample.ExtensionOperation
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ToolUseExample.ExtensionOperation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolUseExample.ExtensionOperation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The extension to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for extension to set.

Returns
Type Description
ToolUseExample.ExtensionOperation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ToolUseExample.ExtensionOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The operationId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for operationId to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ToolUseExample.ExtensionOperation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolUseExample.ExtensionOperation.Builder
Overrides