public static final class SubscribeResponse.Builder extends GeneratedMessageV3.Builder<SubscribeResponse.Builder> implements SubscribeResponseOrBuilder
Response to SubscribeRequest.
Protobuf type google.cloud.pubsublite.v1.SubscribeResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SubscribeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SubscribeResponse build()
buildPartial()
public SubscribeResponse buildPartial()
clear()
public SubscribeResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SubscribeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInitial()
public SubscribeResponse.Builder clearInitial()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
clearMessages()
public SubscribeResponse.Builder clearMessages()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public SubscribeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResponse()
public SubscribeResponse.Builder clearResponse()
clearSeek()
public SubscribeResponse.Builder clearSeek()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
clone()
public SubscribeResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public SubscribeResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInitial()
public InitialSubscribeResponse getInitial()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
getInitialBuilder()
public InitialSubscribeResponse.Builder getInitialBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
getInitialOrBuilder()
public InitialSubscribeResponseOrBuilder getInitialOrBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
getMessages()
public MessageResponse getMessages()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
getMessagesBuilder()
public MessageResponse.Builder getMessagesBuilder()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
getMessagesOrBuilder()
public MessageResponseOrBuilder getMessagesOrBuilder()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
getResponseCase()
public SubscribeResponse.ResponseCase getResponseCase()
getSeek()
public SeekResponse getSeek()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
getSeekBuilder()
public SeekResponse.Builder getSeekBuilder()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
getSeekOrBuilder()
public SeekResponseOrBuilder getSeekOrBuilder()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SubscribeResponse other)
public SubscribeResponse.Builder mergeFrom(SubscribeResponse other)
public SubscribeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SubscribeResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeInitial(InitialSubscribeResponse value)
public SubscribeResponse.Builder mergeInitial(InitialSubscribeResponse value)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
mergeMessages(MessageResponse value)
public SubscribeResponse.Builder mergeMessages(MessageResponse value)
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
mergeSeek(SeekResponse value)
public SubscribeResponse.Builder mergeSeek(SeekResponse value)
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SubscribeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SubscribeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInitial(InitialSubscribeResponse value)
public SubscribeResponse.Builder setInitial(InitialSubscribeResponse value)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
setInitial(InitialSubscribeResponse.Builder builderForValue)
public SubscribeResponse.Builder setInitial(InitialSubscribeResponse.Builder builderForValue)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
setMessages(MessageResponse value)
public SubscribeResponse.Builder setMessages(MessageResponse value)
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SubscribeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSeek(SeekResponse value)
public SubscribeResponse.Builder setSeek(SeekResponse value)
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
setSeek(SeekResponse.Builder builderForValue)
public SubscribeResponse.Builder setSeek(SeekResponse.Builder builderForValue)
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final SubscribeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides