Class ListQuotaPreferencesResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListQuotaPreferencesResponse.Builder>
com.google.api.cloudquotas.v1.ListQuotaPreferencesResponse.Builder
All Implemented Interfaces:
ListQuotaPreferencesResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListQuotaPreferencesResponse

public static final class ListQuotaPreferencesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListQuotaPreferencesResponse.Builder> implements ListQuotaPreferencesResponseOrBuilder
 Message for response to listing QuotaPreferences
 
Protobuf type google.api.cloudquotas.v1.ListQuotaPreferencesResponse
  • 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<ListQuotaPreferencesResponse.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<ListQuotaPreferencesResponse.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<ListQuotaPreferencesResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ListQuotaPreferencesResponse.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<ListQuotaPreferencesResponse.Builder>
      Throws:
      IOException
    • getQuotaPreferencesList

      public List<QuotaPreference> getQuotaPreferencesList()
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
      Specified by:
      getQuotaPreferencesList in interface ListQuotaPreferencesResponseOrBuilder
    • getQuotaPreferencesCount

      public int getQuotaPreferencesCount()
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
      Specified by:
      getQuotaPreferencesCount in interface ListQuotaPreferencesResponseOrBuilder
    • getQuotaPreferences

      public QuotaPreference getQuotaPreferences(int index)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
      Specified by:
      getQuotaPreferences in interface ListQuotaPreferencesResponseOrBuilder
    • setQuotaPreferences

      public ListQuotaPreferencesResponse.Builder setQuotaPreferences(int index, QuotaPreference value)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • setQuotaPreferences

      public ListQuotaPreferencesResponse.Builder setQuotaPreferences(int index, QuotaPreference.Builder builderForValue)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • addQuotaPreferences

      public ListQuotaPreferencesResponse.Builder addQuotaPreferences(QuotaPreference value)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • addQuotaPreferences

      public ListQuotaPreferencesResponse.Builder addQuotaPreferences(int index, QuotaPreference value)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • addQuotaPreferences

      public ListQuotaPreferencesResponse.Builder addQuotaPreferences(QuotaPreference.Builder builderForValue)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • addQuotaPreferences

      public ListQuotaPreferencesResponse.Builder addQuotaPreferences(int index, QuotaPreference.Builder builderForValue)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • addAllQuotaPreferences

      public ListQuotaPreferencesResponse.Builder addAllQuotaPreferences(Iterable<? extends QuotaPreference> values)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • clearQuotaPreferences

      public ListQuotaPreferencesResponse.Builder clearQuotaPreferences()
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • removeQuotaPreferences

      public ListQuotaPreferencesResponse.Builder removeQuotaPreferences(int index)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • getQuotaPreferencesBuilder

      public QuotaPreference.Builder getQuotaPreferencesBuilder(int index)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • getQuotaPreferencesOrBuilder

      public QuotaPreferenceOrBuilder getQuotaPreferencesOrBuilder(int index)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
      Specified by:
      getQuotaPreferencesOrBuilder in interface ListQuotaPreferencesResponseOrBuilder
    • getQuotaPreferencesOrBuilderList

      public List<? extends QuotaPreferenceOrBuilder> getQuotaPreferencesOrBuilderList()
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
      Specified by:
      getQuotaPreferencesOrBuilderList in interface ListQuotaPreferencesResponseOrBuilder
    • addQuotaPreferencesBuilder

      public QuotaPreference.Builder addQuotaPreferencesBuilder()
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • addQuotaPreferencesBuilder

      public QuotaPreference.Builder addQuotaPreferencesBuilder(int index)
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • getQuotaPreferencesBuilderList

      public List<QuotaPreference.Builder> getQuotaPreferencesBuilderList()
       The list of QuotaPreference
       
      repeated .google.api.cloudquotas.v1.QuotaPreference quota_preferences = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which 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 ListQuotaPreferencesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which 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 ListQuotaPreferencesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListQuotaPreferencesResponse.Builder setNextPageToken(String value)
       A token, which 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 ListQuotaPreferencesResponse.Builder clearNextPageToken()
       A token, which 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 ListQuotaPreferencesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which 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 ListQuotaPreferencesResponseOrBuilder
      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 ListQuotaPreferencesResponseOrBuilder
      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 ListQuotaPreferencesResponseOrBuilder
      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 ListQuotaPreferencesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListQuotaPreferencesResponse.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 ListQuotaPreferencesResponse.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 ListQuotaPreferencesResponse.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 ListQuotaPreferencesResponse.Builder clearUnreachable()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListQuotaPreferencesResponse.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.