/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(index, value); onChanged(); } else { snapshotsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); } else { snapshotsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); } else { snapshotsBuilder_.setMessage(index, value); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSnapshotsIsMutable(); snapshots_.addAll(other.snapshots_);
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(index, value); onChanged(); } else { snapshotsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); } else { snapshotsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addAllSnapshots( java.lang.Iterable<? extends com.google.pubsub.v1.Snapshot> values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder removeSnapshots(int index) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.remove(index); onChanged(); } else { snapshotsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(index, builderForValue.build()); onChanged(); } else { snapshotsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); } else { snapshotsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(builderForValue.build()); onChanged(); } else { snapshotsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.set(index, builderForValue.build()); onChanged(); } else { snapshotsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSnapshotsIsMutable(); snapshots_.addAll(other.snapshots_);
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addAllSnapshots( java.lang.Iterable<? extends com.google.pubsub.v1.Snapshot> values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(index, builderForValue.build()); onChanged(); } else { snapshotsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(builderForValue.build()); onChanged(); } else { snapshotsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder removeSnapshots(int index) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.remove(index); onChanged(); } else { snapshotsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * The resulting snapshots. * </pre> * * <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code> */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.set(index, builderForValue.build()); onChanged(); } else { snapshotsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**