Class CertificateRevocationList.RevokedCertificate.Builder

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

public static final class CertificateRevocationList.RevokedCertificate.Builder extends com.google.protobuf.GeneratedMessage.Builder<CertificateRevocationList.RevokedCertificate.Builder> implements CertificateRevocationList.RevokedCertificateOrBuilder
 Describes a revoked
 [Certificate][google.cloud.security.privateca.v1.Certificate].
 
Protobuf type google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate
  • 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<CertificateRevocationList.RevokedCertificate.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<CertificateRevocationList.RevokedCertificate.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<CertificateRevocationList.RevokedCertificate.Builder>
    • getDefaultInstanceForType

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

      public CertificateRevocationList.RevokedCertificate.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<CertificateRevocationList.RevokedCertificate.Builder>
      Throws:
      IOException
    • getCertificate

      public String getCertificate()
       The resource name for the
       [Certificate][google.cloud.security.privateca.v1.Certificate] in the
       format `projects/*/locations/*/caPools/*/certificates/*`.
       
      string certificate = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCertificate in interface CertificateRevocationList.RevokedCertificateOrBuilder
      Returns:
      The certificate.
    • getCertificateBytes

      public com.google.protobuf.ByteString getCertificateBytes()
       The resource name for the
       [Certificate][google.cloud.security.privateca.v1.Certificate] in the
       format `projects/*/locations/*/caPools/*/certificates/*`.
       
      string certificate = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCertificateBytes in interface CertificateRevocationList.RevokedCertificateOrBuilder
      Returns:
      The bytes for certificate.
    • setCertificate

       The resource name for the
       [Certificate][google.cloud.security.privateca.v1.Certificate] in the
       format `projects/*/locations/*/caPools/*/certificates/*`.
       
      string certificate = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The certificate to set.
      Returns:
      This builder for chaining.
    • clearCertificate

       The resource name for the
       [Certificate][google.cloud.security.privateca.v1.Certificate] in the
       format `projects/*/locations/*/caPools/*/certificates/*`.
       
      string certificate = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCertificateBytes

      public CertificateRevocationList.RevokedCertificate.Builder setCertificateBytes(com.google.protobuf.ByteString value)
       The resource name for the
       [Certificate][google.cloud.security.privateca.v1.Certificate] in the
       format `projects/*/locations/*/caPools/*/certificates/*`.
       
      string certificate = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for certificate to set.
      Returns:
      This builder for chaining.
    • getHexSerialNumber

      public String getHexSerialNumber()
       The serial number of the
       [Certificate][google.cloud.security.privateca.v1.Certificate].
       
      string hex_serial_number = 2;
      Specified by:
      getHexSerialNumber in interface CertificateRevocationList.RevokedCertificateOrBuilder
      Returns:
      The hexSerialNumber.
    • getHexSerialNumberBytes

      public com.google.protobuf.ByteString getHexSerialNumberBytes()
       The serial number of the
       [Certificate][google.cloud.security.privateca.v1.Certificate].
       
      string hex_serial_number = 2;
      Specified by:
      getHexSerialNumberBytes in interface CertificateRevocationList.RevokedCertificateOrBuilder
      Returns:
      The bytes for hexSerialNumber.
    • setHexSerialNumber

       The serial number of the
       [Certificate][google.cloud.security.privateca.v1.Certificate].
       
      string hex_serial_number = 2;
      Parameters:
      value - The hexSerialNumber to set.
      Returns:
      This builder for chaining.
    • clearHexSerialNumber

       The serial number of the
       [Certificate][google.cloud.security.privateca.v1.Certificate].
       
      string hex_serial_number = 2;
      Returns:
      This builder for chaining.
    • setHexSerialNumberBytes

      public CertificateRevocationList.RevokedCertificate.Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value)
       The serial number of the
       [Certificate][google.cloud.security.privateca.v1.Certificate].
       
      string hex_serial_number = 2;
      Parameters:
      value - The bytes for hexSerialNumber to set.
      Returns:
      This builder for chaining.
    • getRevocationReasonValue

      public int getRevocationReasonValue()
       The reason the
       [Certificate][google.cloud.security.privateca.v1.Certificate] was
       revoked.
       
      .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3;
      Specified by:
      getRevocationReasonValue in interface CertificateRevocationList.RevokedCertificateOrBuilder
      Returns:
      The enum numeric value on the wire for revocationReason.
    • setRevocationReasonValue

      public CertificateRevocationList.RevokedCertificate.Builder setRevocationReasonValue(int value)
       The reason the
       [Certificate][google.cloud.security.privateca.v1.Certificate] was
       revoked.
       
      .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3;
      Parameters:
      value - The enum numeric value on the wire for revocationReason to set.
      Returns:
      This builder for chaining.
    • getRevocationReason

      public RevocationReason getRevocationReason()
       The reason the
       [Certificate][google.cloud.security.privateca.v1.Certificate] was
       revoked.
       
      .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3;
      Specified by:
      getRevocationReason in interface CertificateRevocationList.RevokedCertificateOrBuilder
      Returns:
      The revocationReason.
    • setRevocationReason

       The reason the
       [Certificate][google.cloud.security.privateca.v1.Certificate] was
       revoked.
       
      .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3;
      Parameters:
      value - The revocationReason to set.
      Returns:
      This builder for chaining.
    • clearRevocationReason

       The reason the
       [Certificate][google.cloud.security.privateca.v1.Certificate] was
       revoked.
       
      .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3;
      Returns:
      This builder for chaining.