Class ModifyAckDeadlineRequest.Builder (1.134.2)

public static final class ModifyAckDeadlineRequest.Builder extends GeneratedMessageV3.Builder<ModifyAckDeadlineRequest.Builder> implements ModifyAckDeadlineRequestOrBuilder

Request for the ModifyAckDeadline method.

Protobuf type google.pubsub.v1.ModifyAckDeadlineRequest

Static Methods

getDescriptor()

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

Methods

addAckIds(String value)

public ModifyAckDeadlineRequest.Builder addAckIds(String value)

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The ackIds to add.

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

addAckIdsBytes(ByteString value)

public ModifyAckDeadlineRequest.Builder addAckIdsBytes(ByteString value)

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the ackIds to add.

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

addAllAckIds(Iterable<String> values)

public ModifyAckDeadlineRequest.Builder addAllAckIds(Iterable<String> values)

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The ackIds to add.

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModifyAckDeadlineRequest build()
Returns
Type Description
ModifyAckDeadlineRequest

buildPartial()

public ModifyAckDeadlineRequest buildPartial()
Returns
Type Description
ModifyAckDeadlineRequest

clear()

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

clearAckDeadlineSeconds()

public ModifyAckDeadlineRequest.Builder clearAckDeadlineSeconds()

Required. The new ack deadline with respect to the time this request was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will expire 10 seconds after the ModifyAckDeadline call was made. Specifying zero might immediately make the message available for delivery to another subscriber client. This typically results in an increase in the rate of message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in a single request is 600 seconds (10 minutes).

int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

clearAckIds()

public ModifyAckDeadlineRequest.Builder clearAckIds()

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubscription()

public ModifyAckDeadlineRequest.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
ModifyAckDeadlineRequest.Builder

This builder for chaining.

clone()

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

getAckDeadlineSeconds()

public int getAckDeadlineSeconds()

Required. The new ack deadline with respect to the time this request was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will expire 10 seconds after the ModifyAckDeadline call was made. Specifying zero might immediately make the message available for delivery to another subscriber client. This typically results in an increase in the rate of message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in a single request is 600 seconds (10 minutes).

int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The ackDeadlineSeconds.

getAckIds(int index)

public String getAckIds(int index)

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ackIds at the given index.

getAckIdsBytes(int index)

public ByteString getAckIdsBytes(int index)

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ackIds at the given index.

getAckIdsCount()

public int getAckIdsCount()

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of ackIds.

getAckIdsList()

public ProtocolStringList getAckIdsList()

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the ackIds.

getDefaultInstanceForType()

public ModifyAckDeadlineRequest getDefaultInstanceForType()
Returns
Type Description
ModifyAckDeadlineRequest

getDescriptorForType()

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

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.

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

mergeFrom(Message other)

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

mergeFrom(ModifyAckDeadlineRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAckDeadlineSeconds(int value)

public ModifyAckDeadlineRequest.Builder setAckDeadlineSeconds(int value)

Required. The new ack deadline with respect to the time this request was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will expire 10 seconds after the ModifyAckDeadline call was made. Specifying zero might immediately make the message available for delivery to another subscriber client. This typically results in an increase in the rate of message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in a single request is 600 seconds (10 minutes).

int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The ackDeadlineSeconds to set.

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

setAckIds(int index, String value)

public ModifyAckDeadlineRequest.Builder setAckIds(int index, String value)

Required. List of acknowledgment IDs.

repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The ackIds to set.

Returns
Type Description
ModifyAckDeadlineRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSubscription(String value)

public ModifyAckDeadlineRequest.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
ModifyAckDeadlineRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public ModifyAckDeadlineRequest.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
ModifyAckDeadlineRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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