Esempio n. 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    RequestId = input.ReadString();
                    break;
                }

                case 18: {
                    EventId = input.ReadString();
                    break;
                }

                case 34: {
                    if (createTime_ == null)
                    {
                        CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(CreateTime);
                    break;
                }

                case 42: {
                    global::Google.Cloud.Talent.V4.JobEvent subBuilder = new global::Google.Cloud.Talent.V4.JobEvent();
                    if (eventCase_ == EventOneofCase.JobEvent)
                    {
                        subBuilder.MergeFrom(JobEvent);
                    }
                    input.ReadMessage(subBuilder);
                    JobEvent = subBuilder;
                    break;
                }

                case 74: {
                    EventNotes = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }
Esempio n. 2
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

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

                case 10: {
                    RequestId = input.ReadString();
                    break;
                }

                case 18: {
                    EventId = input.ReadString();
                    break;
                }

                case 34: {
                    if (createTime_ == null)
                    {
                        CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(CreateTime);
                    break;
                }

                case 42: {
                    global::Google.Cloud.Talent.V4.JobEvent subBuilder = new global::Google.Cloud.Talent.V4.JobEvent();
                    if (eventCase_ == EventOneofCase.JobEvent)
                    {
                        subBuilder.MergeFrom(JobEvent);
                    }
                    input.ReadMessage(subBuilder);
                    JobEvent = subBuilder;
                    break;
                }

                case 74: {
                    EventNotes = input.ReadString();
                    break;
                }
                }
            }
        }