Class PromotionStatus.ItemLevelIssue (0.10.0)

public static final class PromotionStatus.ItemLevelIssue extends GeneratedMessageV3 implements PromotionStatus.ItemLevelIssueOrBuilder

The issue associated with the promotion.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PromotionStatus.ItemLevelIssue

Static Fields

APPLICABLE_COUNTRIES_FIELD_NUMBER

public static final int APPLICABLE_COUNTRIES_FIELD_NUMBER
Field Value
Type Description
int

ATTRIBUTE_FIELD_NUMBER

public static final int ATTRIBUTE_FIELD_NUMBER
Field Value
Type Description
int

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DETAIL_FIELD_NUMBER

public static final int DETAIL_FIELD_NUMBER
Field Value
Type Description
int

DOCUMENTATION_FIELD_NUMBER

public static final int DOCUMENTATION_FIELD_NUMBER
Field Value
Type Description
int

REPORTING_CONTEXT_FIELD_NUMBER

public static final int REPORTING_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

RESOLUTION_FIELD_NUMBER

public static final int RESOLUTION_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PromotionStatus.ItemLevelIssue getDefaultInstance()
Returns
Type Description
PromotionStatus.ItemLevelIssue

getDescriptor()

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

newBuilder()

public static PromotionStatus.ItemLevelIssue.Builder newBuilder()
Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

newBuilder(PromotionStatus.ItemLevelIssue prototype)

public static PromotionStatus.ItemLevelIssue.Builder newBuilder(PromotionStatus.ItemLevelIssue prototype)
Parameter
Name Description
prototype PromotionStatus.ItemLevelIssue
Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

parseDelimitedFrom(InputStream input)

public static PromotionStatus.ItemLevelIssue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PromotionStatus.ItemLevelIssue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PromotionStatus.ItemLevelIssue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PromotionStatus.ItemLevelIssue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PromotionStatus.ItemLevelIssue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PromotionStatus.ItemLevelIssue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PromotionStatus.ItemLevelIssue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PromotionStatus.ItemLevelIssue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PromotionStatus.ItemLevelIssue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PromotionStatus.ItemLevelIssue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PromotionStatus.ItemLevelIssue> parser()
Returns
Type Description
Parser<ItemLevelIssue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

getParserForType()

public Parser<PromotionStatus.ItemLevelIssue> getParserForType()
Returns
Type Description
Parser<ItemLevelIssue>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PromotionStatus.ItemLevelIssue.Builder newBuilderForType()
Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PromotionStatus.ItemLevelIssue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PromotionStatus.ItemLevelIssue.Builder toBuilder()
Returns
Type Description
PromotionStatus.ItemLevelIssue.Builder

writeTo(CodedOutputStream output)

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