public static final class CommitCursorRequest.Builder extends GeneratedMessage.Builder<CommitCursorRequest.Builder> implements CommitCursorRequestOrBuilderRequest for CommitCursor.
Protobuf type google.cloud.pubsublite.v1.CommitCursorRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CommitCursorRequest.BuilderImplements
CommitCursorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CommitCursorRequest build()| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest |
|
buildPartial()
public CommitCursorRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest |
|
clear()
public CommitCursorRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
|
clearCursor()
public CommitCursorRequest.Builder clearCursor()The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
This builder for chaining. |
clearSubscription()
public CommitCursorRequest.Builder clearSubscription()The subscription for which to update the cursor.
string subscription = 1;
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
This builder for chaining. |
getCursor()
public Cursor getCursor()The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
| Returns | |
|---|---|
| Type | Description |
Cursor |
The cursor. |
getCursorBuilder()
public Cursor.Builder getCursorBuilder()The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
| Returns | |
|---|---|
| Type | Description |
Cursor.Builder |
|
getCursorOrBuilder()
public CursorOrBuilder getCursorOrBuilder()The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
| Returns | |
|---|---|
| Type | Description |
CursorOrBuilder |
|
getDefaultInstanceForType()
public CommitCursorRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description |
long |
The partition. |
getSubscription()
public String getSubscription()The subscription for which to update the cursor.
string subscription = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The subscription. |
getSubscriptionBytes()
public ByteString getSubscriptionBytes()The subscription for which to update the cursor.
string subscription = 1;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cursor field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
Cursor |
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
|
mergeFrom(CommitCursorRequest other)
public CommitCursorRequest.Builder mergeFrom(CommitCursorRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CommitCursorRequest |
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CommitCursorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CommitCursorRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
Cursor |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Cursor.Builder |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe partition to set. |
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
This builder for chaining. |
setSubscription(String value)
public CommitCursorRequest.Builder setSubscription(String value)The subscription for which to update the cursor.
string subscription = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe subscription to set. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for subscription to set. |
| Returns | |
|---|---|
| Type | Description |
CommitCursorRequest.Builder |
This builder for chaining. |