public void MergeFrom(UnmanagedContainerModel other) { if (other == null) { return; } if (other.ArtifactUri.Length != 0) { ArtifactUri = other.ArtifactUri; } if (other.predictSchemata_ != null) { if (predictSchemata_ == null) { PredictSchemata = new global::Google.Cloud.AIPlatform.V1.PredictSchemata(); } PredictSchemata.MergeFrom(other.PredictSchemata); } if (other.containerSpec_ != null) { if (containerSpec_ == null) { ContainerSpec = new global::Google.Cloud.AIPlatform.V1.ModelContainerSpec(); } ContainerSpec.MergeFrom(other.ContainerSpec); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { ArtifactUri = input.ReadString(); break; } case 18: { if (predictSchemata_ == null) { PredictSchemata = new global::Google.Cloud.AIPlatform.V1.PredictSchemata(); } input.ReadMessage(PredictSchemata); break; } case 26: { if (containerSpec_ == null) { ContainerSpec = new global::Google.Cloud.AIPlatform.V1.ModelContainerSpec(); } input.ReadMessage(ContainerSpec); 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: { ArtifactUri = input.ReadString(); break; } case 18: { if (predictSchemata_ == null) { PredictSchemata = new global::Google.Cloud.AIPlatform.V1.PredictSchemata(); } input.ReadMessage(PredictSchemata); break; } case 26: { if (containerSpec_ == null) { ContainerSpec = new global::Google.Cloud.AIPlatform.V1.ModelContainerSpec(); } input.ReadMessage(ContainerSpec); break; } } } }