Class ListOffersResponse.Builder (3.48.0)

public static final class ListOffersResponse.Builder extends GeneratedMessageV3.Builder<ListOffersResponse.Builder> implements ListOffersResponseOrBuilder

Response message for ListOffers.

Protobuf type google.cloud.channel.v1.ListOffersResponse

Static Methods

getDescriptor()

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

Methods

addAllOffers(Iterable<? extends Offer> values)

public ListOffersResponse.Builder addAllOffers(Iterable<? extends Offer> values)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.channel.v1.Offer>
Returns
Type Description
ListOffersResponse.Builder

addOffers(Offer value)

public ListOffersResponse.Builder addOffers(Offer value)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
value Offer
Returns
Type Description
ListOffersResponse.Builder

addOffers(Offer.Builder builderForValue)

public ListOffersResponse.Builder addOffers(Offer.Builder builderForValue)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
builderForValue Offer.Builder
Returns
Type Description
ListOffersResponse.Builder

addOffers(int index, Offer value)

public ListOffersResponse.Builder addOffers(int index, Offer value)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameters
Name Description
index int
value Offer
Returns
Type Description
ListOffersResponse.Builder

addOffers(int index, Offer.Builder builderForValue)

public ListOffersResponse.Builder addOffers(int index, Offer.Builder builderForValue)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameters
Name Description
index int
builderForValue Offer.Builder
Returns
Type Description
ListOffersResponse.Builder

addOffersBuilder()

public Offer.Builder addOffersBuilder()

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Returns
Type Description
Offer.Builder

addOffersBuilder(int index)

public Offer.Builder addOffersBuilder(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
index int
Returns
Type Description
Offer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOffersResponse build()
Returns
Type Description
ListOffersResponse

buildPartial()

public ListOffersResponse buildPartial()
Returns
Type Description
ListOffersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOffersResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ListOffersResponse.Builder

This builder for chaining.

clearOffers()

public ListOffersResponse.Builder clearOffers()

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Returns
Type Description
ListOffersResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListOffersResponse getDefaultInstanceForType()
Returns
Type Description
ListOffersResponse

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.

getOffers(int index)

public Offer getOffers(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
index int
Returns
Type Description
Offer

getOffersBuilder(int index)

public Offer.Builder getOffersBuilder(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
index int
Returns
Type Description
Offer.Builder

getOffersBuilderList()

public List<Offer.Builder> getOffersBuilderList()

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Returns
Type Description
List<Builder>

getOffersCount()

public int getOffersCount()

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Returns
Type Description
int

getOffersList()

public List<Offer> getOffersList()

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Returns
Type Description
List<Offer>

getOffersOrBuilder(int index)

public OfferOrBuilder getOffersOrBuilder(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
index int
Returns
Type Description
OfferOrBuilder

getOffersOrBuilderList()

public List<? extends OfferOrBuilder> getOffersOrBuilderList()

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.OfferOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListOffersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListOffersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListOffersResponse.Builder
Overrides

removeOffers(int index)

public ListOffersResponse.Builder removeOffers(int index)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameter
Name Description
index int
Returns
Type Description
ListOffersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setOffers(int index, Offer value)

public ListOffersResponse.Builder setOffers(int index, Offer value)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameters
Name Description
index int
value Offer
Returns
Type Description
ListOffersResponse.Builder

setOffers(int index, Offer.Builder builderForValue)

public ListOffersResponse.Builder setOffers(int index, Offer.Builder builderForValue)

The list of Offers requested.

repeated .google.cloud.channel.v1.Offer offers = 1;

Parameters
Name Description
index int
builderForValue Offer.Builder
Returns
Type Description
ListOffersResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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