Class ModifyPushConfigRequest.Builder (1.147.0)

public static final class ModifyPushConfigRequest.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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

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.