public static final class PromotionStatus.DestinationStatus.Builder extends GeneratedMessage.Builder<PromotionStatus.DestinationStatus.Builder> implements PromotionStatus.DestinationStatusOrBuilderThe status for the specified destination.
Protobuf type
google.shopping.merchant.promotions.v1.PromotionStatus.DestinationStatus
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PromotionStatus.DestinationStatus.BuilderImplements
PromotionStatus.DestinationStatusOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PromotionStatus.DestinationStatus build()| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus |
|
buildPartial()
public PromotionStatus.DestinationStatus buildPartial()| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus |
|
clear()
public PromotionStatus.DestinationStatus.Builder clear()| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
|
clearReportingContext()
public PromotionStatus.DestinationStatus.Builder clearReportingContext()Output only. The name of the promotion destination.
.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
This builder for chaining. |
clearStatus()
public PromotionStatus.DestinationStatus.Builder clearStatus()Output only. The status for the specified destination.
.google.shopping.merchant.promotions.v1.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PromotionStatus.DestinationStatus getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getReportingContext()
public ReportingContext.ReportingContextEnum getReportingContext()Output only. The name of the promotion destination.
.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.ReportingContext.ReportingContextEnum |
The reportingContext. |
getReportingContextValue()
public int getReportingContextValue()Output only. The name of the promotion destination.
.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for reportingContext. |
getStatus()
public PromotionStatus.DestinationStatus.State getStatus()Output only. The status for the specified destination.
.google.shopping.merchant.promotions.v1.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.State |
The status. |
getStatusValue()
public int getStatusValue()Output only. The status for the specified destination.
.google.shopping.merchant.promotions.v1.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PromotionStatus.DestinationStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PromotionStatus.DestinationStatus.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
|
mergeFrom(PromotionStatus.DestinationStatus other)
public PromotionStatus.DestinationStatus.Builder mergeFrom(PromotionStatus.DestinationStatus other)| Parameter | |
|---|---|
| Name | Description |
other |
PromotionStatus.DestinationStatus |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
|
setReportingContext(ReportingContext.ReportingContextEnum value)
public PromotionStatus.DestinationStatus.Builder setReportingContext(ReportingContext.ReportingContextEnum value)Output only. The name of the promotion destination.
.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.ReportingContext.ReportingContextEnumThe reportingContext to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
This builder for chaining. |
setReportingContextValue(int value)
public PromotionStatus.DestinationStatus.Builder setReportingContextValue(int value)Output only. The name of the promotion destination.
.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for reportingContext to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
This builder for chaining. |
setStatus(PromotionStatus.DestinationStatus.State value)
public PromotionStatus.DestinationStatus.Builder setStatus(PromotionStatus.DestinationStatus.State value)Output only. The status for the specified destination.
.google.shopping.merchant.promotions.v1.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PromotionStatus.DestinationStatus.StateThe status to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
This builder for chaining. |
setStatusValue(int value)
public PromotionStatus.DestinationStatus.Builder setStatusValue(int value)Output only. The status for the specified destination.
.google.shopping.merchant.promotions.v1.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for status to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionStatus.DestinationStatus.Builder |
This builder for chaining. |