public void MergeFrom(PartialResultSet other) { if (other == null) { return; } if (other.metadata_ != null) { if (metadata_ == null) { metadata_ = new global::Google.Cloud.Spanner.V1.ResultSetMetadata(); } Metadata.MergeFrom(other.Metadata); } values_.Add(other.values_); if (other.ChunkedValue != false) { ChunkedValue = other.ChunkedValue; } if (other.ResumeToken.Length != 0) { ResumeToken = other.ResumeToken; } if (other.stats_ != null) { if (stats_ == null) { stats_ = new global::Google.Cloud.Spanner.V1.ResultSetStats(); } Stats.MergeFrom(other.Stats); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(ResultSet other) { if (other == null) { return; } if (other.metadata_ != null) { if (metadata_ == null) { metadata_ = new global::Google.Cloud.Spanner.V1.ResultSetMetadata(); } Metadata.MergeFrom(other.Metadata); } rows_.Add(other.rows_); if (other.stats_ != null) { if (stats_ == null) { stats_ = new global::Google.Cloud.Spanner.V1.ResultSetStats(); } Stats.MergeFrom(other.Stats); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (metadata_ == null) { metadata_ = new global::Google.Cloud.Spanner.V1.ResultSetMetadata(); } input.ReadMessage(metadata_); break; } case 18: { values_.AddEntriesFrom(input, _repeated_values_codec); break; } case 24: { ChunkedValue = input.ReadBool(); break; } case 34: { ResumeToken = input.ReadBytes(); break; } case 42: { if (stats_ == null) { stats_ = new global::Google.Cloud.Spanner.V1.ResultSetStats(); } input.ReadMessage(stats_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (metadata_ == null) { Metadata = new global::Google.Cloud.Spanner.V1.ResultSetMetadata(); } input.ReadMessage(Metadata); break; } case 18: { rows_.AddEntriesFrom(input, _repeated_rows_codec); break; } case 26: { if (stats_ == null) { Stats = new global::Google.Cloud.Spanner.V1.ResultSetStats(); } input.ReadMessage(Stats); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (metadata_ == null) { metadata_ = new global::Google.Cloud.Spanner.V1.ResultSetMetadata(); } input.ReadMessage(metadata_); break; } case 18: { rows_.AddEntriesFrom(input, _repeated_rows_codec); break; } case 26: { if (stats_ == null) { stats_ = new global::Google.Cloud.Spanner.V1.ResultSetStats(); } input.ReadMessage(stats_); break; } } } }