Class ListCustomersResponse.Builder

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

public static final class ListCustomersResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListCustomersResponse.Builder> implements ListCustomersResponseOrBuilder
 Response message for list customer Customers requests
 
Protobuf type google.cloud.cloudcontrolspartner.v1.ListCustomersResponse
  • 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<ListCustomersResponse.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<ListCustomersResponse.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<ListCustomersResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListCustomersResponse.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<ListCustomersResponse.Builder>
      Throws:
      IOException
    • getCustomersList

      public List<Customer> getCustomersList()
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
      Specified by:
      getCustomersList in interface ListCustomersResponseOrBuilder
    • getCustomersCount

      public int getCustomersCount()
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
      Specified by:
      getCustomersCount in interface ListCustomersResponseOrBuilder
    • getCustomers

      public Customer getCustomers(int index)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
      Specified by:
      getCustomers in interface ListCustomersResponseOrBuilder
    • setCustomers

      public ListCustomersResponse.Builder setCustomers(int index, Customer value)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • setCustomers

      public ListCustomersResponse.Builder setCustomers(int index, Customer.Builder builderForValue)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • addCustomers

      public ListCustomersResponse.Builder addCustomers(Customer value)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • addCustomers

      public ListCustomersResponse.Builder addCustomers(int index, Customer value)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • addCustomers

      public ListCustomersResponse.Builder addCustomers(Customer.Builder builderForValue)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • addCustomers

      public ListCustomersResponse.Builder addCustomers(int index, Customer.Builder builderForValue)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • addAllCustomers

      public ListCustomersResponse.Builder addAllCustomers(Iterable<? extends Customer> values)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • clearCustomers

      public ListCustomersResponse.Builder clearCustomers()
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • removeCustomers

      public ListCustomersResponse.Builder removeCustomers(int index)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • getCustomersBuilder

      public Customer.Builder getCustomersBuilder(int index)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • getCustomersOrBuilder

      public CustomerOrBuilder getCustomersOrBuilder(int index)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
      Specified by:
      getCustomersOrBuilder in interface ListCustomersResponseOrBuilder
    • getCustomersOrBuilderList

      public List<? extends CustomerOrBuilder> getCustomersOrBuilderList()
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
      Specified by:
      getCustomersOrBuilderList in interface ListCustomersResponseOrBuilder
    • addCustomersBuilder

      public Customer.Builder addCustomersBuilder()
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • addCustomersBuilder

      public Customer.Builder addCustomersBuilder(int index)
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • getCustomersBuilderList

      public List<Customer.Builder> getCustomersBuilderList()
       List of customers
       
      repeated .google.cloud.cloudcontrolspartner.v1.Customer customers = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCustomersResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListCustomersResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListCustomersResponse.Builder setNextPageToken(String value)
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListCustomersResponse.Builder clearNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListCustomersResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      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()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListCustomersResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListCustomersResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListCustomersResponseOrBuilder
      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)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListCustomersResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListCustomersResponse.Builder setUnreachable(int index, String value)
       Locations 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 ListCustomersResponse.Builder addUnreachable(String value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListCustomersResponse.Builder addAllUnreachable(Iterable<String> values)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListCustomersResponse.Builder clearUnreachable()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListCustomersResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.