Class ApiAuth.ApiKeyConfig.Builder (3.54.0)

public static final class ApiAuth.ApiKeyConfig.Builder extends GeneratedMessageV3.Builder<ApiAuth.ApiKeyConfig.Builder> implements ApiAuth.ApiKeyConfigOrBuilder

The API secret.

Protobuf type google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApiAuth.ApiKeyConfig build()
Returns
Type Description
ApiAuth.ApiKeyConfig

buildPartial()

public ApiAuth.ApiKeyConfig buildPartial()
Returns
Type Description
ApiAuth.ApiKeyConfig

clear()

public ApiAuth.ApiKeyConfig.Builder clear()
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder
Overrides

clearApiKeySecretVersion()

public ApiAuth.ApiKeyConfig.Builder clearApiKeySecretVersion()

Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ApiAuth.ApiKeyConfig.Builder clone()
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder
Overrides

getApiKeySecretVersion()

public String getApiKeySecretVersion()

Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The apiKeySecretVersion.

getApiKeySecretVersionBytes()

public ByteString getApiKeySecretVersionBytes()

Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for apiKeySecretVersion.

getDefaultInstanceForType()

public ApiAuth.ApiKeyConfig getDefaultInstanceForType()
Returns
Type Description
ApiAuth.ApiKeyConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApiAuth.ApiKeyConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiKeySecretVersion(String value)

public ApiAuth.ApiKeyConfig.Builder setApiKeySecretVersion(String value)

Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The apiKeySecretVersion to set.

Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

This builder for chaining.

setApiKeySecretVersionBytes(ByteString value)

public ApiAuth.ApiKeyConfig.Builder setApiKeySecretVersionBytes(ByteString value)

Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for apiKeySecretVersion to set.

Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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