public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { if (other == com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; onChanged(); } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } 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.ListSnapshotsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.ListSnapshotsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * The value returned by the last `ListSnapshotsResponse`; indicates that this * is a continuation of a prior `ListSnapshots` call, and that the system * should return the next page of data. * </pre> * * <code>string page_token = 3;</code> */ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * The value returned by the last `ListSnapshotsResponse`; indicates that this * is a continuation of a prior `ListSnapshots` call, and that the system * should return the next page of data. * </pre> * * <code>string page_token = 3;</code> */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * </pre> * * <code>string project = 1;</code> */ public Builder setProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } project_ = 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.ListSnapshotsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.ListSnapshotsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * </pre> * * <code>string project = 1;</code> */ public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; onChanged(); return this; }
/** * * * <pre> * The value returned by the last `ListSnapshotsResponse`; indicates that this * is a continuation of a prior `ListSnapshots` call, and that the system * should return the next page of data. * </pre> * * <code>string page_token = 3;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
/** * * * <pre> * The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * </pre> * * <code>string project = 1;</code> */ public Builder clearProject() { project_ = getDefaultInstance().getProject(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { if (other == com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; onChanged(); } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Maximum number of snapshots to return. * </pre> * * <code>int32 page_size = 2;</code> */ public Builder setPageSize(int value) { pageSize_ = value; onChanged(); return this; } /**
public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
/** * * * <pre> * Maximum number of snapshots to return. * </pre> * * <code>int32 page_size = 2;</code> */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; }
private Builder() { maybeForceBuilderInitialization(); }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest build() { com.google.pubsub.v1.ListSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest) other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**