Class ApiAuth.ApiKeyConfig (3.52.0)

public static final class ApiAuth.ApiKeyConfig extends GeneratedMessageV3 implements ApiAuth.ApiKeyConfigOrBuilder

The API secret.

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

Static Fields

API_KEY_SECRET_VERSION_FIELD_NUMBER

public static final int API_KEY_SECRET_VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ApiAuth.ApiKeyConfig getDefaultInstance()
Returns
Type Description
ApiAuth.ApiKeyConfig

getDescriptor()

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

newBuilder()

public static ApiAuth.ApiKeyConfig.Builder newBuilder()
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

newBuilder(ApiAuth.ApiKeyConfig prototype)

public static ApiAuth.ApiKeyConfig.Builder newBuilder(ApiAuth.ApiKeyConfig prototype)
Parameter
Name Description
prototype ApiAuth.ApiKeyConfig
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

parseDelimitedFrom(InputStream input)

public static ApiAuth.ApiKeyConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApiAuth.ApiKeyConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ApiAuth.ApiKeyConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ApiAuth.ApiKeyConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ApiAuth.ApiKeyConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ApiAuth.ApiKeyConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ApiAuth.ApiKeyConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ApiAuth.ApiKeyConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ApiAuth.ApiKeyConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApiAuth.ApiKeyConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ApiAuth.ApiKeyConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ApiAuth.ApiKeyConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiAuth.ApiKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ApiAuth.ApiKeyConfig> parser()
Returns
Type Description
Parser<ApiKeyConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<ApiAuth.ApiKeyConfig> getParserForType()
Returns
Type Description
Parser<ApiKeyConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ApiAuth.ApiKeyConfig.Builder newBuilderForType()
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ApiAuth.ApiKeyConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ApiAuth.ApiKeyConfig.Builder toBuilder()
Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException