public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (operation_ != null)
            {
                hash ^= Operation.GetHashCode();
            }
            if (PartialFailure != false)
            {
                hash ^= PartialFailure.GetHashCode();
            }
            if (ValidateOnly != false)
            {
                hash ^= ValidateOnly.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (TransactionId != null ? TransactionId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ChargeStatus != null ? ChargeStatus.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PaymentProcessor != null ? PaymentProcessor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AddressIsActive.GetHashCode();
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ChargeId.GetHashCode();
         hashCode = (hashCode * 397) ^ AddressId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShopifyId != null ? ShopifyId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShopifyOrderId != null ? ShopifyOrderId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ShopifyOrderNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShopifyCartToken != null ? ShopifyCartToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ShippingDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ScheduledAt.GetHashCode();
         hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ProcessedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ CustomerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPrepaid.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TotalPrice != null ? TotalPrice.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShippingAddress != null ? ShippingAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingAddress != null ? BillingAddress.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (BillingSetup.Length != 0)
            {
                hash ^= BillingSetup.GetHashCode();
            }
            if (IssueYear.Length != 0)
            {
                hash ^= IssueYear.GetHashCode();
            }
            if (IssueMonth != global::Google.Ads.GoogleAds.V6.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified)
            {
                hash ^= IssueMonth.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (AccountNumber == null ? 0 : AccountNumber.GetHashCode());
         hash = hash * 23 + (BillToAddressId == default(int) ? 0 : BillToAddressId.GetHashCode());
         hash = hash * 23 + (Comment == null ? 0 : Comment.GetHashCode());
         hash = hash * 23 + (CreditCardApprovalCode == null ? 0 : CreditCardApprovalCode.GetHashCode());
         hash = hash * 23 + (CreditCardId == null ? 0 : CreditCardId.GetHashCode());
         hash = hash * 23 + (CurrencyRateId == null ? 0 : CurrencyRateId.GetHashCode());
         hash = hash * 23 + (CustomerId == default(int) ? 0 : CustomerId.GetHashCode());
         hash = hash * 23 + (DueDate == default(DateTime) ? 0 : DueDate.GetHashCode());
         hash = hash * 23 + (Freight == default(decimal) ? 0 : Freight.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (OnlineOrderFlag == default(bool) ? 0 : OnlineOrderFlag.GetHashCode());
         hash = hash * 23 + (OrderDate == default(DateTime) ? 0 : OrderDate.GetHashCode());
         hash = hash * 23 + (PurchaseOrderNumber == null ? 0 : PurchaseOrderNumber.GetHashCode());
         hash = hash * 23 + (RevisionNumber == default(byte) ? 0 : RevisionNumber.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         hash = hash * 23 + (SalesOrderNumber == null ? 0 : SalesOrderNumber.GetHashCode());
         hash = hash * 23 + (SalesPersonId == null ? 0 : SalesPersonId.GetHashCode());
         hash = hash * 23 + (ShipDate == null ? 0 : ShipDate.GetHashCode());
         hash = hash * 23 + (ShipMethodId == default(int) ? 0 : ShipMethodId.GetHashCode());
         hash = hash * 23 + (ShipToAddressId == default(int) ? 0 : ShipToAddressId.GetHashCode());
         hash = hash * 23 + (Status == default(byte) ? 0 : Status.GetHashCode());
         hash = hash * 23 + (SubTotal == default(decimal) ? 0 : SubTotal.GetHashCode());
         hash = hash * 23 + (TaxAmt == default(decimal) ? 0 : TaxAmt.GetHashCode());
         hash = hash * 23 + (TerritoryId == null ? 0 : TerritoryId.GetHashCode());
         hash = hash * 23 + (TotalDue == default(decimal) ? 0 : TotalDue.GetHashCode());
         return(hash);
     }
 }
Exemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (BillingSetup.Length != 0)
            {
                hash ^= BillingSetup.GetHashCode();
            }
            if (IssueYear.Length != 0)
            {
                hash ^= IssueYear.GetHashCode();
            }
            if (IssueMonth != 0)
            {
                hash ^= IssueMonth.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((CustomerId.GetHashCode() * 397) ^ Quantity);
     }
 }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (CustomerName.Length != 0)
            {
                hash ^= CustomerName.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (Color.Length != 0)
            {
                hash ^= Color.GetHashCode();
            }
            if (RoomId != 0)
            {
                hash ^= RoomId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hashCode = -1654316684;

            if (CustomerId != null)
            {
                hashCode += CustomerId.GetHashCode();
            }

            if (DisplayName != null)
            {
                hashCode += DisplayName.GetHashCode();
            }

            if (EmailAddress != null)
            {
                hashCode += EmailAddress.GetHashCode();
            }

            if (PhoneNumber != null)
            {
                hashCode += PhoneNumber.GetHashCode();
            }

            if (Address != null)
            {
                hashCode += Address.GetHashCode();
            }

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

            if (VehicleId.Length != 0)
            {
                hash ^= VehicleId.GetHashCode();
            }
            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (Registration.Length != 0)
            {
                hash ^= Registration.GetHashCode();
            }
            if (MakeModel.Length != 0)
            {
                hash ^= MakeModel.GetHashCode();
            }
            if (MaxSpeed != 0)
            {
                hash ^= MaxSpeed.GetHashCode();
            }
            if (MaxTemperature != 0)
            {
                hash ^= MaxTemperature.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AssetUrl != null)
         {
             hashCode = hashCode * 59 + AssetUrl.GetHashCode();
         }
         if (ClientApiUrl != null)
         {
             hashCode = hashCode * 59 + ClientApiUrl.GetHashCode();
         }
         if (ClientSessionId != null)
         {
             hashCode = hashCode * 59 + ClientSessionId.GetHashCode();
         }
         if (CustomerId != null)
         {
             hashCode = hashCode * 59 + CustomerId.GetHashCode();
         }
         if (InvalidTokens != null)
         {
             hashCode = hashCode * 59 + InvalidTokens.GetHashCode();
         }
         if (Region != null)
         {
             hashCode = hashCode * 59 + Region.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 11
0
        public void NewTypeHashCode()
        {
            var       c1 = new CustomerId(946);
            const int x1 = 946;

            AreEqual(x1.GetHashCode(), c1.GetHashCode());
        }
Exemplo n.º 12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (HasAge)
            {
                hash ^= Age.GetHashCode();
            }
            if (address_ != null)
            {
                hash ^= Address.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 13
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((OrderId * 397) ^ (CustomerId != null ? CustomerId.GetHashCode() : 0));
     }
 }
Exemplo n.º 14
0
        public override int GetHashCode()
        {
            int hashDocNo      = DocumentNo == null ? 0 : DocumentNo.GetHashCode();
            int hashCustomerId = CustomerId == null ? 0 : CustomerId.GetHashCode();
            int hashSalesmanId = SalesmanId == null ? 0 : SalesmanId.GetHashCode();

            return(hashDocNo * hashCustomerId * hashSalesmanId);
        }
Exemplo n.º 15
0
        public override int GetHashCode()
        {
            int hashCustId = CustomerId == null ? 0 : CustomerId.GetHashCode();

            int hashName = Name == null ? 0 : Name.GetHashCode();

            return(hashCustId ^ hashName);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CustomerId.GetHashCode();
         hashCode = (hashCode * 397) ^ Name.GetHashCodeSafely();
         return(hashCode);
     }
 }
 public override int GetHashCode() {
   int hash = 1;
   if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode();
   if (operation_ != null) hash ^= Operation.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
        public override int GetHashCode()
        {
            int hashCode = 801909259;

            if (IdempotencyKey != null)
            {
                hashCode += IdempotencyKey.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (PlanId != null)
            {
                hashCode += PlanId.GetHashCode();
            }

            if (CustomerId != null)
            {
                hashCode += CustomerId.GetHashCode();
            }

            if (StartDate != null)
            {
                hashCode += StartDate.GetHashCode();
            }

            if (CanceledDate != null)
            {
                hashCode += CanceledDate.GetHashCode();
            }

            if (TaxPercentage != null)
            {
                hashCode += TaxPercentage.GetHashCode();
            }

            if (PriceOverrideMoney != null)
            {
                hashCode += PriceOverrideMoney.GetHashCode();
            }

            if (CardId != null)
            {
                hashCode += CardId.GetHashCode();
            }

            if (Timezone != null)
            {
                hashCode += Timezone.GetHashCode();
            }

            return(hashCode);
        }
Exemplo n.º 19
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (CustomerId != null)
         {
             hashCode = hashCode * 59 + CustomerId.GetHashCode();
         }
         if (ExpiryMonth != null)
         {
             hashCode = hashCode * 59 + ExpiryMonth.GetHashCode();
         }
         if (ExpiryYear != null)
         {
             hashCode = hashCode * 59 + ExpiryYear.GetHashCode();
         }
         if (BillingDetails != null)
         {
             hashCode = hashCode * 59 + BillingDetails.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Last4 != null)
         {
             hashCode = hashCode * 59 + Last4.GetHashCode();
         }
         if (PaymentMethod != null)
         {
             hashCode = hashCode * 59 + PaymentMethod.GetHashCode();
         }
         if (Fingerprint != null)
         {
             hashCode = hashCode * 59 + Fingerprint.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (CvvCheck != null)
         {
             hashCode = hashCode * 59 + CvvCheck.GetHashCode();
         }
         if (AvsCheck != null)
         {
             hashCode = hashCode * 59 + AvsCheck.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 20
0
        public override int GetHashCode()
        {
            int hashCode = -823121408;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Mappings != null)
            {
                hashCode += Mappings.GetHashCode();
            }

            if (ProgramId != null)
            {
                hashCode += ProgramId.GetHashCode();
            }

            if (Balance != null)
            {
                hashCode += Balance.GetHashCode();
            }

            if (LifetimePoints != null)
            {
                hashCode += LifetimePoints.GetHashCode();
            }

            if (CustomerId != null)
            {
                hashCode += CustomerId.GetHashCode();
            }

            if (EnrolledAt != null)
            {
                hashCode += EnrolledAt.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            return(hashCode);
        }
Exemplo n.º 21
0
        public override int GetHashCode()
        {
            var hashCode = 3434434;

            hashCode = hashCode * -231231231 + CustomerId.GetHashCode();
            hashCode = hashCode * -231231231 + FirstName.GetHashCode();
            hashCode = hashCode * -231231231 + LastName.GetHashCode();
            hashCode = hashCode * -231231231 + Phone.GetHashCode();
            hashCode = hashCode * -231231231 + SubscriptionNumber.GetHashCode();
            hashCode = hashCode * -231231231 + SessionsCount.GetHashCode();
            hashCode = hashCode * -231231231 + StartDate.GetHashCode();
            hashCode = hashCode * -231231231 + Status.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 22
0
 public override int GetHashCode() {
   int hash = 1;
   if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode();
   if (language_ != null) hash ^= Language.GetHashCode();
   hash ^= geoTargetConstants_.GetHashCode();
   if (KeywordPlanNetwork != 0) hash ^= KeywordPlanNetwork.GetHashCode();
   if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) hash ^= KeywordAndUrlSeed.GetHashCode();
   if (seedCase_ == SeedOneofCase.KeywordSeed) hash ^= KeywordSeed.GetHashCode();
   if (seedCase_ == SeedOneofCase.UrlSeed) hash ^= UrlSeed.GetHashCode();
   hash ^= (int) seedCase_;
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Exemplo n.º 23
0
    public override int GetHashCode()
    {
        var hash = 1;

        if (OrderId != 0)
        {
            hash ^= OrderId.GetHashCode();
        }
        if (CustomerId != 0)
        {
            hash ^= CustomerId.GetHashCode();
        }
        hash ^= orderItems_.GetHashCode();
        return(hash);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            hash ^= operations_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 25
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (CustomerId != null)
                {
                    hashCode = hashCode * 59 + CustomerId.GetHashCode();
                }
                if (CustomerCode != null)
                {
                    hashCode = hashCode * 59 + CustomerCode.GetHashCode();
                }
                if (CustomerName != null)
                {
                    hashCode = hashCode * 59 + CustomerName.GetHashCode();
                }
                if (Email != null)
                {
                    hashCode = hashCode * 59 + Email.GetHashCode();
                }
                if (CompanyName != null)
                {
                    hashCode = hashCode * 59 + CompanyName.GetHashCode();
                }
                if (CustomerGroupId != null)
                {
                    hashCode = hashCode * 59 + CustomerGroupId.GetHashCode();
                }

                hashCode = hashCode * 59 + DebitMoney.GetHashCode();
                if (Address != null)
                {
                    hashCode = hashCode * 59 + Address.GetHashCode();
                }
                if (PhoneNumber != null)
                {
                    hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
                }
                if (DateOfBirth != null)
                {
                    hashCode = hashCode * 59 + DateOfBirth.GetHashCode();
                }
                return(hashCode);
            }
        }
Exemplo n.º 26
0
        public override int GetHashCode()
        {
            int hashCode = 1218412534;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + CustomerId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Customer> .Default.GetHashCode(Customer);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <OrderItem> > .Default.GetHashCode(OrderItems);

            hashCode = hashCode * -1521134295 + TotalPrice.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(OrderTime);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(OrderState);

            return(hashCode);
        }
Exemplo n.º 27
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (BillingAddress != null ? BillingAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CardBrand != null ? CardBrand.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CardExpMonth.GetHashCode();
         hashCode = (hashCode * 397) ^ CardExpYear.GetHashCode();
         hashCode = (hashCode * 397) ^ (CardLast4 != null ? CardLast4.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CustomerId.GetHashCode();
         hashCode = (hashCode * 397) ^ HasCardErrorInDunning.GetHashCode();
         hashCode = (hashCode * 397) ^ (PaymentType != null ? PaymentType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProcessorName != null ? ProcessorName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StatusReason != null ? StatusReason.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 28
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            if (Credit != 0)
            {
                hash ^= Credit.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 29
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            hash ^= operations_.GetHashCode();
            if (ResponseContentType != global::Google.Ads.GoogleAds.V5.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified)
            {
                hash ^= ResponseContentType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 30
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CustomerId.Length != 0)
            {
                hash ^= CustomerId.GetHashCode();
            }
            hash ^= operations_.GetHashCode();
            if (metadataCase_ == MetadataOneofCase.CustomerMatchUserListMetadata)
            {
                hash ^= CustomerMatchUserListMetadata.GetHashCode();
            }
            hash ^= (int)metadataCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }