/** * * * <pre> * If not empty, indicates that there may be more snapshots that match * the request; this value should be passed in a new * `ListTopicSnapshotsRequest` to get more snapshots. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; }
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder addSnapshots(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder setSnapshots(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) { if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) return this; if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSnapshotsIsMutable(); snapshots_.addAll(other.snapshots_); } onChanged(); } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder addSnapshots(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder setSnapshots(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); return this; } /**
/** * * * <pre> * If not empty, indicates that there may be more snapshots that match * the request; this value should be passed in a new * `ListTopicSnapshotsRequest` to get more snapshots. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * If not empty, indicates that there may be more snapshots that match * the request; this value should be passed in a new * `ListTopicSnapshotsRequest` to get more snapshots. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; }
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; }
/** * * * <pre> * If not empty, indicates that there may be more snapshots that match * the request; this value should be passed in a new * `ListTopicSnapshotsRequest` to get more snapshots. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder clearSnapshots() { snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder addAllSnapshots(java.lang.Iterable<java.lang.String> values) { ensureSnapshotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) { if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) return this; if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSnapshotsIsMutable(); snapshots_.addAll(other.snapshots_); } onChanged(); } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * If not empty, indicates that there may be more snapshots that match * the request; this value should be passed in a new * `ListTopicSnapshotsRequest` to get more snapshots. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; }
/** * * * <pre> * If not empty, indicates that there may be more snapshots that match * the request; this value should be passed in a new * `ListTopicSnapshotsRequest` to get more snapshots. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder addAllSnapshots(java.lang.Iterable<java.lang.String> values) { ensureSnapshotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); return this; } /**
/** * * * <pre> * The names of the snapshots that match the request. * </pre> * * <code>repeated string snapshots = 1;</code> */ public Builder clearSnapshots() { snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /**