public final class Extension extends com.google.protobuf.GeneratedMessageV3 implements ExtensionOrBuilder
Extensions are tools for large language models to access external data, run computations, etc.Protobuf type
google.cloud.aiplatform.v1beta1.Extension| Modifier and Type | Class and Description |
|---|---|
static class |
Extension.Builder
Extensions are tools for large language models to access external data, run
computations, etc.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
EXTENSION_OPERATIONS_FIELD_NUMBER |
static int |
MANIFEST_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER |
static int |
RUNTIME_CONFIG_FIELD_NUMBER |
static int |
TOOL_USE_EXAMPLES_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Extension |
getDefaultInstance() |
Extension |
getDefaultInstanceForType() |
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
String |
getEtag()
Optional.
|
com.google.protobuf.ByteString |
getEtagBytes()
Optional.
|
ExtensionOperation |
getExtensionOperations(int index)
Output only.
|
int |
getExtensionOperationsCount()
Output only.
|
List<ExtensionOperation> |
getExtensionOperationsList()
Output only.
|
ExtensionOperationOrBuilder |
getExtensionOperationsOrBuilder(int index)
Output only.
|
List<? extends ExtensionOperationOrBuilder> |
getExtensionOperationsOrBuilderList()
Output only.
|
ExtensionManifest |
getManifest()
Required.
|
ExtensionManifestOrBuilder |
getManifestOrBuilder()
Required.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<Extension> |
getParserForType() |
ExtensionPrivateServiceConnectConfig |
getPrivateServiceConnectConfig()
Optional.
|
ExtensionPrivateServiceConnectConfigOrBuilder |
getPrivateServiceConnectConfigOrBuilder()
Optional.
|
RuntimeConfig |
getRuntimeConfig()
Optional.
|
RuntimeConfigOrBuilder |
getRuntimeConfigOrBuilder()
Optional.
|
int |
getSerializedSize() |
ToolUseExample |
getToolUseExamples(int index)
Optional.
|
int |
getToolUseExamplesCount()
Optional.
|
List<ToolUseExample> |
getToolUseExamplesList()
Optional.
|
ToolUseExampleOrBuilder |
getToolUseExamplesOrBuilder(int index)
Optional.
|
List<? extends ToolUseExampleOrBuilder> |
getToolUseExamplesOrBuilderList()
Optional.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasManifest()
Required.
|
boolean |
hasPrivateServiceConnectConfig()
Optional.
|
boolean |
hasRuntimeConfig()
Optional.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Extension.Builder |
newBuilder() |
static Extension.Builder |
newBuilder(Extension prototype) |
Extension.Builder |
newBuilderForType() |
protected Extension.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Extension |
parseDelimitedFrom(InputStream input) |
static Extension |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Extension |
parseFrom(byte[] data) |
static Extension |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Extension |
parseFrom(ByteBuffer data) |
static Extension |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Extension |
parseFrom(com.google.protobuf.ByteString data) |
static Extension |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Extension |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Extension |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Extension |
parseFrom(InputStream input) |
static Extension |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Extension> |
parser() |
Extension.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int MANIFEST_FIELD_NUMBER
public static final int EXTENSION_OPERATIONS_FIELD_NUMBER
public static final int RUNTIME_CONFIG_FIELD_NUMBER
public static final int TOOL_USE_EXAMPLES_FIELD_NUMBER
public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Identifier. The resource name of the Extension.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface ExtensionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. The resource name of the Extension.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface ExtensionOrBuilderpublic 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];getDisplayName in interface ExtensionOrBuilderpublic com.google.protobuf.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];getDisplayNameBytes in interface ExtensionOrBuilderpublic String getDescription()
Optional. The description of the Extension.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface ExtensionOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. The description of the Extension.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];getDescriptionBytes in interface ExtensionOrBuilderpublic boolean hasCreateTime()
Output only. Timestamp when this Extension was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface ExtensionOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp when this Extension was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface ExtensionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this Extension was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface ExtensionOrBuilderpublic boolean hasUpdateTime()
Output only. Timestamp when this Extension was most recently updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface ExtensionOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Timestamp when this Extension was most recently updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface ExtensionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp when this Extension was most recently updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface ExtensionOrBuilderpublic 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];getEtag in interface ExtensionOrBuilderpublic com.google.protobuf.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];getEtagBytes in interface ExtensionOrBuilderpublic boolean hasManifest()
Required. Manifest of the Extension.
.google.cloud.aiplatform.v1beta1.ExtensionManifest manifest = 9 [(.google.api.field_behavior) = REQUIRED];
hasManifest in interface ExtensionOrBuilderpublic ExtensionManifest getManifest()
Required. Manifest of the Extension.
.google.cloud.aiplatform.v1beta1.ExtensionManifest manifest = 9 [(.google.api.field_behavior) = REQUIRED];
getManifest in interface ExtensionOrBuilderpublic ExtensionManifestOrBuilder getManifestOrBuilder()
Required. Manifest of the Extension.
.google.cloud.aiplatform.v1beta1.ExtensionManifest manifest = 9 [(.google.api.field_behavior) = REQUIRED];
getManifestOrBuilder in interface ExtensionOrBuilderpublic List<ExtensionOperation> getExtensionOperationsList()
Output only. Supported operations.
repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtensionOperationsList in interface ExtensionOrBuilderpublic List<? extends ExtensionOperationOrBuilder> getExtensionOperationsOrBuilderList()
Output only. Supported operations.
repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtensionOperationsOrBuilderList in interface ExtensionOrBuilderpublic int getExtensionOperationsCount()
Output only. Supported operations.
repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtensionOperationsCount in interface ExtensionOrBuilderpublic ExtensionOperation getExtensionOperations(int index)
Output only. Supported operations.
repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtensionOperations in interface ExtensionOrBuilderpublic ExtensionOperationOrBuilder getExtensionOperationsOrBuilder(int index)
Output only. Supported operations.
repeated .google.cloud.aiplatform.v1beta1.ExtensionOperation extension_operations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtensionOperationsOrBuilder in interface ExtensionOrBuilderpublic 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];
hasRuntimeConfig in interface ExtensionOrBuilderpublic 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];
getRuntimeConfig in interface ExtensionOrBuilderpublic 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];
getRuntimeConfigOrBuilder in interface ExtensionOrBuilderpublic 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];
getToolUseExamplesList in interface ExtensionOrBuilderpublic 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];
getToolUseExamplesOrBuilderList in interface ExtensionOrBuilderpublic 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];
getToolUseExamplesCount in interface ExtensionOrBuilderpublic 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];
getToolUseExamples in interface ExtensionOrBuilderpublic 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];
getToolUseExamplesOrBuilder in interface ExtensionOrBuilderpublic boolean hasPrivateServiceConnectConfig()
Optional. The PrivateServiceConnect config for the extension. If specified, the service endpoints associated with the Extension should be registered with private network access in the provided Service Directory (https://cloud.google.com/service-directory/docs/configuring-private-network-access). If the service contains more than one endpoint with a network, the service will arbitrarilty choose one of the endpoints to use for extension execution.
.google.cloud.aiplatform.v1beta1.ExtensionPrivateServiceConnectConfig private_service_connect_config = 16 [(.google.api.field_behavior) = OPTIONAL];
hasPrivateServiceConnectConfig in interface ExtensionOrBuilderpublic ExtensionPrivateServiceConnectConfig getPrivateServiceConnectConfig()
Optional. The PrivateServiceConnect config for the extension. If specified, the service endpoints associated with the Extension should be registered with private network access in the provided Service Directory (https://cloud.google.com/service-directory/docs/configuring-private-network-access). If the service contains more than one endpoint with a network, the service will arbitrarilty choose one of the endpoints to use for extension execution.
.google.cloud.aiplatform.v1beta1.ExtensionPrivateServiceConnectConfig private_service_connect_config = 16 [(.google.api.field_behavior) = OPTIONAL];
getPrivateServiceConnectConfig in interface ExtensionOrBuilderpublic ExtensionPrivateServiceConnectConfigOrBuilder getPrivateServiceConnectConfigOrBuilder()
Optional. The PrivateServiceConnect config for the extension. If specified, the service endpoints associated with the Extension should be registered with private network access in the provided Service Directory (https://cloud.google.com/service-directory/docs/configuring-private-network-access). If the service contains more than one endpoint with a network, the service will arbitrarilty choose one of the endpoints to use for extension execution.
.google.cloud.aiplatform.v1beta1.ExtensionPrivateServiceConnectConfig private_service_connect_config = 16 [(.google.api.field_behavior) = OPTIONAL];
getPrivateServiceConnectConfigOrBuilder in interface ExtensionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Extension parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Extension parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Extension parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Extension parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Extension parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Extension parseFrom(InputStream input) throws IOException
IOExceptionpublic static Extension parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Extension parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Extension parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Extension parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Extension parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Extension.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Extension.Builder newBuilder()
public static Extension.Builder newBuilder(Extension prototype)
public Extension.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Extension.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Extension getDefaultInstance()
public static com.google.protobuf.Parser<Extension> parser()
public com.google.protobuf.Parser<Extension> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Extension getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.