public static final class CreateNotificationSubscriptionRequest.Builder extends GeneratedMessage.Builder<CreateNotificationSubscriptionRequest.Builder> implements CreateNotificationSubscriptionRequestOrBuilderRequest message for the CreateNotificationSubscription method.
Protobuf type
google.shopping.merchant.notifications.v1beta.CreateNotificationSubscriptionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateNotificationSubscriptionRequest.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
getDefaultInstanceForType()
public CreateNotificationSubscriptionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateNotificationSubscriptionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateNotificationSubscriptionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateNotificationSubscriptionRequest.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateNotificationSubscriptionRequest.Builder |
This builder for chaining. |