Class ListNotificationSubscriptionsResponse.Builder (0.17.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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>

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

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

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

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

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
Overrides

build()

public ListNotificationSubscriptionsResponse build()
Returns
Type Description
ListNotificationSubscriptionsResponse

buildPartial()

public ListNotificationSubscriptionsResponse buildPartial()
Returns
Type Description
ListNotificationSubscriptionsResponse

clear()

public ListNotificationSubscriptionsResponse.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListNotificationSubscriptionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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;

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListNotificationSubscriptionsResponse.Builder clone()
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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ListNotificationSubscriptionsResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListNotificationSubscriptionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public ListNotificationSubscriptionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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

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

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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