Class SubscribeResponse.Builder (1.14.4)

public static final class SubscribeResponse.Builder extends GeneratedMessageV3.Builder<SubscribeResponse.Builder> implements SubscribeResponseOrBuilder

Response to SubscribeRequest.

Protobuf type google.cloud.pubsublite.v1.SubscribeResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscribeResponse build()
Returns
Type Description
SubscribeResponse

buildPartial()

public SubscribeResponse buildPartial()
Returns
Type Description
SubscribeResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInitial()

public SubscribeResponse.Builder clearInitial()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
SubscribeResponse.Builder

clearMessages()

public SubscribeResponse.Builder clearMessages()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
SubscribeResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResponse()

public SubscribeResponse.Builder clearResponse()
Returns
Type Description
SubscribeResponse.Builder

clearSeek()

public SubscribeResponse.Builder clearSeek()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
SubscribeResponse.Builder

clone()

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

getDefaultInstanceForType()

public SubscribeResponse getDefaultInstanceForType()
Returns
Type Description
SubscribeResponse

getDescriptorForType()

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

getInitial()

public InitialSubscribeResponse getInitial()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
InitialSubscribeResponse

The initial.

getInitialBuilder()

public InitialSubscribeResponse.Builder getInitialBuilder()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
InitialSubscribeResponse.Builder

getInitialOrBuilder()

public InitialSubscribeResponseOrBuilder getInitialOrBuilder()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
InitialSubscribeResponseOrBuilder

getMessages()

public MessageResponse getMessages()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
MessageResponse

The messages.

getMessagesBuilder()

public MessageResponse.Builder getMessagesBuilder()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
MessageResponse.Builder

getMessagesOrBuilder()

public MessageResponseOrBuilder getMessagesOrBuilder()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
MessageResponseOrBuilder

getResponseCase()

public SubscribeResponse.ResponseCase getResponseCase()
Returns
Type Description
SubscribeResponse.ResponseCase

getSeek()

public SeekResponse getSeek()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
SeekResponse

The seek.

getSeekBuilder()

public SeekResponse.Builder getSeekBuilder()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
SeekResponse.Builder

getSeekOrBuilder()

public SeekResponseOrBuilder getSeekOrBuilder()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
SeekResponseOrBuilder

hasInitial()

public boolean hasInitial()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
boolean

Whether the initial field is set.

hasMessages()

public boolean hasMessages()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
boolean

Whether the messages field is set.

hasSeek()

public boolean hasSeek()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
boolean

Whether the seek field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SubscribeResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInitial(InitialSubscribeResponse value)

public SubscribeResponse.Builder mergeInitial(InitialSubscribeResponse value)

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Parameter
Name Description
value InitialSubscribeResponse
Returns
Type Description
SubscribeResponse.Builder

mergeMessages(MessageResponse value)

public SubscribeResponse.Builder mergeMessages(MessageResponse value)

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Parameter
Name Description
value MessageResponse
Returns
Type Description
SubscribeResponse.Builder

mergeSeek(SeekResponse value)

public SubscribeResponse.Builder mergeSeek(SeekResponse value)

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Parameter
Name Description
value SeekResponse
Returns
Type Description
SubscribeResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInitial(InitialSubscribeResponse value)

public SubscribeResponse.Builder setInitial(InitialSubscribeResponse value)

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Parameter
Name Description
value InitialSubscribeResponse
Returns
Type Description
SubscribeResponse.Builder

setInitial(InitialSubscribeResponse.Builder builderForValue)

public SubscribeResponse.Builder setInitial(InitialSubscribeResponse.Builder builderForValue)

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

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

setMessages(MessageResponse value)

public SubscribeResponse.Builder setMessages(MessageResponse value)

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Parameter
Name Description
value MessageResponse
Returns
Type Description
SubscribeResponse.Builder

setMessages(MessageResponse.Builder builderForValue)

public SubscribeResponse.Builder setMessages(MessageResponse.Builder builderForValue)

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Parameter
Name Description
builderForValue MessageResponse.Builder
Returns
Type Description
SubscribeResponse.Builder

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

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

setSeek(SeekResponse value)

public SubscribeResponse.Builder setSeek(SeekResponse value)

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Parameter
Name Description
value SeekResponse
Returns
Type Description
SubscribeResponse.Builder

setSeek(SeekResponse.Builder builderForValue)

public SubscribeResponse.Builder setSeek(SeekResponse.Builder builderForValue)

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Parameter
Name Description
builderForValue SeekResponse.Builder
Returns
Type Description
SubscribeResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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