Class ComputeHeadCursorResponse.Builder (1.4.12)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeHeadCursorResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

build()

public ComputeHeadCursorResponse build()
Returns
TypeDescription
ComputeHeadCursorResponse

buildPartial()

public ComputeHeadCursorResponse buildPartial()
Returns
TypeDescription
ComputeHeadCursorResponse

clear()

public ComputeHeadCursorResponse.Builder clear()
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeHeadCursorResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

clearHeadCursor()

public ComputeHeadCursorResponse.Builder clearHeadCursor()

The head cursor.

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

Returns
TypeDescription
ComputeHeadCursorResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeHeadCursorResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

clone()

public ComputeHeadCursorResponse.Builder clone()
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

getDefaultInstanceForType()

public ComputeHeadCursorResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeHeadCursorResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeadCursor()

public Cursor getHeadCursor()

The head cursor.

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

Returns
TypeDescription
Cursor

The headCursor.

getHeadCursorBuilder()

public Cursor.Builder getHeadCursorBuilder()

The head cursor.

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

Returns
TypeDescription
Cursor.Builder

getHeadCursorOrBuilder()

public CursorOrBuilder getHeadCursorOrBuilder()

The head cursor.

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

Returns
TypeDescription
CursorOrBuilder

hasHeadCursor()

public boolean hasHeadCursor()

The head cursor.

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

Returns
TypeDescription
boolean

Whether the headCursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComputeHeadCursorResponse other)

public ComputeHeadCursorResponse.Builder mergeFrom(ComputeHeadCursorResponse other)
Parameter
NameDescription
otherComputeHeadCursorResponse
Returns
TypeDescription
ComputeHeadCursorResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeHeadCursorResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ComputeHeadCursorResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

mergeHeadCursor(Cursor value)

public ComputeHeadCursorResponse.Builder mergeHeadCursor(Cursor value)

The head cursor.

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

Parameter
NameDescription
valueCursor
Returns
TypeDescription
ComputeHeadCursorResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeHeadCursorResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeHeadCursorResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

setHeadCursor(Cursor value)

public ComputeHeadCursorResponse.Builder setHeadCursor(Cursor value)

The head cursor.

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

Parameter
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
ComputeHeadCursorResponse.Builder

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

public ComputeHeadCursorResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeHeadCursorResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeHeadCursorResponse.Builder
Overrides