Beispiel #1
0
                        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: {
                                    Value = input.ReadString();
                                    break;
                                }

                                case 18: {
                                    if (confidence_ == null)
                                    {
                                        Confidence = new global::Asgt.Type.Confidence();
                                    }
                                    input.ReadMessage(Confidence);
                                    break;
                                }
                                }
                            }
                        }
Beispiel #2
0
 public void MergeFrom(Candidate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Value.Length != 0)
     {
         Value = other.Value;
     }
     if (other.confidence_ != null)
     {
         if (confidence_ == null)
         {
             Confidence = new global::Asgt.Type.Confidence();
         }
         Confidence.MergeFrom(other.Confidence);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }