public static final class ApiAuthentication.Builder extends GeneratedMessage.Builder<ApiAuthentication.Builder> implements ApiAuthenticationOrBuilderAuthentication information required for API calls.
Protobuf type google.cloud.ces.v1.ApiAuthentication
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ApiAuthentication.BuilderImplements
ApiAuthenticationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ApiAuthentication build()| Returns | |
|---|---|
| Type | Description |
ApiAuthentication |
|
buildPartial()
public ApiAuthentication buildPartial()| Returns | |
|---|---|
| Type | Description |
ApiAuthentication |
|
clear()
public ApiAuthentication.Builder clear()| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
clearApiKeyConfig()
public ApiAuthentication.Builder clearApiKeyConfig()Optional. Config for API key auth.
.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
clearAuthConfig()
public ApiAuthentication.Builder clearAuthConfig()| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
clearBearerTokenConfig()
public ApiAuthentication.Builder clearBearerTokenConfig()Optional. Config for bearer token auth.
.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
clearOauthConfig()
public ApiAuthentication.Builder clearOauthConfig()Optional. Config for OAuth.
.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
clearServiceAccountAuthConfig()
public ApiAuthentication.Builder clearServiceAccountAuthConfig()Optional. Config for service account authentication.
.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
clearServiceAgentIdTokenAuthConfig()
public ApiAuthentication.Builder clearServiceAgentIdTokenAuthConfig()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 |
ApiAuthentication.Builder |
|
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. |
getApiKeyConfigBuilder()
public ApiKeyConfig.Builder getApiKeyConfigBuilder()Optional. Config for API key auth.
.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApiKeyConfig.Builder |
|
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. |
getBearerTokenConfigBuilder()
public BearerTokenConfig.Builder getBearerTokenConfigBuilder()Optional. Config for bearer token auth.
.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BearerTokenConfig.Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getOauthConfigBuilder()
public OAuthConfig.Builder getOauthConfigBuilder()Optional. Config for OAuth.
.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OAuthConfig.Builder |
|
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 |
|
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. |
getServiceAccountAuthConfigBuilder()
public ServiceAccountAuthConfig.Builder getServiceAccountAuthConfigBuilder()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.Builder |
|
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. |
getServiceAgentIdTokenAuthConfigBuilder()
public ServiceAgentIdTokenAuthConfig.Builder getServiceAgentIdTokenAuthConfigBuilder()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.Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeApiKeyConfig(ApiKeyConfig value)
public ApiAuthentication.Builder mergeApiKeyConfig(ApiKeyConfig value)Optional. Config for API key auth.
.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ApiKeyConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
mergeBearerTokenConfig(BearerTokenConfig value)
public ApiAuthentication.Builder mergeBearerTokenConfig(BearerTokenConfig value)Optional. Config for bearer token auth.
.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BearerTokenConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
mergeFrom(ApiAuthentication other)
public ApiAuthentication.Builder mergeFrom(ApiAuthentication other)| Parameter | |
|---|---|
| Name | Description |
other |
ApiAuthentication |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ApiAuthentication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ApiAuthentication.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
mergeOauthConfig(OAuthConfig value)
public ApiAuthentication.Builder mergeOauthConfig(OAuthConfig value)Optional. Config for OAuth.
.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
mergeServiceAccountAuthConfig(ServiceAccountAuthConfig value)
public ApiAuthentication.Builder mergeServiceAccountAuthConfig(ServiceAccountAuthConfig value)Optional. Config for service account authentication.
.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceAccountAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
mergeServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig value)
public ApiAuthentication.Builder mergeServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceAgentIdTokenAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setApiKeyConfig(ApiKeyConfig value)
public ApiAuthentication.Builder setApiKeyConfig(ApiKeyConfig value)Optional. Config for API key auth.
.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ApiKeyConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setApiKeyConfig(ApiKeyConfig.Builder builderForValue)
public ApiAuthentication.Builder setApiKeyConfig(ApiKeyConfig.Builder builderForValue)Optional. Config for API key auth.
.google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ApiKeyConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setBearerTokenConfig(BearerTokenConfig value)
public ApiAuthentication.Builder setBearerTokenConfig(BearerTokenConfig value)Optional. Config for bearer token auth.
.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BearerTokenConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setBearerTokenConfig(BearerTokenConfig.Builder builderForValue)
public ApiAuthentication.Builder setBearerTokenConfig(BearerTokenConfig.Builder builderForValue)Optional. Config for bearer token auth.
.google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BearerTokenConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setOauthConfig(OAuthConfig value)
public ApiAuthentication.Builder setOauthConfig(OAuthConfig value)Optional. Config for OAuth.
.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setOauthConfig(OAuthConfig.Builder builderForValue)
public ApiAuthentication.Builder setOauthConfig(OAuthConfig.Builder builderForValue)Optional. Config for OAuth.
.google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OAuthConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setServiceAccountAuthConfig(ServiceAccountAuthConfig value)
public ApiAuthentication.Builder setServiceAccountAuthConfig(ServiceAccountAuthConfig value)Optional. Config for service account authentication.
.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceAccountAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setServiceAccountAuthConfig(ServiceAccountAuthConfig.Builder builderForValue)
public ApiAuthentication.Builder setServiceAccountAuthConfig(ServiceAccountAuthConfig.Builder builderForValue)Optional. Config for service account authentication.
.google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceAccountAuthConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig value)
public ApiAuthentication.Builder setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceAgentIdTokenAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|
setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig.Builder builderForValue)
public ApiAuthentication.Builder setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceAgentIdTokenAuthConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication.Builder |
|