Exemple #1
0
        public void MergeFrom(Input other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.KindCase)
            {
            case KindOneofCase.ExampleList:
                if (ExampleList == null)
                {
                    ExampleList = new global::Tensorflow.Serving.ExampleList();
                }
                ExampleList.MergeFrom(other.ExampleList);
                break;

            case KindOneofCase.ExampleListWithContext:
                if (ExampleListWithContext == null)
                {
                    ExampleListWithContext = new global::Tensorflow.Serving.ExampleListWithContext();
                }
                ExampleListWithContext.MergeFrom(other.ExampleListWithContext);
                break;
            }
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.ExampleList)
            {
                hash ^= ExampleList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.ExampleListWithContext)
            {
                hash ^= ExampleListWithContext.GetHashCode();
            }
            hash ^= (int)kindCase_;
            return(hash);
        }
Exemple #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.ExampleList)
            {
                hash ^= ExampleList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.ExampleListWithContext)
            {
                hash ^= ExampleListWithContext.GetHashCode();
            }
            hash ^= (int)kindCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }