public void MergeFrom(ChaincodeSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != global::Protos.ChaincodeSpec.Types.Type.Undefined)
     {
         Type = other.Type;
     }
     if (other.chaincodeId_ != null)
     {
         if (chaincodeId_ == null)
         {
             ChaincodeId = new global::Protos.ChaincodeID();
         }
         ChaincodeId.MergeFrom(other.ChaincodeId);
     }
     if (other.input_ != null)
     {
         if (input_ == null)
         {
             Input = new global::Protos.ChaincodeInput();
         }
         Input.MergeFrom(other.Input);
     }
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Protos.ChaincodeSpec.Types.Type.Undefined)
            {
                hash ^= Type.GetHashCode();
            }
            if (chaincodeId_ != null)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (input_ != null)
            {
                hash ^= Input.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#3
0
 public void MergeFrom(ChaincodeSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.chaincodeId_ != null)
     {
         if (chaincodeId_ == null)
         {
             chaincodeId_ = new global::Chaincode.NET.Protos.ChaincodeID();
         }
         ChaincodeId.MergeFrom(other.ChaincodeId);
     }
     if (other.input_ != null)
     {
         if (input_ == null)
         {
             input_ = new global::Chaincode.NET.Protos.ChaincodeInput();
         }
         Input.MergeFrom(other.Input);
     }
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
 }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Results.Length != 0)
            {
                hash ^= Results.GetHashCode();
            }
            if (Events.Length != 0)
            {
                hash ^= Events.GetHashCode();
            }
            if (response_ != null)
            {
                hash ^= Response.GetHashCode();
            }
            if (chaincodeId_ != null)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (tokenExpectation_ != null)
            {
                hash ^= TokenExpectation.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#5
0
 public void MergeFrom(ChaincodeAction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Results.Length != 0)
     {
         Results = other.Results;
     }
     if (other.Events.Length != 0)
     {
         Events = other.Events;
     }
     if (other.response_ != null)
     {
         if (response_ == null)
         {
             Response = new global::Protos.Response();
         }
         Response.MergeFrom(other.Response);
     }
     if (other.chaincodeId_ != null)
     {
         if (chaincodeId_ == null)
         {
             ChaincodeId = new global::Protos.ChaincodeID();
         }
         ChaincodeId.MergeFrom(other.ChaincodeId);
     }
     if (other.tokenExpectation_ != null)
     {
         if (tokenExpectation_ == null)
         {
             TokenExpectation = new global::Protos.TokenExpectation();
         }
         TokenExpectation.MergeFrom(other.TokenExpectation);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ChaincodeId.Length != 0)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (TxId.Length != 0)
            {
                hash ^= TxId.GetHashCode();
            }
            if (EventName.Length != 0)
            {
                hash ^= EventName.GetHashCode();
            }
            if (Payload.Length != 0)
            {
                hash ^= Payload.GetHashCode();
            }
            return(hash);
        }
示例#7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (chaincodeId_ != null)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (input_ != null)
            {
                hash ^= Input.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            return(hash);
        }