Class ModifyAckDeadlineRequest (1.119.1)

public final class ModifyAckDeadlineRequest extends GeneratedMessageV3 implements ModifyAckDeadlineRequestOrBuilder

Request for the ModifyAckDeadline method.

Protobuf type google.pubsub.v1.ModifyAckDeadlineRequest

Static Fields

ACK_DEADLINE_SECONDS_FIELD_NUMBER

public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

ACK_IDS_FIELD_NUMBER

public static final int ACK_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIPTION_FIELD_NUMBER

public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ModifyAckDeadlineRequest getDefaultInstance()
Returns
TypeDescription
ModifyAckDeadlineRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ModifyAckDeadlineRequest.Builder newBuilder()
Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

newBuilder(ModifyAckDeadlineRequest prototype)

public static ModifyAckDeadlineRequest.Builder newBuilder(ModifyAckDeadlineRequest prototype)
Parameter
NameDescription
prototypeModifyAckDeadlineRequest
Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

parseDelimitedFrom(InputStream input)

public static ModifyAckDeadlineRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModifyAckDeadlineRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ModifyAckDeadlineRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ModifyAckDeadlineRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ModifyAckDeadlineRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ModifyAckDeadlineRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ModifyAckDeadlineRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ModifyAckDeadlineRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ModifyAckDeadlineRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModifyAckDeadlineRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ModifyAckDeadlineRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ModifyAckDeadlineRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModifyAckDeadlineRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ModifyAckDeadlineRequest> parser()
Returns
TypeDescription
Parser<ModifyAckDeadlineRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<ModifyAckDeadlineRequest> getParserForType()
Returns
TypeDescription
Parser<ModifyAckDeadlineRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ModifyAckDeadlineRequest.Builder newBuilderForType()
Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ModifyAckDeadlineRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ModifyAckDeadlineRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ModifyAckDeadlineRequest.Builder toBuilder()
Returns
TypeDescription
ModifyAckDeadlineRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException