Class ModifyAckDeadlineRequest.Builder (1.116.4)

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
TypeDescription
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
NameDescription
valueString

The ackIds to add.

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

The bytes of the ackIds to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The ackIds to add.

Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModifyAckDeadlineRequest build()
Returns
TypeDescription
ModifyAckDeadlineRequest

buildPartial()

public ModifyAckDeadlineRequest buildPartial()
Returns
TypeDescription
ModifyAckDeadlineRequest

clear()

public ModifyAckDeadlineRequest.Builder clear()
Returns
TypeDescription
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 is 600 seconds (10 minutes).

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

Returns
TypeDescription
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
TypeDescription
ModifyAckDeadlineRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ModifyAckDeadlineRequest.Builder clone()
Returns
TypeDescription
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 is 600 seconds (10 minutes).

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

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the ackIds.

getDefaultInstanceForType()

public ModifyAckDeadlineRequest getDefaultInstanceForType()
Returns
TypeDescription
ModifyAckDeadlineRequest

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ModifyAckDeadlineRequest other)

public ModifyAckDeadlineRequest.Builder mergeFrom(ModifyAckDeadlineRequest other)
Parameter
NameDescription
otherModifyAckDeadlineRequest
Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModifyAckDeadlineRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 is 600 seconds (10 minutes).

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

Parameter
NameDescription
valueint

The ackDeadlineSeconds to set.

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

The index to set the value at.

valueString

The ackIds to set.

Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The subscription to set.

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

The bytes for subscription to set.

Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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