Class CssProductStatus.DestinationStatus.Builder (0.10.0)

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

The destination status of the product status.

Protobuf type google.shopping.css.v1.CssProductStatus.DestinationStatus

Static Methods

getDescriptor()

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

Methods

addAllApprovedCountries(Iterable<String> values)

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

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

repeated string approved_countries = 2;

Parameter
Name Description
values Iterable<String>

The approvedCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addAllDisapprovedCountries(Iterable<String> values)

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

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

repeated string disapproved_countries = 4;

Parameter
Name Description
values Iterable<String>

The disapprovedCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addAllPendingCountries(Iterable<String> values)

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

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

repeated string pending_countries = 3;

Parameter
Name Description
values Iterable<String>

The pendingCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addApprovedCountries(String value)

public CssProductStatus.DestinationStatus.Builder addApprovedCountries(String value)

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

repeated string approved_countries = 2;

Parameter
Name Description
value String

The approvedCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addApprovedCountriesBytes(ByteString value)

public CssProductStatus.DestinationStatus.Builder addApprovedCountriesBytes(ByteString value)

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

repeated string approved_countries = 2;

Parameter
Name Description
value ByteString

The bytes of the approvedCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addDisapprovedCountries(String value)

public CssProductStatus.DestinationStatus.Builder addDisapprovedCountries(String value)

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

repeated string disapproved_countries = 4;

Parameter
Name Description
value String

The disapprovedCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addDisapprovedCountriesBytes(ByteString value)

public CssProductStatus.DestinationStatus.Builder addDisapprovedCountriesBytes(ByteString value)

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

repeated string disapproved_countries = 4;

Parameter
Name Description
value ByteString

The bytes of the disapprovedCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addPendingCountries(String value)

public CssProductStatus.DestinationStatus.Builder addPendingCountries(String value)

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

repeated string pending_countries = 3;

Parameter
Name Description
value String

The pendingCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addPendingCountriesBytes(ByteString value)

public CssProductStatus.DestinationStatus.Builder addPendingCountriesBytes(ByteString value)

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

repeated string pending_countries = 3;

Parameter
Name Description
value ByteString

The bytes of the pendingCountries to add.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearApprovedCountries()

public CssProductStatus.DestinationStatus.Builder clearApprovedCountries()

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

repeated string approved_countries = 2;

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clearDestination()

public CssProductStatus.DestinationStatus.Builder clearDestination()

The name of the destination

string destination = 1;

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clearDisapprovedCountries()

public CssProductStatus.DestinationStatus.Builder clearDisapprovedCountries()

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

repeated string disapproved_countries = 4;

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPendingCountries()

public CssProductStatus.DestinationStatus.Builder clearPendingCountries()

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

repeated string pending_countries = 3;

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clone()

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

getApprovedCountries(int index)

public String getApprovedCountries(int index)

List of country codes (ISO 3166-1 alpha-2) where the aggregate 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 aggregate 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 aggregate 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 aggregate offer is approved.

repeated string approved_countries = 2;

Returns
Type Description
ProtocolStringList

A list containing the approvedCountries.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDestination()

public String getDestination()

The name of the destination

string destination = 1;

Returns
Type Description
String

The destination.

getDestinationBytes()

public ByteString getDestinationBytes()

The name of the destination

string destination = 1;

Returns
Type Description
ByteString

The bytes for destination.

getDisapprovedCountries(int index)

public String getDisapprovedCountries(int index)

List of country codes (ISO 3166-1 alpha-2) where the aggregate 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 aggregate 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 aggregate 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 aggregate 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 aggregate 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 aggregate 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 aggregate 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 aggregate offer is pending approval.

repeated string pending_countries = 3;

Returns
Type Description
ProtocolStringList

A list containing the pendingCountries.

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

mergeFrom(Message other)

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

mergeFrom(CssProductStatus.DestinationStatus other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApprovedCountries(int index, String value)

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

List of country codes (ISO 3166-1 alpha-2) where the aggregate 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
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

setDestination(String value)

public CssProductStatus.DestinationStatus.Builder setDestination(String value)

The name of the destination

string destination = 1;

Parameter
Name Description
value String

The destination to set.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

setDestinationBytes(ByteString value)

public CssProductStatus.DestinationStatus.Builder setDestinationBytes(ByteString value)

The name of the destination

string destination = 1;

Parameter
Name Description
value ByteString

The bytes for destination to set.

Returns
Type Description
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

setDisapprovedCountries(int index, String value)

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

List of country codes (ISO 3166-1 alpha-2) where the aggregate 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
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPendingCountries(int index, String value)

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

List of country codes (ISO 3166-1 alpha-2) where the aggregate 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
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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