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

            if (VersionInfo.Length != 0)
            {
                hash ^= VersionInfo.GetHashCode();
            }
            hash ^= resources_.GetHashCode();
            if (Canary != false)
            {
                hash ^= Canary.GetHashCode();
            }
            if (TypeUrl.Length != 0)
            {
                hash ^= TypeUrl.GetHashCode();
            }
            if (Nonce.Length != 0)
            {
                hash ^= Nonce.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (VersionInfo.Length != 0)
            {
                hash ^= VersionInfo.GetHashCode();
            }
            if (node_ != null)
            {
                hash ^= Node.GetHashCode();
            }
            hash ^= resourceNames_.GetHashCode();
            if (TypeUrl.Length != 0)
            {
                hash ^= TypeUrl.GetHashCode();
            }
            if (ResponseNonce.Length != 0)
            {
                hash ^= ResponseNonce.GetHashCode();
            }
            if (errorDetail_ != null)
            {
                hash ^= ErrorDetail.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Kind != global::Google.Protobuf.WellKnownTypes.Field.Types.Kind.TYPE_UNKNOWN)
            {
                hash ^= Kind.GetHashCode();
            }
            if (Cardinality != global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality.CARDINALITY_UNKNOWN)
            {
                hash ^= Cardinality.GetHashCode();
            }
            if (Number != 0)
            {
                hash ^= Number.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (TypeUrl.Length != 0)
            {
                hash ^= TypeUrl.GetHashCode();
            }
            if (OneofIndex != 0)
            {
                hash ^= OneofIndex.GetHashCode();
            }
            if (Packed != false)
            {
                hash ^= Packed.GetHashCode();
            }
            hash ^= options_.GetHashCode();
            return(hash);
        }
Example #4
0
        /// <summary></summary>
        public override int GetHashCode()
        {
            var code = 13;

            // Calculate hash on each properties one by one
            code = (code * 7) + Id.GetHashCode();
            if (ItemReference != null)
            {
                code = (code * 7) + ItemReference.GetHashCode();
            }
            if (this.AnnotationsUrl != null)
            {
                code = (code * 7) + AnnotationsUrl.GetHashCode();
            }
            if (this.CategoryUrl != null)
            {
                code = (code * 7) + CategoryUrl.GetHashCode();
            }
            if (this.CreationTime != null)
            {
                code = (code * 7) + CreationTime.GetHashCode();
            }
            code = (code * 7) + IsAckRequired.GetHashCode();
            code = (code * 7) + IsAcknowledged.GetHashCode();
            code = (code * 7) + IsDiscarded.GetHashCode();
            if (this.Message != null)
            {
                code = (code * 7) + Message.GetHashCode();
            }
            if (this.Name != null)
            {
                code = (code * 7) + Name.GetHashCode();
            }
            if (this.ObjectUrl != null)
            {
                code = (code * 7) + ObjectUrl.GetHashCode();
            }
            code = (code * 7) + Priority.GetHashCode();
            if (this.Self != null)
            {
                code = (code * 7) + Self.GetHashCode();
            }
            if (this.TypeUrl != null)
            {
                code = (code * 7) + TypeUrl.GetHashCode();
            }
            if (this.Type != null)
            {
                code = (code * 7) + Type.GetHashCode();
            }
            if (this.Category != null)
            {
                code = (code * 7) + Category.GetHashCode();
            }
            return(code);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (Category != global::Google.Ads.GoogleAds.V2.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified)
            {
                hash ^= Category.GetHashCode();
            }
            if (selectable_ != null)
            {
                hash ^= Selectable.GetHashCode();
            }
            if (filterable_ != null)
            {
                hash ^= Filterable.GetHashCode();
            }
            if (sortable_ != null)
            {
                hash ^= Sortable.GetHashCode();
            }
            hash ^= selectableWith_.GetHashCode();
            hash ^= attributeResources_.GetHashCode();
            hash ^= metrics_.GetHashCode();
            hash ^= segments_.GetHashCode();
            hash ^= enumValues_.GetHashCode();
            if (DataType != global::Google.Ads.GoogleAds.V2.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified)
            {
                hash ^= DataType.GetHashCode();
            }
            if (typeUrl_ != null)
            {
                hash ^= TypeUrl.GetHashCode();
            }
            if (isRepeated_ != null)
            {
                hash ^= IsRepeated.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TypeUrl.Length != 0)
            {
                hash ^= TypeUrl.GetHashCode();
            }
            if (Value.Length != 0)
            {
                hash ^= Value.GetHashCode();
            }
            return(hash);
        }
Example #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TypeUrl.Length != 0)
            {
                hash ^= TypeUrl.GetHashCode();
            }
            if (Value.Length != 0)
            {
                hash ^= Value.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }