@Test @SuppressWarnings("all") public void mutateKeywordPlanAdGroupsTest() { MutateKeywordPlanAdGroupsResponse expectedResponse = MutateKeywordPlanAdGroupsResponse.newBuilder().build(); mockKeywordPlanAdGroupService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; List<KeywordPlanAdGroupOperation> operations = new ArrayList<>(); MutateKeywordPlanAdGroupsResponse actualResponse = client.mutateKeywordPlanAdGroups(customerId, operations); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockKeywordPlanAdGroupService.getRequests(); Assert.assertEquals(1, actualRequests.size()); MutateKeywordPlanAdGroupsRequest actualRequest = (MutateKeywordPlanAdGroupsRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups( String customerId, List<KeywordPlanAdGroupOperation> operations) { MutateKeywordPlanAdGroupsRequest request = MutateKeywordPlanAdGroupsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateKeywordPlanAdGroups(request); }
KeywordPlanAdGroupServiceClient implements BackgroundResource { public final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups( String customerId, List<KeywordPlanAdGroupOperation> operations) { MutateKeywordPlanAdGroupsRequest request = MutateKeywordPlanAdGroupsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateKeywordPlanAdGroups(request); } }
KeywordPlanAdGroupServiceClient implements BackgroundResource { public final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups( String customerId, List<KeywordPlanAdGroupOperation> operations) { MutateKeywordPlanAdGroupsRequest request = MutateKeywordPlanAdGroupsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateKeywordPlanAdGroups(request); } protected  KeywordPlanAdGroupServiceClient(KeywordPlanAdGroupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  KeywordPlanAdGroupServiceClient(KeywordPlanAdGroupServiceStub stub); }
KeywordPlanAdGroupServiceClient implements BackgroundResource { public final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups( String customerId, List<KeywordPlanAdGroupOperation> operations) { MutateKeywordPlanAdGroupsRequest request = MutateKeywordPlanAdGroupsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateKeywordPlanAdGroups(request); } protected  KeywordPlanAdGroupServiceClient(KeywordPlanAdGroupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  KeywordPlanAdGroupServiceClient(KeywordPlanAdGroupServiceStub stub); static final KeywordPlanAdGroupServiceClient create(); static final KeywordPlanAdGroupServiceClient create(
      KeywordPlanAdGroupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final KeywordPlanAdGroupServiceClient create(KeywordPlanAdGroupServiceStub stub); final KeywordPlanAdGroupServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") KeywordPlanAdGroupServiceStub getStub(); final KeywordPlanAdGroup getKeywordPlanAdGroup(KeywordPlanAdGroupName resourceName); final KeywordPlanAdGroup getKeywordPlanAdGroup(String resourceName); final KeywordPlanAdGroup getKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest request); final UnaryCallable<GetKeywordPlanAdGroupRequest, KeywordPlanAdGroup> getKeywordPlanAdGroupCallable(); final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups(
      String customerId, List<KeywordPlanAdGroupOperation> operations); final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups(
      MutateKeywordPlanAdGroupsRequest request); final UnaryCallable<MutateKeywordPlanAdGroupsRequest, MutateKeywordPlanAdGroupsResponse> mutateKeywordPlanAdGroupsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
KeywordPlanAdGroupServiceClient implements BackgroundResource { public final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups( String customerId, List<KeywordPlanAdGroupOperation> operations) { MutateKeywordPlanAdGroupsRequest request = MutateKeywordPlanAdGroupsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateKeywordPlanAdGroups(request); } protected  KeywordPlanAdGroupServiceClient(KeywordPlanAdGroupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  KeywordPlanAdGroupServiceClient(KeywordPlanAdGroupServiceStub stub); static final KeywordPlanAdGroupServiceClient create(); static final KeywordPlanAdGroupServiceClient create(
      KeywordPlanAdGroupServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final KeywordPlanAdGroupServiceClient create(KeywordPlanAdGroupServiceStub stub); final KeywordPlanAdGroupServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") KeywordPlanAdGroupServiceStub getStub(); final KeywordPlanAdGroup getKeywordPlanAdGroup(KeywordPlanAdGroupName resourceName); final KeywordPlanAdGroup getKeywordPlanAdGroup(String resourceName); final KeywordPlanAdGroup getKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest request); final UnaryCallable<GetKeywordPlanAdGroupRequest, KeywordPlanAdGroup> getKeywordPlanAdGroupCallable(); final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups(
      String customerId, List<KeywordPlanAdGroupOperation> operations); final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups(
      MutateKeywordPlanAdGroupsRequest request); final UnaryCallable<MutateKeywordPlanAdGroupsRequest, MutateKeywordPlanAdGroupsResponse> mutateKeywordPlanAdGroupsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }