Class CertificateDescription.KeyId.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CertificateDescription.KeyId.Builder>
com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder
All Implemented Interfaces:
CertificateDescription.KeyIdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CertificateDescription.KeyId

public static final class CertificateDescription.KeyId.Builder extends com.google.protobuf.GeneratedMessage.Builder<CertificateDescription.KeyId.Builder> implements CertificateDescription.KeyIdOrBuilder
 A KeyId identifies a specific public key, usually by hashing the public
 key.
 
Protobuf type google.cloud.security.privateca.v1.CertificateDescription.KeyId
  • 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<CertificateDescription.KeyId.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<CertificateDescription.KeyId.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<CertificateDescription.KeyId.Builder>
    • getDefaultInstanceForType

      public CertificateDescription.KeyId 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 CertificateDescription.KeyId buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public CertificateDescription.KeyId.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<CertificateDescription.KeyId.Builder>
      Throws:
      IOException
    • getKeyId

      public String getKeyId()
       Optional. The value of this KeyId encoded in lowercase hexadecimal. This
       is most likely the 160 bit SHA-1 hash of the public key.
       
      string key_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeyId in interface CertificateDescription.KeyIdOrBuilder
      Returns:
      The keyId.
    • getKeyIdBytes

      public com.google.protobuf.ByteString getKeyIdBytes()
       Optional. The value of this KeyId encoded in lowercase hexadecimal. This
       is most likely the 160 bit SHA-1 hash of the public key.
       
      string key_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeyIdBytes in interface CertificateDescription.KeyIdOrBuilder
      Returns:
      The bytes for keyId.
    • setKeyId

       Optional. The value of this KeyId encoded in lowercase hexadecimal. This
       is most likely the 160 bit SHA-1 hash of the public key.
       
      string key_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The keyId to set.
      Returns:
      This builder for chaining.
    • clearKeyId

       Optional. The value of this KeyId encoded in lowercase hexadecimal. This
       is most likely the 160 bit SHA-1 hash of the public key.
       
      string key_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setKeyIdBytes

      public CertificateDescription.KeyId.Builder setKeyIdBytes(com.google.protobuf.ByteString value)
       Optional. The value of this KeyId encoded in lowercase hexadecimal. This
       is most likely the 160 bit SHA-1 hash of the public key.
       
      string key_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for keyId to set.
      Returns:
      This builder for chaining.