public static final class AuthConfig.Oauth2ClientCredentialsConfig.Builder extends GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder> implements AuthConfig.Oauth2ClientCredentialsConfigOrBuilderParameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
Protobuf type google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthConfig.Oauth2ClientCredentialsConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AuthConfig.Oauth2ClientCredentialsConfig build()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
buildPartial()
public AuthConfig.Oauth2ClientCredentialsConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
clear()
public AuthConfig.Oauth2ClientCredentialsConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
clearClientId()
public AuthConfig.Oauth2ClientCredentialsConfig.Builder clearClientId()Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
This builder for chaining. |
clearClientSecret()
public AuthConfig.Oauth2ClientCredentialsConfig.Builder clearClientSecret() Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
getClientId()
public String getClientId()Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The clientId. |
getClientIdBytes()
public ByteString getClientIdBytes()Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientId. |
getClientSecret()
public Secret getClientSecret() Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret |
The clientSecret. |
getClientSecretBuilder()
public Secret.Builder getClientSecretBuilder() Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
getClientSecretOrBuilder()
public SecretOrBuilder getClientSecretOrBuilder() Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SecretOrBuilder |
|
getDefaultInstanceForType()
public AuthConfig.Oauth2ClientCredentialsConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasClientSecret()
public boolean hasClientSecret() Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the clientSecret field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeClientSecret(Secret value)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder mergeClientSecret(Secret value) Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
mergeFrom(AuthConfig.Oauth2ClientCredentialsConfig other)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder mergeFrom(AuthConfig.Oauth2ClientCredentialsConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AuthConfig.Oauth2ClientCredentialsConfig |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
setClientId(String value)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder setClientId(String value)Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientId to set. |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
This builder for chaining. |
setClientIdBytes(ByteString value)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder setClientIdBytes(ByteString value)Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientId to set. |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
This builder for chaining. |
setClientSecret(Secret value)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder setClientSecret(Secret value) Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
setClientSecret(Secret.Builder builderForValue)
public AuthConfig.Oauth2ClientCredentialsConfig.Builder setClientSecret(Secret.Builder builderForValue) Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Secret.Builder |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|