Class InitialSubscribeResponse.Builder (1.14.7)

public static final class InitialSubscribeResponse.Builder extends GeneratedMessageV3.Builder<InitialSubscribeResponse.Builder> implements InitialSubscribeResponseOrBuilder

Response to an InitialSubscribeRequest.

Protobuf type google.cloud.pubsublite.v1.InitialSubscribeResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InitialSubscribeResponse build()
Returns
Type Description
InitialSubscribeResponse

buildPartial()

public InitialSubscribeResponse buildPartial()
Returns
Type Description
InitialSubscribeResponse

clear()

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

clearCursor()

public InitialSubscribeResponse.Builder clearCursor()

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Returns
Type Description
InitialSubscribeResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCursor()

public Cursor getCursor()

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Returns
Type Description
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Returns
Type Description
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Returns
Type Description
CursorOrBuilder

getDefaultInstanceForType()

public InitialSubscribeResponse getDefaultInstanceForType()
Returns
Type Description
InitialSubscribeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasCursor()

public boolean hasCursor()

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Returns
Type Description
boolean

Whether the cursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCursor(Cursor value)

public InitialSubscribeResponse.Builder mergeCursor(Cursor value)

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Parameter
Name Description
value Cursor
Returns
Type Description
InitialSubscribeResponse.Builder

mergeFrom(InitialSubscribeResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCursor(Cursor value)

public InitialSubscribeResponse.Builder setCursor(Cursor value)

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

Parameter
Name Description
value Cursor
Returns
Type Description
InitialSubscribeResponse.Builder

setCursor(Cursor.Builder builderForValue)

public InitialSubscribeResponse.Builder setCursor(Cursor.Builder builderForValue)

The cursor from which the subscriber will start receiving messages once flow control tokens become available.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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