public void MergeFrom(FeatureConfiguration other) { if (other == null) { return; } switch (other.ConfigCase) { case ConfigOneofCase.FixedLenFeature: if (FixedLenFeature == null) { FixedLenFeature = new global::Tensorflow.FixedLenFeatureProto(); } FixedLenFeature.MergeFrom(other.FixedLenFeature); break; case ConfigOneofCase.VarLenFeature: if (VarLenFeature == null) { VarLenFeature = new global::Tensorflow.VarLenFeatureProto(); } VarLenFeature.MergeFrom(other.VarLenFeature); break; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { global::Tensorflow.FixedLenFeatureProto subBuilder = new global::Tensorflow.FixedLenFeatureProto(); if (configCase_ == ConfigOneofCase.FixedLenFeature) { subBuilder.MergeFrom(FixedLenFeature); } input.ReadMessage(subBuilder); FixedLenFeature = subBuilder; break; } case 18: { global::Tensorflow.VarLenFeatureProto subBuilder = new global::Tensorflow.VarLenFeatureProto(); if (configCase_ == ConfigOneofCase.VarLenFeature) { subBuilder.MergeFrom(VarLenFeature); } input.ReadMessage(subBuilder); VarLenFeature = subBuilder; break; } } } }