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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeHeadCursorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ComputeHeadCursorRequest build()
buildPartial()
public ComputeHeadCursorRequest buildPartial()
clear()
public ComputeHeadCursorRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ComputeHeadCursorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeHeadCursorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPartition()
public ComputeHeadCursorRequest.Builder clearPartition()
Required. The partition for which we should compute the head cursor.
int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
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) = { ... }
clone()
public ComputeHeadCursorRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public ComputeHeadCursorRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ComputeHeadCursorRequest other)
public ComputeHeadCursorRequest.Builder mergeFrom(ComputeHeadCursorRequest other)
public ComputeHeadCursorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ComputeHeadCursorRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeHeadCursorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeHeadCursorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 | long
The partition to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeHeadCursorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 | String
The topic to set.
|
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 | ByteString
The bytes for topic to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeHeadCursorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides