Example #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 18: {
                    if (textAnnotation_ == null)
                    {
                        TextAnnotation = new global::Ssn.Type.TextAnnotation();
                    }
                    input.ReadMessage(TextAnnotation);
                    break;
                }

                case 26: {
                    pb::ByteString value = _single_image_codec.Read(input);
                    if (image_ == null || value != pb::ByteString.Empty)
                    {
                        Image = value;
                    }
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(GetTextAnnotationResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.textAnnotation_ != null)
     {
         if (textAnnotation_ == null)
         {
             TextAnnotation = new global::Ssn.Type.TextAnnotation();
         }
         TextAnnotation.MergeFrom(other.TextAnnotation);
     }
     if (other.image_ != null)
     {
         if (image_ == null || other.Image != pb::ByteString.Empty)
         {
             Image = other.Image;
         }
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }