Class ProductView.StatusPerReportingContext.Builder (1.21.0)

public static final class ProductView.StatusPerReportingContext.Builder extends GeneratedMessage.Builder<ProductView.StatusPerReportingContext.Builder> 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

Static Methods

getDescriptor()

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

Methods

addAllApprovedCountries(Iterable<String> values)

public ProductView.StatusPerReportingContext.Builder addAllApprovedCountries(Iterable<String> values)

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

repeated string approved_countries = 2;

Parameter
Name Description
values Iterable<String>

The approvedCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addAllDisapprovedCountries(Iterable<String> values)

public ProductView.StatusPerReportingContext.Builder addAllDisapprovedCountries(Iterable<String> values)

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

repeated string disapproved_countries = 3;

Parameter
Name Description
values Iterable<String>

The disapprovedCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addAllPendingCountries(Iterable<String> values)

public ProductView.StatusPerReportingContext.Builder addAllPendingCountries(Iterable<String> values)

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

repeated string pending_countries = 4;

Parameter
Name Description
values Iterable<String>

The pendingCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addApprovedCountries(String value)

public ProductView.StatusPerReportingContext.Builder addApprovedCountries(String value)

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

repeated string approved_countries = 2;

Parameter
Name Description
value String

The approvedCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addApprovedCountriesBytes(ByteString value)

public ProductView.StatusPerReportingContext.Builder addApprovedCountriesBytes(ByteString value)

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

repeated string approved_countries = 2;

Parameter
Name Description
value ByteString

The bytes of the approvedCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addDisapprovedCountries(String value)

public ProductView.StatusPerReportingContext.Builder addDisapprovedCountries(String value)

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

repeated string disapproved_countries = 3;

Parameter
Name Description
value String

The disapprovedCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addDisapprovedCountriesBytes(ByteString value)

public ProductView.StatusPerReportingContext.Builder addDisapprovedCountriesBytes(ByteString value)

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

repeated string disapproved_countries = 3;

Parameter
Name Description
value ByteString

The bytes of the disapprovedCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addPendingCountries(String value)

public ProductView.StatusPerReportingContext.Builder addPendingCountries(String value)

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

repeated string pending_countries = 4;

Parameter
Name Description
value String

The pendingCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

addPendingCountriesBytes(ByteString value)

public ProductView.StatusPerReportingContext.Builder addPendingCountriesBytes(ByteString value)

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

repeated string pending_countries = 4;

Parameter
Name Description
value ByteString

The bytes of the pendingCountries to add.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

public ProductView.StatusPerReportingContext.Builder clear()
Returns
Type Description
ProductView.StatusPerReportingContext.Builder
Overrides

clearApprovedCountries()

public ProductView.StatusPerReportingContext.Builder clearApprovedCountries()

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

repeated string approved_countries = 2;

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

clearDisapprovedCountries()

public ProductView.StatusPerReportingContext.Builder clearDisapprovedCountries()

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

repeated string disapproved_countries = 3;

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

clearPendingCountries()

public ProductView.StatusPerReportingContext.Builder clearPendingCountries()

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

repeated string pending_countries = 4;

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

clearReportingContext()

public ProductView.StatusPerReportingContext.Builder clearReportingContext()

Reporting context the status applies to.

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

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

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

getDescriptorForType()

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

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductView.StatusPerReportingContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductView.StatusPerReportingContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductView.StatusPerReportingContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductView.StatusPerReportingContext.Builder
Overrides

mergeFrom(ProductView.StatusPerReportingContext other)

public ProductView.StatusPerReportingContext.Builder mergeFrom(ProductView.StatusPerReportingContext other)
Parameter
Name Description
other ProductView.StatusPerReportingContext
Returns
Type Description
ProductView.StatusPerReportingContext.Builder

setApprovedCountries(int index, String value)

public ProductView.StatusPerReportingContext.Builder setApprovedCountries(int index, String value)

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

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
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

setDisapprovedCountries(int index, String value)

public ProductView.StatusPerReportingContext.Builder setDisapprovedCountries(int index, String value)

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

repeated string disapproved_countries = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The disapprovedCountries to set.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

setPendingCountries(int index, String value)

public ProductView.StatusPerReportingContext.Builder setPendingCountries(int index, String value)

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

repeated string pending_countries = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The pendingCountries to set.

Returns
Type Description
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

setReportingContext(ReportingContext.ReportingContextEnum value)

public ProductView.StatusPerReportingContext.Builder setReportingContext(ReportingContext.ReportingContextEnum value)

Reporting context the status applies to.

optional .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
ProductView.StatusPerReportingContext.Builder

This builder for chaining.

setReportingContextValue(int value)

public ProductView.StatusPerReportingContext.Builder setReportingContextValue(int value)

Reporting context the status applies to.

optional .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
ProductView.StatusPerReportingContext.Builder

This builder for chaining.