@Test @SuppressWarnings("all") public void mutateCampaignAssetsTest() { MutateCampaignAssetsResponse expectedResponse = MutateCampaignAssetsResponse.newBuilder().build(); mockCampaignAssetService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; List<CampaignAssetOperation> operations = new ArrayList<>(); MutateCampaignAssetsResponse actualResponse = client.mutateCampaignAssets(customerId, operations); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockCampaignAssetService.getRequests(); Assert.assertEquals(1, actualRequests.size()); MutateCampaignAssetsRequest actualRequest = (MutateCampaignAssetsRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final MutateCampaignAssetsResponse mutateCampaignAssets( String customerId, List<CampaignAssetOperation> operations) { MutateCampaignAssetsRequest request = MutateCampaignAssetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignAssets(request); }
CampaignAssetServiceClient implements BackgroundResource { public final MutateCampaignAssetsResponse mutateCampaignAssets( String customerId, List<CampaignAssetOperation> operations) { MutateCampaignAssetsRequest request = MutateCampaignAssetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignAssets(request); } }
CampaignAssetServiceClient implements BackgroundResource { public final MutateCampaignAssetsResponse mutateCampaignAssets( String customerId, List<CampaignAssetOperation> operations) { MutateCampaignAssetsRequest request = MutateCampaignAssetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignAssets(request); } protected  CampaignAssetServiceClient(CampaignAssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignAssetServiceClient(CampaignAssetServiceStub stub); }
CampaignAssetServiceClient implements BackgroundResource { public final MutateCampaignAssetsResponse mutateCampaignAssets( String customerId, List<CampaignAssetOperation> operations) { MutateCampaignAssetsRequest request = MutateCampaignAssetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignAssets(request); } protected  CampaignAssetServiceClient(CampaignAssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignAssetServiceClient(CampaignAssetServiceStub stub); static final CampaignAssetServiceClient create(); static final CampaignAssetServiceClient create(CampaignAssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignAssetServiceClient create(CampaignAssetServiceStub stub); final CampaignAssetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignAssetServiceStub getStub(); final CampaignAsset getCampaignAsset(CampaignAssetName resourceName); final CampaignAsset getCampaignAsset(String resourceName); final CampaignAsset getCampaignAsset(GetCampaignAssetRequest request); final UnaryCallable<GetCampaignAssetRequest, CampaignAsset> getCampaignAssetCallable(); final MutateCampaignAssetsResponse mutateCampaignAssets(
      String customerId, List<CampaignAssetOperation> operations); final MutateCampaignAssetsResponse mutateCampaignAssets(
      MutateCampaignAssetsRequest request); final UnaryCallable<MutateCampaignAssetsRequest, MutateCampaignAssetsResponse> mutateCampaignAssetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignAssetServiceClient implements BackgroundResource { public final MutateCampaignAssetsResponse mutateCampaignAssets( String customerId, List<CampaignAssetOperation> operations) { MutateCampaignAssetsRequest request = MutateCampaignAssetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignAssets(request); } protected  CampaignAssetServiceClient(CampaignAssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignAssetServiceClient(CampaignAssetServiceStub stub); static final CampaignAssetServiceClient create(); static final CampaignAssetServiceClient create(CampaignAssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignAssetServiceClient create(CampaignAssetServiceStub stub); final CampaignAssetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignAssetServiceStub getStub(); final CampaignAsset getCampaignAsset(CampaignAssetName resourceName); final CampaignAsset getCampaignAsset(String resourceName); final CampaignAsset getCampaignAsset(GetCampaignAssetRequest request); final UnaryCallable<GetCampaignAssetRequest, CampaignAsset> getCampaignAssetCallable(); final MutateCampaignAssetsResponse mutateCampaignAssets(
      String customerId, List<CampaignAssetOperation> operations); final MutateCampaignAssetsResponse mutateCampaignAssets(
      MutateCampaignAssetsRequest request); final UnaryCallable<MutateCampaignAssetsRequest, MutateCampaignAssetsResponse> mutateCampaignAssetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }