Class Extension (3.41.0)

public final class Extension extends GeneratedMessageV3 implements ExtensionOrBuilder

Extensions are tools for large language models to access external data, run computations, etc.

Protobuf type google.cloud.aiplatform.v1beta1.Extension

Implements

ExtensionOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

EXTENSION_OPERATIONS_FIELD_NUMBER

public static final int EXTENSION_OPERATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

MANIFEST_FIELD_NUMBER

public static final int MANIFEST_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER

public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

RUNTIME_CONFIG_FIELD_NUMBER

public static final int RUNTIME_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

TOOL_USE_EXAMPLES_FIELD_NUMBER

public static final int TOOL_USE_EXAMPLES_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Extension getDefaultInstance()
Returns
TypeDescription
Extension

getDescriptor()

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

newBuilder()

public static Extension.Builder newBuilder()
Returns
TypeDescription
Extension.Builder

newBuilder(Extension prototype)

public static Extension.Builder newBuilder(Extension prototype)
Parameter
NameDescription
prototypeExtension
Returns
TypeDescription
Extension.Builder

parseDelimitedFrom(InputStream input)

public static Extension parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Extension
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Extension parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Extension
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Extension parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Extension
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Extension parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Extension
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Extension parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Extension
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Extension parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Extension
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Extension parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Extension
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Extension parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Extension
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Extension parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Extension
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Extension parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Extension
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Extension parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Extension
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Extension parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Extension
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Extension> parser()
Returns
TypeDescription
Parser<Extension>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this Extension was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this Extension was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Extension getDefaultInstanceForType()
Returns
TypeDescription
Extension

getDescription()

public String getDescription()

Optional. The description of the Extension.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the Extension.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

Required. The display name of the Extension. The name can be up to 128 characters long and can consist of any UTF-8 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the Extension. The name can be up to 128 characters long and can consist of any UTF-8 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for etag.

getExtensionOperations(int index)

public ExtensionOperation getExtensionOperations(int index)

Output only. Supported operations.

repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExtensionOperation

getExtensionOperationsCount()

public int getExtensionOperationsCount()

Output only. Supported operations.

repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getExtensionOperationsList()

public List<ExtensionOperation> getExtensionOperationsList()

Output only. Supported operations.

repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<ExtensionOperation>

getExtensionOperationsOrBuilder(int index)

public ExtensionOperationOrBuilder getExtensionOperationsOrBuilder(int index)

Output only. Supported operations.

repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExtensionOperationOrBuilder

getExtensionOperationsOrBuilderList()

public List<? extends ExtensionOperationOrBuilder> getExtensionOperationsOrBuilderList()

Output only. Supported operations.

repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.ExtensionOperationOrBuilder>

getManifest()

public ExtensionManifest getManifest()

Required. Manifest of the Extension.

.google.cloud.aiplatform.v1beta1.ExtensionManifest manifest = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExtensionManifest

The manifest.

getManifestOrBuilder()

public ExtensionManifestOrBuilder getManifestOrBuilder()

Required. Manifest of the Extension.

.google.cloud.aiplatform.v1beta1.ExtensionManifest manifest = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExtensionManifestOrBuilder

getName()

public String getName()

Identifier. The resource name of the Extension.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the Extension.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Extension> getParserForType()
Returns
TypeDescription
Parser<Extension>
Overrides

getPrivateServiceConnectConfig()

public ExtensionPrivateServiceConnectConfig getPrivateServiceConnectConfig()

Optional. The PrivateServiceConnect config for the extension. If specified, the service endpoints associated with the Extension should be registered in the provided Service Directory (https://cloud.google.com/service-directory/docs/configuring-private-network-access).

.google.cloud.aiplatform.v1beta1.ExtensionPrivateServiceConnectConfig private_service_connect_config = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExtensionPrivateServiceConnectConfig

The privateServiceConnectConfig.

getPrivateServiceConnectConfigOrBuilder()

public ExtensionPrivateServiceConnectConfigOrBuilder getPrivateServiceConnectConfigOrBuilder()

Optional. The PrivateServiceConnect config for the extension. If specified, the service endpoints associated with the Extension should be registered in the provided Service Directory (https://cloud.google.com/service-directory/docs/configuring-private-network-access).

.google.cloud.aiplatform.v1beta1.ExtensionPrivateServiceConnectConfig private_service_connect_config = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExtensionPrivateServiceConnectConfigOrBuilder

getRuntimeConfig()

public RuntimeConfig getRuntimeConfig()

Optional. Runtime config controlling the runtime behavior of this Extension.

.google.cloud.aiplatform.v1beta1.RuntimeConfig runtime_config = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfig

The runtimeConfig.

getRuntimeConfigOrBuilder()

public RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()

Optional. Runtime config controlling the runtime behavior of this Extension.

.google.cloud.aiplatform.v1beta1.RuntimeConfig runtime_config = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getToolUseExamples(int index)

public ToolUseExample getToolUseExamples(int index)

Optional. Examples to illustrate the usage of the extension as a tool.

repeated .google.cloud.aiplatform.v1beta1.ToolUseExample tool_use_examples = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ToolUseExample

getToolUseExamplesCount()

public int getToolUseExamplesCount()

Optional. Examples to illustrate the usage of the extension as a tool.

repeated .google.cloud.aiplatform.v1beta1.ToolUseExample tool_use_examples = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getToolUseExamplesList()

public List<ToolUseExample> getToolUseExamplesList()

Optional. Examples to illustrate the usage of the extension as a tool.

repeated .google.cloud.aiplatform.v1beta1.ToolUseExample tool_use_examples = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ToolUseExample>

getToolUseExamplesOrBuilder(int index)

public ToolUseExampleOrBuilder getToolUseExamplesOrBuilder(int index)

Optional. Examples to illustrate the usage of the extension as a tool.

repeated .google.cloud.aiplatform.v1beta1.ToolUseExample tool_use_examples = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ToolUseExampleOrBuilder

getToolUseExamplesOrBuilderList()

public List<? extends ToolUseExampleOrBuilder> getToolUseExamplesOrBuilderList()

Optional. Examples to illustrate the usage of the extension as a tool.

repeated .google.cloud.aiplatform.v1beta1.ToolUseExample tool_use_examples = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.ToolUseExampleOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this Extension was most recently updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this Extension was most recently updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this Extension was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasManifest()

public boolean hasManifest()

Required. Manifest of the Extension.

.google.cloud.aiplatform.v1beta1.ExtensionManifest manifest = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the manifest field is set.

hasPrivateServiceConnectConfig()

public boolean hasPrivateServiceConnectConfig()

Optional. The PrivateServiceConnect config for the extension. If specified, the service endpoints associated with the Extension should be registered in the provided Service Directory (https://cloud.google.com/service-directory/docs/configuring-private-network-access).

.google.cloud.aiplatform.v1beta1.ExtensionPrivateServiceConnectConfig private_service_connect_config = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the privateServiceConnectConfig field is set.

hasRuntimeConfig()

public boolean hasRuntimeConfig()

Optional. Runtime config controlling the runtime behavior of this Extension.

.google.cloud.aiplatform.v1beta1.RuntimeConfig runtime_config = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the runtimeConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when this Extension was most recently updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Extension.Builder newBuilderForType()
Returns
TypeDescription
Extension.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Extension.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Extension.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Extension.Builder toBuilder()
Returns
TypeDescription
Extension.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException