@Test @SuppressWarnings("all") public void getMerchantCenterLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockMerchantCenterLinkService.addException(exception); try { MerchantCenterLinkName resourceName = MerchantCenterLinkName.of("[CUSTOMER]", "[MERCHANT_CENTER_LINK]"); client.getMerchantCenterLink(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName) { GetMerchantCenterLinkRequest request = GetMerchantCenterLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMerchantCenterLink(request); }
MerchantCenterLinkServiceClient implements BackgroundResource { public final MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName) { GetMerchantCenterLinkRequest request = GetMerchantCenterLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMerchantCenterLink(request); } }
MerchantCenterLinkServiceClient implements BackgroundResource { public final MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName) { GetMerchantCenterLinkRequest request = GetMerchantCenterLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMerchantCenterLink(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 MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName) { GetMerchantCenterLinkRequest request = GetMerchantCenterLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMerchantCenterLink(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 MerchantCenterLink getMerchantCenterLink(MerchantCenterLinkName resourceName) { GetMerchantCenterLinkRequest request = GetMerchantCenterLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMerchantCenterLink(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);  }