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: { global::Envoy.Type.Matcher.RegexMatcher.Types.GoogleRE2 subBuilder = new global::Envoy.Type.Matcher.RegexMatcher.Types.GoogleRE2(); if (engineTypeCase_ == EngineTypeOneofCase.GoogleRe2) { subBuilder.MergeFrom(GoogleRe2); } input.ReadMessage(subBuilder); GoogleRe2 = subBuilder; break; } case 18: { Regex = input.ReadString(); break; } } } }
public void MergeFrom(RegexMatcher other) { if (other == null) { return; } if (other.Regex.Length != 0) { Regex = other.Regex; } switch (other.EngineTypeCase) { case EngineTypeOneofCase.GoogleRe2: if (GoogleRe2 == null) { GoogleRe2 = new global::Envoy.Type.Matcher.RegexMatcher.Types.GoogleRE2(); } GoogleRe2.MergeFrom(other.GoogleRe2); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }