Class ChallengeReply.Builder

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

public static final class ChallengeReply.Builder extends com.google.protobuf.GeneratedMessage.Builder<ChallengeReply.Builder> implements ChallengeReplyOrBuilder
 A reply to a challenge signed by a 2FA key.
 
Protobuf type google.cloud.kms.v1.ChallengeReply
  • 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<ChallengeReply.Builder>
    • clear

      public ChallengeReply.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<ChallengeReply.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<ChallengeReply.Builder>
    • getDefaultInstanceForType

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

      public ChallengeReply build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ChallengeReply.Builder mergeFrom(ChallengeReply other)
    • isInitialized

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

      public ChallengeReply.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<ChallengeReply.Builder>
      Throws:
      IOException
    • getSignedChallenge

      public com.google.protobuf.ByteString getSignedChallenge()
       Required. The signed challenge associated with the 2FA key.
       The signature must be RSASSA-PKCS1 v1.5 with a SHA256 digest.
       
      bytes signed_challenge = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSignedChallenge in interface ChallengeReplyOrBuilder
      Returns:
      The signedChallenge.
    • setSignedChallenge

      public ChallengeReply.Builder setSignedChallenge(com.google.protobuf.ByteString value)
       Required. The signed challenge associated with the 2FA key.
       The signature must be RSASSA-PKCS1 v1.5 with a SHA256 digest.
       
      bytes signed_challenge = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The signedChallenge to set.
      Returns:
      This builder for chaining.
    • clearSignedChallenge

      public ChallengeReply.Builder clearSignedChallenge()
       Required. The signed challenge associated with the 2FA key.
       The signature must be RSASSA-PKCS1 v1.5 with a SHA256 digest.
       
      bytes signed_challenge = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getPublicKeyPem

      public String getPublicKeyPem()
       Required. The public key associated with the 2FA key.
       
      string public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPublicKeyPem in interface ChallengeReplyOrBuilder
      Returns:
      The publicKeyPem.
    • getPublicKeyPemBytes

      public com.google.protobuf.ByteString getPublicKeyPemBytes()
       Required. The public key associated with the 2FA key.
       
      string public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPublicKeyPemBytes in interface ChallengeReplyOrBuilder
      Returns:
      The bytes for publicKeyPem.
    • setPublicKeyPem

      public ChallengeReply.Builder setPublicKeyPem(String value)
       Required. The public key associated with the 2FA key.
       
      string public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The publicKeyPem to set.
      Returns:
      This builder for chaining.
    • clearPublicKeyPem

      public ChallengeReply.Builder clearPublicKeyPem()
       Required. The public key associated with the 2FA key.
       
      string public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPublicKeyPemBytes

      public ChallengeReply.Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value)
       Required. The public key associated with the 2FA key.
       
      string public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for publicKeyPem to set.
      Returns:
      This builder for chaining.