Send feedback
Class PartitionCursor.Builder (1.9.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.9.4 keyboard_arrow_down
public static final class PartitionCursor . Builder extends GeneratedMessageV3 . Builder<PartitionCursor . Builder > implements PartitionCursorOrBuilder
A pair of a Cursor and the partition it is for.
Protobuf type google.cloud.pubsublite.v1.PartitionCursor
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PartitionCursor . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public PartitionCursor build ()
Returns
buildPartial()
public PartitionCursor buildPartial ()
Returns
clear()
public PartitionCursor . Builder clear ()
Returns
Overrides
clearCursor()
public PartitionCursor . Builder clearCursor ()
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public PartitionCursor . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PartitionCursor . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearPartition()
public PartitionCursor . Builder clearPartition ()
The partition this is for.
int64 partition = 1;
Returns
clone()
public PartitionCursor . Builder clone ()
Returns
Overrides
getCursor()
public Cursor getCursor ()
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns
Type Description Cursor
The cursor.
getCursorBuilder()
public Cursor . Builder getCursorBuilder ()
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns
getCursorOrBuilder()
public CursorOrBuilder getCursorOrBuilder ()
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns
getDefaultInstanceForType()
public PartitionCursor getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getPartition()
public long getPartition ()
The partition this is for.
int64 partition = 1;
Returns
Type Description long
The partition.
hasCursor()
public boolean hasCursor ()
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns
Type Description boolean
Whether the cursor field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeCursor(Cursor value)
public PartitionCursor . Builder mergeCursor ( Cursor value )
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Parameter
Returns
mergeFrom(PartitionCursor other)
public PartitionCursor . Builder mergeFrom ( PartitionCursor other )
Parameter
Returns
public PartitionCursor . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PartitionCursor . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PartitionCursor . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setCursor(Cursor value)
public PartitionCursor . Builder setCursor ( Cursor value )
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Parameter
Returns
setCursor(Cursor.Builder builderForValue)
public PartitionCursor . Builder setCursor ( Cursor . Builder builderForValue )
The value of the cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PartitionCursor . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setPartition(long value)
public PartitionCursor . Builder setPartition ( long value )
The partition this is for.
int64 partition = 1;
Parameter
Name Description value
long
The partition to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PartitionCursor . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PartitionCursor . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]