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: {
                    Id = input.ReadString();
                    break;
                }

                case 42: {
                    if (pattern_ == null)
                    {
                        pattern_ = new global::SM.Service.Messages.Pattern();
                    }
                    input.ReadMessage(pattern_);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(GetThumbnail other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Width != 0)
     {
         Width = other.Width;
     }
     if (other.Height != 0)
     {
         Height = other.Height;
     }
     if (other.pattern_ != null)
     {
         if (pattern_ == null)
         {
             pattern_ = new global::SM.Service.Messages.Pattern();
         }
         Pattern.MergeFrom(other.Pattern);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(PatternCreated other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.pattern_ != null)
     {
         if (pattern_ == null)
         {
             pattern_ = new global::SM.Service.Messages.Pattern();
         }
         Pattern.MergeFrom(other.Pattern);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }