Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (RequestTypeUrl.Length != 0)
            {
                hash ^= RequestTypeUrl.GetHashCode();
            }
            if (RequestStreaming != false)
            {
                hash ^= RequestStreaming.GetHashCode();
            }
            if (ResponseTypeUrl.Length != 0)
            {
                hash ^= ResponseTypeUrl.GetHashCode();
            }
            if (ResponseStreaming != false)
            {
                hash ^= ResponseStreaming.GetHashCode();
            }
            hash ^= options_.GetHashCode();
            if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.SYNTAX_PROTO2)
            {
                hash ^= Syntax.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (RequestTypeUrl.Length != 0)
            {
                hash ^= RequestTypeUrl.GetHashCode();
            }
            if (RequestStreaming != false)
            {
                hash ^= RequestStreaming.GetHashCode();
            }
            if (ResponseTypeUrl.Length != 0)
            {
                hash ^= ResponseTypeUrl.GetHashCode();
            }
            if (ResponseStreaming != false)
            {
                hash ^= ResponseStreaming.GetHashCode();
            }
            hash ^= options_.GetHashCode();
            if (Syntax != 0)
            {
                hash ^= Syntax.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (RequestTypeUrl.Length != 0)
            {
                hash ^= RequestTypeUrl.GetHashCode();
            }
            if (RequestStreaming != false)
            {
                hash ^= RequestStreaming.GetHashCode();
            }
            if (ResponseTypeUrl.Length != 0)
            {
                hash ^= ResponseTypeUrl.GetHashCode();
            }
            if (ResponseStreaming != false)
            {
                hash ^= ResponseStreaming.GetHashCode();
            }
            hash ^= options_.GetHashCode();
            if (Syntax != global::LC.Google.Protobuf.WellKnownTypes.Syntax.Proto2)
            {
                hash ^= Syntax.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }