Class AuthConfig.UserPasswordConfig.Builder

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

public static final class AuthConfig.UserPasswordConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthConfig.UserPasswordConfig.Builder> implements AuthConfig.UserPasswordConfigOrBuilder
 Parameters to support Username and Password Authentication.
 
Protobuf type google.cloud.apihub.v1.AuthConfig.UserPasswordConfig
  • 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.UserPasswordConfig.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.UserPasswordConfig.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.UserPasswordConfig.Builder>
    • getDefaultInstanceForType

      public AuthConfig.UserPasswordConfig 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

      public AuthConfig.UserPasswordConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthConfig.UserPasswordConfig.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.UserPasswordConfig.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.UserPasswordConfig.Builder>
    • mergeFrom

      public AuthConfig.UserPasswordConfig.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.UserPasswordConfig.Builder>
      Throws:
      IOException
    • getUsername

      public String getUsername()
       Required. Username.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUsername in interface AuthConfig.UserPasswordConfigOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       Required. Username.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUsernameBytes in interface AuthConfig.UserPasswordConfigOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public AuthConfig.UserPasswordConfig.Builder setUsername(String value)
       Required. Username.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public AuthConfig.UserPasswordConfig.Builder clearUsername()
       Required. Username.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public AuthConfig.UserPasswordConfig.Builder setUsernameBytes(com.google.protobuf.ByteString value)
       Required. Username.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • hasPassword

      public boolean hasPassword()
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPassword in interface AuthConfig.UserPasswordConfigOrBuilder
      Returns:
      Whether the password field is set.
    • getPassword

      public Secret getPassword()
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPassword in interface AuthConfig.UserPasswordConfigOrBuilder
      Returns:
      The password.
    • setPassword

      public AuthConfig.UserPasswordConfig.Builder setPassword(Secret value)
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
    • setPassword

      public AuthConfig.UserPasswordConfig.Builder setPassword(Secret.Builder builderForValue)
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergePassword

      public AuthConfig.UserPasswordConfig.Builder mergePassword(Secret value)
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearPassword

      public AuthConfig.UserPasswordConfig.Builder clearPassword()
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPasswordBuilder

      public Secret.Builder getPasswordBuilder()
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPasswordOrBuilder

      public SecretOrBuilder getPasswordOrBuilder()
       Required. Secret version reference containing the password.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPasswordOrBuilder in interface AuthConfig.UserPasswordConfigOrBuilder