Exemple #1
0
 public override int GetHashCode() {
   int hash = 1;
   if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode();
   if (campaign_ != null) hash ^= Campaign.GetHashCode();
   if (sharedSet_ != null) hash ^= SharedSet.GetHashCode();
   if (Status != 0) hash ^= Status.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (sharedSet_ != null)
            {
                hash ^= SharedSet.GetHashCode();
            }
            if (criterionId_ != null)
            {
                hash ^= CriterionId.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.Keyword)
            {
                hash ^= Keyword.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.YoutubeVideo)
            {
                hash ^= YoutubeVideo.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.YoutubeChannel)
            {
                hash ^= YoutubeChannel.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.Placement)
            {
                hash ^= Placement.GetHashCode();
            }
            hash ^= (int)criterionCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }