public static final class Cursor.Builder extends GeneratedMessageV3.Builder<Cursor.Builder> implements CursorOrBuilder
A cursor that describes the position of a message within a topic partition.
Protobuf type google.cloud.pubsublite.v1.Cursor
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Cursor.BuilderImplements
CursorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cursor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Cursor.Builder |
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 |
clearField(Descriptors.FieldDescriptor field)
public Cursor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Cursor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Cursor.Builder |
clone()
public Cursor.Builder clone()
Returns | |
---|---|
Type | Description |
Cursor.Builder |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cursor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Cursor.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Cursor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
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 |
long The offset to set. |
Returns | |
---|---|
Type | Description |
Cursor.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cursor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Cursor.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Cursor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Cursor.Builder |