public static final class StreamingPullResponse.AcknowledgeConfirmation.Builder extends GeneratedMessageV3.Builder<StreamingPullResponse.AcknowledgeConfirmation.Builder> implements StreamingPullResponse.AcknowledgeConfirmationOrBuilder
Acknowledgement IDs sent in one or more previous requests to acknowledge a previously received message.
Protobuf type google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StreamingPullResponse.AcknowledgeConfirmation.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAckIds(String value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addAckIds(String value)
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Parameter | |
---|---|
Name | Description |
value | String The ackIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addAckIdsBytes(ByteString value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addAckIdsBytes(ByteString value)
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the ackIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addAllAckIds(Iterable<String> values)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllAckIds(Iterable<String> values)
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The ackIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addAllInvalidAckIds(Iterable<String> values)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllInvalidAckIds(Iterable<String> values)
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The invalidAckIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addAllUnorderedAckIds(Iterable<String> values)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllUnorderedAckIds(Iterable<String> values)
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The unorderedAckIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addInvalidAckIds(String value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addInvalidAckIds(String value)
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Parameter | |
---|---|
Name | Description |
value | String The invalidAckIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addInvalidAckIdsBytes(ByteString value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addInvalidAckIdsBytes(ByteString value)
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the invalidAckIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
addUnorderedAckIds(String value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addUnorderedAckIds(String value)
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Parameter | |
---|---|
Name | Description |
value | String The unorderedAckIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
addUnorderedAckIdsBytes(ByteString value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder addUnorderedAckIdsBytes(ByteString value)
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the unorderedAckIds to add. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
build()
public StreamingPullResponse.AcknowledgeConfirmation build()
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation |
buildPartial()
public StreamingPullResponse.AcknowledgeConfirmation buildPartial()
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation |
clear()
public StreamingPullResponse.AcknowledgeConfirmation.Builder clear()
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
clearAckIds()
public StreamingPullResponse.AcknowledgeConfirmation.Builder clearAckIds()
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public StreamingPullResponse.AcknowledgeConfirmation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
clearInvalidAckIds()
public StreamingPullResponse.AcknowledgeConfirmation.Builder clearInvalidAckIds()
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingPullResponse.AcknowledgeConfirmation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
clearUnorderedAckIds()
public StreamingPullResponse.AcknowledgeConfirmation.Builder clearUnorderedAckIds()
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
clone()
public StreamingPullResponse.AcknowledgeConfirmation.Builder clone()
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
getAckIds(int index)
public String getAckIds(int index)
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
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)
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
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()
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Returns | |
---|---|
Type | Description |
int | The count of ackIds. |
getAckIdsList()
public ProtocolStringList getAckIdsList()
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the ackIds. |
getDefaultInstanceForType()
public StreamingPullResponse.AcknowledgeConfirmation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getInvalidAckIds(int index)
public String getInvalidAckIds(int index)
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The invalidAckIds at the given index. |
getInvalidAckIdsBytes(int index)
public ByteString getInvalidAckIdsBytes(int index)
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the invalidAckIds at the given index. |
getInvalidAckIdsCount()
public int getInvalidAckIdsCount()
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Returns | |
---|---|
Type | Description |
int | The count of invalidAckIds. |
getInvalidAckIdsList()
public ProtocolStringList getInvalidAckIdsList()
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the invalidAckIds. |
getUnorderedAckIds(int index)
public String getUnorderedAckIds(int index)
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The unorderedAckIds at the given index. |
getUnorderedAckIdsBytes(int index)
public ByteString getUnorderedAckIdsBytes(int index)
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the unorderedAckIds at the given index. |
getUnorderedAckIdsCount()
public int getUnorderedAckIdsCount()
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Returns | |
---|---|
Type | Description |
int | The count of unorderedAckIds. |
getUnorderedAckIdsList()
public ProtocolStringList getUnorderedAckIdsList()
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the unorderedAckIds. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StreamingPullResponse.AcknowledgeConfirmation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public StreamingPullResponse.AcknowledgeConfirmation.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
mergeFrom(StreamingPullResponse.AcknowledgeConfirmation other)
public StreamingPullResponse.AcknowledgeConfirmation.Builder mergeFrom(StreamingPullResponse.AcknowledgeConfirmation other)
Parameter | |
---|---|
Name | Description |
other | StreamingPullResponse.AcknowledgeConfirmation |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingPullResponse.AcknowledgeConfirmation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
setAckIds(int index, String value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder setAckIds(int index, String value)
Successfully processed acknowledgement IDs.
repeated string ack_ids = 1;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The ackIds to set. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
setInvalidAckIds(int index, String value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder setInvalidAckIds(int index, String value)
List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.
repeated string invalid_ack_ids = 2;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The invalidAckIds to set. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingPullResponse.AcknowledgeConfirmation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder |
setUnorderedAckIds(int index, String value)
public StreamingPullResponse.AcknowledgeConfirmation.Builder setUnorderedAckIds(int index, String value)
List of acknowledgement IDs that were out of order.
repeated string unordered_ack_ids = 3;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The unorderedAckIds to set. |
Returns | |
---|---|
Type | Description |
StreamingPullResponse.AcknowledgeConfirmation.Builder | This builder for chaining. |