Class AuthConfig.Oauth2ClientCredentialsConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
com.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig.Builder
All Implemented Interfaces:
AuthConfig.Oauth2ClientCredentialsConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AuthConfig.Oauth2ClientCredentialsConfig

public static final class AuthConfig.Oauth2ClientCredentialsConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder> implements AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
 Parameters 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
    • getDefaultInstanceForType

      public AuthConfig.Oauth2ClientCredentialsConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthConfig.Oauth2ClientCredentialsConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
    • mergeFrom

      public AuthConfig.Oauth2ClientCredentialsConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthConfig.Oauth2ClientCredentialsConfig.Builder>
      Throws:
      IOException
    • getClientId

      public String getClientId()
       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClientId in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      The clientId.
    • getClientIdBytes

      public com.google.protobuf.ByteString getClientIdBytes()
       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClientIdBytes in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      The bytes for clientId.
    • setClientId

       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The clientId to set.
      Returns:
      This builder for chaining.
    • clearClientId

       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setClientIdBytes

      public AuthConfig.Oauth2ClientCredentialsConfig.Builder setClientIdBytes(com.google.protobuf.ByteString value)
       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for clientId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasClientSecret in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      Whether the clientSecret field is set.
    • 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];
      Specified by:
      getClientSecret in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      The clientSecret.
    • setClientSecret

       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];
    • setClientSecret

      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];
    • mergeClientSecret

      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];
    • 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];
    • 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];
      Specified by:
      getClientSecretOrBuilder in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder