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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SubscribeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SubscribeResponse build()
Returns
buildPartial()
public SubscribeResponse buildPartial()
Returns
clear()
public SubscribeResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SubscribeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInitial()
public SubscribeResponse.Builder clearInitial()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
clearMessages()
public SubscribeResponse.Builder clearMessages()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SubscribeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResponse()
public SubscribeResponse.Builder clearResponse()
Returns
clearSeek()
public SubscribeResponse.Builder clearSeek()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
clone()
public SubscribeResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SubscribeResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInitial()
public InitialSubscribeResponse getInitial()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
getInitialBuilder()
public InitialSubscribeResponse.Builder getInitialBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
getInitialOrBuilder()
public InitialSubscribeResponseOrBuilder getInitialOrBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
getMessages()
public MessageResponse getMessages()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
getMessagesBuilder()
public MessageResponse.Builder getMessagesBuilder()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
getMessagesOrBuilder()
public MessageResponseOrBuilder getMessagesOrBuilder()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
getResponseCase()
public SubscribeResponse.ResponseCase getResponseCase()
Returns
getSeek()
public SeekResponse getSeek()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
getSeekBuilder()
public SeekResponse.Builder getSeekBuilder()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
getSeekOrBuilder()
public SeekResponseOrBuilder getSeekOrBuilder()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
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()
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SubscribeResponse other)
public SubscribeResponse.Builder mergeFrom(SubscribeResponse other)
Parameter
Returns
public SubscribeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SubscribeResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInitial(InitialSubscribeResponse value)
public SubscribeResponse.Builder mergeInitial(InitialSubscribeResponse value)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Parameter
Returns
mergeMessages(MessageResponse value)
public SubscribeResponse.Builder mergeMessages(MessageResponse value)
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Parameter
Returns
mergeSeek(SeekResponse value)
public SubscribeResponse.Builder mergeSeek(SeekResponse value)
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SubscribeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SubscribeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInitial(InitialSubscribeResponse value)
public SubscribeResponse.Builder setInitial(InitialSubscribeResponse value)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Parameter
Returns
setInitial(InitialSubscribeResponse.Builder builderForValue)
public SubscribeResponse.Builder setInitial(InitialSubscribeResponse.Builder builderForValue)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Parameter
Returns
setMessages(MessageResponse value)
public SubscribeResponse.Builder setMessages(MessageResponse value)
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Parameter
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SubscribeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSeek(SeekResponse value)
public SubscribeResponse.Builder setSeek(SeekResponse value)
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Parameter
Returns
setSeek(SeekResponse.Builder builderForValue)
public SubscribeResponse.Builder setSeek(SeekResponse.Builder builderForValue)
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SubscribeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides