Example #1
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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 32: {
                    Type = (global::Google.Ads.GoogleAds.V7.Enums.OfflineUserDataJobTypeEnum.Types.OfflineUserDataJobType)input.ReadEnum();
                    break;
                }

                case 40: {
                    Status = (global::Google.Ads.GoogleAds.V7.Enums.OfflineUserDataJobStatusEnum.Types.OfflineUserDataJobStatus)input.ReadEnum();
                    break;
                }

                case 48: {
                    FailureReason = (global::Google.Ads.GoogleAds.V7.Enums.OfflineUserDataJobFailureReasonEnum.Types.OfflineUserDataJobFailureReason)input.ReadEnum();
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V7.Common.CustomerMatchUserListMetadata subBuilder = new global::Google.Ads.GoogleAds.V7.Common.CustomerMatchUserListMetadata();
                    if (metadataCase_ == MetadataOneofCase.CustomerMatchUserListMetadata)
                    {
                        subBuilder.MergeFrom(CustomerMatchUserListMetadata);
                    }
                    input.ReadMessage(subBuilder);
                    CustomerMatchUserListMetadata = subBuilder;
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V7.Common.StoreSalesMetadata subBuilder = new global::Google.Ads.GoogleAds.V7.Common.StoreSalesMetadata();
                    if (metadataCase_ == MetadataOneofCase.StoreSalesMetadata)
                    {
                        subBuilder.MergeFrom(StoreSalesMetadata);
                    }
                    input.ReadMessage(subBuilder);
                    StoreSalesMetadata = subBuilder;
                    break;
                }

                case 72: {
                    Id = input.ReadInt64();
                    break;
                }

                case 80: {
                    ExternalId = input.ReadInt64();
                    break;
                }
                }
            }
        }
Example #2
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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 32: {
                    Type = (global::Google.Ads.GoogleAds.V7.Enums.OfflineUserDataJobTypeEnum.Types.OfflineUserDataJobType)input.ReadEnum();
                    break;
                }

                case 40: {
                    Status = (global::Google.Ads.GoogleAds.V7.Enums.OfflineUserDataJobStatusEnum.Types.OfflineUserDataJobStatus)input.ReadEnum();
                    break;
                }

                case 48: {
                    FailureReason = (global::Google.Ads.GoogleAds.V7.Enums.OfflineUserDataJobFailureReasonEnum.Types.OfflineUserDataJobFailureReason)input.ReadEnum();
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V7.Common.CustomerMatchUserListMetadata subBuilder = new global::Google.Ads.GoogleAds.V7.Common.CustomerMatchUserListMetadata();
                    if (metadataCase_ == MetadataOneofCase.CustomerMatchUserListMetadata)
                    {
                        subBuilder.MergeFrom(CustomerMatchUserListMetadata);
                    }
                    input.ReadMessage(subBuilder);
                    CustomerMatchUserListMetadata = subBuilder;
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V7.Common.StoreSalesMetadata subBuilder = new global::Google.Ads.GoogleAds.V7.Common.StoreSalesMetadata();
                    if (metadataCase_ == MetadataOneofCase.StoreSalesMetadata)
                    {
                        subBuilder.MergeFrom(StoreSalesMetadata);
                    }
                    input.ReadMessage(subBuilder);
                    StoreSalesMetadata = subBuilder;
                    break;
                }

                case 72: {
                    Id = input.ReadInt64();
                    break;
                }

                case 80: {
                    ExternalId = input.ReadInt64();
                    break;
                }
                }
            }
    #endif
        }