Class ModifyPushConfigRequest.Builder (1.123.18)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModifyPushConfigRequest build()
Returns
TypeDescription
ModifyPushConfigRequest

buildPartial()

public ModifyPushConfigRequest buildPartial()
Returns
TypeDescription
ModifyPushConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ModifyPushConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ModifyPushConfigRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ModifyPushConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
ModifyPushConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pushConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ModifyPushConfigRequest other)

public ModifyPushConfigRequest.Builder mergeFrom(ModifyPushConfigRequest other)
Parameter
NameDescription
otherModifyPushConfigRequest
Returns
TypeDescription
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
NameDescription
valuePushConfig
Returns
TypeDescription
ModifyPushConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ModifyPushConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePushConfig
Returns
TypeDescription
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
NameDescription
builderForValuePushConfig.Builder
Returns
TypeDescription
ModifyPushConfigRequest.Builder

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

public ModifyPushConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
ModifyPushConfigRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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