@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.pubsub.v1.GetSnapshotRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.GetSnapshotRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { if (other == com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()) return this; if (!other.getSnapshot().isEmpty()) { snapshot_ = other.snapshot_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * </pre> * * <code>string snapshot = 1;</code> */ public Builder setSnapshot(java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshot_ = value; onChanged(); return this; } /**
/** * * * <pre> * The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * </pre> * * <code>string snapshot = 1;</code> */ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshot_ = 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.GetSnapshotRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.GetSnapshotRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * </pre> * * <code>string snapshot = 1;</code> */ public Builder clearSnapshot() { snapshot_ = getDefaultInstance().getSnapshot(); onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest) other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; }
@java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest build() { com.google.pubsub.v1.GetSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { if (other == com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()) return this; if (!other.getSnapshot().isEmpty()) { snapshot_ = other.snapshot_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
/** * * * <pre> * The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * </pre> * * <code>string snapshot = 1;</code> */ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshot_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * </pre> * * <code>string snapshot = 1;</code> */ public Builder setSnapshot(java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshot_ = value; onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * * * <pre> * The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * </pre> * * <code>string snapshot = 1;</code> */ public Builder clearSnapshot() { snapshot_ = getDefaultInstance().getSnapshot(); onChanged(); return this; } /**
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }