Class ListPromotionsResponse.Builder (0.1.0)

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

Response message for the ListPromotions method.

Protobuf type google.shopping.merchant.promotions.v1beta.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.v1beta.Promotion promotions = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.promotions.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.Promotion promotions = 1;

Parameter
Name Description
index int
Returns
Type Description
Promotion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ListPromotionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPromotions()

public ListPromotionsResponse.Builder clearPromotions()

The processed promotions from the specified account.

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

Returns
Type Description
ListPromotionsResponse.Builder

clone()

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

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.v1beta.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.v1beta.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.v1beta.Promotion promotions = 1;

Returns
Type Description
List<Builder>

getPromotionsCount()

public int getPromotionsCount()

The processed promotions from the specified account.

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

Returns
Type Description
int

getPromotionsList()

public List<Promotion> getPromotionsList()

The processed promotions from the specified account.

repeated .google.shopping.merchant.promotions.v1beta.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.v1beta.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.v1beta.Promotion promotions = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePromotions(int index)

public ListPromotionsResponse.Builder removePromotions(int index)

The processed promotions from the specified account.

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

Parameter
Name Description
index int
Returns
Type Description
ListPromotionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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.v1beta.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.v1beta.Promotion promotions = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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