Class AuthConfig.Oauth2ClientCredentialsConfig.Builder (0.28.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public static final class AuthConfig . Oauth2ClientCredentialsConfig . Builder extends GeneratedMessageV3 . Builder<AuthConfig . Oauth2ClientCredentialsConfig . Builder > implements AuthConfig . Oauth2ClientCredentialsConfigOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AuthConfig . Oauth2ClientCredentialsConfig build ()
buildPartial()
public AuthConfig . Oauth2ClientCredentialsConfig buildPartial ()
clear()
public AuthConfig . Oauth2ClientCredentialsConfig . Builder clear ()
Overrides
clearClientId()
public AuthConfig . Oauth2ClientCredentialsConfig . Builder clearClientId ()
Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
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];
clearField(Descriptors.FieldDescriptor field)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public AuthConfig . Oauth2ClientCredentialsConfig . Builder clone ()
Overrides
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];
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];
getDefaultInstanceForType()
public AuthConfig . Oauth2ClientCredentialsConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
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
mergeFrom(AuthConfig.Oauth2ClientCredentialsConfig other)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder mergeFrom ( AuthConfig . Oauth2ClientCredentialsConfig other )
public AuthConfig . Oauth2ClientCredentialsConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuthConfig . Oauth2ClientCredentialsConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
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
String
The clientId to set.
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
ByteString
The bytes for clientId to set.
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
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];
setField(Descriptors.FieldDescriptor field, Object value)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuthConfig . Oauth2ClientCredentialsConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AuthConfig . Oauth2ClientCredentialsConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-02 UTC."],[],[]]