Class ListPurchasableOffersResponse.Builder (3.46.0)

public static final class ListPurchasableOffersResponse.Builder extends GeneratedMessageV3.Builder<ListPurchasableOffersResponse.Builder> implements ListPurchasableOffersResponseOrBuilder

Response message for ListPurchasableOffers.

Protobuf type google.cloud.channel.v1.ListPurchasableOffersResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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
Type Description
ListPurchasableOffersResponse.Builder

addPurchasableOffers(PurchasableOffer value)

public ListPurchasableOffersResponse.Builder addPurchasableOffers(PurchasableOffer value)

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Parameter
Name Description
value PurchasableOffer
Returns
Type Description
ListPurchasableOffersResponse.Builder

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
Name Description
builderForValue PurchasableOffer.Builder
Returns
Type Description
ListPurchasableOffersResponse.Builder

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
Name Description
index int
value PurchasableOffer
Returns
Type Description
ListPurchasableOffersResponse.Builder

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
Name Description
index int
builderForValue PurchasableOffer.Builder
Returns
Type Description
ListPurchasableOffersResponse.Builder

addPurchasableOffersBuilder()

public PurchasableOffer.Builder addPurchasableOffersBuilder()

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Returns
Type Description
PurchasableOffer.Builder

addPurchasableOffersBuilder(int index)

public PurchasableOffer.Builder addPurchasableOffersBuilder(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableOffer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableOffersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

build()

public ListPurchasableOffersResponse build()
Returns
Type Description
ListPurchasableOffersResponse

buildPartial()

public ListPurchasableOffersResponse buildPartial()
Returns
Type Description
ListPurchasableOffersResponse

clear()

public ListPurchasableOffersResponse.Builder clear()
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListPurchasableOffersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

clearNextPageToken()

public ListPurchasableOffersResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ListPurchasableOffersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPurchasableOffersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

clearPurchasableOffers()

public ListPurchasableOffersResponse.Builder clearPurchasableOffers()

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Returns
Type Description
ListPurchasableOffersResponse.Builder

clone()

public ListPurchasableOffersResponse.Builder clone()
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

getDefaultInstanceForType()

public ListPurchasableOffersResponse getDefaultInstanceForType()
Returns
Type Description
ListPurchasableOffersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
PurchasableOffer

getPurchasableOffersBuilder(int index)

public PurchasableOffer.Builder getPurchasableOffersBuilder(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableOffer.Builder

getPurchasableOffersBuilderList()

public List<PurchasableOffer.Builder> getPurchasableOffersBuilderList()

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Returns
Type Description
List<Builder>

getPurchasableOffersCount()

public int getPurchasableOffersCount()

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Returns
Type Description
int

getPurchasableOffersList()

public List<PurchasableOffer> getPurchasableOffersList()

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Returns
Type Description
List<PurchasableOffer>

getPurchasableOffersOrBuilder(int index)

public PurchasableOfferOrBuilder getPurchasableOffersOrBuilder(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableOfferOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPurchasableOffersResponse other)

public ListPurchasableOffersResponse.Builder mergeFrom(ListPurchasableOffersResponse other)
Parameter
Name Description
other ListPurchasableOffersResponse
Returns
Type Description
ListPurchasableOffersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListPurchasableOffersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListPurchasableOffersResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableOffersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListPurchasableOffersResponse.Builder
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
Name Description
index int
Returns
Type Description
ListPurchasableOffersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableOffersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListPurchasableOffersResponse.Builder
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
Type Description
ListPurchasableOffersResponse.Builder

This builder for chaining.

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
Type Description
ListPurchasableOffersResponse.Builder

This builder for chaining.

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
Name Description
index int
value PurchasableOffer
Returns
Type Description
ListPurchasableOffersResponse.Builder

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
Name Description
index int
builderForValue PurchasableOffer.Builder
Returns
Type Description
ListPurchasableOffersResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListPurchasableOffersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableOffersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListPurchasableOffersResponse.Builder
Overrides