public final class PullRequest extends GeneratedMessageV3 implements PullRequestOrBuilder
Request for the Pull
method.
Protobuf type google.pubsub.v1.PullRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PullRequestImplements
PullRequestOrBuilderStatic Fields
MAX_MESSAGES_FIELD_NUMBER
public static final int MAX_MESSAGES_FIELD_NUMBER
Type | Description |
int |
RETURN_IMMEDIATELY_FIELD_NUMBER
public static final int RETURN_IMMEDIATELY_FIELD_NUMBER
Type | Description |
int |
SUBSCRIPTION_FIELD_NUMBER
public static final int SUBSCRIPTION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static PullRequest getDefaultInstance()
Type | Description |
PullRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static PullRequest.Builder newBuilder()
Type | Description |
PullRequest.Builder |
newBuilder(PullRequest prototype)
public static PullRequest.Builder newBuilder(PullRequest prototype)
Name | Description |
prototype | PullRequest |
Type | Description |
PullRequest.Builder |
parseDelimitedFrom(InputStream input)
public static PullRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PullRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PullRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PullRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PullRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PullRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PullRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PullRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PullRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PullRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PullRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PullRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PullRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PullRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PullRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PullRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PullRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PullRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PullRequest> parser()
Type | Description |
Parser<PullRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public PullRequest getDefaultInstanceForType()
Type | Description |
PullRequest |
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];
Type | Description |
int | The maxMessages. |
getParserForType()
public Parser<PullRequest> getParserForType()
Type | Description |
Parser<PullRequest> |
getReturnImmediately() (deprecated)
public boolean getReturnImmediately()
Deprecated. google.pubsub.v1.PullRequest.return_immediately is deprecated. See google/pubsub/v1/pubsub.proto;l=1035
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];
Type | Description |
boolean | The returnImmediately. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for subscription. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public PullRequest.Builder newBuilderForType()
Type | Description |
PullRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PullRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PullRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public PullRequest.Builder toBuilder()
Type | Description |
PullRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |