Class ComputeTimeCursorResponse.Builder (1.5.5)

public static final class ComputeTimeCursorResponse.Builder extends GeneratedMessageV3.Builder<ComputeTimeCursorResponse.Builder> implements ComputeTimeCursorResponseOrBuilder

Response containing the cursor corresponding to a publish or event time in a topic partition.

Protobuf type google.cloud.pubsublite.v1.ComputeTimeCursorResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeTimeCursorResponse build()
Returns
TypeDescription
ComputeTimeCursorResponse

buildPartial()

public ComputeTimeCursorResponse buildPartial()
Returns
TypeDescription
ComputeTimeCursorResponse

clear()

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

clearCursor()

public ComputeTimeCursorResponse.Builder clearCursor()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
ComputeTimeCursorResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCursor()

public Cursor getCursor()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public ComputeTimeCursorResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeTimeCursorResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCursor()

public boolean hasCursor()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
boolean

Whether the cursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCursor(Cursor value)

public ComputeTimeCursorResponse.Builder mergeCursor(Cursor value)

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Parameter
NameDescription
valueCursor
Returns
TypeDescription
ComputeTimeCursorResponse.Builder

mergeFrom(ComputeTimeCursorResponse other)

public ComputeTimeCursorResponse.Builder mergeFrom(ComputeTimeCursorResponse other)
Parameter
NameDescription
otherComputeTimeCursorResponse
Returns
TypeDescription
ComputeTimeCursorResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCursor(Cursor value)

public ComputeTimeCursorResponse.Builder setCursor(Cursor value)

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Parameter
NameDescription
valueCursor
Returns
TypeDescription
ComputeTimeCursorResponse.Builder

setCursor(Cursor.Builder builderForValue)

public ComputeTimeCursorResponse.Builder setCursor(Cursor.Builder builderForValue)

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Parameter
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
ComputeTimeCursorResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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