public static final class ComputeHeadCursorResponse.Builder extends GeneratedMessageV3.Builder<ComputeHeadCursorResponse.Builder> implements ComputeHeadCursorResponseOrBuilder
Response containing the head cursor for the requested topic and partition.
Protobuf type google.cloud.pubsublite.v1.ComputeHeadCursorResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeHeadCursorResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ComputeHeadCursorResponse build()
Returns
buildPartial()
public ComputeHeadCursorResponse buildPartial()
Returns
clear()
public ComputeHeadCursorResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ComputeHeadCursorResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearHeadCursor()
public ComputeHeadCursorResponse.Builder clearHeadCursor()
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeHeadCursorResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ComputeHeadCursorResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ComputeHeadCursorResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getHeadCursor()
public Cursor getHeadCursor()
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Returns
Type | Description |
Cursor | The headCursor.
|
getHeadCursorBuilder()
public Cursor.Builder getHeadCursorBuilder()
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Returns
getHeadCursorOrBuilder()
public CursorOrBuilder getHeadCursorOrBuilder()
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Returns
hasHeadCursor()
public boolean hasHeadCursor()
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Returns
Type | Description |
boolean | Whether the headCursor field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ComputeHeadCursorResponse other)
public ComputeHeadCursorResponse.Builder mergeFrom(ComputeHeadCursorResponse other)
Parameter
Returns
public ComputeHeadCursorResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ComputeHeadCursorResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeHeadCursor(Cursor value)
public ComputeHeadCursorResponse.Builder mergeHeadCursor(Cursor value)
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeHeadCursorResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeHeadCursorResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setHeadCursor(Cursor value)
public ComputeHeadCursorResponse.Builder setHeadCursor(Cursor value)
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Parameter
Returns
setHeadCursor(Cursor.Builder builderForValue)
public ComputeHeadCursorResponse.Builder setHeadCursor(Cursor.Builder builderForValue)
The head cursor.
.google.cloud.pubsublite.v1.Cursor head_cursor = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeHeadCursorResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeHeadCursorResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides