Class ListCertificatesResponse.Builder

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

public static final class ListCertificatesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListCertificatesResponse.Builder> implements ListCertificatesResponseOrBuilder
 Response message for
 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
 
Protobuf type google.cloud.security.privateca.v1.ListCertificatesResponse
  • 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<ListCertificatesResponse.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<ListCertificatesResponse.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<ListCertificatesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public List<Certificate> getCertificatesList()
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
      Specified by:
      getCertificatesList in interface ListCertificatesResponseOrBuilder
    • getCertificatesCount

      public int getCertificatesCount()
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
      Specified by:
      getCertificatesCount in interface ListCertificatesResponseOrBuilder
    • getCertificates

      public Certificate getCertificates(int index)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
      Specified by:
      getCertificates in interface ListCertificatesResponseOrBuilder
    • setCertificates

      public ListCertificatesResponse.Builder setCertificates(int index, Certificate value)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • setCertificates

      public ListCertificatesResponse.Builder setCertificates(int index, Certificate.Builder builderForValue)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • addCertificates

      public ListCertificatesResponse.Builder addCertificates(Certificate value)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • addCertificates

      public ListCertificatesResponse.Builder addCertificates(int index, Certificate value)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • addCertificates

      public ListCertificatesResponse.Builder addCertificates(Certificate.Builder builderForValue)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • addCertificates

      public ListCertificatesResponse.Builder addCertificates(int index, Certificate.Builder builderForValue)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • addAllCertificates

      public ListCertificatesResponse.Builder addAllCertificates(Iterable<? extends Certificate> values)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • clearCertificates

      public ListCertificatesResponse.Builder clearCertificates()
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • removeCertificates

      public ListCertificatesResponse.Builder removeCertificates(int index)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • getCertificatesBuilder

      public Certificate.Builder getCertificatesBuilder(int index)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • getCertificatesOrBuilder

      public CertificateOrBuilder getCertificatesOrBuilder(int index)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
      Specified by:
      getCertificatesOrBuilder in interface ListCertificatesResponseOrBuilder
    • getCertificatesOrBuilderList

      public List<? extends CertificateOrBuilder> getCertificatesOrBuilderList()
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
      Specified by:
      getCertificatesOrBuilderList in interface ListCertificatesResponseOrBuilder
    • addCertificatesBuilder

      public Certificate.Builder addCertificatesBuilder()
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • addCertificatesBuilder

      public Certificate.Builder addCertificatesBuilder(int index)
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • getCertificatesBuilderList

      public List<Certificate.Builder> getCertificatesBuilderList()
       The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
       
      repeated .google.cloud.security.privateca.v1.Certificate certificates = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve next page of results. Pass this value in
       [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
       to retrieve the next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCertificatesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token to retrieve next page of results. Pass this value in
       [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
       to retrieve the next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListCertificatesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListCertificatesResponse.Builder setNextPageToken(String value)
       A token to retrieve next page of results. Pass this value in
       [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
       to retrieve the next page of results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListCertificatesResponse.Builder clearNextPageToken()
       A token to retrieve next page of results. Pass this value in
       [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
       to retrieve the next page of results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListCertificatesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token to retrieve next page of results. Pass this value in
       [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
       to retrieve the next page of results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.ProtocolStringList getUnreachableList()
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListCertificatesResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListCertificatesResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListCertificatesResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unreachable at the given index.
    • getUnreachableBytes

      public com.google.protobuf.ByteString getUnreachableBytes(int index)
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListCertificatesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListCertificatesResponse.Builder setUnreachable(int index, String value)
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      public ListCertificatesResponse.Builder addUnreachable(String value)
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListCertificatesResponse.Builder addAllUnreachable(Iterable<String> values)
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListCertificatesResponse.Builder clearUnreachable()
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListCertificatesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       A list of locations (e.g. "us-west1") that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.