Exemplo n.º 1
0
        public void MergeFrom(ProcessRequest other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.ContentCase)
            {
            case ContentOneofCase.Init:
                if (Init == null)
                {
                    Init = new global::Acd.InitRequest();
                }
                Init.MergeFrom(other.Init);
                break;

            case ContentOneofCase.Data:
                if (Data == null)
                {
                    Data = new global::Acd.DataChunk();
                }
                Data.MergeFrom(other.Data);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Exemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    global::Acd.InitRequest subBuilder = new global::Acd.InitRequest();
                    if (contentCase_ == ContentOneofCase.Init)
                    {
                        subBuilder.MergeFrom(Init);
                    }
                    input.ReadMessage(subBuilder);
                    Init = subBuilder;
                    break;
                }

                case 18: {
                    global::Acd.DataChunk subBuilder = new global::Acd.DataChunk();
                    if (contentCase_ == ContentOneofCase.Data)
                    {
                        subBuilder.MergeFrom(Data);
                    }
                    input.ReadMessage(subBuilder);
                    Data = subBuilder;
                    break;
                }
                }
            }
        }