public static final class AcknowledgeRequest.Builder extends GeneratedMessageV3.Builder<AcknowledgeRequest.Builder> implements AcknowledgeRequestOrBuilderRequest for the Acknowledge method.
Protobuf type google.pubsub.v1.AcknowledgeRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AcknowledgeRequest.BuilderImplements
AcknowledgeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAckIds(String value)
public AcknowledgeRequest.Builder addAckIds(String value) Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe ackIds to add. |
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
addAckIdsBytes(ByteString value)
public AcknowledgeRequest.Builder addAckIdsBytes(ByteString value) Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes of the ackIds to add. |
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
addAllAckIds(Iterable<String> values)
public AcknowledgeRequest.Builder addAllAckIds(Iterable<String> values) Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| values | Iterable<String>The ackIds to add. |
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcknowledgeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AcknowledgeRequest.Builder |
build()
public AcknowledgeRequest build()| Type | Description |
| AcknowledgeRequest |
buildPartial()
public AcknowledgeRequest buildPartial()| Type | Description |
| AcknowledgeRequest |
clear()
public AcknowledgeRequest.Builder clear()| Type | Description |
| AcknowledgeRequest.Builder |
clearAckIds()
public AcknowledgeRequest.Builder clearAckIds() Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AcknowledgeRequest.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| AcknowledgeRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AcknowledgeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| AcknowledgeRequest.Builder |
clearSubscription()
public AcknowledgeRequest.Builder clearSubscription() Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
clone()
public AcknowledgeRequest.Builder clone()| Type | Description |
| AcknowledgeRequest.Builder |
getAckIds(int index)
public String getAckIds(int index) Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The ackIds at the given index. |
getAckIdsBytes(int index)
public ByteString getAckIdsBytes(int index) Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the ackIds at the given index. |
getAckIdsCount()
public int getAckIdsCount() Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| int | The count of ackIds. |
getAckIdsList()
public ProtocolStringList getAckIdsList() Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ProtocolStringList | A list containing the ackIds. |
getDefaultInstanceForType()
public AcknowledgeRequest getDefaultInstanceForType()| Type | Description |
| AcknowledgeRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getSubscription()
public String getSubscription() Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| String | The subscription. |
getSubscriptionBytes()
public ByteString getSubscriptionBytes() Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| ByteString | The bytes for subscription. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AcknowledgeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| AcknowledgeRequest.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public AcknowledgeRequest.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| AcknowledgeRequest.Builder |
mergeFrom(AcknowledgeRequest other)
public AcknowledgeRequest.Builder mergeFrom(AcknowledgeRequest other)| Name | Description |
| other | AcknowledgeRequest |
| Type | Description |
| AcknowledgeRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcknowledgeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AcknowledgeRequest.Builder |
setAckIds(int index, String value)
public AcknowledgeRequest.Builder setAckIds(int index, String value) Required. The acknowledgment ID for the messages being acknowledged that
was returned by the Pub/Sub system in the Pull response. Must not be
empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| index | intThe index to set the value at. |
| value | StringThe ackIds to set. |
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AcknowledgeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AcknowledgeRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AcknowledgeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| AcknowledgeRequest.Builder |
setSubscription(String value)
public AcknowledgeRequest.Builder setSubscription(String value) Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Name | Description |
| value | StringThe subscription to set. |
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
setSubscriptionBytes(ByteString value)
public AcknowledgeRequest.Builder setSubscriptionBytes(ByteString value) Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Name | Description |
| value | ByteStringThe bytes for subscription to set. |
| Type | Description |
| AcknowledgeRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AcknowledgeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AcknowledgeRequest.Builder |