Class ListOffersResponse.Builder (3.3.1)

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

Response message for ListOffers.

Protobuf type google.cloud.channel.v1.ListOffersResponse

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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.Offer>
Returns
TypeDescription
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
NameDescription
valueOffer
Returns
TypeDescription
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
NameDescription
builderForValueOffer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueOffer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOffer.Builder
Returns
TypeDescription
ListOffersResponse.Builder

addOffersBuilder()

public Offer.Builder addOffersBuilder()

The list of Offers requested.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOffersResponse build()
Returns
TypeDescription
ListOffersResponse

buildPartial()

public ListOffersResponse buildPartial()
Returns
TypeDescription
ListOffersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOffersResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
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
TypeDescription
ListOffersResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListOffersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOffersResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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.

getOffers(int index)

public Offer getOffers(int index)

The list of Offers requested.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Offer

getOffersBuilder(int index)

public Offer.Builder getOffersBuilder(int index)

The list of Offers requested.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Offer.Builder

getOffersBuilderList()

public List<Offer.Builder> getOffersBuilderList()

The list of Offers requested.

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

Returns
TypeDescription
List<Builder>

getOffersCount()

public int getOffersCount()

The list of Offers requested.

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

Returns
TypeDescription
int

getOffersList()

public List<Offer> getOffersList()

The list of Offers requested.

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

Returns
TypeDescription
List<Offer>

getOffersOrBuilder(int index)

public OfferOrBuilder getOffersOrBuilder(int index)

The list of Offers requested.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OfferOrBuilder

getOffersOrBuilderList()

public List<? extends OfferOrBuilder> getOffersOrBuilderList()

The list of Offers requested.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListOffersResponse other)

public ListOffersResponse.Builder mergeFrom(ListOffersResponse other)
Parameter
NameDescription
otherListOffersResponse
Returns
TypeDescription
ListOffersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueOffer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOffer.Builder
Returns
TypeDescription
ListOffersResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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