public static final class ComputeHeadCursorRequest.Builder extends GeneratedMessage.Builder<ComputeHeadCursorRequest.Builder> implements ComputeHeadCursorRequestOrBuilderCompute the current head cursor for a partition.
Protobuf type google.cloud.pubsublite.v1.ComputeHeadCursorRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ComputeHeadCursorRequest.BuilderImplements
ComputeHeadCursorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ComputeHeadCursorRequest build()| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest |
|
buildPartial()
public ComputeHeadCursorRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest |
|
clear()
public ComputeHeadCursorRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
|
clearPartition()
public ComputeHeadCursorRequest.Builder clearPartition()Required. The partition for which we should compute the head cursor.
int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
This builder for chaining. |
clearTopic()
public ComputeHeadCursorRequest.Builder clearTopic()Required. The topic for which we should compute the head cursor.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ComputeHeadCursorRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPartition()
public long getPartition()Required. The partition for which we should compute the head cursor.
int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The partition. |
getTopic()
public String getTopic()Required. The topic for which we should compute the head cursor.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The topic. |
getTopicBytes()
public ByteString getTopicBytes()Required. The topic for which we should compute the head cursor.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for topic. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ComputeHeadCursorRequest other)
public ComputeHeadCursorRequest.Builder mergeFrom(ComputeHeadCursorRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ComputeHeadCursorRequest |
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ComputeHeadCursorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ComputeHeadCursorRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
|
setPartition(long value)
public ComputeHeadCursorRequest.Builder setPartition(long value)Required. The partition for which we should compute the head cursor.
int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe partition to set. |
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
This builder for chaining. |
setTopic(String value)
public ComputeHeadCursorRequest.Builder setTopic(String value)Required. The topic for which we should compute the head cursor.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe topic to set. |
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
This builder for chaining. |
setTopicBytes(ByteString value)
public ComputeHeadCursorRequest.Builder setTopicBytes(ByteString value)Required. The topic for which we should compute the head cursor.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for topic to set. |
| Returns | |
|---|---|
| Type | Description |
ComputeHeadCursorRequest.Builder |
This builder for chaining. |