@Test @SuppressWarnings("all") public void getSharedSetTest() { com.google.ads.googleads.v5.services.SharedSetName resourceName2 = com.google.ads.googleads.v5.services.SharedSetName.of("[CUSTOMER]", "[SHARED_SET]"); long id = 3355L; com.google.ads.googleads.v5.services.SharedSetName name = com.google.ads.googleads.v5.services.SharedSetName.of("[CUSTOMER]", "[SHARED_SET]"); long memberCount = 59350230L; long referenceCount = 1214713627L; SharedSet expectedResponse = SharedSet.newBuilder() .setResourceName(resourceName2.toString()) .setId(id) .setName(name.toString()) .setMemberCount(memberCount) .setReferenceCount(referenceCount) .build(); mockSharedSetService.addResponse(expectedResponse); SharedSetName resourceName = SharedSetName.of("[CUSTOMER]", "[SHARED_SET]"); SharedSet actualResponse = client.getSharedSet(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockSharedSetService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetSharedSetRequest actualRequest = (GetSharedSetRequest) actualRequests.get(0); Assert.assertEquals(resourceName, SharedSetName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final SharedSet getSharedSet(SharedSetName resourceName) { GetSharedSetRequest request = GetSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getSharedSet(request); }
SharedSetServiceClient implements BackgroundResource { public final SharedSet getSharedSet(SharedSetName resourceName) { GetSharedSetRequest request = GetSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getSharedSet(request); } }
SharedSetServiceClient implements BackgroundResource { public final SharedSet getSharedSet(SharedSetName resourceName) { GetSharedSetRequest request = GetSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getSharedSet(request); } protected  SharedSetServiceClient(SharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  SharedSetServiceClient(SharedSetServiceStub stub); }
SharedSetServiceClient implements BackgroundResource { public final SharedSet getSharedSet(SharedSetName resourceName) { GetSharedSetRequest request = GetSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getSharedSet(request); } protected  SharedSetServiceClient(SharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  SharedSetServiceClient(SharedSetServiceStub stub); static final SharedSetServiceClient create(); static final SharedSetServiceClient create(SharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final SharedSetServiceClient create(SharedSetServiceStub stub); final SharedSetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") SharedSetServiceStub getStub(); final SharedSet getSharedSet(SharedSetName resourceName); final SharedSet getSharedSet(String resourceName); final SharedSet getSharedSet(GetSharedSetRequest request); final UnaryCallable<GetSharedSetRequest, SharedSet> getSharedSetCallable(); final MutateSharedSetsResponse mutateSharedSets(
      String customerId, List<SharedSetOperation> operations); final MutateSharedSetsResponse mutateSharedSets(MutateSharedSetsRequest request); final UnaryCallable<MutateSharedSetsRequest, MutateSharedSetsResponse> mutateSharedSetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
SharedSetServiceClient implements BackgroundResource { public final SharedSet getSharedSet(SharedSetName resourceName) { GetSharedSetRequest request = GetSharedSetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getSharedSet(request); } protected  SharedSetServiceClient(SharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  SharedSetServiceClient(SharedSetServiceStub stub); static final SharedSetServiceClient create(); static final SharedSetServiceClient create(SharedSetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final SharedSetServiceClient create(SharedSetServiceStub stub); final SharedSetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") SharedSetServiceStub getStub(); final SharedSet getSharedSet(SharedSetName resourceName); final SharedSet getSharedSet(String resourceName); final SharedSet getSharedSet(GetSharedSetRequest request); final UnaryCallable<GetSharedSetRequest, SharedSet> getSharedSetCallable(); final MutateSharedSetsResponse mutateSharedSets(
      String customerId, List<SharedSetOperation> operations); final MutateSharedSetsResponse mutateSharedSets(MutateSharedSetsRequest request); final UnaryCallable<MutateSharedSetsRequest, MutateSharedSetsResponse> mutateSharedSetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }