Class PromotionStatus.DestinationStatus.Builder (0.1.0)

public static final class PromotionStatus.DestinationStatus.Builder extends GeneratedMessageV3.Builder<PromotionStatus.DestinationStatus.Builder> implements PromotionStatus.DestinationStatusOrBuilder

The status for the specified destination.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PromotionStatus.DestinationStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public PromotionStatus.DestinationStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PromotionStatus.DestinationStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

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.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.DestinationStatus.Builder

This builder for chaining.

clone()

public PromotionStatus.DestinationStatus.Builder clone()
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

getDefaultInstanceForType()

public PromotionStatus.DestinationStatus getDefaultInstanceForType()
Returns
Type Description
PromotionStatus.DestinationStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.v1beta.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.v1beta.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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeFrom(PromotionStatus.DestinationStatus other)

public PromotionStatus.DestinationStatus.Builder mergeFrom(PromotionStatus.DestinationStatus other)
Parameter
Name Description
other PromotionStatus.DestinationStatus
Returns
Type Description
PromotionStatus.DestinationStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PromotionStatus.DestinationStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PromotionStatus.DestinationStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PromotionStatus.DestinationStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides

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.ReportingContextEnum

The 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 int

The 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.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PromotionStatus.DestinationStatus.State

The 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.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
PromotionStatus.DestinationStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PromotionStatus.DestinationStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PromotionStatus.DestinationStatus.Builder
Overrides