Class ProductStatus.DestinationStatus.Builder (0.11.0)

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

The destination status of the product status.

Protobuf type google.shopping.merchant.products.v1beta.ProductStatus.DestinationStatus

Static Methods

getDescriptor()

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

Methods

addAllApprovedCountries(Iterable<String> values)

public ProductStatus.DestinationStatus.Builder addAllApprovedCountries(Iterable<String> values)

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Parameter
Name Description
values Iterable<String>

The approvedCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addAllDisapprovedCountries(Iterable<String> values)

public ProductStatus.DestinationStatus.Builder addAllDisapprovedCountries(Iterable<String> values)

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Parameter
Name Description
values Iterable<String>

The disapprovedCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addAllPendingCountries(Iterable<String> values)

public ProductStatus.DestinationStatus.Builder addAllPendingCountries(Iterable<String> values)

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Parameter
Name Description
values Iterable<String>

The pendingCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addApprovedCountries(String value)

public ProductStatus.DestinationStatus.Builder addApprovedCountries(String value)

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Parameter
Name Description
value String

The approvedCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addApprovedCountriesBytes(ByteString value)

public ProductStatus.DestinationStatus.Builder addApprovedCountriesBytes(ByteString value)

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Parameter
Name Description
value ByteString

The bytes of the approvedCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addDisapprovedCountries(String value)

public ProductStatus.DestinationStatus.Builder addDisapprovedCountries(String value)

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Parameter
Name Description
value String

The disapprovedCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addDisapprovedCountriesBytes(ByteString value)

public ProductStatus.DestinationStatus.Builder addDisapprovedCountriesBytes(ByteString value)

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Parameter
Name Description
value ByteString

The bytes of the disapprovedCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addPendingCountries(String value)

public ProductStatus.DestinationStatus.Builder addPendingCountries(String value)

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Parameter
Name Description
value String

The pendingCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addPendingCountriesBytes(ByteString value)

public ProductStatus.DestinationStatus.Builder addPendingCountriesBytes(ByteString value)

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Parameter
Name Description
value ByteString

The bytes of the pendingCountries to add.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProductStatus.DestinationStatus build()
Returns
Type Description
ProductStatus.DestinationStatus

buildPartial()

public ProductStatus.DestinationStatus buildPartial()
Returns
Type Description
ProductStatus.DestinationStatus

clear()

public ProductStatus.DestinationStatus.Builder clear()
Returns
Type Description
ProductStatus.DestinationStatus.Builder
Overrides

clearApprovedCountries()

public ProductStatus.DestinationStatus.Builder clearApprovedCountries()

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

clearDisapprovedCountries()

public ProductStatus.DestinationStatus.Builder clearDisapprovedCountries()

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPendingCountries()

public ProductStatus.DestinationStatus.Builder clearPendingCountries()

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

clearReportingContext()

public ProductStatus.DestinationStatus.Builder clearReportingContext()

The name of the reporting context.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

clone()

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

getApprovedCountries(int index)

public String getApprovedCountries(int index)

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The approvedCountries at the given index.

getApprovedCountriesBytes(int index)

public ByteString getApprovedCountriesBytes(int index)

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the approvedCountries at the given index.

getApprovedCountriesCount()

public int getApprovedCountriesCount()

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Returns
Type Description
int

The count of approvedCountries.

getApprovedCountriesList()

public ProtocolStringList getApprovedCountriesList()

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Returns
Type Description
ProtocolStringList

A list containing the approvedCountries.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDisapprovedCountries(int index)

public String getDisapprovedCountries(int index)

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The disapprovedCountries at the given index.

getDisapprovedCountriesBytes(int index)

public ByteString getDisapprovedCountriesBytes(int index)

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the disapprovedCountries at the given index.

getDisapprovedCountriesCount()

public int getDisapprovedCountriesCount()

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Returns
Type Description
int

The count of disapprovedCountries.

getDisapprovedCountriesList()

public ProtocolStringList getDisapprovedCountriesList()

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Returns
Type Description
ProtocolStringList

A list containing the disapprovedCountries.

getPendingCountries(int index)

public String getPendingCountries(int index)

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pendingCountries at the given index.

getPendingCountriesBytes(int index)

public ByteString getPendingCountriesBytes(int index)

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pendingCountries at the given index.

getPendingCountriesCount()

public int getPendingCountriesCount()

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Returns
Type Description
int

The count of pendingCountries.

getPendingCountriesList()

public ProtocolStringList getPendingCountriesList()

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Returns
Type Description
ProtocolStringList

A list containing the pendingCountries.

getReportingContext()

public ReportingContext.ReportingContextEnum getReportingContext()

The name of the reporting context.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;

Returns
Type Description
com.google.shopping.type.ReportingContext.ReportingContextEnum

The reportingContext.

getReportingContextValue()

public int getReportingContextValue()

The name of the reporting context.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;

Returns
Type Description
int

The enum numeric value on the wire for reportingContext.

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 ProductStatus.DestinationStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductStatus.DestinationStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductStatus.DestinationStatus.Builder
Overrides

mergeFrom(ProductStatus.DestinationStatus other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApprovedCountries(int index, String value)

public ProductStatus.DestinationStatus.Builder setApprovedCountries(int index, String value)

List of country codes (ISO 3166-1 alpha-2) where the offer is approved.

repeated string approved_countries = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The approvedCountries to set.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

setDisapprovedCountries(int index, String value)

public ProductStatus.DestinationStatus.Builder setDisapprovedCountries(int index, String value)

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.

repeated string disapproved_countries = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The disapprovedCountries to set.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPendingCountries(int index, String value)

public ProductStatus.DestinationStatus.Builder setPendingCountries(int index, String value)

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.

repeated string pending_countries = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The pendingCountries to set.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

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

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

setReportingContext(ReportingContext.ReportingContextEnum value)

public ProductStatus.DestinationStatus.Builder setReportingContext(ReportingContext.ReportingContextEnum value)

The name of the reporting context.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;

Parameter
Name Description
value com.google.shopping.type.ReportingContext.ReportingContextEnum

The reportingContext to set.

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

setReportingContextValue(int value)

public ProductStatus.DestinationStatus.Builder setReportingContextValue(int value)

The name of the reporting context.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;

Parameter
Name Description
value int

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

Returns
Type Description
ProductStatus.DestinationStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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