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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public ListPromotionsResponse.Builder addPromotions(Promotion value)
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
public ListPromotionsResponse.Builder addPromotions(Promotion.Builder builderForValue)
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
public ListPromotionsResponse.Builder addPromotions(int index, Promotion value)
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
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;
public Promotion.Builder addPromotionsBuilder()
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
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
|
public ListPromotionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListPromotionsResponse build()
public ListPromotionsResponse buildPartial()
public ListPromotionsResponse.Builder clear()
Overrides
public ListPromotionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public ListPromotionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListPromotionsResponse.Builder clearPromotions()
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
public ListPromotionsResponse.Builder clone()
Overrides
public ListPromotionsResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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.
|
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
|
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
|
public List<Promotion.Builder> getPromotionsBuilderList()
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
public int getPromotionsCount()
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
Returns |
Type |
Description |
int |
|
public List<Promotion> getPromotionsList()
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ListPromotionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListPromotionsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public ListPromotionsResponse.Builder mergeFrom(ListPromotionsResponse other)
public final ListPromotionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public ListPromotionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public ListPromotionsResponse.Builder setPromotions(int index, Promotion value)
The processed promotions from the specified account.
repeated .google.shopping.merchant.promotions.v1beta.Promotion promotions = 1;
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;
public ListPromotionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListPromotionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides