Class ComputeHeadCursorResponse.Builder (1.14.4)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeHeadCursorResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

build()

public ComputeHeadCursorResponse build()
Returns
Type Description
ComputeHeadCursorResponse

buildPartial()

public ComputeHeadCursorResponse buildPartial()
Returns
Type Description
ComputeHeadCursorResponse

clear()

public ComputeHeadCursorResponse.Builder clear()
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeHeadCursorResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

clearHeadCursor()

public ComputeHeadCursorResponse.Builder clearHeadCursor()

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Returns
Type Description
ComputeHeadCursorResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeHeadCursorResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

clone()

public ComputeHeadCursorResponse.Builder clone()
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

getDefaultInstanceForType()

public ComputeHeadCursorResponse getDefaultInstanceForType()
Returns
Type Description
ComputeHeadCursorResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
Cursor.Builder

getHeadCursorOrBuilder()

public CursorOrBuilder getHeadCursorOrBuilder()

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Returns
Type Description
CursorOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeHeadCursorResponse other)

public ComputeHeadCursorResponse.Builder mergeFrom(ComputeHeadCursorResponse other)
Parameter
Name Description
other ComputeHeadCursorResponse
Returns
Type Description
ComputeHeadCursorResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeHeadCursorResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeHeadCursorResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

mergeHeadCursor(Cursor value)

public ComputeHeadCursorResponse.Builder mergeHeadCursor(Cursor value)

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Parameter
Name Description
value Cursor
Returns
Type Description
ComputeHeadCursorResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeHeadCursorResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeHeadCursorResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

setHeadCursor(Cursor value)

public ComputeHeadCursorResponse.Builder setHeadCursor(Cursor value)

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Parameter
Name Description
value Cursor
Returns
Type Description
ComputeHeadCursorResponse.Builder

setHeadCursor(Cursor.Builder builderForValue)

public ComputeHeadCursorResponse.Builder setHeadCursor(Cursor.Builder builderForValue)

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Parameter
Name Description
builderForValue Cursor.Builder
Returns
Type Description
ComputeHeadCursorResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeHeadCursorResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeHeadCursorResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeHeadCursorResponse.Builder
Overrides