Class FetchCaCertsResponse.CertChain.Builder

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

public static final class FetchCaCertsResponse.CertChain.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchCaCertsResponse.CertChain.Builder> implements FetchCaCertsResponse.CertChainOrBuilder
Protobuf type google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain
  • 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<FetchCaCertsResponse.CertChain.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<FetchCaCertsResponse.CertChain.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<FetchCaCertsResponse.CertChain.Builder>
    • getDefaultInstanceForType

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

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

      public FetchCaCertsResponse.CertChain.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<FetchCaCertsResponse.CertChain.Builder>
      Throws:
      IOException
    • getCertificatesList

      public com.google.protobuf.ProtocolStringList getCertificatesList()
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Specified by:
      getCertificatesList in interface FetchCaCertsResponse.CertChainOrBuilder
      Returns:
      A list containing the certificates.
    • getCertificatesCount

      public int getCertificatesCount()
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Specified by:
      getCertificatesCount in interface FetchCaCertsResponse.CertChainOrBuilder
      Returns:
      The count of certificates.
    • getCertificates

      public String getCertificates(int index)
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Specified by:
      getCertificates in interface FetchCaCertsResponse.CertChainOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The certificates at the given index.
    • getCertificatesBytes

      public com.google.protobuf.ByteString getCertificatesBytes(int index)
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Specified by:
      getCertificatesBytes in interface FetchCaCertsResponse.CertChainOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the certificates at the given index.
    • setCertificates

      public FetchCaCertsResponse.CertChain.Builder setCertificates(int index, String value)
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Parameters:
      index - The index to set the value at.
      value - The certificates to set.
      Returns:
      This builder for chaining.
    • addCertificates

      public FetchCaCertsResponse.CertChain.Builder addCertificates(String value)
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Parameters:
      value - The certificates to add.
      Returns:
      This builder for chaining.
    • addAllCertificates

      public FetchCaCertsResponse.CertChain.Builder addAllCertificates(Iterable<String> values)
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Parameters:
      values - The certificates to add.
      Returns:
      This builder for chaining.
    • clearCertificates

      public FetchCaCertsResponse.CertChain.Builder clearCertificates()
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Returns:
      This builder for chaining.
    • addCertificatesBytes

      public FetchCaCertsResponse.CertChain.Builder addCertificatesBytes(com.google.protobuf.ByteString value)
       The certificates that form the CA chain, from leaf to root order.
       
      repeated string certificates = 1;
      Parameters:
      value - The bytes of the certificates to add.
      Returns:
      This builder for chaining.