public static final class ModifyAckDeadlineRequest.Builder extends GeneratedMessage.Builder<ModifyAckDeadlineRequest.Builder> implements ModifyAckDeadlineRequestOrBuilderRequest for the ModifyAckDeadline method.
Protobuf type google.pubsub.v1.ModifyAckDeadlineRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ModifyAckDeadlineRequest.BuilderImplements
ModifyAckDeadlineRequestOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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. |
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 |
|
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. |
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. |
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 |
intThe 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 |
intThe 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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ModifyAckDeadlineRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ModifyAckDeadlineRequest.Builder |
|
mergeFrom(ModifyAckDeadlineRequest other)
public ModifyAckDeadlineRequest.Builder mergeFrom(ModifyAckDeadlineRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ModifyAckDeadlineRequest |
| Returns | |
|---|---|
| Type | Description |
ModifyAckDeadlineRequest.Builder |
|
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 |
intThe 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 |
intThe index to set the value at. |
value |
StringThe ackIds to set. |
| Returns | |
|---|---|
| Type | Description |
ModifyAckDeadlineRequest.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for subscription to set. |
| Returns | |
|---|---|
| Type | Description |
ModifyAckDeadlineRequest.Builder |
This builder for chaining. |