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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cursor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Cursor |
|
buildPartial()
public Cursor buildPartial()
Returns |
Type |
Description |
Cursor |
|
clear()
public Cursor.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Cursor.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOffset()
public Cursor.Builder clearOffset()
The offset of a message within a topic partition. Must be greater than or
equal 0.
int64 offset = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Cursor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Cursor.Builder clone()
Overrides
getDefaultInstanceForType()
public Cursor getDefaultInstanceForType()
Returns |
Type |
Description |
Cursor |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Cursor other)
public Cursor.Builder mergeFrom(Cursor other)
Parameter |
Name |
Description |
other |
Cursor
|
public Cursor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Cursor.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cursor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Cursor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cursor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Cursor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides