Class ProductStatus.ItemLevelIssue.Builder (0.9.0)

public static final class ProductStatus.ItemLevelIssue.Builder extends GeneratedMessageV3.Builder<ProductStatus.ItemLevelIssue.Builder> implements ProductStatus.ItemLevelIssueOrBuilder

The ItemLevelIssue of the product status.

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

Static Methods

getDescriptor()

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

Methods

addAllApplicableCountries(Iterable<String> values)

public ProductStatus.ItemLevelIssue.Builder addAllApplicableCountries(Iterable<String> values)

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Parameter
Name Description
values Iterable<String>

The applicableCountries to add.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

addApplicableCountries(String value)

public ProductStatus.ItemLevelIssue.Builder addApplicableCountries(String value)

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Parameter
Name Description
value String

The applicableCountries to add.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

addApplicableCountriesBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder addApplicableCountriesBytes(ByteString value)

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Parameter
Name Description
value ByteString

The bytes of the applicableCountries to add.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductStatus.ItemLevelIssue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

build()

public ProductStatus.ItemLevelIssue build()
Returns
Type Description
ProductStatus.ItemLevelIssue

buildPartial()

public ProductStatus.ItemLevelIssue buildPartial()
Returns
Type Description
ProductStatus.ItemLevelIssue

clear()

public ProductStatus.ItemLevelIssue.Builder clear()
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

clearApplicableCountries()

public ProductStatus.ItemLevelIssue.Builder clearApplicableCountries()

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearAttribute()

public ProductStatus.ItemLevelIssue.Builder clearAttribute()

The attribute's name, if the issue is caused by a single attribute.

string attribute = 4;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearCode()

public ProductStatus.ItemLevelIssue.Builder clearCode()

The error code of the issue.

string code = 1;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearDescription()

public ProductStatus.ItemLevelIssue.Builder clearDescription()

A short issue description in English.

string description = 6;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearDetail()

public ProductStatus.ItemLevelIssue.Builder clearDetail()

A detailed issue description in English.

string detail = 7;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearDocumentation()

public ProductStatus.ItemLevelIssue.Builder clearDocumentation()

The URL of a web page to help with resolving this issue.

string documentation = 8;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProductStatus.ItemLevelIssue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductStatus.ItemLevelIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

clearReportingContext()

public ProductStatus.ItemLevelIssue.Builder clearReportingContext()

The reporting context the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearResolution()

public ProductStatus.ItemLevelIssue.Builder clearResolution()

Whether the issue can be resolved by the merchant.

string resolution = 3;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clearSeverity()

public ProductStatus.ItemLevelIssue.Builder clearSeverity()

How this issue affects serving of the offer.

.google.shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity severity = 2;

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

clone()

public ProductStatus.ItemLevelIssue.Builder clone()
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

getApplicableCountries(int index)

public String getApplicableCountries(int index)

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The applicableCountries at the given index.

getApplicableCountriesBytes(int index)

public ByteString getApplicableCountriesBytes(int index)

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the applicableCountries at the given index.

getApplicableCountriesCount()

public int getApplicableCountriesCount()

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Returns
Type Description
int

The count of applicableCountries.

getApplicableCountriesList()

public ProtocolStringList getApplicableCountriesList()

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Returns
Type Description
ProtocolStringList

A list containing the applicableCountries.

getAttribute()

public String getAttribute()

The attribute's name, if the issue is caused by a single attribute.

string attribute = 4;

Returns
Type Description
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

The attribute's name, if the issue is caused by a single attribute.

string attribute = 4;

Returns
Type Description
ByteString

The bytes for attribute.

getCode()

public String getCode()

The error code of the issue.

string code = 1;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

The error code of the issue.

string code = 1;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public ProductStatus.ItemLevelIssue getDefaultInstanceForType()
Returns
Type Description
ProductStatus.ItemLevelIssue

getDescription()

public String getDescription()

A short issue description in English.

string description = 6;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A short issue description in English.

string description = 6;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDetail()

public String getDetail()

A detailed issue description in English.

string detail = 7;

Returns
Type Description
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

A detailed issue description in English.

string detail = 7;

Returns
Type Description
ByteString

The bytes for detail.

getDocumentation()

public String getDocumentation()

The URL of a web page to help with resolving this issue.

string documentation = 8;

Returns
Type Description
String

The documentation.

getDocumentationBytes()

public ByteString getDocumentationBytes()

The URL of a web page to help with resolving this issue.

string documentation = 8;

Returns
Type Description
ByteString

The bytes for documentation.

getReportingContext()

public ReportingContext.ReportingContextEnum getReportingContext()

The reporting context the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5;

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

The reportingContext.

getReportingContextValue()

public int getReportingContextValue()

The reporting context the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5;

Returns
Type Description
int

The enum numeric value on the wire for reportingContext.

getResolution()

public String getResolution()

Whether the issue can be resolved by the merchant.

string resolution = 3;

Returns
Type Description
String

The resolution.

getResolutionBytes()

public ByteString getResolutionBytes()

Whether the issue can be resolved by the merchant.

string resolution = 3;

Returns
Type Description
ByteString

The bytes for resolution.

getSeverity()

public ProductStatus.ItemLevelIssue.Severity getSeverity()

How this issue affects serving of the offer.

.google.shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity severity = 2;

Returns
Type Description
ProductStatus.ItemLevelIssue.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

How this issue affects serving of the offer.

.google.shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity severity = 2;

Returns
Type Description
int

The enum numeric value on the wire for severity.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ProductStatus.ItemLevelIssue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

mergeFrom(ProductStatus.ItemLevelIssue other)

public ProductStatus.ItemLevelIssue.Builder mergeFrom(ProductStatus.ItemLevelIssue other)
Parameter
Name Description
other ProductStatus.ItemLevelIssue
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductStatus.ItemLevelIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

setApplicableCountries(int index, String value)

public ProductStatus.ItemLevelIssue.Builder setApplicableCountries(int index, String value)

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.

repeated string applicable_countries = 9;

Parameters
Name Description
index int

The index to set the value at.

value String

The applicableCountries to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setAttribute(String value)

public ProductStatus.ItemLevelIssue.Builder setAttribute(String value)

The attribute's name, if the issue is caused by a single attribute.

string attribute = 4;

Parameter
Name Description
value String

The attribute to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setAttributeBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder setAttributeBytes(ByteString value)

The attribute's name, if the issue is caused by a single attribute.

string attribute = 4;

Parameter
Name Description
value ByteString

The bytes for attribute to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setCode(String value)

public ProductStatus.ItemLevelIssue.Builder setCode(String value)

The error code of the issue.

string code = 1;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder setCodeBytes(ByteString value)

The error code of the issue.

string code = 1;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setDescription(String value)

public ProductStatus.ItemLevelIssue.Builder setDescription(String value)

A short issue description in English.

string description = 6;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder setDescriptionBytes(ByteString value)

A short issue description in English.

string description = 6;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setDetail(String value)

public ProductStatus.ItemLevelIssue.Builder setDetail(String value)

A detailed issue description in English.

string detail = 7;

Parameter
Name Description
value String

The detail to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder setDetailBytes(ByteString value)

A detailed issue description in English.

string detail = 7;

Parameter
Name Description
value ByteString

The bytes for detail to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setDocumentation(String value)

public ProductStatus.ItemLevelIssue.Builder setDocumentation(String value)

The URL of a web page to help with resolving this issue.

string documentation = 8;

Parameter
Name Description
value String

The documentation to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setDocumentationBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder setDocumentationBytes(ByteString value)

The URL of a web page to help with resolving this issue.

string documentation = 8;

Parameter
Name Description
value ByteString

The bytes for documentation to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProductStatus.ItemLevelIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductStatus.ItemLevelIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides

setReportingContext(ReportingContext.ReportingContextEnum value)

public ProductStatus.ItemLevelIssue.Builder setReportingContext(ReportingContext.ReportingContextEnum value)

The reporting context the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5;

Parameter
Name Description
value com.google.shopping.type.ReportingContext.ReportingContextEnum

The reportingContext to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setReportingContextValue(int value)

public ProductStatus.ItemLevelIssue.Builder setReportingContextValue(int value)

The reporting context the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for reportingContext to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setResolution(String value)

public ProductStatus.ItemLevelIssue.Builder setResolution(String value)

Whether the issue can be resolved by the merchant.

string resolution = 3;

Parameter
Name Description
value String

The resolution to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setResolutionBytes(ByteString value)

public ProductStatus.ItemLevelIssue.Builder setResolutionBytes(ByteString value)

Whether the issue can be resolved by the merchant.

string resolution = 3;

Parameter
Name Description
value ByteString

The bytes for resolution to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setSeverity(ProductStatus.ItemLevelIssue.Severity value)

public ProductStatus.ItemLevelIssue.Builder setSeverity(ProductStatus.ItemLevelIssue.Severity value)

How this issue affects serving of the offer.

.google.shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity severity = 2;

Parameter
Name Description
value ProductStatus.ItemLevelIssue.Severity

The severity to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setSeverityValue(int value)

public ProductStatus.ItemLevelIssue.Builder setSeverityValue(int value)

How this issue affects serving of the offer.

.google.shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity severity = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
ProductStatus.ItemLevelIssue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductStatus.ItemLevelIssue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductStatus.ItemLevelIssue.Builder
Overrides