Class SequencedCommitCursorResponse.Builder (1.8.0)

public static final class SequencedCommitCursorResponse.Builder extends GeneratedMessageV3.Builder<SequencedCommitCursorResponse.Builder> implements SequencedCommitCursorResponseOrBuilder

Response to a SequencedCommitCursorRequest.

Protobuf type google.cloud.pubsublite.v1.SequencedCommitCursorResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SequencedCommitCursorResponse build()
Returns
TypeDescription
SequencedCommitCursorResponse

buildPartial()

public SequencedCommitCursorResponse buildPartial()
Returns
TypeDescription
SequencedCommitCursorResponse

clear()

public SequencedCommitCursorResponse.Builder clear()
Returns
TypeDescription
SequencedCommitCursorResponse.Builder
Overrides

clearAcknowledgedCommits()

public SequencedCommitCursorResponse.Builder clearAcknowledgedCommits()

The number of outstanding SequencedCommitCursorRequests acknowledged by this response. Note that SequencedCommitCursorRequests are acknowledged in the order that they are received.

int64 acknowledged_commits = 1;

Returns
TypeDescription
SequencedCommitCursorResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SequencedCommitCursorResponse.Builder clone()
Returns
TypeDescription
SequencedCommitCursorResponse.Builder
Overrides

getAcknowledgedCommits()

public long getAcknowledgedCommits()

The number of outstanding SequencedCommitCursorRequests acknowledged by this response. Note that SequencedCommitCursorRequests are acknowledged in the order that they are received.

int64 acknowledged_commits = 1;

Returns
TypeDescription
long

The acknowledgedCommits.

getDefaultInstanceForType()

public SequencedCommitCursorResponse getDefaultInstanceForType()
Returns
TypeDescription
SequencedCommitCursorResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SequencedCommitCursorResponse other)

public SequencedCommitCursorResponse.Builder mergeFrom(SequencedCommitCursorResponse other)
Parameter
NameDescription
otherSequencedCommitCursorResponse
Returns
TypeDescription
SequencedCommitCursorResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAcknowledgedCommits(long value)

public SequencedCommitCursorResponse.Builder setAcknowledgedCommits(long value)

The number of outstanding SequencedCommitCursorRequests acknowledged by this response. Note that SequencedCommitCursorRequests are acknowledged in the order that they are received.

int64 acknowledged_commits = 1;

Parameter
NameDescription
valuelong

The acknowledgedCommits to set.

Returns
TypeDescription
SequencedCommitCursorResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SequencedCommitCursorResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SequencedCommitCursorResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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