@Test @SuppressWarnings("all") public void getDynamicSearchAdsSearchTermViewExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockDynamicSearchAdsSearchTermViewService.addException(exception); try { DynamicSearchAdsSearchTermViewName resourceName = DynamicSearchAdsSearchTermViewName.of( "[CUSTOMER]", "[DYNAMIC_SEARCH_ADS_SEARCH_TERM_VIEW]"); client.getDynamicSearchAdsSearchTermView(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView( DynamicSearchAdsSearchTermViewName resourceName) { GetDynamicSearchAdsSearchTermViewRequest request = GetDynamicSearchAdsSearchTermViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getDynamicSearchAdsSearchTermView(request); }
DynamicSearchAdsSearchTermViewServiceClient implements BackgroundResource { public final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView( DynamicSearchAdsSearchTermViewName resourceName) { GetDynamicSearchAdsSearchTermViewRequest request = GetDynamicSearchAdsSearchTermViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getDynamicSearchAdsSearchTermView(request); } }
DynamicSearchAdsSearchTermViewServiceClient implements BackgroundResource { public final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView( DynamicSearchAdsSearchTermViewName resourceName) { GetDynamicSearchAdsSearchTermViewRequest request = GetDynamicSearchAdsSearchTermViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getDynamicSearchAdsSearchTermView(request); } protected  DynamicSearchAdsSearchTermViewServiceClient(
      DynamicSearchAdsSearchTermViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  DynamicSearchAdsSearchTermViewServiceClient(
      DynamicSearchAdsSearchTermViewServiceStub stub); }
DynamicSearchAdsSearchTermViewServiceClient implements BackgroundResource { public final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView( DynamicSearchAdsSearchTermViewName resourceName) { GetDynamicSearchAdsSearchTermViewRequest request = GetDynamicSearchAdsSearchTermViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getDynamicSearchAdsSearchTermView(request); } protected  DynamicSearchAdsSearchTermViewServiceClient(
      DynamicSearchAdsSearchTermViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  DynamicSearchAdsSearchTermViewServiceClient(
      DynamicSearchAdsSearchTermViewServiceStub stub); static final DynamicSearchAdsSearchTermViewServiceClient create(); static final DynamicSearchAdsSearchTermViewServiceClient create(
      DynamicSearchAdsSearchTermViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final DynamicSearchAdsSearchTermViewServiceClient create(
      DynamicSearchAdsSearchTermViewServiceStub stub); final DynamicSearchAdsSearchTermViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") DynamicSearchAdsSearchTermViewServiceStub getStub(); final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView(
      DynamicSearchAdsSearchTermViewName resourceName); final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView(
      String resourceName); final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView(
      GetDynamicSearchAdsSearchTermViewRequest request); final UnaryCallable<
          GetDynamicSearchAdsSearchTermViewRequest, DynamicSearchAdsSearchTermView> getDynamicSearchAdsSearchTermViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
DynamicSearchAdsSearchTermViewServiceClient implements BackgroundResource { public final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView( DynamicSearchAdsSearchTermViewName resourceName) { GetDynamicSearchAdsSearchTermViewRequest request = GetDynamicSearchAdsSearchTermViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getDynamicSearchAdsSearchTermView(request); } protected  DynamicSearchAdsSearchTermViewServiceClient(
      DynamicSearchAdsSearchTermViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  DynamicSearchAdsSearchTermViewServiceClient(
      DynamicSearchAdsSearchTermViewServiceStub stub); static final DynamicSearchAdsSearchTermViewServiceClient create(); static final DynamicSearchAdsSearchTermViewServiceClient create(
      DynamicSearchAdsSearchTermViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final DynamicSearchAdsSearchTermViewServiceClient create(
      DynamicSearchAdsSearchTermViewServiceStub stub); final DynamicSearchAdsSearchTermViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") DynamicSearchAdsSearchTermViewServiceStub getStub(); final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView(
      DynamicSearchAdsSearchTermViewName resourceName); final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView(
      String resourceName); final DynamicSearchAdsSearchTermView getDynamicSearchAdsSearchTermView(
      GetDynamicSearchAdsSearchTermViewRequest request); final UnaryCallable<
          GetDynamicSearchAdsSearchTermViewRequest, DynamicSearchAdsSearchTermView> getDynamicSearchAdsSearchTermViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }