public final class PromotionStatus extends GeneratedMessageV3 implements PromotionStatusOrBuilder
The status of the promotion.
Protobuf type google.shopping.merchant.promotions.v1beta.PromotionStatus
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CREATION_DATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DESTINATION_STATUSES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ITEM_LEVEL_ISSUES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LAST_UPDATE_DATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static PromotionStatus getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static PromotionStatus.Builder newBuilder()
public static PromotionStatus.Builder newBuilder(PromotionStatus prototype)
public static PromotionStatus parseDelimitedFrom(InputStream input)
public static PromotionStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PromotionStatus parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static PromotionStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PromotionStatus parseFrom(ByteString data)
public static PromotionStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PromotionStatus parseFrom(CodedInputStream input)
public static PromotionStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PromotionStatus parseFrom(InputStream input)
public static PromotionStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PromotionStatus parseFrom(ByteBuffer data)
public static PromotionStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<PromotionStatus> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
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];
public PromotionStatus getDefaultInstanceForType()
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
|
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 |
|
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];
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
|
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> |
|
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
|
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 |
|
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];
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
|
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> |
|
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.
|
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];
public Parser<PromotionStatus> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PromotionStatus.Builder newBuilderForType()
protected PromotionStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public PromotionStatus.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides