@Test @SuppressWarnings("all") public void listMerchantCenterLinksTest() { ListMerchantCenterLinksResponse expectedResponse = ListMerchantCenterLinksResponse.newBuilder().build(); mockMerchantCenterLinkService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; ListMerchantCenterLinksResponse actualResponse = client.listMerchantCenterLinks(customerId); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockMerchantCenterLinkService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListMerchantCenterLinksRequest actualRequest = (ListMerchantCenterLinksRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId) { ListMerchantCenterLinksRequest request = ListMerchantCenterLinksRequest.newBuilder().setCustomerId(customerId).build(); return listMerchantCenterLinks(request); }
MerchantCenterLinkServiceClient implements BackgroundResource { public final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId) { ListMerchantCenterLinksRequest request = ListMerchantCenterLinksRequest.newBuilder().setCustomerId(customerId).build(); return listMerchantCenterLinks(request); } }
MerchantCenterLinkServiceClient implements BackgroundResource { public final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId) { ListMerchantCenterLinksRequest request = ListMerchantCenterLinksRequest.newBuilder().setCustomerId(customerId).build(); return listMerchantCenterLinks(request); } protected  MerchantCenterLinkServiceClient(MerchantCenterLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MerchantCenterLinkServiceClient(MerchantCenterLinkServiceStub stub); }
MerchantCenterLinkServiceClient implements BackgroundResource { public final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId) { ListMerchantCenterLinksRequest request = ListMerchantCenterLinksRequest.newBuilder().setCustomerId(customerId).build(); return listMerchantCenterLinks(request); } protected  MerchantCenterLinkServiceClient(MerchantCenterLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MerchantCenterLinkServiceClient(MerchantCenterLinkServiceStub stub); static final MerchantCenterLinkServiceClient create(); static final MerchantCenterLinkServiceClient create(
      MerchantCenterLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final MerchantCenterLinkServiceClient create(MerchantCenterLinkServiceStub stub); final MerchantCenterLinkServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") MerchantCenterLinkServiceStub getStub(); final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId); final ListMerchantCenterLinksResponse listMerchantCenterLinks(
      ListMerchantCenterLinksRequest request); final UnaryCallable<ListMerchantCenterLinksRequest, ListMerchantCenterLinksResponse> listMerchantCenterLinksCallable(); final MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName); final MerchantCenterLink getMerchantCenterLink(String resourceName); final MerchantCenterLink getMerchantCenterLink(GetMerchantCenterLinkRequest request); final UnaryCallable<GetMerchantCenterLinkRequest, MerchantCenterLink> getMerchantCenterLinkCallable(); final MutateMerchantCenterLinkResponse mutateMerchantCenterLink(
      String customerId, MerchantCenterLinkOperation operation); final MutateMerchantCenterLinkResponse mutateMerchantCenterLink(
      MutateMerchantCenterLinkRequest request); final UnaryCallable<MutateMerchantCenterLinkRequest, MutateMerchantCenterLinkResponse> mutateMerchantCenterLinkCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
MerchantCenterLinkServiceClient implements BackgroundResource { public final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId) { ListMerchantCenterLinksRequest request = ListMerchantCenterLinksRequest.newBuilder().setCustomerId(customerId).build(); return listMerchantCenterLinks(request); } protected  MerchantCenterLinkServiceClient(MerchantCenterLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MerchantCenterLinkServiceClient(MerchantCenterLinkServiceStub stub); static final MerchantCenterLinkServiceClient create(); static final MerchantCenterLinkServiceClient create(
      MerchantCenterLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final MerchantCenterLinkServiceClient create(MerchantCenterLinkServiceStub stub); final MerchantCenterLinkServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") MerchantCenterLinkServiceStub getStub(); final ListMerchantCenterLinksResponse listMerchantCenterLinks(String customerId); final ListMerchantCenterLinksResponse listMerchantCenterLinks(
      ListMerchantCenterLinksRequest request); final UnaryCallable<ListMerchantCenterLinksRequest, ListMerchantCenterLinksResponse> listMerchantCenterLinksCallable(); final MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName); final MerchantCenterLink getMerchantCenterLink(String resourceName); final MerchantCenterLink getMerchantCenterLink(GetMerchantCenterLinkRequest request); final UnaryCallable<GetMerchantCenterLinkRequest, MerchantCenterLink> getMerchantCenterLinkCallable(); final MutateMerchantCenterLinkResponse mutateMerchantCenterLink(
      String customerId, MerchantCenterLinkOperation operation); final MutateMerchantCenterLinkResponse mutateMerchantCenterLink(
      MutateMerchantCenterLinkRequest request); final UnaryCallable<MutateMerchantCenterLinkRequest, MutateMerchantCenterLinkResponse> mutateMerchantCenterLinkCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }