@Test @SuppressWarnings("all") public void getCampaignSharedSetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignSharedSetService.addException(exception); try { CampaignSharedSetName resourceName = CampaignSharedSetName.of("[CUSTOMER]", "[CAMPAIGN_SHARED_SET]"); client.getCampaignSharedSet(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName) { GetCampaignSharedSetRequest request = GetCampaignSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignSharedSet(request); }
CampaignSharedSetServiceClient implements BackgroundResource { public final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName) { GetCampaignSharedSetRequest request = GetCampaignSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignSharedSet(request); } }
CampaignSharedSetServiceClient implements BackgroundResource { public final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName) { GetCampaignSharedSetRequest request = GetCampaignSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignSharedSet(request); } protected  CampaignSharedSetServiceClient(CampaignSharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignSharedSetServiceClient(CampaignSharedSetServiceStub stub); }
CampaignSharedSetServiceClient implements BackgroundResource { public final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName) { GetCampaignSharedSetRequest request = GetCampaignSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignSharedSet(request); } protected  CampaignSharedSetServiceClient(CampaignSharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignSharedSetServiceClient(CampaignSharedSetServiceStub stub); static final CampaignSharedSetServiceClient create(); static final CampaignSharedSetServiceClient create(
      CampaignSharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignSharedSetServiceClient create(CampaignSharedSetServiceStub stub); final CampaignSharedSetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignSharedSetServiceStub getStub(); final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName); final CampaignSharedSet getCampaignSharedSet(String resourceName); final CampaignSharedSet getCampaignSharedSet(GetCampaignSharedSetRequest request); final UnaryCallable<GetCampaignSharedSetRequest, CampaignSharedSet> getCampaignSharedSetCallable(); final MutateCampaignSharedSetsResponse mutateCampaignSharedSets(
      String customerId, List<CampaignSharedSetOperation> operations); final MutateCampaignSharedSetsResponse mutateCampaignSharedSets(
      MutateCampaignSharedSetsRequest request); final UnaryCallable<MutateCampaignSharedSetsRequest, MutateCampaignSharedSetsResponse> mutateCampaignSharedSetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignSharedSetServiceClient implements BackgroundResource { public final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName) { GetCampaignSharedSetRequest request = GetCampaignSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignSharedSet(request); } protected  CampaignSharedSetServiceClient(CampaignSharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignSharedSetServiceClient(CampaignSharedSetServiceStub stub); static final CampaignSharedSetServiceClient create(); static final CampaignSharedSetServiceClient create(
      CampaignSharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignSharedSetServiceClient create(CampaignSharedSetServiceStub stub); final CampaignSharedSetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignSharedSetServiceStub getStub(); final CampaignSharedSet getCampaignSharedSet(CampaignSharedSetName resourceName); final CampaignSharedSet getCampaignSharedSet(String resourceName); final CampaignSharedSet getCampaignSharedSet(GetCampaignSharedSetRequest request); final UnaryCallable<GetCampaignSharedSetRequest, CampaignSharedSet> getCampaignSharedSetCallable(); final MutateCampaignSharedSetsResponse mutateCampaignSharedSets(
      String customerId, List<CampaignSharedSetOperation> operations); final MutateCampaignSharedSetsResponse mutateCampaignSharedSets(
      MutateCampaignSharedSetsRequest request); final UnaryCallable<MutateCampaignSharedSetsRequest, MutateCampaignSharedSetsResponse> mutateCampaignSharedSetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }