@Test @SuppressWarnings("all") public void mutateCampaignExtensionSettingsTest() { MutateCampaignExtensionSettingsResponse expectedResponse = MutateCampaignExtensionSettingsResponse.newBuilder().build(); mockCampaignExtensionSettingService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; List<CampaignExtensionSettingOperation> operations = new ArrayList<>(); MutateCampaignExtensionSettingsResponse actualResponse = client.mutateCampaignExtensionSettings(customerId, operations); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockCampaignExtensionSettingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); MutateCampaignExtensionSettingsRequest actualRequest = (MutateCampaignExtensionSettingsRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings( String customerId, List<CampaignExtensionSettingOperation> operations) { MutateCampaignExtensionSettingsRequest request = MutateCampaignExtensionSettingsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExtensionSettings(request); }
CampaignExtensionSettingServiceClient implements BackgroundResource { public final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings( String customerId, List<CampaignExtensionSettingOperation> operations) { MutateCampaignExtensionSettingsRequest request = MutateCampaignExtensionSettingsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExtensionSettings(request); } }
CampaignExtensionSettingServiceClient implements BackgroundResource { public final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings( String customerId, List<CampaignExtensionSettingOperation> operations) { MutateCampaignExtensionSettingsRequest request = MutateCampaignExtensionSettingsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExtensionSettings(request); } protected  CampaignExtensionSettingServiceClient(CampaignExtensionSettingServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignExtensionSettingServiceClient(CampaignExtensionSettingServiceStub stub); }
CampaignExtensionSettingServiceClient implements BackgroundResource { public final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings( String customerId, List<CampaignExtensionSettingOperation> operations) { MutateCampaignExtensionSettingsRequest request = MutateCampaignExtensionSettingsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExtensionSettings(request); } protected  CampaignExtensionSettingServiceClient(CampaignExtensionSettingServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignExtensionSettingServiceClient(CampaignExtensionSettingServiceStub stub); static final CampaignExtensionSettingServiceClient create(); static final CampaignExtensionSettingServiceClient create(
      CampaignExtensionSettingServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignExtensionSettingServiceClient create(
      CampaignExtensionSettingServiceStub stub); final CampaignExtensionSettingServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignExtensionSettingServiceStub getStub(); final CampaignExtensionSetting getCampaignExtensionSetting(
      CampaignExtensionSettingName resourceName); final CampaignExtensionSetting getCampaignExtensionSetting(String resourceName); final CampaignExtensionSetting getCampaignExtensionSetting(
      GetCampaignExtensionSettingRequest request); final UnaryCallable<GetCampaignExtensionSettingRequest, CampaignExtensionSetting> getCampaignExtensionSettingCallable(); final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings(
      String customerId, List<CampaignExtensionSettingOperation> operations); final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings(
      MutateCampaignExtensionSettingsRequest request); final UnaryCallable<
          MutateCampaignExtensionSettingsRequest, MutateCampaignExtensionSettingsResponse> mutateCampaignExtensionSettingsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignExtensionSettingServiceClient implements BackgroundResource { public final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings( String customerId, List<CampaignExtensionSettingOperation> operations) { MutateCampaignExtensionSettingsRequest request = MutateCampaignExtensionSettingsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExtensionSettings(request); } protected  CampaignExtensionSettingServiceClient(CampaignExtensionSettingServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignExtensionSettingServiceClient(CampaignExtensionSettingServiceStub stub); static final CampaignExtensionSettingServiceClient create(); static final CampaignExtensionSettingServiceClient create(
      CampaignExtensionSettingServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignExtensionSettingServiceClient create(
      CampaignExtensionSettingServiceStub stub); final CampaignExtensionSettingServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignExtensionSettingServiceStub getStub(); final CampaignExtensionSetting getCampaignExtensionSetting(
      CampaignExtensionSettingName resourceName); final CampaignExtensionSetting getCampaignExtensionSetting(String resourceName); final CampaignExtensionSetting getCampaignExtensionSetting(
      GetCampaignExtensionSettingRequest request); final UnaryCallable<GetCampaignExtensionSettingRequest, CampaignExtensionSetting> getCampaignExtensionSettingCallable(); final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings(
      String customerId, List<CampaignExtensionSettingOperation> operations); final MutateCampaignExtensionSettingsResponse mutateCampaignExtensionSettings(
      MutateCampaignExtensionSettingsRequest request); final UnaryCallable<
          MutateCampaignExtensionSettingsRequest, MutateCampaignExtensionSettingsResponse> mutateCampaignExtensionSettingsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }