示例#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: {
                    Type = input.ReadString();
                    break;
                }

                case 18: {
                    if (format_ == null)
                    {
                        Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat();
                    }
                    input.ReadMessage(Format);
                    break;
                }
                }
            }
        }
 public void MergeFrom(ColumnDefinition other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     if (other.IsDimension != false)
     {
         IsDimension = other.IsDimension;
     }
     if (other.IsHidden != false)
     {
         IsHidden = other.IsHidden;
     }
     if (other.NextSiblingId.Length != 0)
     {
         NextSiblingId = other.NextSiblingId;
     }
     if (other.ParentId.Length != 0)
     {
         ParentId = other.ParentId;
     }
     if (other.HeaderId.Length != 0)
     {
         HeaderId = other.HeaderId;
     }
     if (other.format_ != null)
     {
         if (format_ == null)
         {
             Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat();
         }
         Format.MergeFrom(other.Format);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#3
0
 public void MergeFrom(CellDefinition other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     if (other.format_ != null)
     {
         if (format_ == null)
         {
             Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat();
         }
         Format.MergeFrom(other.Format);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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 18: {
                    Name = input.ReadString();
                    break;
                }

                case 26: {
                    Description = input.ReadString();
                    break;
                }

                case 34: {
                    Type = input.ReadString();
                    break;
                }

                case 40: {
                    IsDimension = input.ReadBool();
                    break;
                }

                case 48: {
                    IsHidden = input.ReadBool();
                    break;
                }

                case 58: {
                    NextSiblingId = input.ReadString();
                    break;
                }

                case 66: {
                    ParentId = input.ReadString();
                    break;
                }

                case 74: {
                    HeaderId = input.ReadString();
                    break;
                }

                case 82: {
                    if (format_ == null)
                    {
                        Format = new global::FactSet.Protobuf.Stach.V2.Table.DataFormat();
                    }
                    input.ReadMessage(Format);
                    break;
                }
                }
            }
        }