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

            if (payloadCase_ == PayloadOneofCase.TextSnippet)
            {
                hash ^= TextSnippet.GetHashCode();
            }
            hash ^= (int)payloadCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public void MergeFrom(ExamplePayload other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.PayloadCase)
            {
            case PayloadOneofCase.TextSnippet:
                if (TextSnippet == null)
                {
                    TextSnippet = new global::Google.Cloud.AutoML.V1.TextSnippet();
                }
                TextSnippet.MergeFrom(other.TextSnippet);
                break;
            }

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