public final class PullRequest extends GeneratedMessageV3 implements PullRequestOrBuilder
Request for the Pull
method.
Protobuf type google.pubsub.v1.PullRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MAX_MESSAGES_FIELD_NUMBER
public static final int MAX_MESSAGES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int RETURN_IMMEDIATELY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SUBSCRIPTION_FIELD_NUMBER
public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static PullRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PullRequest.Builder newBuilder()
newBuilder(PullRequest prototype)
public static PullRequest.Builder newBuilder(PullRequest prototype)
public static PullRequest parseDelimitedFrom(InputStream input)
public static PullRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PullRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PullRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(CodedInputStream input)
public static PullRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(InputStream input)
public static PullRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PullRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PullRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public PullRequest getDefaultInstanceForType()
getMaxMessages()
public int getMaxMessages()
Required. The maximum number of messages to return for this request. Must
be a positive integer. The Pub/Sub system may return fewer than the number
specified.
int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The maxMessages.
|
getParserForType()
public Parser<PullRequest> getParserForType()
Overrides
public boolean getReturnImmediately()
Deprecated. google.pubsub.v1.PullRequest.return_immediately is deprecated. See
google/pubsub/v1/pubsub.proto;l=1387
Optional. 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.
Warning: setting this field to true
is discouraged because it adversely
impacts the performance of Pull
operations. We recommend that users do
not set this field.
bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The returnImmediately.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSubscription()
public String getSubscription()
Required. The subscription from which messages should be pulled.
Format is projects/{project}/subscriptions/{sub}
.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The subscription.
|
getSubscriptionBytes()
public ByteString getSubscriptionBytes()
Required. The subscription from which messages should be pulled.
Format is projects/{project}/subscriptions/{sub}
.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for subscription.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PullRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PullRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public PullRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides