Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (payloadTypeCase_ == PayloadTypeOneofCase.AppEngineHttpRequest)
            {
                hash ^= AppEngineHttpRequest.GetHashCode();
            }
            if (payloadTypeCase_ == PayloadTypeOneofCase.HttpRequest)
            {
                hash ^= HttpRequest.GetHashCode();
            }
            if (scheduleTime_ != null)
            {
                hash ^= ScheduleTime.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (dispatchDeadline_ != null)
            {
                hash ^= DispatchDeadline.GetHashCode();
            }
            if (DispatchCount != 0)
            {
                hash ^= DispatchCount.GetHashCode();
            }
            if (ResponseCount != 0)
            {
                hash ^= ResponseCount.GetHashCode();
            }
            if (firstAttempt_ != null)
            {
                hash ^= FirstAttempt.GetHashCode();
            }
            if (lastAttempt_ != null)
            {
                hash ^= LastAttempt.GetHashCode();
            }
            if (View != 0)
            {
                hash ^= View.GetHashCode();
            }
            hash ^= (int)payloadTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.AppEngineHttpRequest)
            {
                hash ^= AppEngineHttpRequest.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.HttpRequest)
            {
                hash ^= HttpRequest.GetHashCode();
            }
            if (scheduleTime_ != null)
            {
                hash ^= ScheduleTime.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (dispatchDeadline_ != null)
            {
                hash ^= DispatchDeadline.GetHashCode();
            }
            if (DispatchCount != 0)
            {
                hash ^= DispatchCount.GetHashCode();
            }
            if (ResponseCount != 0)
            {
                hash ^= ResponseCount.GetHashCode();
            }
            if (firstAttempt_ != null)
            {
                hash ^= FirstAttempt.GetHashCode();
            }
            if (lastAttempt_ != null)
            {
                hash ^= LastAttempt.GetHashCode();
            }
            if (View != global::Google.Cloud.Tasks.V2.Task.Types.View.Unspecified)
            {
                hash ^= View.GetHashCode();
            }
            hash ^= (int)messageTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }