Class ProductView.StatusPerReportingContext (1.21.0)

public static final class ProductView.StatusPerReportingContext extends GeneratedMessage implements ProductView.StatusPerReportingContextOrBuilder

Status of the product for a specific reporting context.

Equivalent to DestinationStatus in Products API.

Protobuf type google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductView.StatusPerReportingContext

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 ProductView.StatusPerReportingContext getDefaultInstance()
Returns
Type Description
ProductView.StatusPerReportingContext

getDescriptor()

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

newBuilder()

public static ProductView.StatusPerReportingContext.Builder newBuilder()
Returns
Type Description
ProductView.StatusPerReportingContext.Builder

newBuilder(ProductView.StatusPerReportingContext prototype)

public static ProductView.StatusPerReportingContext.Builder newBuilder(ProductView.StatusPerReportingContext prototype)
Parameter
Name Description
prototype ProductView.StatusPerReportingContext
Returns
Type Description
ProductView.StatusPerReportingContext.Builder

parseDelimitedFrom(InputStream input)

public static ProductView.StatusPerReportingContext parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductView.StatusPerReportingContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ProductView.StatusPerReportingContext parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductView.StatusPerReportingContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ProductView.StatusPerReportingContext parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductView.StatusPerReportingContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ProductView.StatusPerReportingContext parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductView.StatusPerReportingContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ProductView.StatusPerReportingContext parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductView.StatusPerReportingContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ProductView.StatusPerReportingContext> parser()
Returns
Type Description
Parser<StatusPerReportingContext>

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 approved countries in the reporting context, represented in ISO 3166 format, for example, US.

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 approved countries in the reporting context, represented in ISO 3166 format, for example, US.

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 approved countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string approved_countries = 2;

Returns
Type Description
int

The count of approvedCountries.

getApprovedCountriesList()

public ProtocolStringList getApprovedCountriesList()

List of approved countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string approved_countries = 2;

Returns
Type Description
ProtocolStringList

A list containing the approvedCountries.

getDefaultInstanceForType()

public ProductView.StatusPerReportingContext getDefaultInstanceForType()
Returns
Type Description
ProductView.StatusPerReportingContext

getDisapprovedCountries(int index)

public String getDisapprovedCountries(int index)

List of disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string disapproved_countries = 3;

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 disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string disapproved_countries = 3;

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 disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string disapproved_countries = 3;

Returns
Type Description
int

The count of disapprovedCountries.

getDisapprovedCountriesList()

public ProtocolStringList getDisapprovedCountriesList()

List of disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string disapproved_countries = 3;

Returns
Type Description
ProtocolStringList

A list containing the disapprovedCountries.

getParserForType()

public Parser<ProductView.StatusPerReportingContext> getParserForType()
Returns
Type Description
Parser<StatusPerReportingContext>
Overrides

getPendingCountries(int index)

public String getPendingCountries(int index)

List of pending countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string pending_countries = 4;

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 pending countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string pending_countries = 4;

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 pending countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string pending_countries = 4;

Returns
Type Description
int

The count of pendingCountries.

getPendingCountriesList()

public ProtocolStringList getPendingCountriesList()

List of pending countries in the reporting context, represented in ISO 3166 format, for example, US.

repeated string pending_countries = 4;

Returns
Type Description
ProtocolStringList

A list containing the pendingCountries.

getReportingContext()

public ReportingContext.ReportingContextEnum getReportingContext()

Reporting context the status applies to.

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

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

The reportingContext.

getReportingContextValue()

public int getReportingContextValue()

Reporting context the status applies to.

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

hasReportingContext()

public boolean hasReportingContext()

Reporting context the status applies to.

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

Returns
Type Description
boolean

Whether the reportingContext field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductView.StatusPerReportingContext.Builder newBuilderForType()
Returns
Type Description
ProductView.StatusPerReportingContext.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ProductView.StatusPerReportingContext.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductView.StatusPerReportingContext.Builder
Overrides

toBuilder()

public ProductView.StatusPerReportingContext.Builder toBuilder()
Returns
Type Description
ProductView.StatusPerReportingContext.Builder

writeTo(CodedOutputStream output)

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