Class ProductStatusChangeMessage (0.10.0)

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

Static Fields

ACCOUNT_FIELD_NUMBER

public static final int ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

ATTRIBUTE_FIELD_NUMBER

public static final int ATTRIBUTE_FIELD_NUMBER
Field Value
Type Description
int

CHANGES_FIELD_NUMBER

public static final int CHANGES_FIELD_NUMBER
Field Value
Type Description
int

MANAGING_ACCOUNT_FIELD_NUMBER

public static final int MANAGING_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_ID_FIELD_NUMBER

public static final int RESOURCE_ID_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductStatusChangeMessage getDefaultInstance()
Returns
Type Description
ProductStatusChangeMessage

getDescriptor()

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

newBuilder()

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

newBuilder(ProductStatusChangeMessage prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAccount()

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.

getAccountBytes()

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.

getAttribute()

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.

getAttributeValue()

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.

getChanges(int index)

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
Returns
Type Description
ProductChange

getChangesCount()

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

getChangesList()

public List<ProductChange> getChangesList()

A message to describe the change that happened to the product

repeated .google.shopping.merchant.notifications.v1beta.ProductChange changes = 5;

Returns
Type Description
List<ProductChange>

getChangesOrBuilder(int index)

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
Returns
Type Description
ProductChangeOrBuilder

getChangesOrBuilderList()

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>

getDefaultInstanceForType()

public ProductStatusChangeMessage getDefaultInstanceForType()
Returns
Type Description
ProductStatusChangeMessage

getManagingAccount()

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.

getManagingAccountBytes()

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.

getParserForType()

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

getResource()

public String getResource()

The product name. Format: {product.name=accounts/{account}/products/{product}}

optional string resource = 7;

Returns
Type Description
String

The resource.

getResourceBytes()

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.

getResourceId()

public String getResourceId()

The product id.

optional string resource_id = 6;

Returns
Type Description
String

The resourceId.

getResourceIdBytes()

public ByteString getResourceIdBytes()

The product id.

optional string resource_id = 6;

Returns
Type Description
ByteString

The bytes for resourceId.

getResourceType()

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.

getResourceTypeValue()

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAccount()

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.

hasAttribute()

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.

hasManagingAccount()

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.

hasResource()

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.

hasResourceId()

public boolean hasResourceId()

The product id.

optional string resource_id = 6;

Returns
Type Description
boolean

Whether the resourceId field is set.

hasResourceType()

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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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