Class ExtensionManifest.Builder (3.47.0)

public static final class ExtensionManifest.Builder extends GeneratedMessageV3.Builder<ExtensionManifest.Builder> implements ExtensionManifestOrBuilder

Manifest spec of an Extension needed for runtime execution.

Protobuf type google.cloud.aiplatform.v1beta1.ExtensionManifest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExtensionManifest build()
Returns
Type Description
ExtensionManifest

buildPartial()

public ExtensionManifest buildPartial()
Returns
Type Description
ExtensionManifest

clear()

public ExtensionManifest.Builder clear()
Returns
Type Description
ExtensionManifest.Builder
Overrides

clearApiSpec()

public ExtensionManifest.Builder clearApiSpec()

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionManifest.Builder

clearAuthConfig()

public ExtensionManifest.Builder clearAuthConfig()

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionManifest.Builder

clearDescription()

public ExtensionManifest.Builder clearDescription()

Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning. e.g., if the extension is a data store, you can let the LLM know what data it contains.

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

Returns
Type Description
ExtensionManifest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ExtensionManifest.Builder clearName()

Required. Extension name shown to the LLM. The name can be up to 128 characters long.

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

Returns
Type Description
ExtensionManifest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ExtensionManifest.Builder clone()
Returns
Type Description
ExtensionManifest.Builder
Overrides

getApiSpec()

public ExtensionManifest.ApiSpec getApiSpec()

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionManifest.ApiSpec

The apiSpec.

getApiSpecBuilder()

public ExtensionManifest.ApiSpec.Builder getApiSpecBuilder()

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

getApiSpecOrBuilder()

public ExtensionManifest.ApiSpecOrBuilder getApiSpecOrBuilder()

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionManifest.ApiSpecOrBuilder

getAuthConfig()

public AuthConfig getAuthConfig()

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthConfig

The authConfig.

getAuthConfigBuilder()

public AuthConfig.Builder getAuthConfigBuilder()

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthConfig.Builder

getAuthConfigOrBuilder()

public AuthConfigOrBuilder getAuthConfigOrBuilder()

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthConfigOrBuilder

getDefaultInstanceForType()

public ExtensionManifest getDefaultInstanceForType()
Returns
Type Description
ExtensionManifest

getDescription()

public String getDescription()

Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning. e.g., if the extension is a data store, you can let the LLM know what data it contains.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning. e.g., if the extension is a data store, you can let the LLM know what data it contains.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Required. Extension name shown to the LLM. The name can be up to 128 characters long.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Extension name shown to the LLM. The name can be up to 128 characters long.

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

Returns
Type Description
ByteString

The bytes for name.

hasApiSpec()

public boolean hasApiSpec()

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the apiSpec field is set.

hasAuthConfig()

public boolean hasAuthConfig()

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the authConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiSpec(ExtensionManifest.ApiSpec value)

public ExtensionManifest.Builder mergeApiSpec(ExtensionManifest.ApiSpec value)

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExtensionManifest.ApiSpec
Returns
Type Description
ExtensionManifest.Builder

mergeAuthConfig(AuthConfig value)

public ExtensionManifest.Builder mergeAuthConfig(AuthConfig value)

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AuthConfig
Returns
Type Description
ExtensionManifest.Builder

mergeFrom(ExtensionManifest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiSpec(ExtensionManifest.ApiSpec value)

public ExtensionManifest.Builder setApiSpec(ExtensionManifest.ApiSpec value)

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExtensionManifest.ApiSpec
Returns
Type Description
ExtensionManifest.Builder

setApiSpec(ExtensionManifest.ApiSpec.Builder builderForValue)

public ExtensionManifest.Builder setApiSpec(ExtensionManifest.ApiSpec.Builder builderForValue)

Required. Immutable. The API specification shown to the LLM.

.google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec api_spec = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ExtensionManifest.ApiSpec.Builder
Returns
Type Description
ExtensionManifest.Builder

setAuthConfig(AuthConfig value)

public ExtensionManifest.Builder setAuthConfig(AuthConfig value)

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AuthConfig
Returns
Type Description
ExtensionManifest.Builder

setAuthConfig(AuthConfig.Builder builderForValue)

public ExtensionManifest.Builder setAuthConfig(AuthConfig.Builder builderForValue)

Required. Immutable. Type of auth supported by this extension.

.google.cloud.aiplatform.v1beta1.AuthConfig auth_config = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AuthConfig.Builder
Returns
Type Description
ExtensionManifest.Builder

setDescription(String value)

public ExtensionManifest.Builder setDescription(String value)

Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning. e.g., if the extension is a data store, you can let the LLM know what data it contains.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ExtensionManifest.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ExtensionManifest.Builder setDescriptionBytes(ByteString value)

Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning. e.g., if the extension is a data store, you can let the LLM know what data it contains.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ExtensionManifest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ExtensionManifest.Builder setName(String value)

Required. Extension name shown to the LLM. The name can be up to 128 characters long.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExtensionManifest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExtensionManifest.Builder setNameBytes(ByteString value)

Required. Extension name shown to the LLM. The name can be up to 128 characters long.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExtensionManifest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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