public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (slice_ == null) { Slice = new global::Google.Cloud.AIPlatform.V1.ModelEvaluationSlice.Types.Slice(); } input.ReadMessage(Slice); break; } case 26: { MetricsSchemaUri = input.ReadString(); break; } case 34: { if (metrics_ == null) { Metrics = new global::Google.Protobuf.WellKnownTypes.Value(); } input.ReadMessage(Metrics); break; } case 42: { if (createTime_ == null) { CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreateTime); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (slice_ == null) { Slice = new global::Google.Cloud.AIPlatform.V1.ModelEvaluationSlice.Types.Slice(); } input.ReadMessage(Slice); break; } case 26: { MetricsSchemaUri = input.ReadString(); break; } case 34: { if (metrics_ == null) { Metrics = new global::Google.Protobuf.WellKnownTypes.Value(); } input.ReadMessage(Metrics); break; } case 42: { if (createTime_ == null) { CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreateTime); break; } } } }
public void MergeFrom(ModelEvaluationSlice other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.slice_ != null) { if (slice_ == null) { Slice = new global::Google.Cloud.AIPlatform.V1.ModelEvaluationSlice.Types.Slice(); } Slice.MergeFrom(other.Slice); } if (other.MetricsSchemaUri.Length != 0) { MetricsSchemaUri = other.MetricsSchemaUri; } if (other.metrics_ != null) { if (metrics_ == null) { Metrics = new global::Google.Protobuf.WellKnownTypes.Value(); } Metrics.MergeFrom(other.Metrics); } if (other.createTime_ != null) { if (createTime_ == null) { CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTime.MergeFrom(other.CreateTime); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }