Class ModifyPushConfigRequest.Builder (1.133.1)

public static final class ModifyPushConfigRequest.Builder extends GeneratedMessageV3.Builder<ModifyPushConfigRequest.Builder> implements ModifyPushConfigRequestOrBuilder

Request for the ModifyPushConfig method.

Protobuf type google.pubsub.v1.ModifyPushConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModifyPushConfigRequest build()
Returns
Type Description
ModifyPushConfigRequest

buildPartial()

public ModifyPushConfigRequest buildPartial()
Returns
Type Description
ModifyPushConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPushConfig()

public ModifyPushConfigRequest.Builder clearPushConfig()

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModifyPushConfigRequest.Builder

clearSubscription()

public ModifyPushConfigRequest.Builder clearSubscription()

Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.

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

Returns
Type Description
ModifyPushConfigRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ModifyPushConfigRequest getDefaultInstanceForType()
Returns
Type Description
ModifyPushConfigRequest

getDescriptorForType()

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

getPushConfig()

public PushConfig getPushConfig()

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PushConfig

The pushConfig.

getPushConfigBuilder()

public PushConfig.Builder getPushConfigBuilder()

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PushConfig.Builder

getPushConfigOrBuilder()

public PushConfigOrBuilder getPushConfigOrBuilder()

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PushConfigOrBuilder

getSubscription()

public String getSubscription()

Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.

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

Returns
Type Description
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.

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

Returns
Type Description
ByteString

The bytes for subscription.

hasPushConfig()

public boolean hasPushConfig()

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

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

mergeFrom(Message other)

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

mergeFrom(ModifyPushConfigRequest other)

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

mergePushConfig(PushConfig value)

public ModifyPushConfigRequest.Builder mergePushConfig(PushConfig value)

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PushConfig
Returns
Type Description
ModifyPushConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPushConfig(PushConfig value)

public ModifyPushConfigRequest.Builder setPushConfig(PushConfig value)

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PushConfig
Returns
Type Description
ModifyPushConfigRequest.Builder

setPushConfig(PushConfig.Builder builderForValue)

public ModifyPushConfigRequest.Builder setPushConfig(PushConfig.Builder builderForValue)

Required. The push configuration for future deliveries.

An empty pushConfig indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if Pull or StreamingPull is not called.

.google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PushConfig.Builder
Returns
Type Description
ModifyPushConfigRequest.Builder

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

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

setSubscription(String value)

public ModifyPushConfigRequest.Builder setSubscription(String value)

Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.

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

Parameter
Name Description
value String

The subscription to set.

Returns
Type Description
ModifyPushConfigRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public ModifyPushConfigRequest.Builder setSubscriptionBytes(ByteString value)

Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.

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

Parameter
Name Description
value ByteString

The bytes for subscription to set.

Returns
Type Description
ModifyPushConfigRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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