Class UpdateSubscriptionRequest.Builder (0.3.0)

public static final class UpdateSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<UpdateSubscriptionRequest.Builder> implements UpdateSubscriptionRequestOrBuilder

The request message for SubscriptionsService.UpdateSubscription.

Protobuf type google.apps.events.subscriptions.v1.UpdateSubscriptionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

build()

public UpdateSubscriptionRequest build()
Returns
TypeDescription
UpdateSubscriptionRequest

buildPartial()

public UpdateSubscriptionRequest buildPartial()
Returns
TypeDescription
UpdateSubscriptionRequest

clear()

public UpdateSubscriptionRequest.Builder clear()
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateSubscriptionRequest.Builder

This builder for chaining.

clone()

public UpdateSubscriptionRequest.Builder clone()
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSubscriptionRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSubscriptionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSubscriptionRequest other)

public UpdateSubscriptionRequest.Builder mergeFrom(UpdateSubscriptionRequest other)
Parameter
NameDescription
otherUpdateSubscriptionRequest
Returns
TypeDescription
UpdateSubscriptionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateSubscriptionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

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
NameDescription
valueSubscription
Returns
TypeDescription
UpdateSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSubscriptionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

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

public UpdateSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

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
NameDescription
valueSubscription
Returns
TypeDescription
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
NameDescription
builderForValueSubscription.Builder
Returns
TypeDescription
UpdateSubscriptionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSubscriptionRequest.Builder
Overrides

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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateSubscriptionRequest.Builder

This builder for chaining.