Class SubscribeResponse.Builder (1.13.2)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscribeResponse build()
Returns
TypeDescription
SubscribeResponse

buildPartial()

public SubscribeResponse buildPartial()
Returns
TypeDescription
SubscribeResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInitial()

public SubscribeResponse.Builder clearInitial()

Initial response on the stream.

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

Returns
TypeDescription
SubscribeResponse.Builder

clearMessages()

public SubscribeResponse.Builder clearMessages()

Response containing messages from the topic partition.

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

Returns
TypeDescription
SubscribeResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResponse()

public SubscribeResponse.Builder clearResponse()
Returns
TypeDescription
SubscribeResponse.Builder

clearSeek()

public SubscribeResponse.Builder clearSeek()

Response to a Seek operation.

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

Returns
TypeDescription
SubscribeResponse.Builder

clone()

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

getDefaultInstanceForType()

public SubscribeResponse getDefaultInstanceForType()
Returns
TypeDescription
SubscribeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInitial()

public InitialSubscribeResponse getInitial()

Initial response on the stream.

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

Returns
TypeDescription
InitialSubscribeResponse

The initial.

getInitialBuilder()

public InitialSubscribeResponse.Builder getInitialBuilder()

Initial response on the stream.

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

Returns
TypeDescription
InitialSubscribeResponse.Builder

getInitialOrBuilder()

public InitialSubscribeResponseOrBuilder getInitialOrBuilder()

Initial response on the stream.

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

Returns
TypeDescription
InitialSubscribeResponseOrBuilder

getMessages()

public MessageResponse getMessages()

Response containing messages from the topic partition.

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

Returns
TypeDescription
MessageResponse

The messages.

getMessagesBuilder()

public MessageResponse.Builder getMessagesBuilder()

Response containing messages from the topic partition.

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

Returns
TypeDescription
MessageResponse.Builder

getMessagesOrBuilder()

public MessageResponseOrBuilder getMessagesOrBuilder()

Response containing messages from the topic partition.

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

Returns
TypeDescription
MessageResponseOrBuilder

getResponseCase()

public SubscribeResponse.ResponseCase getResponseCase()
Returns
TypeDescription
SubscribeResponse.ResponseCase

getSeek()

public SeekResponse getSeek()

Response to a Seek operation.

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

Returns
TypeDescription
SeekResponse

The seek.

getSeekBuilder()

public SeekResponse.Builder getSeekBuilder()

Response to a Seek operation.

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

Returns
TypeDescription
SeekResponse.Builder

getSeekOrBuilder()

public SeekResponseOrBuilder getSeekOrBuilder()

Response to a Seek operation.

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

Returns
TypeDescription
SeekResponseOrBuilder

hasInitial()

public boolean hasInitial()

Initial response on the stream.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the messages field is set.

hasSeek()

public boolean hasSeek()

Response to a Seek operation.

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

Returns
TypeDescription
boolean

Whether the seek field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SubscribeResponse other)

public SubscribeResponse.Builder mergeFrom(SubscribeResponse other)
Parameter
NameDescription
otherSubscribeResponse
Returns
TypeDescription
SubscribeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SubscribeResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInitialSubscribeResponse
Returns
TypeDescription
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
NameDescription
valueMessageResponse
Returns
TypeDescription
SubscribeResponse.Builder

mergeSeek(SeekResponse value)

public SubscribeResponse.Builder mergeSeek(SeekResponse value)

Response to a Seek operation.

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

Parameter
NameDescription
valueSeekResponse
Returns
TypeDescription
SubscribeResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public SubscribeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInitialSubscribeResponse
Returns
TypeDescription
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
NameDescription
builderForValueInitialSubscribeResponse.Builder
Returns
TypeDescription
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
NameDescription
valueMessageResponse
Returns
TypeDescription
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
NameDescription
builderForValueMessageResponse.Builder
Returns
TypeDescription
SubscribeResponse.Builder

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

public SubscribeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSeekResponse
Returns
TypeDescription
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
NameDescription
builderForValueSeekResponse.Builder
Returns
TypeDescription
SubscribeResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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