public static final class ComputeHeadCursorRequest.Builder extends GeneratedMessageV3.Builder<ComputeHeadCursorRequest.Builder> implements ComputeHeadCursorRequestOrBuilder
Compute the current head cursor for a partition.
Protobuf type google.cloud.pubsublite.v1.ComputeHeadCursorRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ComputeHeadCursorRequest.BuilderImplements
ComputeHeadCursorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeHeadCursorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ComputeHeadCursorRequest.Builder |
build()
public ComputeHeadCursorRequest build()
Type | Description |
ComputeHeadCursorRequest |
buildPartial()
public ComputeHeadCursorRequest buildPartial()
Type | Description |
ComputeHeadCursorRequest |
clear()
public ComputeHeadCursorRequest.Builder clear()
Type | Description |
ComputeHeadCursorRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public ComputeHeadCursorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ComputeHeadCursorRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeHeadCursorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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];
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) = { ... }
Type | Description |
ComputeHeadCursorRequest.Builder | This builder for chaining. |
clone()
public ComputeHeadCursorRequest.Builder clone()
Type | Description |
ComputeHeadCursorRequest.Builder |
getDefaultInstanceForType()
public ComputeHeadCursorRequest getDefaultInstanceForType()
Type | Description |
ComputeHeadCursorRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for topic. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ComputeHeadCursorRequest other)
public ComputeHeadCursorRequest.Builder mergeFrom(ComputeHeadCursorRequest other)
Name | Description |
other | ComputeHeadCursorRequest |
Type | Description |
ComputeHeadCursorRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ComputeHeadCursorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeHeadCursorRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ComputeHeadCursorRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ComputeHeadCursorRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeHeadCursorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ComputeHeadCursorRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeHeadCursorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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];
Name | Description |
value | long The partition to set. |
Type | Description |
ComputeHeadCursorRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeHeadCursorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ComputeHeadCursorRequest.Builder |
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) = { ... }
Name | Description |
value | String The topic to set. |
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) = { ... }
Name | Description |
value | ByteString The bytes for topic to set. |
Type | Description |
ComputeHeadCursorRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeHeadCursorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ComputeHeadCursorRequest.Builder |