Class NotificationSubscription (0.12.0)

public final class NotificationSubscription extends GeneratedMessageV3 implements NotificationSubscriptionOrBuilder

Represents a notification subscription owned by a Merchant account.

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

Static Fields

ALL_MANAGED_ACCOUNTS_FIELD_NUMBER

public static final int ALL_MANAGED_ACCOUNTS_FIELD_NUMBER
Field Value
Type Description
int

CALL_BACK_URI_FIELD_NUMBER

public static final int CALL_BACK_URI_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REGISTERED_EVENT_FIELD_NUMBER

public static final int REGISTERED_EVENT_FIELD_NUMBER
Field Value
Type Description
int

TARGET_ACCOUNT_FIELD_NUMBER

public static final int TARGET_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NotificationSubscription getDefaultInstance()
Returns
Type Description
NotificationSubscription

getDescriptor()

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

newBuilder()

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

newBuilder(NotificationSubscription prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAllManagedAccounts()

public boolean getAllManagedAccounts()

If this value is true, the requesting account is notified of the specified event for all managed accounts (can be subaccounts or other linked accounts) including newly added accounts on a daily basis.

bool all_managed_accounts = 3;

Returns
Type Description
boolean

The allManagedAccounts.

getCallBackUri()

public String getCallBackUri()

URL to be used to push the notification to the merchant.

string call_back_uri = 5;

Returns
Type Description
String

The callBackUri.

getCallBackUriBytes()

public ByteString getCallBackUriBytes()

URL to be used to push the notification to the merchant.

string call_back_uri = 5;

Returns
Type Description
ByteString

The bytes for callBackUri.

getDefaultInstanceForType()

public NotificationSubscription getDefaultInstanceForType()
Returns
Type Description
NotificationSubscription

getInterestedInCase()

public NotificationSubscription.InterestedInCase getInterestedInCase()
Returns
Type Description
NotificationSubscription.InterestedInCase

getName()

public String getName()

Output only. The name of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription. The account represents the merchant ID of the merchant that owns the configuration. Format: accounts/{account}/notificationsubscriptions/{notification_subscription}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription. The account represents the merchant ID of the merchant that owns the configuration. Format: accounts/{account}/notificationsubscriptions/{notification_subscription}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getRegisteredEvent()

public NotificationSubscription.NotificationEventType getRegisteredEvent()

The event that the merchant wants to be notified about.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription.NotificationEventType registered_event = 2;

Returns
Type Description
NotificationSubscription.NotificationEventType

The registeredEvent.

getRegisteredEventValue()

public int getRegisteredEventValue()

The event that the merchant wants to be notified about.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription.NotificationEventType registered_event = 2;

Returns
Type Description
int

The enum numeric value on the wire for registeredEvent.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetAccount()

public String getTargetAccount()

The name of the account you want to receive notifications for. Format: accounts/{account}

string target_account = 4;

Returns
Type Description
String

The targetAccount.

getTargetAccountBytes()

public ByteString getTargetAccountBytes()

The name of the account you want to receive notifications for. Format: accounts/{account}

string target_account = 4;

Returns
Type Description
ByteString

The bytes for targetAccount.

hasAllManagedAccounts()

public boolean hasAllManagedAccounts()

If this value is true, the requesting account is notified of the specified event for all managed accounts (can be subaccounts or other linked accounts) including newly added accounts on a daily basis.

bool all_managed_accounts = 3;

Returns
Type Description
boolean

Whether the allManagedAccounts field is set.

hasTargetAccount()

public boolean hasTargetAccount()

The name of the account you want to receive notifications for. Format: accounts/{account}

string target_account = 4;

Returns
Type Description
boolean

Whether the targetAccount 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 NotificationSubscription.Builder newBuilderForType()
Returns
Type Description
NotificationSubscription.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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