コード例 #1
0
 public override int GetHashCode( )
 {
     unchecked {
         int res = _Resource.Key.GetHashCode( );
         res = res * 17 + PrincipalId.GetHashCode( );
         res = res * 17 + OperationId.GetHashCode( );
         res = res * 17 + AccessPredicateType.GetHashCode( );
         return(res);
     }
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + OperationId.GetHashCode();
                hashcode = (hashcode * 397) + OperationType.GetHashCode();
                hashcode = (hashcode * 397) + HasResultSet.GetHashCode();
                if (__isset.modifiedRowCount)
                {
                    hashcode = (hashcode * 397) + ModifiedRowCount.GetHashCode();
                }
            }
            return(hashcode);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OperationId.Length != 0)
            {
                hash ^= OperationId.GetHashCode();
            }
            if (OperationName.Length != 0)
            {
                hash ^= OperationName.GetHashCode();
            }
            if (ConsumerId.Length != 0)
            {
                hash ^= ConsumerId.GetHashCode();
            }
            if (startTime_ != null)
            {
                hash ^= StartTime.GetHashCode();
            }
            if (endTime_ != null)
            {
                hash ^= EndTime.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            hash ^= metricValueSets_.GetHashCode();
            hash ^= logEntries_.GetHashCode();
            if (Importance != global::Google.Cloud.ServiceControl.V1.Operation.Types.Importance.Low)
            {
                hash ^= Importance.GetHashCode();
            }
            hash ^= extensions_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }