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
Name | Description |
values | Iterable<? extends com.google.cloud.channel.v1.Offer>
|
Returns
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
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
Returns
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
Returns
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
Returns
addOffersBuilder()
public Offer.Builder addOffersBuilder()
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Returns
addOffersBuilder(int index)
public Offer.Builder addOffersBuilder(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListOffersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListOffersResponse build()
Returns
buildPartial()
public ListOffersResponse buildPartial()
Returns
clear()
public ListOffersResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListOffersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListOffersResponse.Builder clearNextPageToken()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
clearOffers()
public ListOffersResponse.Builder clearOffers()
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListOffersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListOffersResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListOffersResponse 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.
|
getOffers(int index)
public Offer getOffers(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Parameter
Returns
getOffersBuilder(int index)
public Offer.Builder getOffersBuilder(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Parameter
Returns
getOffersBuilderList()
public List<Offer.Builder> getOffersBuilderList()
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Returns
getOffersCount()
public int getOffersCount()
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Returns
getOffersList()
public List<Offer> getOffersList()
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Returns
getOffersOrBuilder(int index)
public OfferOrBuilder getOffersOrBuilder(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListOffersResponse other)
public ListOffersResponse.Builder mergeFrom(ListOffersResponse other)
Parameter
Returns
public ListOffersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListOffersResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListOffersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeOffers(int index)
public ListOffersResponse.Builder removeOffers(int index)
The list of Offers requested.
repeated .google.cloud.channel.v1.Offer offers = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListOffersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListOffersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListOffersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides