Class ProductStatus.DestinationStatus (0.9.0)

public static final class ProductStatus.DestinationStatus extends GeneratedMessageV3 implements ProductStatus.DestinationStatusOrBuilder

The destination status of the product status.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ProductStatus.DestinationStatus

Static Fields

APPROVED_COUNTRIES_FIELD_NUMBER

public static final int APPROVED_COUNTRIES_FIELD_NUMBER
Field Value
Type Description
int

DISAPPROVED_COUNTRIES_FIELD_NUMBER

public static final int DISAPPROVED_COUNTRIES_FIELD_NUMBER
Field Value
Type Description
int

PENDING_COUNTRIES_FIELD_NUMBER

public static final int PENDING_COUNTRIES_FIELD_NUMBER
Field Value
Type Description
int

REPORTING_CONTEXT_FIELD_NUMBER

public static final int REPORTING_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductStatus.DestinationStatus getDefaultInstance()
Returns
Type Description
ProductStatus.DestinationStatus

getDescriptor()

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

newBuilder()

public static ProductStatus.DestinationStatus.Builder newBuilder()
Returns
Type Description
ProductStatus.DestinationStatus.Builder

newBuilder(ProductStatus.DestinationStatus prototype)

public static ProductStatus.DestinationStatus.Builder newBuilder(ProductStatus.DestinationStatus prototype)
Parameter
Name Description
prototype ProductStatus.DestinationStatus
Returns
Type Description
ProductStatus.DestinationStatus.Builder

parseDelimitedFrom(InputStream input)

public static ProductStatus.DestinationStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductStatus.DestinationStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProductStatus.DestinationStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductStatus.DestinationStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductStatus.DestinationStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductStatus.DestinationStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductStatus.DestinationStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductStatus.DestinationStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProductStatus.DestinationStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductStatus.DestinationStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProductStatus.DestinationStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductStatus.DestinationStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStatus.DestinationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProductStatus.DestinationStatus> parser()
Returns
Type Description
Parser<DestinationStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<ProductStatus.DestinationStatus> getParserForType()
Returns
Type Description
Parser<DestinationStatus>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductStatus.DestinationStatus.Builder newBuilderForType()
Returns
Type Description
ProductStatus.DestinationStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductStatus.DestinationStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductStatus.DestinationStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProductStatus.DestinationStatus.Builder toBuilder()
Returns
Type Description
ProductStatus.DestinationStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException