Class ListPromotionsResponse (0.7.0)

public final class ListPromotionsResponse extends GeneratedMessageV3 implements ListPromotionsResponseOrBuilder

Response message for the ListPromotions method.

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

Static Fields

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

PROMOTIONS_FIELD_NUMBER

public static final int PROMOTIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ListPromotionsResponse getDefaultInstance()
Returns
Type Description
ListPromotionsResponse

getDescriptor()

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

newBuilder()

public static ListPromotionsResponse.Builder newBuilder()
Returns
Type Description
ListPromotionsResponse.Builder

newBuilder(ListPromotionsResponse prototype)

public static ListPromotionsResponse.Builder newBuilder(ListPromotionsResponse prototype)
Parameter
Name Description
prototype ListPromotionsResponse
Returns
Type Description
ListPromotionsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListPromotionsResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListPromotionsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ListPromotionsResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListPromotionsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListPromotionsResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListPromotionsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListPromotionsResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListPromotionsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ListPromotionsResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListPromotionsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ListPromotionsResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListPromotionsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListPromotionsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ListPromotionsResponse> parser()
Returns
Type Description
Parser<ListPromotionsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ListPromotionsResponse getDefaultInstanceForType()
Returns
Type Description
ListPromotionsResponse

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.

getParserForType()

public Parser<ListPromotionsResponse> getParserForType()
Returns
Type Description
Parser<ListPromotionsResponse>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ListPromotionsResponse.Builder newBuilderForType()
Returns
Type Description
ListPromotionsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListPromotionsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ListPromotionsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ListPromotionsResponse.Builder toBuilder()
Returns
Type Description
ListPromotionsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException