Class ListOffersResponse.Builder

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

public static final class ListOffersResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListOffersResponse.Builder> implements ListOffersResponseOrBuilder
 Response message for ListOffers.
 
Protobuf type google.cloud.channel.v1.ListOffersResponse
  • 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<ListOffersResponse.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<ListOffersResponse.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<ListOffersResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListOffersResponse.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<ListOffersResponse.Builder>
      Throws:
      IOException
    • getOffersList

      public List<Offer> getOffersList()
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
      Specified by:
      getOffersList in interface ListOffersResponseOrBuilder
    • getOffersCount

      public int getOffersCount()
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
      Specified by:
      getOffersCount in interface ListOffersResponseOrBuilder
    • getOffers

      public Offer getOffers(int index)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
      Specified by:
      getOffers in interface ListOffersResponseOrBuilder
    • setOffers

      public ListOffersResponse.Builder setOffers(int index, Offer value)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • setOffers

      public ListOffersResponse.Builder setOffers(int index, Offer.Builder builderForValue)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • addOffers

      public ListOffersResponse.Builder addOffers(Offer value)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • addOffers

      public ListOffersResponse.Builder addOffers(int index, Offer value)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • addOffers

      public ListOffersResponse.Builder addOffers(Offer.Builder builderForValue)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • addOffers

      public ListOffersResponse.Builder addOffers(int index, Offer.Builder builderForValue)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • addAllOffers

      public ListOffersResponse.Builder addAllOffers(Iterable<? extends Offer> values)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • clearOffers

      public ListOffersResponse.Builder clearOffers()
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • removeOffers

      public ListOffersResponse.Builder removeOffers(int index)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • getOffersBuilder

      public Offer.Builder getOffersBuilder(int index)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • getOffersOrBuilder

      public OfferOrBuilder getOffersOrBuilder(int index)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
      Specified by:
      getOffersOrBuilder in interface ListOffersResponseOrBuilder
    • getOffersOrBuilderList

      public List<? extends OfferOrBuilder> getOffersOrBuilderList()
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
      Specified by:
      getOffersOrBuilderList in interface ListOffersResponseOrBuilder
    • addOffersBuilder

      public Offer.Builder addOffersBuilder()
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • addOffersBuilder

      public Offer.Builder addOffersBuilder(int index)
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • getOffersBuilderList

      public List<Offer.Builder> getOffersBuilderList()
       The list of Offers requested.
      
       The pricing information for each Offer only includes the base price.
       Effective prices and discounts aren't populated.
       
      repeated .google.cloud.channel.v1.Offer offers = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListOffersResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListOffersResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListOffersResponse.Builder setNextPageToken(String value)
       A 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 ListOffersResponse.Builder clearNextPageToken()
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListOffersResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A 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.