public final class ProductStatusChangeMessage extends GeneratedMessageV3 implements ProductStatusChangeMessageOrBuilder
The message that the merchant will receive to notify about product status
change event
Protobuf type google.shopping.merchant.notifications.v1beta.ProductStatusChangeMessage
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 ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ATTRIBUTE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CHANGES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MANAGING_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int RESOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int RESOURCE_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ProductStatusChangeMessage getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ProductStatusChangeMessage.Builder newBuilder()
public static ProductStatusChangeMessage.Builder newBuilder(ProductStatusChangeMessage prototype)
public static ProductStatusChangeMessage parseDelimitedFrom(InputStream input)
public static ProductStatusChangeMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductStatusChangeMessage parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ProductStatusChangeMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductStatusChangeMessage parseFrom(ByteString data)
public static ProductStatusChangeMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductStatusChangeMessage parseFrom(CodedInputStream input)
public static ProductStatusChangeMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductStatusChangeMessage parseFrom(InputStream input)
public static ProductStatusChangeMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductStatusChangeMessage parseFrom(ByteBuffer data)
public static ProductStatusChangeMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ProductStatusChangeMessage> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public String getAccount()
The target account that owns the entity that changed.
Format : accounts/{merchant_id}
optional string account = 1;
Returns |
Type |
Description |
String |
The account.
|
public ByteString getAccountBytes()
The target account that owns the entity that changed.
Format : accounts/{merchant_id}
optional string account = 1;
Returns |
Type |
Description |
ByteString |
The bytes for account.
|
public Attribute getAttribute()
The attribute in the resource that changed, in this case it will be always
Status
.
optional .google.shopping.merchant.notifications.v1beta.Attribute attribute = 4;
Returns |
Type |
Description |
Attribute |
The attribute.
|
public int getAttributeValue()
The attribute in the resource that changed, in this case it will be always
Status
.
optional .google.shopping.merchant.notifications.v1beta.Attribute attribute = 4;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for attribute.
|
public ProductChange getChanges(int index)
A message to describe the change that happened to the product
repeated .google.shopping.merchant.notifications.v1beta.ProductChange changes = 5;
Parameter |
Name |
Description |
index |
int
|
public int getChangesCount()
A message to describe the change that happened to the product
repeated .google.shopping.merchant.notifications.v1beta.ProductChange changes = 5;
Returns |
Type |
Description |
int |
|
public List<ProductChange> getChangesList()
A message to describe the change that happened to the product
repeated .google.shopping.merchant.notifications.v1beta.ProductChange changes = 5;
public ProductChangeOrBuilder getChangesOrBuilder(int index)
A message to describe the change that happened to the product
repeated .google.shopping.merchant.notifications.v1beta.ProductChange changes = 5;
Parameter |
Name |
Description |
index |
int
|
public List<? extends ProductChangeOrBuilder> getChangesOrBuilderList()
A message to describe the change that happened to the product
repeated .google.shopping.merchant.notifications.v1beta.ProductChange changes = 5;
Returns |
Type |
Description |
List<? extends com.google.shopping.merchant.notifications.v1beta.ProductChangeOrBuilder> |
|
public ProductStatusChangeMessage getDefaultInstanceForType()
public String getManagingAccount()
The account that manages the merchant's account. can be the same as
merchant id if it is standalone account. Format :
accounts/{service_provider_id}
optional string managing_account = 2;
Returns |
Type |
Description |
String |
The managingAccount.
|
public ByteString getManagingAccountBytes()
The account that manages the merchant's account. can be the same as
merchant id if it is standalone account. Format :
accounts/{service_provider_id}
optional string managing_account = 2;
Returns |
Type |
Description |
ByteString |
The bytes for managingAccount.
|
public Parser<ProductStatusChangeMessage> getParserForType()
Overrides
public String getResource()
The product name.
Format: {product.name=accounts/{account}/products/{product}}
optional string resource = 7;
Returns |
Type |
Description |
String |
The resource.
|
public ByteString getResourceBytes()
The product name.
Format: {product.name=accounts/{account}/products/{product}}
optional string resource = 7;
Returns |
Type |
Description |
ByteString |
The bytes for resource.
|
public String getResourceId()
The product id.
optional string resource_id = 6;
Returns |
Type |
Description |
String |
The resourceId.
|
public ByteString getResourceIdBytes()
The product id.
optional string resource_id = 6;
Returns |
Type |
Description |
ByteString |
The bytes for resourceId.
|
public Resource getResourceType()
The resource that changed, in this case it will always be Product
.
optional .google.shopping.merchant.notifications.v1beta.Resource resource_type = 3;
Returns |
Type |
Description |
Resource |
The resourceType.
|
public int getResourceTypeValue()
The resource that changed, in this case it will always be Product
.
optional .google.shopping.merchant.notifications.v1beta.Resource resource_type = 3;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for resourceType.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasAccount()
The target account that owns the entity that changed.
Format : accounts/{merchant_id}
optional string account = 1;
Returns |
Type |
Description |
boolean |
Whether the account field is set.
|
public boolean hasAttribute()
The attribute in the resource that changed, in this case it will be always
Status
.
optional .google.shopping.merchant.notifications.v1beta.Attribute attribute = 4;
Returns |
Type |
Description |
boolean |
Whether the attribute field is set.
|
public boolean hasManagingAccount()
The account that manages the merchant's account. can be the same as
merchant id if it is standalone account. Format :
accounts/{service_provider_id}
optional string managing_account = 2;
Returns |
Type |
Description |
boolean |
Whether the managingAccount field is set.
|
public boolean hasResource()
The product name.
Format: {product.name=accounts/{account}/products/{product}}
optional string resource = 7;
Returns |
Type |
Description |
boolean |
Whether the resource field is set.
|
public boolean hasResourceId()
The product id.
optional string resource_id = 6;
Returns |
Type |
Description |
boolean |
Whether the resourceId field is set.
|
public boolean hasResourceType()
The resource that changed, in this case it will always be Product
.
optional .google.shopping.merchant.notifications.v1beta.Resource resource_type = 3;
Returns |
Type |
Description |
boolean |
Whether the resourceType field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ProductStatusChangeMessage.Builder newBuilderForType()
protected ProductStatusChangeMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ProductStatusChangeMessage.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides