Class ListNotificationSubscriptionsResponse.Builder (0.8.0)

public static final class ListNotificationSubscriptionsResponse.Builder extends GeneratedMessageV3.Builder<ListNotificationSubscriptionsResponse.Builder> implements ListNotificationSubscriptionsResponseOrBuilder

Response message for the ListNotificationSubscription method.

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

Static Methods

getDescriptor()

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

Methods

addAllNotificationSubscriptions(Iterable<? extends NotificationSubscription> values)

public ListNotificationSubscriptionsResponse.Builder addAllNotificationSubscriptions(Iterable<? extends NotificationSubscription> values)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.notifications.v1beta.NotificationSubscription>
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

addNotificationSubscriptions(NotificationSubscription value)

public ListNotificationSubscriptionsResponse.Builder addNotificationSubscriptions(NotificationSubscription value)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
value NotificationSubscription
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

addNotificationSubscriptions(NotificationSubscription.Builder builderForValue)

public ListNotificationSubscriptionsResponse.Builder addNotificationSubscriptions(NotificationSubscription.Builder builderForValue)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
builderForValue NotificationSubscription.Builder
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

addNotificationSubscriptions(int index, NotificationSubscription value)

public ListNotificationSubscriptionsResponse.Builder addNotificationSubscriptions(int index, NotificationSubscription value)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameters
Name Description
index int
value NotificationSubscription
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

addNotificationSubscriptions(int index, NotificationSubscription.Builder builderForValue)

public ListNotificationSubscriptionsResponse.Builder addNotificationSubscriptions(int index, NotificationSubscription.Builder builderForValue)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameters
Name Description
index int
builderForValue NotificationSubscription.Builder
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

addNotificationSubscriptionsBuilder()

public NotificationSubscription.Builder addNotificationSubscriptionsBuilder()

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Returns
Type Description
NotificationSubscription.Builder

addNotificationSubscriptionsBuilder(int index)

public NotificationSubscription.Builder addNotificationSubscriptionsBuilder(int index)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
index int
Returns
Type Description
NotificationSubscription.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListNotificationSubscriptionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

build()

public ListNotificationSubscriptionsResponse build()
Returns
Type Description
ListNotificationSubscriptionsResponse

buildPartial()

public ListNotificationSubscriptionsResponse buildPartial()
Returns
Type Description
ListNotificationSubscriptionsResponse

clear()

public ListNotificationSubscriptionsResponse.Builder clear()
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListNotificationSubscriptionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

clearNextPageToken()

public ListNotificationSubscriptionsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

This builder for chaining.

clearNotificationSubscriptions()

public ListNotificationSubscriptionsResponse.Builder clearNotificationSubscriptions()

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ListNotificationSubscriptionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

clone()

public ListNotificationSubscriptionsResponse.Builder clone()
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListNotificationSubscriptionsResponse getDefaultInstanceForType()
Returns
Type Description
ListNotificationSubscriptionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getNotificationSubscriptions(int index)

public NotificationSubscription getNotificationSubscriptions(int index)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
index int
Returns
Type Description
NotificationSubscription

getNotificationSubscriptionsBuilder(int index)

public NotificationSubscription.Builder getNotificationSubscriptionsBuilder(int index)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
index int
Returns
Type Description
NotificationSubscription.Builder

getNotificationSubscriptionsBuilderList()

public List<NotificationSubscription.Builder> getNotificationSubscriptionsBuilderList()

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Returns
Type Description
List<Builder>

getNotificationSubscriptionsCount()

public int getNotificationSubscriptionsCount()

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Returns
Type Description
int

getNotificationSubscriptionsList()

public List<NotificationSubscription> getNotificationSubscriptionsList()

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Returns
Type Description
List<NotificationSubscription>

getNotificationSubscriptionsOrBuilder(int index)

public NotificationSubscriptionOrBuilder getNotificationSubscriptionsOrBuilder(int index)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
index int
Returns
Type Description
NotificationSubscriptionOrBuilder

getNotificationSubscriptionsOrBuilderList()

public List<? extends NotificationSubscriptionOrBuilder> getNotificationSubscriptionsOrBuilderList()

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.notifications.v1beta.NotificationSubscriptionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListNotificationSubscriptionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListNotificationSubscriptionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

mergeFrom(ListNotificationSubscriptionsResponse other)

public ListNotificationSubscriptionsResponse.Builder mergeFrom(ListNotificationSubscriptionsResponse other)
Parameter
Name Description
other ListNotificationSubscriptionsResponse
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListNotificationSubscriptionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

removeNotificationSubscriptions(int index)

public ListNotificationSubscriptionsResponse.Builder removeNotificationSubscriptions(int index)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListNotificationSubscriptionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

setNextPageToken(String value)

public ListNotificationSubscriptionsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNotificationSubscriptionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

This builder for chaining.

setNotificationSubscriptions(int index, NotificationSubscription value)

public ListNotificationSubscriptionsResponse.Builder setNotificationSubscriptions(int index, NotificationSubscription value)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameters
Name Description
index int
value NotificationSubscription
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

setNotificationSubscriptions(int index, NotificationSubscription.Builder builderForValue)

public ListNotificationSubscriptionsResponse.Builder setNotificationSubscriptions(int index, NotificationSubscription.Builder builderForValue)

The list of notification subscriptions requested by the merchant.

repeated .google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscriptions = 1;

Parameters
Name Description
index int
builderForValue NotificationSubscription.Builder
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListNotificationSubscriptionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListNotificationSubscriptionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListNotificationSubscriptionsResponse.Builder
Overrides