Class ScanConfig.Authentication.CustomAccount.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScanConfig.Authentication.CustomAccount.Builder>
com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder
All Implemented Interfaces:
ScanConfig.Authentication.CustomAccountOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ScanConfig.Authentication.CustomAccount

public static final class ScanConfig.Authentication.CustomAccount.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScanConfig.Authentication.CustomAccount.Builder> implements ScanConfig.Authentication.CustomAccountOrBuilder
 Describes authentication configuration that uses a custom account.
 
Protobuf type google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount
  • 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<ScanConfig.Authentication.CustomAccount.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<ScanConfig.Authentication.CustomAccount.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<ScanConfig.Authentication.CustomAccount.Builder>
    • getDefaultInstanceForType

      public ScanConfig.Authentication.CustomAccount 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 ScanConfig.Authentication.CustomAccount.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<ScanConfig.Authentication.CustomAccount.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<ScanConfig.Authentication.CustomAccount.Builder>
    • mergeFrom

      public ScanConfig.Authentication.CustomAccount.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<ScanConfig.Authentication.CustomAccount.Builder>
      Throws:
      IOException
    • getUsername

      public String getUsername()
       Required. The user name of the custom account.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUsername in interface ScanConfig.Authentication.CustomAccountOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       Required. The user name of the custom account.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUsernameBytes in interface ScanConfig.Authentication.CustomAccountOrBuilder
      Returns:
      The bytes for username.
    • setUsername

       Required. The user name of the custom account.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

       Required. The user name of the custom account.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public ScanConfig.Authentication.CustomAccount.Builder setUsernameBytes(com.google.protobuf.ByteString value)
       Required. The user name of the custom account.
       
      string username = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • getPassword

      public String getPassword()
       Required. Input only. The password of the custom account. The credential is stored encrypted
       and not returned in any response nor included in audit logs.
       
      string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getPassword in interface ScanConfig.Authentication.CustomAccountOrBuilder
      Returns:
      The password.
    • getPasswordBytes

      public com.google.protobuf.ByteString getPasswordBytes()
       Required. Input only. The password of the custom account. The credential is stored encrypted
       and not returned in any response nor included in audit logs.
       
      string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getPasswordBytes in interface ScanConfig.Authentication.CustomAccountOrBuilder
      Returns:
      The bytes for password.
    • setPassword

       Required. Input only. The password of the custom account. The credential is stored encrypted
       and not returned in any response nor included in audit logs.
       
      string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The password to set.
      Returns:
      This builder for chaining.
    • clearPassword

       Required. Input only. The password of the custom account. The credential is stored encrypted
       and not returned in any response nor included in audit logs.
       
      string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPasswordBytes

      public ScanConfig.Authentication.CustomAccount.Builder setPasswordBytes(com.google.protobuf.ByteString value)
       Required. Input only. The password of the custom account. The credential is stored encrypted
       and not returned in any response nor included in audit logs.
       
      string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The bytes for password to set.
      Returns:
      This builder for chaining.
    • getLoginUrl

      public String getLoginUrl()
       Required. The login form URL of the website.
       
      string login_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLoginUrl in interface ScanConfig.Authentication.CustomAccountOrBuilder
      Returns:
      The loginUrl.
    • getLoginUrlBytes

      public com.google.protobuf.ByteString getLoginUrlBytes()
       Required. The login form URL of the website.
       
      string login_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLoginUrlBytes in interface ScanConfig.Authentication.CustomAccountOrBuilder
      Returns:
      The bytes for loginUrl.
    • setLoginUrl

       Required. The login form URL of the website.
       
      string login_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The loginUrl to set.
      Returns:
      This builder for chaining.
    • clearLoginUrl

       Required. The login form URL of the website.
       
      string login_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLoginUrlBytes

      public ScanConfig.Authentication.CustomAccount.Builder setLoginUrlBytes(com.google.protobuf.ByteString value)
       Required. The login form URL of the website.
       
      string login_url = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for loginUrl to set.
      Returns:
      This builder for chaining.