Send feedback
Class NotificationSubscription (0.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.12.0 keyboard_arrow_down
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
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 ALL_MANAGED_ACCOUNTS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CALL_BACK_URI_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int REGISTERED_EVENT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int TARGET_ACCOUNT_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static NotificationSubscription getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static NotificationSubscription . Builder newBuilder ()
public static NotificationSubscription . Builder newBuilder ( NotificationSubscription prototype )
public static NotificationSubscription parseDelimitedFrom ( InputStream input )
public static NotificationSubscription parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static NotificationSubscription parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static NotificationSubscription parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static NotificationSubscription parseFrom ( ByteString data )
public static NotificationSubscription parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static NotificationSubscription parseFrom ( CodedInputStream input )
public static NotificationSubscription parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static NotificationSubscription parseFrom ( InputStream input )
public static NotificationSubscription parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static NotificationSubscription parseFrom ( ByteBuffer data )
public static NotificationSubscription parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<NotificationSubscription> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
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.
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.
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.
public NotificationSubscription getDefaultInstanceForType ()
public NotificationSubscription . InterestedInCase getInterestedInCase ()
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.
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.
public Parser<NotificationSubscription> getParserForType ()
Overrides
public NotificationSubscription . NotificationEventType getRegisteredEvent ()
The event that the merchant wants to be notified about.
.google.shopping.merchant.notifications.v1beta.NotificationSubscription.NotificationEventType registered_event = 2;
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.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
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.
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.
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.
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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public NotificationSubscription . Builder newBuilderForType ()
protected NotificationSubscription . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public NotificationSubscription . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]