예제 #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;
            }
        }
예제 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    global::Tensorflow.Serving.ExampleList subBuilder = new global::Tensorflow.Serving.ExampleList();
                    if (kindCase_ == KindOneofCase.ExampleList)
                    {
                        subBuilder.MergeFrom(ExampleList);
                    }
                    input.ReadMessage(subBuilder);
                    ExampleList = subBuilder;
                    break;
                }

                case 18: {
                    global::Tensorflow.Serving.ExampleListWithContext subBuilder = new global::Tensorflow.Serving.ExampleListWithContext();
                    if (kindCase_ == KindOneofCase.ExampleListWithContext)
                    {
                        subBuilder.MergeFrom(ExampleListWithContext);
                    }
                    input.ReadMessage(subBuilder);
                    ExampleListWithContext = subBuilder;
                    break;
                }
                }
            }
        }