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

                case 18: {
                    if (pattern_ == null)
                    {
                        pattern_ = new global::Service.Pattern();
                    }
                    input.ReadMessage(pattern_);
                    break;
                }

                case 26: {
                    OwnerId = input.ReadString();
                    break;
                }
                }
            }
        }
Пример #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::Service.Pattern();
         }
         Pattern.MergeFrom(other.Pattern);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(PatternCreated other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SourceId.Length != 0)
     {
         SourceId = other.SourceId;
     }
     if (other.pattern_ != null)
     {
         if (pattern_ == null)
         {
             pattern_ = new global::Service.Pattern();
         }
         Pattern.MergeFrom(other.Pattern);
     }
     if (other.OwnerId.Length != 0)
     {
         OwnerId = other.OwnerId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }