public static final class PromotionStatus.Builder extends GeneratedMessageV3.Builder<PromotionStatus.Builder> implements PromotionStatusOrBuilder
The status of the promotion.
Protobuf type google.shopping.merchant.promotions.v1beta.PromotionStatus
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 PromotionStatus.Builder addAllDestinationStatuses(Iterable<? extends PromotionStatus.DestinationStatus> values)
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 |
values |
Iterable<? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus>
|
public PromotionStatus.Builder addAllItemLevelIssues(Iterable<? extends PromotionStatus.ItemLevelIssue> values)
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 |
values |
Iterable<? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue>
|
public PromotionStatus.Builder addDestinationStatuses(PromotionStatus.DestinationStatus value)
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.Builder addDestinationStatuses(PromotionStatus.DestinationStatus.Builder builderForValue)
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.Builder addDestinationStatuses(int index, PromotionStatus.DestinationStatus value)
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.Builder addDestinationStatuses(int index, PromotionStatus.DestinationStatus.Builder builderForValue)
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.DestinationStatus.Builder addDestinationStatusesBuilder()
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.DestinationStatus.Builder addDestinationStatusesBuilder(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 PromotionStatus.Builder addItemLevelIssues(PromotionStatus.ItemLevelIssue value)
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.Builder addItemLevelIssues(PromotionStatus.ItemLevelIssue.Builder builderForValue)
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.Builder addItemLevelIssues(int index, PromotionStatus.ItemLevelIssue value)
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.Builder addItemLevelIssues(int index, PromotionStatus.ItemLevelIssue.Builder builderForValue)
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.ItemLevelIssue.Builder addItemLevelIssuesBuilder()
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.ItemLevelIssue.Builder addItemLevelIssuesBuilder(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 PromotionStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PromotionStatus build()
public PromotionStatus buildPartial()
public PromotionStatus.Builder clear()
Overrides
public PromotionStatus.Builder clearCreationDate()
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.Builder clearDestinationStatuses()
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.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PromotionStatus.Builder clearItemLevelIssues()
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.Builder clearLastUpdateDate()
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 PromotionStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PromotionStatus.Builder clone()
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 Timestamp.Builder getCreationDateBuilder()
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 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 Descriptors.Descriptor getDescriptorForType()
Overrides
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 PromotionStatus.DestinationStatus.Builder getDestinationStatusesBuilder(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<PromotionStatus.DestinationStatus.Builder> getDestinationStatusesBuilderList()
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 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 PromotionStatus.ItemLevelIssue.Builder getItemLevelIssuesBuilder(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<PromotionStatus.ItemLevelIssue.Builder> getItemLevelIssuesBuilderList()
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 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 Timestamp.Builder getLastUpdateDateBuilder()
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 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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PromotionStatus.Builder mergeCreationDate(Timestamp value)
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.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PromotionStatus.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public PromotionStatus.Builder mergeFrom(PromotionStatus other)
public PromotionStatus.Builder mergeLastUpdateDate(Timestamp value)
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 final PromotionStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PromotionStatus.Builder removeDestinationStatuses(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 PromotionStatus.Builder removeItemLevelIssues(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 PromotionStatus.Builder setCreationDate(Timestamp value)
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.Builder setCreationDate(Timestamp.Builder builderForValue)
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];
Parameter |
Name |
Description |
builderForValue |
Builder
|
public PromotionStatus.Builder setDestinationStatuses(int index, PromotionStatus.DestinationStatus value)
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.Builder setDestinationStatuses(int index, PromotionStatus.DestinationStatus.Builder builderForValue)
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.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PromotionStatus.Builder setItemLevelIssues(int index, PromotionStatus.ItemLevelIssue value)
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.Builder setItemLevelIssues(int index, PromotionStatus.ItemLevelIssue.Builder builderForValue)
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.Builder setLastUpdateDate(Timestamp value)
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 PromotionStatus.Builder setLastUpdateDate(Timestamp.Builder builderForValue)
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];
Parameter |
Name |
Description |
builderForValue |
Builder
|
public PromotionStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final PromotionStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides