public static final class CommitCursorRequest.Builder extends GeneratedMessageV3.Builder<CommitCursorRequest.Builder> implements CommitCursorRequestOrBuilder
Request for CommitCursor.
Protobuf type google.cloud.pubsublite.v1.CommitCursorRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CommitCursorRequest.BuilderImplements
CommitCursorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommitCursorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CommitCursorRequest.Builder |
build()
public CommitCursorRequest build()
Type | Description |
CommitCursorRequest |
buildPartial()
public CommitCursorRequest buildPartial()
Type | Description |
CommitCursorRequest |
clear()
public CommitCursorRequest.Builder clear()
Type | Description |
CommitCursorRequest.Builder |
clearCursor()
public CommitCursorRequest.Builder clearCursor()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Type | Description |
CommitCursorRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CommitCursorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CommitCursorRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CommitCursorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CommitCursorRequest.Builder |
clearPartition()
public CommitCursorRequest.Builder clearPartition()
The partition for which to update the cursor. Partitions are zero indexed,
so partition
must be in the range [0, topic.num_partitions).
int64 partition = 2;
Type | Description |
CommitCursorRequest.Builder | This builder for chaining. |
clearSubscription()
public CommitCursorRequest.Builder clearSubscription()
The subscription for which to update the cursor.
string subscription = 1;
Type | Description |
CommitCursorRequest.Builder | This builder for chaining. |
clone()
public CommitCursorRequest.Builder clone()
Type | Description |
CommitCursorRequest.Builder |
getCursor()
public Cursor getCursor()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Type | Description |
Cursor | The cursor. |
getCursorBuilder()
public Cursor.Builder getCursorBuilder()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Type | Description |
Cursor.Builder |
getCursorOrBuilder()
public CursorOrBuilder getCursorOrBuilder()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Type | Description |
CursorOrBuilder |
getDefaultInstanceForType()
public CommitCursorRequest getDefaultInstanceForType()
Type | Description |
CommitCursorRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getPartition()
public long getPartition()
The partition for which to update the cursor. Partitions are zero indexed,
so partition
must be in the range [0, topic.num_partitions).
int64 partition = 2;
Type | Description |
long | The partition. |
getSubscription()
public String getSubscription()
The subscription for which to update the cursor.
string subscription = 1;
Type | Description |
String | The subscription. |
getSubscriptionBytes()
public ByteString getSubscriptionBytes()
The subscription for which to update the cursor.
string subscription = 1;
Type | Description |
ByteString | The bytes for subscription. |
hasCursor()
public boolean hasCursor()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Type | Description |
boolean | Whether the cursor field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCursor(Cursor value)
public CommitCursorRequest.Builder mergeCursor(Cursor value)
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Name | Description |
value | Cursor |
Type | Description |
CommitCursorRequest.Builder |
mergeFrom(CommitCursorRequest other)
public CommitCursorRequest.Builder mergeFrom(CommitCursorRequest other)
Name | Description |
other | CommitCursorRequest |
Type | Description |
CommitCursorRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CommitCursorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitCursorRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CommitCursorRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CommitCursorRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommitCursorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CommitCursorRequest.Builder |
setCursor(Cursor value)
public CommitCursorRequest.Builder setCursor(Cursor value)
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Name | Description |
value | Cursor |
Type | Description |
CommitCursorRequest.Builder |
setCursor(Cursor.Builder builderForValue)
public CommitCursorRequest.Builder setCursor(Cursor.Builder builderForValue)
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Name | Description |
builderForValue | Cursor.Builder |
Type | Description |
CommitCursorRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CommitCursorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CommitCursorRequest.Builder |
setPartition(long value)
public CommitCursorRequest.Builder setPartition(long value)
The partition for which to update the cursor. Partitions are zero indexed,
so partition
must be in the range [0, topic.num_partitions).
int64 partition = 2;
Name | Description |
value | long The partition to set. |
Type | Description |
CommitCursorRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommitCursorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CommitCursorRequest.Builder |
setSubscription(String value)
public CommitCursorRequest.Builder setSubscription(String value)
The subscription for which to update the cursor.
string subscription = 1;
Name | Description |
value | String The subscription to set. |
Type | Description |
CommitCursorRequest.Builder | This builder for chaining. |
setSubscriptionBytes(ByteString value)
public CommitCursorRequest.Builder setSubscriptionBytes(ByteString value)
The subscription for which to update the cursor.
string subscription = 1;
Name | Description |
value | ByteString The bytes for subscription to set. |
Type | Description |
CommitCursorRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CommitCursorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CommitCursorRequest.Builder |