/** * * * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder addAckIds(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /**
/** * * * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder setAckIds(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /**
/** * * * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; }
/** * <pre> * The name of the subscription. * </pre> * * <code>optional 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; }
/** * * * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder addAllAckIds(java.lang.Iterable<java.lang.String> values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); onChanged(); return this; } /**
/** * <code>repeated string ack_ids = 4;</code> * * <pre> * List of acknowledgment IDs. * </pre> */ public Builder addAllAckIds( java.lang.Iterable<java.lang.String> values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ackIds_); onChanged(); return this; } /**
/** * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder addAllAckIds( java.lang.Iterable<java.lang.String> values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ackIds_); onChanged(); return this; } /**
/** * * * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /**
/** * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /**
/** * <code>optional string subscription = 1;</code> * * <pre> * The name of the subscription. * </pre> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
/** * <code>repeated string ack_ids = 4;</code> * * <pre> * List of acknowledgment IDs. * </pre> */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /**
/** * <pre> * The name of the subscription. * </pre> * * <code>optional string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) { if (other == com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); } onChanged(); } if (other.getAckDeadlineSeconds() != 0) { setAckDeadlineSeconds(other.getAckDeadlineSeconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The new ack deadline with respect to the time this request was sent to * the Pub/Sub system. For example, if the value is 10, the new * ack deadline will expire 10 seconds after the `ModifyAckDeadline` call * was made. Specifying zero might immediately make the message available for * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. * The maximum deadline you can specify is 600 seconds (10 minutes). * </pre> * * <code>int32 ack_deadline_seconds = 3;</code> */ public Builder setAckDeadlineSeconds(int value) { ackDeadlineSeconds_ = value; onChanged(); return this; } /**
/** * * * <pre> * The new ack deadline with respect to the time this request was sent to * the Pub/Sub system. For example, if the value is 10, the new * ack deadline will expire 10 seconds after the `ModifyAckDeadline` call * was made. Specifying zero might immediately make the message available for * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. * The maximum deadline you can specify is 600 seconds (10 minutes). * </pre> * * <code>int32 ack_deadline_seconds = 3;</code> */ public Builder clearAckDeadlineSeconds() { ackDeadlineSeconds_ = 0; onChanged(); return this; }
/** * * * <pre> * The name of the subscription. * 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; }
/** * * * <pre> * The name of the subscription. * 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> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder addAllAckIds(java.lang.Iterable<java.lang.String> values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); onChanged(); return this; } /**
/** * * * <pre> * List of acknowledgment IDs. * </pre> * * <code>repeated string ack_ids = 4;</code> */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /**
/** * * * <pre> * The name of the subscription. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**