Exemplo 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 10: {
                    if (header_ == null)
                    {
                        Header = new global::NeoFS.API.Session.VerificationHeader();
                    }
                    input.ReadMessage(Header);
                    break;
                }

                case 18: {
                    OwnerID = input.ReadBytes();
                    break;
                }

                case 24: {
                    FirstEpoch = input.ReadUInt64();
                    break;
                }

                case 32: {
                    LastEpoch = input.ReadUInt64();
                    break;
                }

                case 42: {
                    objectID_.AddEntriesFrom(input, _repeated_objectID_codec);
                    break;
                }

                case 50: {
                    Signature = input.ReadBytes();
                    break;
                }

                case 58: {
                    ID = input.ReadBytes();
                    break;
                }

                case 66: {
                    publicKeys_.AddEntriesFrom(input, _repeated_publicKeys_codec);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(Token other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::NeoFS.API.Session.VerificationHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.OwnerID.Length != 0)
     {
         OwnerID = other.OwnerID;
     }
     if (other.FirstEpoch != 0UL)
     {
         FirstEpoch = other.FirstEpoch;
     }
     if (other.LastEpoch != 0UL)
     {
         LastEpoch = other.LastEpoch;
     }
     objectID_.Add(other.objectID_);
     if (other.Signature.Length != 0)
     {
         Signature = other.Signature;
     }
     if (other.ID.Length != 0)
     {
         ID = other.ID;
     }
     publicKeys_.Add(other.publicKeys_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }