public static final class UpdateSubscriptionRequest.Builder extends GeneratedMessage.Builder<UpdateSubscriptionRequest.Builder> implements UpdateSubscriptionRequestOrBuilderThe request message for SubscriptionsService.UpdateSubscription.
Protobuf type google.apps.events.subscriptions.v1.UpdateSubscriptionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UpdateSubscriptionRequest.BuilderImplements
UpdateSubscriptionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public UpdateSubscriptionRequest build()| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest |
|
buildPartial()
public UpdateSubscriptionRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest |
|
clear()
public UpdateSubscriptionRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
clearSubscription()
public UpdateSubscriptionRequest.Builder clearSubscription()Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
clearUpdateMask()
public UpdateSubscriptionRequest.Builder clearUpdateMask()Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
clearValidateOnly()
public UpdateSubscriptionRequest.Builder clearValidateOnly() Optional. If set to true, validates and previews the request, but doesn't
update the subscription.
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public UpdateSubscriptionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSubscription()
public Subscription getSubscription()Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Subscription |
The subscription. |
getSubscriptionBuilder()
public Subscription.Builder getSubscriptionBuilder()Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
getSubscriptionOrBuilder()
public SubscriptionOrBuilder getSubscriptionOrBuilder()Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SubscriptionOrBuilder |
|
getUpdateMask()
public FieldMask getUpdateMask()Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FieldMask |
The updateMask. |
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FieldMaskOrBuilder |
|
getValidateOnly()
public boolean getValidateOnly() Optional. If set to true, validates and previews the request, but doesn't
update the subscription.
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The validateOnly. |
hasSubscription()
public boolean hasSubscription()Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the subscription field is set. |
hasUpdateMask()
public boolean hasUpdateMask()Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(UpdateSubscriptionRequest other)
public UpdateSubscriptionRequest.Builder mergeFrom(UpdateSubscriptionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
UpdateSubscriptionRequest |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UpdateSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UpdateSubscriptionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
mergeSubscription(Subscription value)
public UpdateSubscriptionRequest.Builder mergeSubscription(Subscription value)Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Subscription |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
mergeUpdateMask(FieldMask value)
public UpdateSubscriptionRequest.Builder mergeUpdateMask(FieldMask value)Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
setSubscription(Subscription value)
public UpdateSubscriptionRequest.Builder setSubscription(Subscription value)Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Subscription |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
setSubscription(Subscription.Builder builderForValue)
public UpdateSubscriptionRequest.Builder setSubscription(Subscription.Builder builderForValue)Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Subscription.Builder |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
setUpdateMask(FieldMask value)
public UpdateSubscriptionRequest.Builder setUpdateMask(FieldMask value)Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateSubscriptionRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)Optional. Required. The field to update.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the subscription expires.ttl: The time-to-live (TTL) or duration of the subscription.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
|
setValidateOnly(boolean value)
public UpdateSubscriptionRequest.Builder setValidateOnly(boolean value) Optional. If set to true, validates and previews the request, but doesn't
update the subscription.
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe validateOnly to set. |
| Returns | |
|---|---|
| Type | Description |
UpdateSubscriptionRequest.Builder |
This builder for chaining. |