/** * * * <pre> * The subscription from which messages should be pulled. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscription_ = value; onChanged(); return this; } /**
/** * * * <pre> * The subscription from which messages should be pulled. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; onChanged(); return this; }
public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { if (other == com.google.pubsub.v1.PullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.getReturnImmediately() != false) { setReturnImmediately(other.getReturnImmediately()); } if (other.getMaxMessages() != 0) { setMaxMessages(other.getMaxMessages()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The subscription from which messages should be pulled. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
/** * <code>optional bool return_immediately = 2;</code> * * <pre> * If this is specified as true the system will respond immediately even if * it is not able to return a message in the `Pull` response. Otherwise the * system is allowed to wait until at least one message is available rather * than returning no messages. * </pre> */ public Builder clearReturnImmediately() { returnImmediately_ = false; onChanged(); return this; }
public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { if (other == com.google.pubsub.v1.PullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.getReturnImmediately() != false) { setReturnImmediately(other.getReturnImmediately()); } if (other.getMaxMessages() != 0) { setMaxMessages(other.getMaxMessages()); } onChanged(); return this; }
/** * * * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> * * <code>int32 max_messages = 3;</code> */ public Builder clearMaxMessages() { maxMessages_ = 0; onChanged(); return this; }
/** * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> * * <code>optional int32 max_messages = 3;</code> */ public Builder clearMaxMessages() { maxMessages_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional bool return_immediately = 2;</code> * * <pre> * If this is specified as true the system will respond immediately even if * it is not able to return a message in the `Pull` response. Otherwise the * system is allowed to wait until at least one message is available rather * than returning no messages. * </pre> */ public Builder setReturnImmediately(boolean value) { returnImmediately_ = value; onChanged(); return this; } /**
/** * <code>optional int32 max_messages = 3;</code> * * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> */ public Builder clearMaxMessages() { maxMessages_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional int32 max_messages = 3;</code> * * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> */ public Builder setMaxMessages(int value) { maxMessages_ = value; onChanged(); return this; } /**
/** * <code>optional string subscription = 1;</code> * * <pre> * The subscription from which messages should be pulled. * </pre> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { if (other == com.google.pubsub.v1.PullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.getReturnImmediately() != false) { setReturnImmediately(other.getReturnImmediately()); } if (other.getMaxMessages() != 0) { setMaxMessages(other.getMaxMessages()); } onChanged(); return this; }
/** * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> * * <code>optional int32 max_messages = 3;</code> */ public Builder setMaxMessages(int value) { maxMessages_ = value; onChanged(); return this; } /**
/** * <pre> * The subscription from which messages should be pulled. * </pre> * * <code>optional string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>bool return_immediately = 2;</code> */ public Builder clearReturnImmediately() { returnImmediately_ = false; onChanged(); return this; }
/** * * * <pre> * 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. * </pre> * * <code>bool return_immediately = 2;</code> */ public Builder setReturnImmediately(boolean value) { returnImmediately_ = value; onChanged(); return this; } /**
/** * * * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> * * <code>int32 max_messages = 3;</code> */ public Builder setMaxMessages(int value) { maxMessages_ = value; onChanged(); return this; } /**
/** * * * <pre> * The subscription from which messages should be pulled. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
/** * * * <pre> * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. * </pre> * * <code>int32 max_messages = 3;</code> */ public Builder clearMaxMessages() { maxMessages_ = 0; onChanged(); return this; }