public static final class ListPurchasableOffersResponse.Builder extends GeneratedMessageV3.Builder<ListPurchasableOffersResponse.Builder> implements ListPurchasableOffersResponseOrBuilder
Response message for ListPurchasableOffers.
Protobuf type google.cloud.channel.v1.ListPurchasableOffersResponse
Methods
addAllPurchasableOffers(Iterable<? extends PurchasableOffer> values)
public ListPurchasableOffersResponse.Builder addAllPurchasableOffers(Iterable<? extends PurchasableOffer> values)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.channel.v1.PurchasableOffer>
|
Returns
addPurchasableOffers(PurchasableOffer value)
public ListPurchasableOffersResponse.Builder addPurchasableOffers(PurchasableOffer value)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
addPurchasableOffers(PurchasableOffer.Builder builderForValue)
public ListPurchasableOffersResponse.Builder addPurchasableOffers(PurchasableOffer.Builder builderForValue)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
addPurchasableOffers(int index, PurchasableOffer value)
public ListPurchasableOffersResponse.Builder addPurchasableOffers(int index, PurchasableOffer value)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameters
Returns
addPurchasableOffers(int index, PurchasableOffer.Builder builderForValue)
public ListPurchasableOffersResponse.Builder addPurchasableOffers(int index, PurchasableOffer.Builder builderForValue)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameters
Returns
addPurchasableOffersBuilder()
public PurchasableOffer.Builder addPurchasableOffersBuilder()
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Returns
addPurchasableOffersBuilder(int index)
public PurchasableOffer.Builder addPurchasableOffersBuilder(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListPurchasableOffersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListPurchasableOffersResponse build()
Returns
buildPartial()
public ListPurchasableOffersResponse buildPartial()
Returns
clear()
public ListPurchasableOffersResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListPurchasableOffersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListPurchasableOffersResponse.Builder clearNextPageToken()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListPurchasableOffersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPurchasableOffers()
public ListPurchasableOffersResponse.Builder clearPurchasableOffers()
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Returns
clone()
public ListPurchasableOffersResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListPurchasableOffersResponse getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getPurchasableOffers(int index)
public PurchasableOffer getPurchasableOffers(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
getPurchasableOffersBuilder(int index)
public PurchasableOffer.Builder getPurchasableOffersBuilder(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
getPurchasableOffersBuilderList()
public List<PurchasableOffer.Builder> getPurchasableOffersBuilderList()
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Returns
getPurchasableOffersCount()
public int getPurchasableOffersCount()
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Returns
getPurchasableOffersList()
public List<PurchasableOffer> getPurchasableOffersList()
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Returns
getPurchasableOffersOrBuilder(int index)
public PurchasableOfferOrBuilder getPurchasableOffersOrBuilder(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
getPurchasableOffersOrBuilderList()
public List<? extends PurchasableOfferOrBuilder> getPurchasableOffersOrBuilderList()
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Returns
Type | Description |
List<? extends com.google.cloud.channel.v1.PurchasableOfferOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListPurchasableOffersResponse other)
public ListPurchasableOffersResponse.Builder mergeFrom(ListPurchasableOffersResponse other)
Parameter
Returns
public ListPurchasableOffersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListPurchasableOffersResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListPurchasableOffersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removePurchasableOffers(int index)
public ListPurchasableOffersResponse.Builder removePurchasableOffers(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListPurchasableOffersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListPurchasableOffersResponse.Builder setNextPageToken(String value)
A token to retrieve the next page of results.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListPurchasableOffersResponse.Builder setNextPageTokenBytes(ByteString value)
A token to retrieve the next page of results.
string next_page_token = 2;
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setPurchasableOffers(int index, PurchasableOffer value)
public ListPurchasableOffersResponse.Builder setPurchasableOffers(int index, PurchasableOffer value)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameters
Returns
setPurchasableOffers(int index, PurchasableOffer.Builder builderForValue)
public ListPurchasableOffersResponse.Builder setPurchasableOffers(int index, PurchasableOffer.Builder builderForValue)
The list of Offers requested.
repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListPurchasableOffersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListPurchasableOffersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides