Class PromotionStatus.ItemLevelIssue.Builder (0.8.0)

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

The issue associated with the promotion.

Protobuf type google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue

Static Methods

getDescriptor()

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

Methods

addAllApplicableCountries(Iterable<String> values)

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

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The applicableCountries to add.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

addApplicableCountries(String value)

public PromotionStatus.ItemLevelIssue.Builder addApplicableCountries(String value)

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The applicableCountries to add.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

addApplicableCountriesBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder addApplicableCountriesBytes(ByteString value)

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the applicableCountries to add.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearApplicableCountries()

public PromotionStatus.ItemLevelIssue.Builder clearApplicableCountries()

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearAttribute()

public PromotionStatus.ItemLevelIssue.Builder clearAttribute()

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

string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearCode()

public PromotionStatus.ItemLevelIssue.Builder clearCode()

Output only. The error code of the issue.

string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearDescription()

public PromotionStatus.ItemLevelIssue.Builder clearDescription()

Output only. A short issue description in English.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearDetail()

public PromotionStatus.ItemLevelIssue.Builder clearDetail()

Output only. A detailed issue description in English.

string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearDocumentation()

public PromotionStatus.ItemLevelIssue.Builder clearDocumentation()

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

string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReportingContext()

public PromotionStatus.ItemLevelIssue.Builder clearReportingContext()

Output only. The destination the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearResolution()

public PromotionStatus.ItemLevelIssue.Builder clearResolution()

Output only. Whether the issue can be resolved by the merchant.

string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clearSeverity()

public PromotionStatus.ItemLevelIssue.Builder clearSeverity()

Output only. How this issue affects serving of the promotion.

.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

clone()

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

getApplicableCountries(int index)

public String getApplicableCountries(int index)

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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)

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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()

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of applicableCountries.

getApplicableCountriesList()

public ProtocolStringList getApplicableCountriesList()

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the applicableCountries.

getAttribute()

public String getAttribute()

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

string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

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

string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for attribute.

getCode()

public String getCode()

Output only. The error code of the issue.

string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

Output only. The error code of the issue.

string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Output only. A short issue description in English.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. A short issue description in English.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDetail()

public String getDetail()

Output only. A detailed issue description in English.

string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

Output only. A detailed issue description in English.

string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for detail.

getDocumentation()

public String getDocumentation()

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

string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The documentation.

getDocumentationBytes()

public ByteString getDocumentationBytes()

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

string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for documentation.

getReportingContext()

public ReportingContext.ReportingContextEnum getReportingContext()

Output only. The destination the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

The reportingContext.

getReportingContextValue()

public int getReportingContextValue()

Output only. The destination the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for reportingContext.

getResolution()

public String getResolution()

Output only. Whether the issue can be resolved by the merchant.

string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The resolution.

getResolutionBytes()

public ByteString getResolutionBytes()

Output only. Whether the issue can be resolved by the merchant.

string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for resolution.

getSeverity()

public PromotionStatus.ItemLevelIssue.Severity getSeverity()

Output only. How this issue affects serving of the promotion.

.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromotionStatus.ItemLevelIssue.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Output only. How this issue affects serving of the promotion.

.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 PromotionStatus.ItemLevelIssue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(PromotionStatus.ItemLevelIssue other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApplicableCountries(int index, String value)

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

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

repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The applicableCountries to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setAttribute(String value)

public PromotionStatus.ItemLevelIssue.Builder setAttribute(String value)

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

string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The attribute to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setAttributeBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder setAttributeBytes(ByteString value)

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

string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for attribute to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setCode(String value)

public PromotionStatus.ItemLevelIssue.Builder setCode(String value)

Output only. The error code of the issue.

string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The code to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder setCodeBytes(ByteString value)

Output only. The error code of the issue.

string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setDescription(String value)

public PromotionStatus.ItemLevelIssue.Builder setDescription(String value)

Output only. A short issue description in English.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder setDescriptionBytes(ByteString value)

Output only. A short issue description in English.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setDetail(String value)

public PromotionStatus.ItemLevelIssue.Builder setDetail(String value)

Output only. A detailed issue description in English.

string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The detail to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder setDetailBytes(ByteString value)

Output only. A detailed issue description in English.

string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for detail to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setDocumentation(String value)

public PromotionStatus.ItemLevelIssue.Builder setDocumentation(String value)

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

string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The documentation to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setDocumentationBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder setDocumentationBytes(ByteString value)

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

string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for documentation to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setReportingContext(ReportingContext.ReportingContextEnum value)

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

Output only. The destination the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

The reportingContext to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setReportingContextValue(int value)

public PromotionStatus.ItemLevelIssue.Builder setReportingContextValue(int value)

Output only. The destination the issue applies to.

.google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setResolution(String value)

public PromotionStatus.ItemLevelIssue.Builder setResolution(String value)

Output only. Whether the issue can be resolved by the merchant.

string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The resolution to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setResolutionBytes(ByteString value)

public PromotionStatus.ItemLevelIssue.Builder setResolutionBytes(ByteString value)

Output only. Whether the issue can be resolved by the merchant.

string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for resolution to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setSeverity(PromotionStatus.ItemLevelIssue.Severity value)

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

Output only. How this issue affects serving of the promotion.

.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PromotionStatus.ItemLevelIssue.Severity

The severity to set.

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setSeverityValue(int value)

public PromotionStatus.ItemLevelIssue.Builder setSeverityValue(int value)

Output only. How this issue affects serving of the promotion.

.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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