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; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.pubsub.v1.ModifyAckDeadlineRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.ModifyAckDeadlineRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
@java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; if (((bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = ackIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.ackIds_ = ackIds_; result.ackDeadlineSeconds_ = ackDeadlineSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
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()); } 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> * 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; }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.pubsub.v1.ModifyAckDeadlineRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.ModifyAckDeadlineRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <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; } /**
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()); } onChanged(); return this; }
/** * * * <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; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.pubsub.v1.ModifyAckDeadlineRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.ModifyAckDeadlineRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>repeated string ack_ids = 4;</code> * * <pre> * List of acknowledgment IDs. * </pre> */ 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; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.pubsub.v1.ModifyAckDeadlineRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.ModifyAckDeadlineRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>repeated string ack_ids = 4;</code> * * <pre> * List of acknowledgment IDs. * </pre> */ public Builder addAckIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; }
/** * <code>repeated string ack_ids = 4;</code> * * <pre> * List of acknowledgment IDs. * </pre> */ public Builder setAckIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /**
@java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; if (((bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = ackIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.ackIds_ = ackIds_; result.ackDeadlineSeconds_ = ackDeadlineSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * * * <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 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; } /**