Class ListPurchasableOffersResponse.Builder (3.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.PurchasableOffer>
Returns
TypeDescription
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
NameDescription
valuePurchasableOffer
Returns
TypeDescription
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
NameDescription
builderForValuePurchasableOffer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePurchasableOffer
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePurchasableOffer.Builder
Returns
TypeDescription
ListPurchasableOffersResponse.Builder

addPurchasableOffersBuilder()

public PurchasableOffer.Builder addPurchasableOffersBuilder()

The list of Offers requested.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PurchasableOffer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableOffersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

build()

public ListPurchasableOffersResponse build()
Returns
TypeDescription
ListPurchasableOffersResponse

buildPartial()

public ListPurchasableOffersResponse buildPartial()
Returns
TypeDescription
ListPurchasableOffersResponse

clear()

public ListPurchasableOffersResponse.Builder clear()
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListPurchasableOffersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

clearNextPageToken()

public ListPurchasableOffersResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListPurchasableOffersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPurchasableOffersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

clearPurchasableOffers()

public ListPurchasableOffersResponse.Builder clearPurchasableOffers()

The list of Offers requested.

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

Returns
TypeDescription
ListPurchasableOffersResponse.Builder

clone()

public ListPurchasableOffersResponse.Builder clone()
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

getDefaultInstanceForType()

public ListPurchasableOffersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableOffersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PurchasableOffer.Builder

getPurchasableOffersBuilderList()

public List<PurchasableOffer.Builder> getPurchasableOffersBuilderList()

The list of Offers requested.

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

Returns
TypeDescription
List<Builder>

getPurchasableOffersCount()

public int getPurchasableOffersCount()

The list of Offers requested.

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

Returns
TypeDescription
int

getPurchasableOffersList()

public List<PurchasableOffer> getPurchasableOffersList()

The list of Offers requested.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PurchasableOfferOrBuilder

getPurchasableOffersOrBuilderList()

public List<? extends PurchasableOfferOrBuilder> getPurchasableOffersOrBuilderList()

The list of Offers requested.

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

Returns
TypeDescription
List<? extends com.google.cloud.channel.v1.PurchasableOfferOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPurchasableOffersResponse other)

public ListPurchasableOffersResponse.Builder mergeFrom(ListPurchasableOffersResponse other)
Parameter
NameDescription
otherListPurchasableOffersResponse
Returns
TypeDescription
ListPurchasableOffersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListPurchasableOffersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListPurchasableOffersResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableOffersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListPurchasableOffersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListPurchasableOffersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePurchasableOffer
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePurchasableOffer.Builder
Returns
TypeDescription
ListPurchasableOffersResponse.Builder

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

public ListPurchasableOffersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableOffersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListPurchasableOffersResponse.Builder
Overrides