public static final class Cursor.Builder extends GeneratedMessage.Builder<Cursor.Builder> implements CursorOrBuilderA cursor that describes the position of a message within a topic partition.
Protobuf type google.cloud.pubsublite.v1.Cursor
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Cursor.BuilderImplements
CursorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Cursor build()| Returns | |
|---|---|
| Type | Description |
Cursor |
|
buildPartial()
public Cursor buildPartial()| Returns | |
|---|---|
| Type | Description |
Cursor |
|
clear()
public Cursor.Builder clear()| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
|
clearOffset()
public Cursor.Builder clearOffset()The offset of a message within a topic partition. Must be greater than or equal 0.
int64 offset = 1;
| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Cursor getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Cursor |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOffset()
public long getOffset()The offset of a message within a topic partition. Must be greater than or equal 0.
int64 offset = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The offset. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Cursor other)
public Cursor.Builder mergeFrom(Cursor other)| Parameter | |
|---|---|
| Name | Description |
other |
Cursor |
| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Cursor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Cursor.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
|
setOffset(long value)
public Cursor.Builder setOffset(long value)The offset of a message within a topic partition. Must be greater than or equal 0.
int64 offset = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe offset to set. |
| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
This builder for chaining. |