public void MergeFrom(PlanNode other) { if (other == null) { return; } if (other.Index != 0) { Index = other.Index; } if (other.Kind != 0) { Kind = other.Kind; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } childLinks_.Add(other.childLinks_); if (other.shortRepresentation_ != null) { if (shortRepresentation_ == null) { shortRepresentation_ = new global::Google.Cloud.Spanner.V1.PlanNode.Types.ShortRepresentation(); } ShortRepresentation.MergeFrom(other.ShortRepresentation); } if (other.metadata_ != null) { if (metadata_ == null) { metadata_ = new global::Google.Protobuf.WellKnownTypes.Struct(); } Metadata.MergeFrom(other.Metadata); } if (other.executionStats_ != null) { if (executionStats_ == null) { executionStats_ = new global::Google.Protobuf.WellKnownTypes.Struct(); } ExecutionStats.MergeFrom(other.ExecutionStats); } _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 8: { Index = input.ReadInt32(); break; } case 16: { kind_ = (global::Google.Cloud.Spanner.V1.PlanNode.Types.Kind)input.ReadEnum(); break; } case 26: { DisplayName = input.ReadString(); break; } case 34: { childLinks_.AddEntriesFrom(input, _repeated_childLinks_codec); break; } case 42: { if (shortRepresentation_ == null) { shortRepresentation_ = new global::Google.Cloud.Spanner.V1.PlanNode.Types.ShortRepresentation(); } input.ReadMessage(shortRepresentation_); break; } case 50: { if (metadata_ == null) { metadata_ = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(metadata_); break; } case 58: { if (executionStats_ == null) { executionStats_ = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(executionStats_); break; } } } }