コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (expectationCase_ == ExpectationOneofCase.PlainExpectation)
            {
                hash ^= PlainExpectation.GetHashCode();
            }
            hash ^= (int)expectationCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public void MergeFrom(TokenExpectation other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.ExpectationCase)
            {
            case ExpectationOneofCase.PlainExpectation:
                if (PlainExpectation == null)
                {
                    PlainExpectation = new global::Protos.PlainExpectation();
                }
                PlainExpectation.MergeFrom(other.PlainExpectation);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }