コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    Id = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (propertyType_ == null)
                    {
                        propertyType_ = new global::prodrink.catalog.PropertyType();
                    }
                    input.ReadMessage(propertyType_);
                    break;
                }

                case 26: {
                    Value = input.ReadString();
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(Property other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0)
     {
         Id = other.Id;
     }
     if (other.propertyType_ != null)
     {
         if (propertyType_ == null)
         {
             propertyType_ = new global::prodrink.catalog.PropertyType();
         }
         PropertyType.MergeFrom(other.PropertyType);
     }
     if (other.Value.Length != 0)
     {
         Value = other.Value;
     }
 }