Class ExtensionManifest.ApiSpec.Builder (3.43.0)

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

The API specification shown to the LLM.

Protobuf type google.cloud.aiplatform.v1beta1.ExtensionManifest.ApiSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExtensionManifest.ApiSpec build()
Returns
Type Description
ExtensionManifest.ApiSpec

buildPartial()

public ExtensionManifest.ApiSpec buildPartial()
Returns
Type Description
ExtensionManifest.ApiSpec

clear()

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

clearApiSpec()

public ExtensionManifest.ApiSpec.Builder clearApiSpec()
Returns
Type Description
ExtensionManifest.ApiSpec.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOpenApiGcsUri()

public ExtensionManifest.ApiSpec.Builder clearOpenApiGcsUri()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

clearOpenApiYaml()

public ExtensionManifest.ApiSpec.Builder clearOpenApiYaml()

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

clone()

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

getApiSpecCase()

public ExtensionManifest.ApiSpec.ApiSpecCase getApiSpecCase()
Returns
Type Description
ExtensionManifest.ApiSpec.ApiSpecCase

getDefaultInstanceForType()

public ExtensionManifest.ApiSpec getDefaultInstanceForType()
Returns
Type Description
ExtensionManifest.ApiSpec

getDescriptorForType()

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

getOpenApiGcsUri()

public String getOpenApiGcsUri()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Returns
Type Description
String

The openApiGcsUri.

getOpenApiGcsUriBytes()

public ByteString getOpenApiGcsUriBytes()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Returns
Type Description
ByteString

The bytes for openApiGcsUri.

getOpenApiYaml()

public String getOpenApiYaml()

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Returns
Type Description
String

The openApiYaml.

getOpenApiYamlBytes()

public ByteString getOpenApiYamlBytes()

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Returns
Type Description
ByteString

The bytes for openApiYaml.

hasOpenApiGcsUri()

public boolean hasOpenApiGcsUri()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Returns
Type Description
boolean

Whether the openApiGcsUri field is set.

hasOpenApiYaml()

public boolean hasOpenApiYaml()

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Returns
Type Description
boolean

Whether the openApiYaml field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExtensionManifest.ApiSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOpenApiGcsUri(String value)

public ExtensionManifest.ApiSpec.Builder setOpenApiGcsUri(String value)

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Parameter
Name Description
value String

The openApiGcsUri to set.

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

setOpenApiGcsUriBytes(ByteString value)

public ExtensionManifest.ApiSpec.Builder setOpenApiGcsUriBytes(ByteString value)

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Parameter
Name Description
value ByteString

The bytes for openApiGcsUri to set.

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

setOpenApiYaml(String value)

public ExtensionManifest.ApiSpec.Builder setOpenApiYaml(String value)

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Parameter
Name Description
value String

The openApiYaml to set.

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

setOpenApiYamlBytes(ByteString value)

public ExtensionManifest.ApiSpec.Builder setOpenApiYamlBytes(ByteString value)

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Parameter
Name Description
value ByteString

The bytes for openApiYaml to set.

Returns
Type Description
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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