Esempio n. 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 8: {
                    Type = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (info_ == null)
                    {
                        Info = new global::NeoFS.API.Bootstrap.NodeInfo();
                    }
                    input.ReadMessage(Info);
                    break;
                }

                case 24: {
                    State = (global::NeoFS.API.Bootstrap.Request.Types.State)input.ReadEnum();
                    break;
                }

                case 786: {
                    if (meta_ == null)
                    {
                        Meta = new global::NeoFS.API.Service.RequestMetaHeader();
                    }
                    input.ReadMessage(Meta);
                    break;
                }

                case 794: {
                    if (verify_ == null)
                    {
                        Verify = new global::NeoFS.API.Service.RequestVerificationHeader();
                    }
                    input.ReadMessage(Verify);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(Request other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.info_ != null)
     {
         if (info_ == null)
         {
             Info = new global::NeoFS.API.Bootstrap.NodeInfo();
         }
         Info.MergeFrom(other.Info);
     }
     if (other.State != global::NeoFS.API.Bootstrap.Request.Types.State.Unknown)
     {
         State = other.State;
     }
     if (other.meta_ != null)
     {
         if (meta_ == null)
         {
             Meta = new global::NeoFS.API.Service.RequestMetaHeader();
         }
         Meta.MergeFrom(other.Meta);
     }
     if (other.verify_ != null)
     {
         if (verify_ == null)
         {
             Verify = new global::NeoFS.API.Service.RequestVerificationHeader();
         }
         Verify.MergeFrom(other.Verify);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }