Class ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder (1.11.0)

public static final class ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder extends GeneratedMessage.Builder<ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder> implements ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder

Issue severity per reporting context.

Protobuf type google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

Static Methods

getDescriptor()

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

Methods

addAllDemotedCountries(Iterable<String> values)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder addAllDemotedCountries(Iterable<String> values)

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Parameter
Name Description
values Iterable<String>

The demotedCountries to add.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

addAllDisapprovedCountries(Iterable<String> values)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder addAllDisapprovedCountries(Iterable<String> values)

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

repeated string disapproved_countries = 2;

Parameter
Name Description
values Iterable<String>

The disapprovedCountries to add.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

addDemotedCountries(String value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder addDemotedCountries(String value)

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Parameter
Name Description
value String

The demotedCountries to add.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

addDemotedCountriesBytes(ByteString value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder addDemotedCountriesBytes(ByteString value)

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Parameter
Name Description
value ByteString

The bytes of the demotedCountries to add.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

addDisapprovedCountries(String value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder addDisapprovedCountries(String value)

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

repeated string disapproved_countries = 2;

Parameter
Name Description
value String

The disapprovedCountries to add.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

addDisapprovedCountriesBytes(ByteString value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder addDisapprovedCountriesBytes(ByteString value)

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

repeated string disapproved_countries = 2;

Parameter
Name Description
value ByteString

The bytes of the disapprovedCountries to add.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

build()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext build()
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext

buildPartial()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext buildPartial()
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext

clear()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder clear()
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder
Overrides

clearDemotedCountries()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder clearDemotedCountries()

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

clearDisapprovedCountries()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder clearDisapprovedCountries()

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

repeated string disapproved_countries = 2;

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

clearReportingContext()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder clearReportingContext()

Reporting context the issue applies to.

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

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext getDefaultInstanceForType()
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext

getDemotedCountries(int index)

public String getDemotedCountries(int index)

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The demotedCountries at the given index.

getDemotedCountriesBytes(int index)

public ByteString getDemotedCountriesBytes(int index)

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the demotedCountries at the given index.

getDemotedCountriesCount()

public int getDemotedCountriesCount()

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Returns
Type Description
int

The count of demotedCountries.

getDemotedCountriesList()

public ProtocolStringList getDemotedCountriesList()

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Returns
Type Description
ProtocolStringList

A list containing the demotedCountries.

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.

repeated string disapproved_countries = 2;

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.

repeated string disapproved_countries = 2;

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.

repeated string disapproved_countries = 2;

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.

repeated string disapproved_countries = 2;

Returns
Type Description
ProtocolStringList

A list containing the disapprovedCountries.

getReportingContext()

public ReportingContext.ReportingContextEnum getReportingContext()

Reporting context the issue 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 issue 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 issue 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.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder
Overrides

mergeFrom(ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext other)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder mergeFrom(ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext other)
Parameter
Name Description
other ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext
Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

setDemotedCountries(int index, String value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder setDemotedCountries(int index, String value)

List of demoted countries in the reporting context, represented in ISO 3166 format.

repeated string demoted_countries = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The demotedCountries to set.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

setDisapprovedCountries(int index, String value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder setDisapprovedCountries(int index, String value)

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

repeated string disapproved_countries = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The disapprovedCountries to set.

Returns
Type Description
ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

setReportingContext(ReportingContext.ReportingContextEnum value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder setReportingContext(ReportingContext.ReportingContextEnum value)

Reporting context the issue 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.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.

setReportingContextValue(int value)

public ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder setReportingContextValue(int value)

Reporting context the issue 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.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.Builder

This builder for chaining.