Class ComputeTimeCursorResponse.Builder (1.16.5)

public static final class ComputeTimeCursorResponse.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public ComputeTimeCursorResponse build()
Returns
Type Description
ComputeTimeCursorResponse

buildPartial()

public ComputeTimeCursorResponse buildPartial()
Returns
Type Description
ComputeTimeCursorResponse

clear()

public ComputeTimeCursorResponse.Builder clear()
Returns
Type Description
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
Type Description
ComputeTimeCursorResponse.Builder

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
Type Description
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
Type Description
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
Type Description
CursorOrBuilder

getDefaultInstanceForType()

public ComputeTimeCursorResponse getDefaultInstanceForType()
Returns
Type Description
ComputeTimeCursorResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
boolean

Whether the cursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Cursor
Returns
Type Description
ComputeTimeCursorResponse.Builder

mergeFrom(ComputeTimeCursorResponse other)

public ComputeTimeCursorResponse.Builder mergeFrom(ComputeTimeCursorResponse other)
Parameter
Name Description
other ComputeTimeCursorResponse
Returns
Type Description
ComputeTimeCursorResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeTimeCursorResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeTimeCursorResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Cursor
Returns
Type Description
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
Name Description
builderForValue Cursor.Builder
Returns
Type Description
ComputeTimeCursorResponse.Builder