Class ListPromotionsResponse.Builder (1.16.0)

public static final class ListPromotionsResponse.Builder extends GeneratedMessage.Builder<ListPromotionsResponse.Builder> implements ListPromotionsResponseOrBuilder

Response message for the ListPromotions method.

Protobuf type google.shopping.merchant.promotions.v1.ListPromotionsResponse

Static Methods

getDescriptor()

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

Methods

addAllPromotions(Iterable<? extends Promotion> values)

public ListPromotionsResponse.Builder addAllPromotions(Iterable<? extends Promotion> values)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.promotions.v1.Promotion>
Returns
Type Description
ListPromotionsResponse.Builder

addPromotions(Promotion value)

public ListPromotionsResponse.Builder addPromotions(Promotion value)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
value Promotion
Returns
Type Description
ListPromotionsResponse.Builder

addPromotions(Promotion.Builder builderForValue)

public ListPromotionsResponse.Builder addPromotions(Promotion.Builder builderForValue)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
builderForValue Promotion.Builder
Returns
Type Description
ListPromotionsResponse.Builder

addPromotions(int index, Promotion value)

public ListPromotionsResponse.Builder addPromotions(int index, Promotion value)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameters
Name Description
index int
value Promotion
Returns
Type Description
ListPromotionsResponse.Builder

addPromotions(int index, Promotion.Builder builderForValue)

public ListPromotionsResponse.Builder addPromotions(int index, Promotion.Builder builderForValue)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameters
Name Description
index int
builderForValue Promotion.Builder
Returns
Type Description
ListPromotionsResponse.Builder

addPromotionsBuilder()

public Promotion.Builder addPromotionsBuilder()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Returns
Type Description
Promotion.Builder

addPromotionsBuilder(int index)

public Promotion.Builder addPromotionsBuilder(int index)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
index int
Returns
Type Description
Promotion.Builder

build()

public ListPromotionsResponse build()
Returns
Type Description
ListPromotionsResponse

buildPartial()

public ListPromotionsResponse buildPartial()
Returns
Type Description
ListPromotionsResponse

clear()

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

clearNextPageToken()

public ListPromotionsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListPromotionsResponse.Builder

This builder for chaining.

clearPromotions()

public ListPromotionsResponse.Builder clearPromotions()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Returns
Type Description
ListPromotionsResponse.Builder

getDefaultInstanceForType()

public ListPromotionsResponse getDefaultInstanceForType()
Returns
Type Description
ListPromotionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPromotions(int index)

public Promotion getPromotions(int index)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
index int
Returns
Type Description
Promotion

getPromotionsBuilder(int index)

public Promotion.Builder getPromotionsBuilder(int index)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
index int
Returns
Type Description
Promotion.Builder

getPromotionsBuilderList()

public List<Promotion.Builder> getPromotionsBuilderList()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Returns
Type Description
List<Builder>

getPromotionsCount()

public int getPromotionsCount()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Returns
Type Description
int

getPromotionsList()

public List<Promotion> getPromotionsList()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Returns
Type Description
List<Promotion>

getPromotionsOrBuilder(int index)

public PromotionOrBuilder getPromotionsOrBuilder(int index)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
index int
Returns
Type Description
PromotionOrBuilder

getPromotionsOrBuilderList()

public List<? extends PromotionOrBuilder> getPromotionsOrBuilderList()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.promotions.v1.PromotionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListPromotionsResponse other)

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

removePromotions(int index)

public ListPromotionsResponse.Builder removePromotions(int index)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPromotionsResponse.Builder

setNextPageToken(String value)

public ListPromotionsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListPromotionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPromotionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListPromotionsResponse.Builder

This builder for chaining.

setPromotions(int index, Promotion value)

public ListPromotionsResponse.Builder setPromotions(int index, Promotion value)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameters
Name Description
index int
value Promotion
Returns
Type Description
ListPromotionsResponse.Builder

setPromotions(int index, Promotion.Builder builderForValue)

public ListPromotionsResponse.Builder setPromotions(int index, Promotion.Builder builderForValue)

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1.Promotion promotions = 1;

Parameters
Name Description
index int
builderForValue Promotion.Builder
Returns
Type Description
ListPromotionsResponse.Builder