Class ExtensionManifest.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExtensionManifest build()
Returns
TypeDescription
ExtensionManifest

buildPartial()

public ExtensionManifest buildPartial()
Returns
TypeDescription
ExtensionManifest

clear()

public ExtensionManifest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.

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

Returns
TypeDescription
ExtensionManifest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExtensionManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ExtensionManifest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ExtensionManifest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AuthConfigOrBuilder

getDefaultInstanceForType()

public ExtensionManifest getDefaultInstanceForType()
Returns
TypeDescription
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.

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

Returns
TypeDescription
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.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the authConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueExtensionManifest.ApiSpec
Returns
TypeDescription
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
NameDescription
valueAuthConfig
Returns
TypeDescription
ExtensionManifest.Builder

mergeFrom(ExtensionManifest other)

public ExtensionManifest.Builder mergeFrom(ExtensionManifest other)
Parameter
NameDescription
otherExtensionManifest
Returns
TypeDescription
ExtensionManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExtensionManifest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueExtensionManifest.ApiSpec
Returns
TypeDescription
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
NameDescription
builderForValueExtensionManifest.ApiSpec.Builder
Returns
TypeDescription
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
NameDescription
valueAuthConfig
Returns
TypeDescription
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
NameDescription
builderForValueAuthConfig.Builder
Returns
TypeDescription
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.

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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.

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ExtensionManifest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExtensionManifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExtensionManifest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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