Class UpdateSubscriptionRequest.Builder (1.132.0)

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

Request for the UpdateSubscription method.

Protobuf type google.pubsub.v1.UpdateSubscriptionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubscription()

public UpdateSubscriptionRequest.Builder clearSubscription()

Required. The updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSubscriptionRequest.Builder

clearUpdateMask()

public UpdateSubscriptionRequest.Builder clearUpdateMask()

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSubscriptionRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSubscriptionRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSubscriptionRequest

getDescriptorForType()

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

getSubscription()

public Subscription getSubscription()

Required. The updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subscription

The subscription.

getSubscriptionBuilder()

public Subscription.Builder getSubscriptionBuilder()

Required. The updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subscription.Builder

getSubscriptionOrBuilder()

public SubscriptionOrBuilder getSubscriptionOrBuilder()

Required. The updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubscriptionOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasSubscription()

public boolean hasSubscription()

Required. The updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the subscription field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

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

mergeFrom(Message other)

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

mergeFrom(UpdateSubscriptionRequest other)

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

mergeSubscription(Subscription value)

public UpdateSubscriptionRequest.Builder mergeSubscription(Subscription value)

Required. The updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subscription
Returns
Type Description
UpdateSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSubscriptionRequest.Builder mergeUpdateMask(FieldMask value)

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSubscriptionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSubscription(Subscription value)

public UpdateSubscriptionRequest.Builder setSubscription(Subscription value)

Required. The updated subscription object.

.google.pubsub.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 updated subscription object.

.google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Subscription.Builder
Returns
Type Description
UpdateSubscriptionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSubscriptionRequest.Builder setUpdateMask(FieldMask value)

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSubscriptionRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSubscriptionRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSubscriptionRequest.Builder