@Test @SuppressWarnings("all") public void getCustomerClientLinkTest() { com.google.ads.googleads.v5.services.CustomerClientLinkName resourceName2 = com.google.ads.googleads.v5.services.CustomerClientLinkName.of( "[CUSTOMER]", "[CUSTOMER_CLIENT_LINK]"); CustomerClientLink expectedResponse = CustomerClientLink.newBuilder().setResourceName(resourceName2.toString()).build(); mockCustomerClientLinkService.addResponse(expectedResponse); CustomerClientLinkName resourceName = CustomerClientLinkName.of("[CUSTOMER]", "[CUSTOMER_CLIENT_LINK]"); CustomerClientLink actualResponse = client.getCustomerClientLink(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockCustomerClientLinkService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetCustomerClientLinkRequest actualRequest = (GetCustomerClientLinkRequest) actualRequests.get(0); Assert.assertEquals( resourceName, CustomerClientLinkName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName) { GetCustomerClientLinkRequest request = GetCustomerClientLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCustomerClientLink(request); }
CustomerClientLinkServiceClient implements BackgroundResource { public final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName) { GetCustomerClientLinkRequest request = GetCustomerClientLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCustomerClientLink(request); } }
CustomerClientLinkServiceClient implements BackgroundResource { public final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName) { GetCustomerClientLinkRequest request = GetCustomerClientLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCustomerClientLink(request); } protected  CustomerClientLinkServiceClient(CustomerClientLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerClientLinkServiceClient(CustomerClientLinkServiceStub stub); }
CustomerClientLinkServiceClient implements BackgroundResource { public final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName) { GetCustomerClientLinkRequest request = GetCustomerClientLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCustomerClientLink(request); } protected  CustomerClientLinkServiceClient(CustomerClientLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerClientLinkServiceClient(CustomerClientLinkServiceStub stub); static final CustomerClientLinkServiceClient create(); static final CustomerClientLinkServiceClient create(
      CustomerClientLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CustomerClientLinkServiceClient create(CustomerClientLinkServiceStub stub); final CustomerClientLinkServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CustomerClientLinkServiceStub getStub(); final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName); final CustomerClientLink getCustomerClientLink(String resourceName); final CustomerClientLink getCustomerClientLink(GetCustomerClientLinkRequest request); final UnaryCallable<GetCustomerClientLinkRequest, CustomerClientLink> getCustomerClientLinkCallable(); final MutateCustomerClientLinkResponse mutateCustomerClientLink(
      String customerId, CustomerClientLinkOperation operation); final MutateCustomerClientLinkResponse mutateCustomerClientLink(
      MutateCustomerClientLinkRequest request); final UnaryCallable<MutateCustomerClientLinkRequest, MutateCustomerClientLinkResponse> mutateCustomerClientLinkCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CustomerClientLinkServiceClient implements BackgroundResource { public final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName) { GetCustomerClientLinkRequest request = GetCustomerClientLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCustomerClientLink(request); } protected  CustomerClientLinkServiceClient(CustomerClientLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerClientLinkServiceClient(CustomerClientLinkServiceStub stub); static final CustomerClientLinkServiceClient create(); static final CustomerClientLinkServiceClient create(
      CustomerClientLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CustomerClientLinkServiceClient create(CustomerClientLinkServiceStub stub); final CustomerClientLinkServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CustomerClientLinkServiceStub getStub(); final CustomerClientLink getCustomerClientLink(CustomerClientLinkName resourceName); final CustomerClientLink getCustomerClientLink(String resourceName); final CustomerClientLink getCustomerClientLink(GetCustomerClientLinkRequest request); final UnaryCallable<GetCustomerClientLinkRequest, CustomerClientLink> getCustomerClientLinkCallable(); final MutateCustomerClientLinkResponse mutateCustomerClientLink(
      String customerId, CustomerClientLinkOperation operation); final MutateCustomerClientLinkResponse mutateCustomerClientLink(
      MutateCustomerClientLinkRequest request); final UnaryCallable<MutateCustomerClientLinkRequest, MutateCustomerClientLinkResponse> mutateCustomerClientLinkCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }