Class ApiAuthentication (0.1.0)

public final class ApiAuthentication extends GeneratedMessage implements ApiAuthenticationOrBuilder

Authentication information required for API calls.

Protobuf type google.cloud.ces.v1.ApiAuthentication

Static Fields

API_KEY_CONFIG_FIELD_NUMBER

public static final int API_KEY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

BEARER_TOKEN_CONFIG_FIELD_NUMBER

public static final int BEARER_TOKEN_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OAUTH_CONFIG_FIELD_NUMBER

public static final int OAUTH_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG_FIELD_NUMBER

public static final int SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ApiAuthentication getDefaultInstance()
Returns
Type Description
ApiAuthentication

getDescriptor()

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

newBuilder()

public static ApiAuthentication.Builder newBuilder()
Returns
Type Description
ApiAuthentication.Builder

newBuilder(ApiAuthentication prototype)

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

parseDelimitedFrom(InputStream input)

public static ApiAuthentication parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ApiAuthentication
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ApiAuthentication parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ApiAuthentication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ApiAuthentication parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ApiAuthentication
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ApiAuthentication parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ApiAuthentication
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ApiAuthentication parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ApiAuthentication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ApiAuthentication> parser()
Returns
Type Description
Parser<ApiAuthentication>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiKeyConfig()

public ApiKeyConfig getApiKeyConfig()

Optional. Config for API key auth.

.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiKeyConfig

The apiKeyConfig.

getApiKeyConfigOrBuilder()

public ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()

Optional. Config for API key auth.

.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiKeyConfigOrBuilder

getAuthConfigCase()

public ApiAuthentication.AuthConfigCase getAuthConfigCase()
Returns
Type Description
ApiAuthentication.AuthConfigCase

getBearerTokenConfig()

public BearerTokenConfig getBearerTokenConfig()

Optional. Config for bearer token auth.

.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BearerTokenConfig

The bearerTokenConfig.

getBearerTokenConfigOrBuilder()

public BearerTokenConfigOrBuilder getBearerTokenConfigOrBuilder()

Optional. Config for bearer token auth.

.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BearerTokenConfigOrBuilder

getDefaultInstanceForType()

public ApiAuthentication getDefaultInstanceForType()
Returns
Type Description
ApiAuthentication

getOauthConfig()

public OAuthConfig getOauthConfig()

Optional. Config for OAuth.

.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthConfig

The oauthConfig.

getOauthConfigOrBuilder()

public OAuthConfigOrBuilder getOauthConfigOrBuilder()

Optional. Config for OAuth.

.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthConfigOrBuilder

getParserForType()

public Parser<ApiAuthentication> getParserForType()
Returns
Type Description
Parser<ApiAuthentication>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccountAuthConfig()

public ServiceAccountAuthConfig getServiceAccountAuthConfig()

Optional. Config for service account authentication.

.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceAccountAuthConfig

The serviceAccountAuthConfig.

getServiceAccountAuthConfigOrBuilder()

public ServiceAccountAuthConfigOrBuilder getServiceAccountAuthConfigOrBuilder()

Optional. Config for service account authentication.

.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceAccountAuthConfigOrBuilder

getServiceAgentIdTokenAuthConfig()

public ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig()

Optional. Config for ID token auth generated from CES service agent.

.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceAgentIdTokenAuthConfig

The serviceAgentIdTokenAuthConfig.

getServiceAgentIdTokenAuthConfigOrBuilder()

public ServiceAgentIdTokenAuthConfigOrBuilder getServiceAgentIdTokenAuthConfigOrBuilder()

Optional. Config for ID token auth generated from CES service agent.

.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceAgentIdTokenAuthConfigOrBuilder

hasApiKeyConfig()

public boolean hasApiKeyConfig()

Optional. Config for API key auth.

.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiKeyConfig field is set.

hasBearerTokenConfig()

public boolean hasBearerTokenConfig()

Optional. Config for bearer token auth.

.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the bearerTokenConfig field is set.

hasOauthConfig()

public boolean hasOauthConfig()

Optional. Config for OAuth.

.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the oauthConfig field is set.

hasServiceAccountAuthConfig()

public boolean hasServiceAccountAuthConfig()

Optional. Config for service account authentication.

.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceAccountAuthConfig field is set.

hasServiceAgentIdTokenAuthConfig()

public boolean hasServiceAgentIdTokenAuthConfig()

Optional. Config for ID token auth generated from CES service agent.

.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceAgentIdTokenAuthConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ApiAuthentication.Builder newBuilderForType()
Returns
Type Description
ApiAuthentication.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ApiAuthentication.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ApiAuthentication.Builder
Overrides

toBuilder()

public ApiAuthentication.Builder toBuilder()
Returns
Type Description
ApiAuthentication.Builder

writeTo(CodedOutputStream output)

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