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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExtensionManifest.ApiSpec build()
Returns
TypeDescription
ExtensionManifest.ApiSpec

buildPartial()

public ExtensionManifest.ApiSpec buildPartial()
Returns
TypeDescription
ExtensionManifest.ApiSpec

clear()

public ExtensionManifest.ApiSpec.Builder clear()
Returns
TypeDescription
ExtensionManifest.ApiSpec.Builder
Overrides

clearApiSpec()

public ExtensionManifest.ApiSpec.Builder clearApiSpec()
Returns
TypeDescription
ExtensionManifest.ApiSpec.Builder

clearField(Descriptors.FieldDescriptor field)

public ExtensionManifest.ApiSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExtensionManifest.ApiSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExtensionManifest.ApiSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExtensionManifest.ApiSpec.Builder

This builder for chaining.

clone()

public ExtensionManifest.ApiSpec.Builder clone()
Returns
TypeDescription
ExtensionManifest.ApiSpec.Builder
Overrides

getApiSpecCase()

public ExtensionManifest.ApiSpec.ApiSpecCase getApiSpecCase()
Returns
TypeDescription
ExtensionManifest.ApiSpec.ApiSpecCase

getDefaultInstanceForType()

public ExtensionManifest.ApiSpec getDefaultInstanceForType()
Returns
TypeDescription
ExtensionManifest.ApiSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOpenApiGcsUri()

public String getOpenApiGcsUri()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

Returns
TypeDescription
String

The openApiGcsUri.

getOpenApiGcsUriBytes()

public ByteString getOpenApiGcsUriBytes()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

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

The openApiYaml.

getOpenApiYamlBytes()

public ByteString getOpenApiYamlBytes()

The API spec in Open API standard and YAML format.

string open_api_yaml = 1;

Returns
TypeDescription
ByteString

The bytes for openApiYaml.

hasOpenApiGcsUri()

public boolean hasOpenApiGcsUri()

Cloud Storage URI pointing to the OpenAPI spec.

string open_api_gcs_uri = 2;

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

Whether the openApiYaml field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExtensionManifest.ApiSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The openApiGcsUri to set.

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

The bytes for openApiGcsUri to set.

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

The openApiYaml to set.

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

The bytes for openApiYaml to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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