Class StreamingPullResponse.AcknowledgeConfirmation.Builder (1.127.3)

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

Static Methods

getDescriptor()

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

Methods

addAckIds(String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addAckIds(String value)

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The ackIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addAckIdsBytes(ByteString value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addAckIdsBytes(ByteString value)

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the ackIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addAllAckIds(Iterable<String> values)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllAckIds(Iterable<String> values)

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The ackIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addAllInvalidAckIds(Iterable<String> values)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllInvalidAckIds(Iterable<String> values)

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The invalidAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addAllTemporaryFailedAckIds(Iterable<String> values)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllTemporaryFailedAckIds(Iterable<String> values)

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The temporaryFailedAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addAllUnorderedAckIds(Iterable<String> values)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addAllUnorderedAckIds(Iterable<String> values)

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The unorderedAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addInvalidAckIds(String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addInvalidAckIds(String value)

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The invalidAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addInvalidAckIdsBytes(ByteString value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addInvalidAckIdsBytes(ByteString value)

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the invalidAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTemporaryFailedAckIds(String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addTemporaryFailedAckIds(String value)

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The temporaryFailedAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addTemporaryFailedAckIdsBytes(ByteString value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addTemporaryFailedAckIdsBytes(ByteString value)

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the temporaryFailedAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addUnorderedAckIds(String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addUnorderedAckIds(String value)

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The unorderedAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

addUnorderedAckIdsBytes(ByteString value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder addUnorderedAckIdsBytes(ByteString value)

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the unorderedAckIds to add.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

build()

public StreamingPullResponse.AcknowledgeConfirmation build()
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation

buildPartial()

public StreamingPullResponse.AcknowledgeConfirmation buildPartial()
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation

clear()

public StreamingPullResponse.AcknowledgeConfirmation.Builder clear()
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder
Overrides

clearAckIds()

public StreamingPullResponse.AcknowledgeConfirmation.Builder clearAckIds()

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInvalidAckIds()

public StreamingPullResponse.AcknowledgeConfirmation.Builder clearInvalidAckIds()

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingPullResponse.AcknowledgeConfirmation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder
Overrides

clearTemporaryFailedAckIds()

public StreamingPullResponse.AcknowledgeConfirmation.Builder clearTemporaryFailedAckIds()

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

clearUnorderedAckIds()

public StreamingPullResponse.AcknowledgeConfirmation.Builder clearUnorderedAckIds()

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

clone()

public StreamingPullResponse.AcknowledgeConfirmation.Builder clone()
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder
Overrides

getAckIds(int index)

public String getAckIds(int index)

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of ackIds.

getAckIdsList()

public ProtocolStringList getAckIdsList()

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the ackIds.

getDefaultInstanceForType()

public StreamingPullResponse.AcknowledgeConfirmation getDefaultInstanceForType()
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInvalidAckIds(int index)

public String getInvalidAckIds(int index)

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The invalidAckIds at the given index.

getInvalidAckIdsBytes(int index)

public ByteString getInvalidAckIdsBytes(int index)

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the invalidAckIds at the given index.

getInvalidAckIdsCount()

public int getInvalidAckIdsCount()

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of invalidAckIds.

getInvalidAckIdsList()

public ProtocolStringList getInvalidAckIdsList()

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the invalidAckIds.

getTemporaryFailedAckIds(int index)

public String getTemporaryFailedAckIds(int index)

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The temporaryFailedAckIds at the given index.

getTemporaryFailedAckIdsBytes(int index)

public ByteString getTemporaryFailedAckIdsBytes(int index)

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the temporaryFailedAckIds at the given index.

getTemporaryFailedAckIdsCount()

public int getTemporaryFailedAckIdsCount()

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of temporaryFailedAckIds.

getTemporaryFailedAckIdsList()

public ProtocolStringList getTemporaryFailedAckIdsList()

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the temporaryFailedAckIds.

getUnorderedAckIds(int index)

public String getUnorderedAckIds(int index)

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unorderedAckIds at the given index.

getUnorderedAckIdsBytes(int index)

public ByteString getUnorderedAckIdsBytes(int index)

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unorderedAckIds at the given index.

getUnorderedAckIdsCount()

public int getUnorderedAckIdsCount()

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of unorderedAckIds.

getUnorderedAckIdsList()

public ProtocolStringList getUnorderedAckIdsList()

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the unorderedAckIds.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(StreamingPullResponse.AcknowledgeConfirmation other)

public StreamingPullResponse.AcknowledgeConfirmation.Builder mergeFrom(StreamingPullResponse.AcknowledgeConfirmation other)
Parameter
NameDescription
otherStreamingPullResponse.AcknowledgeConfirmation
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingPullResponse.AcknowledgeConfirmation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder
Overrides

setAckIds(int index, String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder setAckIds(int index, String value)

Optional. Successfully processed acknowledgement IDs.

repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The ackIds to set.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInvalidAckIds(int index, String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder setInvalidAckIds(int index, String value)

Optional. List of acknowledgement IDs that were malformed or whose acknowledgement deadline has expired.

repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The invalidAckIds to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder
Overrides

setTemporaryFailedAckIds(int index, String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder setTemporaryFailedAckIds(int index, String value)

Optional. List of acknowledgement IDs that failed processing with temporary issues.

repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The temporaryFailedAckIds to set.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnorderedAckIds(int index, String value)

public StreamingPullResponse.AcknowledgeConfirmation.Builder setUnorderedAckIds(int index, String value)

Optional. List of acknowledgement IDs that were out of order.

repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unorderedAckIds to set.

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

This builder for chaining.