public static final class SubscribeRequest.Builder extends GeneratedMessageV3.Builder<SubscribeRequest.Builder> implements SubscribeRequestOrBuilder
A request sent from the client to the server on a stream.
Protobuf type google.cloud.pubsublite.v1.SubscribeRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SubscribeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SubscribeRequest build()
Returns
buildPartial()
public SubscribeRequest buildPartial()
Returns
clear()
public SubscribeRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SubscribeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFlowControl()
public SubscribeRequest.Builder clearFlowControl()
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Returns
clearInitial()
public SubscribeRequest.Builder clearInitial()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SubscribeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRequest()
public SubscribeRequest.Builder clearRequest()
Returns
clearSeek()
public SubscribeRequest.Builder clearSeek()
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Returns
clone()
public SubscribeRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SubscribeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFlowControl()
public FlowControlRequest getFlowControl()
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Returns
getFlowControlBuilder()
public FlowControlRequest.Builder getFlowControlBuilder()
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Returns
getFlowControlOrBuilder()
public FlowControlRequestOrBuilder getFlowControlOrBuilder()
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Returns
getInitial()
public InitialSubscribeRequest getInitial()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Returns
getInitialBuilder()
public InitialSubscribeRequest.Builder getInitialBuilder()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Returns
getInitialOrBuilder()
public InitialSubscribeRequestOrBuilder getInitialOrBuilder()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Returns
getRequestCase()
public SubscribeRequest.RequestCase getRequestCase()
Returns
getSeek()
public SeekRequest getSeek()
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Returns
getSeekBuilder()
public SeekRequest.Builder getSeekBuilder()
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Returns
getSeekOrBuilder()
public SeekRequestOrBuilder getSeekOrBuilder()
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Returns
hasFlowControl()
public boolean hasFlowControl()
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Returns
Type | Description |
boolean | Whether the flowControl field is set.
|
hasInitial()
public boolean hasInitial()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Returns
Type | Description |
boolean | Whether the initial field is set.
|
hasSeek()
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest 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
mergeFlowControl(FlowControlRequest value)
public SubscribeRequest.Builder mergeFlowControl(FlowControlRequest value)
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Parameter
Returns
mergeFrom(SubscribeRequest other)
public SubscribeRequest.Builder mergeFrom(SubscribeRequest other)
Parameter
Returns
public SubscribeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SubscribeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInitial(InitialSubscribeRequest value)
public SubscribeRequest.Builder mergeInitial(InitialSubscribeRequest value)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Parameter
Returns
mergeSeek(SeekRequest value)
public SubscribeRequest.Builder mergeSeek(SeekRequest value)
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SubscribeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SubscribeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setFlowControl(FlowControlRequest value)
public SubscribeRequest.Builder setFlowControl(FlowControlRequest value)
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Parameter
Returns
setFlowControl(FlowControlRequest.Builder builderForValue)
public SubscribeRequest.Builder setFlowControl(FlowControlRequest.Builder builderForValue)
Request to grant tokens to the server,
.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;
Parameter
Returns
setInitial(InitialSubscribeRequest value)
public SubscribeRequest.Builder setInitial(InitialSubscribeRequest value)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Parameter
Returns
setInitial(InitialSubscribeRequest.Builder builderForValue)
public SubscribeRequest.Builder setInitial(InitialSubscribeRequest.Builder builderForValue)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SubscribeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSeek(SeekRequest value)
public SubscribeRequest.Builder setSeek(SeekRequest value)
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Parameter
Returns
setSeek(SeekRequest.Builder builderForValue)
public SubscribeRequest.Builder setSeek(SeekRequest.Builder builderForValue)
Request to update the stream's delivery cursor.
.google.cloud.pubsublite.v1.SeekRequest seek = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SubscribeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides