Class ProductChange (0.14.0)

public final class ProductChange extends GeneratedMessageV3 implements ProductChangeOrBuilder

The change that happened to the product including old value, new value, country code as the region code and reporting context.

Protobuf type google.shopping.merchant.notifications.v1beta.ProductChange

Static Fields

NEW_VALUE_FIELD_NUMBER

public static final int NEW_VALUE_FIELD_NUMBER
Field Value
Type Description
int

OLD_VALUE_FIELD_NUMBER

public static final int OLD_VALUE_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

REPORTING_CONTEXT_FIELD_NUMBER

public static final int REPORTING_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductChange getDefaultInstance()
Returns
Type Description
ProductChange

getDescriptor()

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

newBuilder()

public static ProductChange.Builder newBuilder()
Returns
Type Description
ProductChange.Builder

newBuilder(ProductChange prototype)

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

parseDelimitedFrom(InputStream input)

public static ProductChange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductChange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ProductChange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductChange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ProductChange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductChange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ProductChange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductChange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ProductChange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductChange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ProductChange> parser()
Returns
Type Description
Parser<ProductChange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ProductChange getDefaultInstanceForType()
Returns
Type Description
ProductChange

getNewValue()

public String getNewValue()

The new value of the changed resource or attribute.

optional string new_value = 2;

Returns
Type Description
String

The newValue.

getNewValueBytes()

public ByteString getNewValueBytes()

The new value of the changed resource or attribute.

optional string new_value = 2;

Returns
Type Description
ByteString

The bytes for newValue.

getOldValue()

public String getOldValue()

The old value of the changed resource or attribute.

optional string old_value = 1;

Returns
Type Description
String

The oldValue.

getOldValueBytes()

public ByteString getOldValueBytes()

The old value of the changed resource or attribute.

optional string old_value = 1;

Returns
Type Description
ByteString

The bytes for oldValue.

getParserForType()

public Parser<ProductChange> getParserForType()
Returns
Type Description
Parser<ProductChange>
Overrides

getRegionCode()

public String getRegionCode()

Countries that have the change (if applicable)

optional string region_code = 3;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Countries that have the change (if applicable)

optional string region_code = 3;

Returns
Type Description
ByteString

The bytes for regionCode.

getReportingContext()

public ReportingContext.ReportingContextEnum getReportingContext()

Reporting contexts that have the change (if applicable)

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

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

The reportingContext.

getReportingContextValue()

public int getReportingContextValue()

Reporting contexts that have the change (if applicable)

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

Returns
Type Description
int

The enum numeric value on the wire for reportingContext.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasNewValue()

public boolean hasNewValue()

The new value of the changed resource or attribute.

optional string new_value = 2;

Returns
Type Description
boolean

Whether the newValue field is set.

hasOldValue()

public boolean hasOldValue()

The old value of the changed resource or attribute.

optional string old_value = 1;

Returns
Type Description
boolean

Whether the oldValue field is set.

hasRegionCode()

public boolean hasRegionCode()

Countries that have the change (if applicable)

optional string region_code = 3;

Returns
Type Description
boolean

Whether the regionCode field is set.

hasReportingContext()

public boolean hasReportingContext()

Reporting contexts that have the change (if applicable)

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

Returns
Type Description
boolean

Whether the reportingContext field is set.

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 ProductChange.Builder newBuilderForType()
Returns
Type Description
ProductChange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ProductChange.Builder toBuilder()
Returns
Type Description
ProductChange.Builder

writeTo(CodedOutputStream output)

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