Class PromotionStatus (0.1.0)

public final class PromotionStatus extends GeneratedMessageV3 implements PromotionStatusOrBuilder

The status of the promotion.

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

Static Fields

CREATION_DATE_FIELD_NUMBER

public static final int CREATION_DATE_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_STATUSES_FIELD_NUMBER

public static final int DESTINATION_STATUSES_FIELD_NUMBER
Field Value
Type Description
int

ITEM_LEVEL_ISSUES_FIELD_NUMBER

public static final int ITEM_LEVEL_ISSUES_FIELD_NUMBER
Field Value
Type Description
int

LAST_UPDATE_DATE_FIELD_NUMBER

public static final int LAST_UPDATE_DATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PromotionStatus getDefaultInstance()
Returns
Type Description
PromotionStatus

getDescriptor()

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

newBuilder()

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

newBuilder(PromotionStatus prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCreationDate()

public Timestamp getCreationDate()

Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

.google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The creationDate.

getCreationDateOrBuilder()

public TimestampOrBuilder getCreationDateOrBuilder()

Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

.google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public PromotionStatus getDefaultInstanceForType()
Returns
Type Description
PromotionStatus

getDestinationStatuses(int index)

public PromotionStatus.DestinationStatus getDestinationStatuses(int index)

Output only. The intended destinations for the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PromotionStatus.DestinationStatus

getDestinationStatusesCount()

public int getDestinationStatusesCount()

Output only. The intended destinations for the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getDestinationStatusesList()

public List<PromotionStatus.DestinationStatus> getDestinationStatusesList()

Output only. The intended destinations for the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DestinationStatus>

getDestinationStatusesOrBuilder(int index)

public PromotionStatus.DestinationStatusOrBuilder getDestinationStatusesOrBuilder(int index)

Output only. The intended destinations for the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PromotionStatus.DestinationStatusOrBuilder

getDestinationStatusesOrBuilderList()

public List<? extends PromotionStatus.DestinationStatusOrBuilder> getDestinationStatusesOrBuilderList()

Output only. The intended destinations for the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getItemLevelIssues(int index)

public PromotionStatus.ItemLevelIssue getItemLevelIssues(int index)

Output only. A list of issues associated with the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PromotionStatus.ItemLevelIssue

getItemLevelIssuesCount()

public int getItemLevelIssuesCount()

Output only. A list of issues associated with the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getItemLevelIssuesList()

public List<PromotionStatus.ItemLevelIssue> getItemLevelIssuesList()

Output only. A list of issues associated with the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ItemLevelIssue>

getItemLevelIssuesOrBuilder(int index)

public PromotionStatus.ItemLevelIssueOrBuilder getItemLevelIssuesOrBuilder(int index)

Output only. A list of issues associated with the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PromotionStatus.ItemLevelIssueOrBuilder

getItemLevelIssuesOrBuilderList()

public List<? extends PromotionStatus.ItemLevelIssueOrBuilder> getItemLevelIssuesOrBuilderList()

Output only. A list of issues associated with the promotion.

repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getLastUpdateDate()

public Timestamp getLastUpdateDate()

Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

.google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastUpdateDate.

getLastUpdateDateOrBuilder()

public TimestampOrBuilder getLastUpdateDateOrBuilder()

Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

.google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCreationDate()

public boolean hasCreationDate()

Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

.google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the creationDate field is set.

hasLastUpdateDate()

public boolean hasLastUpdateDate()

Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

.google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastUpdateDate field is set.

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 PromotionStatus.Builder newBuilderForType()
Returns
Type Description
PromotionStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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