Class CssProductStatus.DestinationStatus.Builder (0.7.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
TypeDescription
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
NameDescription
valuesIterable<String>

The approvedCountries to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The disapprovedCountries to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The pendingCountries to add.

Returns
TypeDescription
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
NameDescription
valueString

The approvedCountries to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the approvedCountries to add.

Returns
TypeDescription
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
NameDescription
valueString

The disapprovedCountries to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the disapprovedCountries to add.

Returns
TypeDescription
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
NameDescription
valueString

The pendingCountries to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the pendingCountries to add.

Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CssProductStatus.DestinationStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder
Overrides

build()

public CssProductStatus.DestinationStatus build()
Returns
TypeDescription
CssProductStatus.DestinationStatus

buildPartial()

public CssProductStatus.DestinationStatus buildPartial()
Returns
TypeDescription
CssProductStatus.DestinationStatus

clear()

public CssProductStatus.DestinationStatus.Builder clear()
Returns
TypeDescription
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
TypeDescription
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clearDestination()

public CssProductStatus.DestinationStatus.Builder clearDestination()

The name of the destination

string destination = 1;

Returns
TypeDescription
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
TypeDescription
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CssProductStatus.DestinationStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CssProductStatus.DestinationStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

clone()

public CssProductStatus.DestinationStatus.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the approvedCountries.

getDefaultInstanceForType()

public CssProductStatus.DestinationStatus getDefaultInstanceForType()
Returns
TypeDescription
CssProductStatus.DestinationStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestination()

public String getDestination()

The name of the destination

string destination = 1;

Returns
TypeDescription
String

The destination.

getDestinationBytes()

public ByteString getDestinationBytes()

The name of the destination

string destination = 1;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the pendingCountries.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CssProductStatus.DestinationStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CssProductStatus.DestinationStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder
Overrides

mergeFrom(CssProductStatus.DestinationStatus other)

public CssProductStatus.DestinationStatus.Builder mergeFrom(CssProductStatus.DestinationStatus other)
Parameter
NameDescription
otherCssProductStatus.DestinationStatus
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CssProductStatus.DestinationStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The approvedCountries to set.

Returns
TypeDescription
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
NameDescription
valueString

The destination to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destination to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The disapprovedCountries to set.

Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CssProductStatus.DestinationStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The pendingCountries to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CssProductStatus.DestinationStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CssProductStatus.DestinationStatus.Builder
Overrides