@Test @SuppressWarnings("all") public void mutateBillingSetupTest() { MutateBillingSetupResponse expectedResponse = MutateBillingSetupResponse.newBuilder().build(); mockBillingSetupService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; BillingSetupOperation operation = BillingSetupOperation.newBuilder().build(); MutateBillingSetupResponse actualResponse = client.mutateBillingSetup(customerId, operation); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockBillingSetupService.getRequests(); Assert.assertEquals(1, actualRequests.size()); MutateBillingSetupRequest actualRequest = (MutateBillingSetupRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operation, actualRequest.getOperation()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final MutateBillingSetupResponse mutateBillingSetup( String customerId, BillingSetupOperation operation) { MutateBillingSetupRequest request = MutateBillingSetupRequest.newBuilder() .setCustomerId(customerId) .setOperation(operation) .build(); return mutateBillingSetup(request); }
BillingSetupServiceClient implements BackgroundResource { public final MutateBillingSetupResponse mutateBillingSetup( String customerId, BillingSetupOperation operation) { MutateBillingSetupRequest request = MutateBillingSetupRequest.newBuilder() .setCustomerId(customerId) .setOperation(operation) .build(); return mutateBillingSetup(request); } }
BillingSetupServiceClient implements BackgroundResource { public final MutateBillingSetupResponse mutateBillingSetup( String customerId, BillingSetupOperation operation) { MutateBillingSetupRequest request = MutateBillingSetupRequest.newBuilder() .setCustomerId(customerId) .setOperation(operation) .build(); return mutateBillingSetup(request); } protected  BillingSetupServiceClient(BillingSetupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  BillingSetupServiceClient(BillingSetupServiceStub stub); }
BillingSetupServiceClient implements BackgroundResource { public final MutateBillingSetupResponse mutateBillingSetup( String customerId, BillingSetupOperation operation) { MutateBillingSetupRequest request = MutateBillingSetupRequest.newBuilder() .setCustomerId(customerId) .setOperation(operation) .build(); return mutateBillingSetup(request); } protected  BillingSetupServiceClient(BillingSetupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  BillingSetupServiceClient(BillingSetupServiceStub stub); static final BillingSetupServiceClient create(); static final BillingSetupServiceClient create(BillingSetupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final BillingSetupServiceClient create(BillingSetupServiceStub stub); final BillingSetupServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") BillingSetupServiceStub getStub(); final BillingSetup getBillingSetup(BillingSetupName resourceName); final BillingSetup getBillingSetup(String resourceName); final BillingSetup getBillingSetup(GetBillingSetupRequest request); final UnaryCallable<GetBillingSetupRequest, BillingSetup> getBillingSetupCallable(); final MutateBillingSetupResponse mutateBillingSetup(
      String customerId, BillingSetupOperation operation); final MutateBillingSetupResponse mutateBillingSetup(MutateBillingSetupRequest request); final UnaryCallable<MutateBillingSetupRequest, MutateBillingSetupResponse> mutateBillingSetupCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
BillingSetupServiceClient implements BackgroundResource { public final MutateBillingSetupResponse mutateBillingSetup( String customerId, BillingSetupOperation operation) { MutateBillingSetupRequest request = MutateBillingSetupRequest.newBuilder() .setCustomerId(customerId) .setOperation(operation) .build(); return mutateBillingSetup(request); } protected  BillingSetupServiceClient(BillingSetupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  BillingSetupServiceClient(BillingSetupServiceStub stub); static final BillingSetupServiceClient create(); static final BillingSetupServiceClient create(BillingSetupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final BillingSetupServiceClient create(BillingSetupServiceStub stub); final BillingSetupServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") BillingSetupServiceStub getStub(); final BillingSetup getBillingSetup(BillingSetupName resourceName); final BillingSetup getBillingSetup(String resourceName); final BillingSetup getBillingSetup(GetBillingSetupRequest request); final UnaryCallable<GetBillingSetupRequest, BillingSetup> getBillingSetupCallable(); final MutateBillingSetupResponse mutateBillingSetup(
      String customerId, BillingSetupOperation operation); final MutateBillingSetupResponse mutateBillingSetup(MutateBillingSetupRequest request); final UnaryCallable<MutateBillingSetupRequest, MutateBillingSetupResponse> mutateBillingSetupCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }