Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (destroyTime_ != null)
            {
                hash ^= DestroyTime.GetHashCode();
            }
            if (destroyEventTime_ != null)
            {
                hash ^= DestroyEventTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public void AutomateMessageDestroy(DestroyTime UsePredefinedTime)
        {
            switch (UsePredefinedTime)
            {
            case DestroyTime.Short:
                AutomateMessageDestroy(5000);
                break;

            case DestroyTime.Long:
                AutomateMessageDestroy(10000);
                break;

            default:
                break;
            }
        }
Пример #3
0
 public void MergeFrom(CryptoKeyVersion other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             createTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.destroyTime_ != null)
     {
         if (destroyTime_ == null)
         {
             destroyTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         DestroyTime.MergeFrom(other.DestroyTime);
     }
     if (other.destroyEventTime_ != null)
     {
         if (destroyEventTime_ == null)
         {
             destroyEventTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         DestroyEventTime.MergeFrom(other.DestroyEventTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #4
0
 public void DestroyMessage(IStatusMessage statusMessage, DestroyTime UsePredefinedTime)
 {
     statusMessage.AutomateMessageDestroy(UsePredefinedTime);
 }
Пример #5
0
 void Awake()
 {
     Instace = this;
 }