Class InitialSubscribeResponse.Builder (1.12.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InitialSubscribeResponse build()
Returns
TypeDescription
InitialSubscribeResponse

buildPartial()

public InitialSubscribeResponse buildPartial()
Returns
TypeDescription
InitialSubscribeResponse

clear()

public InitialSubscribeResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
InitialSubscribeResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public InitialSubscribeResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public InitialSubscribeResponse getDefaultInstanceForType()
Returns
TypeDescription
InitialSubscribeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the cursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
InitialSubscribeResponse.Builder

mergeFrom(InitialSubscribeResponse other)

public InitialSubscribeResponse.Builder mergeFrom(InitialSubscribeResponse other)
Parameter
NameDescription
otherInitialSubscribeResponse
Returns
TypeDescription
InitialSubscribeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InitialSubscribeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
InitialSubscribeResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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