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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int NEW_VALUE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int OLD_VALUE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
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
public static ProductChange getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ProductChange.Builder newBuilder()
public static ProductChange.Builder newBuilder(ProductChange prototype)
public static ProductChange parseDelimitedFrom(InputStream input)
public static ProductChange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductChange parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ProductChange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductChange parseFrom(ByteString data)
public static ProductChange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductChange parseFrom(CodedInputStream input)
public static ProductChange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductChange parseFrom(InputStream input)
public static ProductChange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductChange parseFrom(ByteBuffer data)
public static ProductChange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ProductChange> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public ProductChange getDefaultInstanceForType()
public String getNewValue()
The new value of the changed resource or attribute.
optional string new_value = 2;
Returns |
Type |
Description |
String |
The newValue.
|
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.
|
public String getOldValue()
The old value of the changed resource or attribute.
optional string old_value = 1;
Returns |
Type |
Description |
String |
The oldValue.
|
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.
|
public Parser<ProductChange> getParserForType()
Overrides
public String getRegionCode()
Countries that have the change (if applicable)
optional string region_code = 3;
Returns |
Type |
Description |
String |
The regionCode.
|
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.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ProductChange.Builder newBuilderForType()
protected ProductChange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ProductChange.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides