Class CreateNotificationSubscriptionRequest.Builder (0.14.0)

public static final class CreateNotificationSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<CreateNotificationSubscriptionRequest.Builder> implements CreateNotificationSubscriptionRequestOrBuilder

Request message for the CreateNotificationSubscription method.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateNotificationSubscriptionRequest build()
Returns
Type Description
CreateNotificationSubscriptionRequest

buildPartial()

public CreateNotificationSubscriptionRequest buildPartial()
Returns
Type Description
CreateNotificationSubscriptionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNotificationSubscription()

public CreateNotificationSubscriptionRequest.Builder clearNotificationSubscription()

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateNotificationSubscriptionRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateNotificationSubscriptionRequest.Builder clearParent()

Required. The merchant account that owns the new notification subscription. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateNotificationSubscriptionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateNotificationSubscriptionRequest getDefaultInstanceForType()
Returns
Type Description
CreateNotificationSubscriptionRequest

getDescriptorForType()

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

getNotificationSubscription()

public NotificationSubscription getNotificationSubscription()

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NotificationSubscription

The notificationSubscription.

getNotificationSubscriptionBuilder()

public NotificationSubscription.Builder getNotificationSubscriptionBuilder()

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NotificationSubscription.Builder

getNotificationSubscriptionOrBuilder()

public NotificationSubscriptionOrBuilder getNotificationSubscriptionOrBuilder()

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NotificationSubscriptionOrBuilder

getParent()

public String getParent()

Required. The merchant account that owns the new notification subscription. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The merchant account that owns the new notification subscription. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasNotificationSubscription()

public boolean hasNotificationSubscription()

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the notificationSubscription field is set.

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 CreateNotificationSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateNotificationSubscriptionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CreateNotificationSubscriptionRequest other)

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

mergeNotificationSubscription(NotificationSubscription value)

public CreateNotificationSubscriptionRequest.Builder mergeNotificationSubscription(NotificationSubscription value)

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value NotificationSubscription
Returns
Type Description
CreateNotificationSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNotificationSubscription(NotificationSubscription value)

public CreateNotificationSubscriptionRequest.Builder setNotificationSubscription(NotificationSubscription value)

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value NotificationSubscription
Returns
Type Description
CreateNotificationSubscriptionRequest.Builder

setNotificationSubscription(NotificationSubscription.Builder builderForValue)

public CreateNotificationSubscriptionRequest.Builder setNotificationSubscription(NotificationSubscription.Builder builderForValue)

Required. The notification subscription to create.

.google.shopping.merchant.notifications.v1beta.NotificationSubscription notification_subscription = 2 [(.google.api.field_behavior) = REQUIRED];

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

setParent(String value)

public CreateNotificationSubscriptionRequest.Builder setParent(String value)

Required. The merchant account that owns the new notification subscription. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateNotificationSubscriptionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateNotificationSubscriptionRequest.Builder setParentBytes(ByteString value)

Required. The merchant account that owns the new notification subscription. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateNotificationSubscriptionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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