public static final class PullRequest.Builder extends GeneratedMessageV3.Builder<PullRequest.Builder> implements PullRequestOrBuilder
Request for the `Pull` method.Protobuf type
google.pubsub.v1.PullRequest| Modifier and Type | Method and Description |
|---|---|
PullRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
PullRequest |
build() |
PullRequest |
buildPartial() |
PullRequest.Builder |
clear() |
PullRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
PullRequest.Builder |
clearMaxMessages()
The maximum number of messages returned for this request.
|
PullRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
PullRequest.Builder |
clearReturnImmediately()
If this field set to true, the system will respond immediately even if
it there are no messages available to return in the `Pull` response.
|
PullRequest.Builder |
clearSubscription()
The subscription from which messages should be pulled.
|
PullRequest.Builder |
clone() |
PullRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
int |
getMaxMessages()
The maximum number of messages returned for this request.
|
boolean |
getReturnImmediately()
If this field set to true, the system will respond immediately even if
it there are no messages available to return in the `Pull` response.
|
java.lang.String |
getSubscription()
The subscription from which messages should be pulled.
|
ByteString |
getSubscriptionBytes()
The subscription from which messages should be pulled.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PullRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
PullRequest.Builder |
mergeFrom(Message other) |
PullRequest.Builder |
mergeFrom(PullRequest other) |
PullRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
PullRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
PullRequest.Builder |
setMaxMessages(int value)
The maximum number of messages returned for this request.
|
PullRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
PullRequest.Builder |
setReturnImmediately(boolean value)
If this field set to true, the system will respond immediately even if
it there are no messages available to return in the `Pull` response.
|
PullRequest.Builder |
setSubscription(java.lang.String value)
The subscription from which messages should be pulled.
|
PullRequest.Builder |
setSubscriptionBytes(ByteString value)
The subscription from which messages should be pulled.
|
PullRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<PullRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic PullRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic PullRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic PullRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<PullRequest.Builder>public PullRequest.Builder mergeFrom(PullRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<PullRequest.Builder>public PullRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<PullRequest.Builder>java.io.IOExceptionpublic java.lang.String getSubscription()
The subscription from which messages should be pulled.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 1;getSubscription in interface PullRequestOrBuilderpublic ByteString getSubscriptionBytes()
The subscription from which messages should be pulled.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 1;getSubscriptionBytes in interface PullRequestOrBuilderpublic PullRequest.Builder setSubscription(java.lang.String value)
The subscription from which messages should be pulled.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 1;public PullRequest.Builder clearSubscription()
The subscription from which messages should be pulled.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 1;public PullRequest.Builder setSubscriptionBytes(ByteString value)
The subscription from which messages should be pulled.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 1;public boolean getReturnImmediately()
If this field set to true, the system will respond immediately even if it there are no messages available to return in the `Pull` response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response.
bool return_immediately = 2;getReturnImmediately in interface PullRequestOrBuilderpublic PullRequest.Builder setReturnImmediately(boolean value)
If this field set to true, the system will respond immediately even if it there are no messages available to return in the `Pull` response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response.
bool return_immediately = 2;public PullRequest.Builder clearReturnImmediately()
If this field set to true, the system will respond immediately even if it there are no messages available to return in the `Pull` response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response.
bool return_immediately = 2;public int getMaxMessages()
The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified.
int32 max_messages = 3;getMaxMessages in interface PullRequestOrBuilderpublic PullRequest.Builder setMaxMessages(int value)
The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified.
int32 max_messages = 3;public PullRequest.Builder clearMaxMessages()
The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified.
int32 max_messages = 3;public final PullRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<PullRequest.Builder>public final PullRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<PullRequest.Builder>