示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V3.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (paymentsAccount_ != null)
            {
                hash ^= PaymentsAccount.GetHashCode();
            }
            if (paymentsAccountInfo_ != null)
            {
                hash ^= PaymentsAccountInfo.GetHashCode();
            }
            if (startTimeCase_ == StartTimeOneofCase.StartDateTime)
            {
                hash ^= StartDateTime.GetHashCode();
            }
            if (startTimeCase_ == StartTimeOneofCase.StartTimeType)
            {
                hash ^= StartTimeType.GetHashCode();
            }
            if (endTimeCase_ == EndTimeOneofCase.EndDateTime)
            {
                hash ^= EndDateTime.GetHashCode();
            }
            if (endTimeCase_ == EndTimeOneofCase.EndTimeType)
            {
                hash ^= EndTimeType.GetHashCode();
            }
            hash ^= (int)startTimeCase_;
            hash ^= (int)endTimeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (paymentsAccount_ != null)
            {
                hash ^= PaymentsAccount.GetHashCode();
            }
            if (paymentsAccountInfo_ != null)
            {
                hash ^= PaymentsAccountInfo.GetHashCode();
            }
            if (startTimeCase_ == StartTimeOneofCase.StartDateTime)
            {
                hash ^= StartDateTime.GetHashCode();
            }
            if (startTimeCase_ == StartTimeOneofCase.StartTimeType)
            {
                hash ^= StartTimeType.GetHashCode();
            }
            if (endTimeCase_ == EndTimeOneofCase.EndDateTime)
            {
                hash ^= EndDateTime.GetHashCode();
            }
            if (endTimeCase_ == EndTimeOneofCase.EndTimeType)
            {
                hash ^= EndTimeType.GetHashCode();
            }
            hash ^= (int)startTimeCase_;
            hash ^= (int)endTimeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }