Class GrpcPhotosLibraryStub
- java.lang.Object
-
- com.google.photos.library.v1.internal.stub.PhotosLibraryStub
-
- com.google.photos.library.v1.internal.stub.GrpcPhotosLibraryStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,java.lang.AutoCloseable
@Generated("by gapic-generator") @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public class GrpcPhotosLibraryStub extends PhotosLibraryStubgRPC stub implementation for Photos Library API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcPhotosLibraryStub(PhotosLibraryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcPhotosLibraryStub, using the given settings.protectedGrpcPhotosLibraryStub(PhotosLibraryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcPhotosLibraryStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcPhotosLibraryStub
protected GrpcPhotosLibraryStub(PhotosLibraryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws java.io.IOException
Constructs an instance of GrpcPhotosLibraryStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
java.io.IOException
-
GrpcPhotosLibraryStub
protected GrpcPhotosLibraryStub(PhotosLibraryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws java.io.IOException
Constructs an instance of GrpcPhotosLibraryStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
java.io.IOException
-
-
Method Detail
-
create
public static final GrpcPhotosLibraryStub create(PhotosLibraryStubSettings settings) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final GrpcPhotosLibraryStub create(com.google.api.gax.rpc.ClientContext clientContext) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final GrpcPhotosLibraryStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
createAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<CreateAlbumRequest,Album> createAlbumCallable()
- Overrides:
createAlbumCallablein classPhotosLibraryStub
-
batchCreateMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCreateMediaItemsRequest,BatchCreateMediaItemsResponse> batchCreateMediaItemsCallable()
- Overrides:
batchCreateMediaItemsCallablein classPhotosLibraryStub
-
batchAddMediaItemsToAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<BatchAddMediaItemsToAlbumRequest,BatchAddMediaItemsToAlbumResponse> batchAddMediaItemsToAlbumCallable()
- Overrides:
batchAddMediaItemsToAlbumCallablein classPhotosLibraryStub
-
searchMediaItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchMediaItemsRequest,InternalPhotosLibraryClient.SearchMediaItemsPagedResponse> searchMediaItemsPagedCallable()
- Overrides:
searchMediaItemsPagedCallablein classPhotosLibraryStub
-
searchMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchMediaItemsRequest,SearchMediaItemsResponse> searchMediaItemsCallable()
- Overrides:
searchMediaItemsCallablein classPhotosLibraryStub
-
listMediaItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMediaItemsRequest,InternalPhotosLibraryClient.ListMediaItemsPagedResponse> listMediaItemsPagedCallable()
- Overrides:
listMediaItemsPagedCallablein classPhotosLibraryStub
-
listMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMediaItemsRequest,ListMediaItemsResponse> listMediaItemsCallable()
- Overrides:
listMediaItemsCallablein classPhotosLibraryStub
-
getMediaItemCallable
public com.google.api.gax.rpc.UnaryCallable<GetMediaItemRequest,MediaItem> getMediaItemCallable()
- Overrides:
getMediaItemCallablein classPhotosLibraryStub
-
batchGetMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchGetMediaItemsRequest,BatchGetMediaItemsResponse> batchGetMediaItemsCallable()
- Overrides:
batchGetMediaItemsCallablein classPhotosLibraryStub
-
listAlbumsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAlbumsRequest,InternalPhotosLibraryClient.ListAlbumsPagedResponse> listAlbumsPagedCallable()
- Overrides:
listAlbumsPagedCallablein classPhotosLibraryStub
-
listAlbumsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAlbumsRequest,ListAlbumsResponse> listAlbumsCallable()
- Overrides:
listAlbumsCallablein classPhotosLibraryStub
-
getAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<GetAlbumRequest,Album> getAlbumCallable()
- Overrides:
getAlbumCallablein classPhotosLibraryStub
-
getSharedAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<GetSharedAlbumRequest,Album> getSharedAlbumCallable()
- Overrides:
getSharedAlbumCallablein classPhotosLibraryStub
-
addEnrichmentToAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<AddEnrichmentToAlbumRequest,AddEnrichmentToAlbumResponse> addEnrichmentToAlbumCallable()
- Overrides:
addEnrichmentToAlbumCallablein classPhotosLibraryStub
-
joinSharedAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<JoinSharedAlbumRequest,JoinSharedAlbumResponse> joinSharedAlbumCallable()
- Overrides:
joinSharedAlbumCallablein classPhotosLibraryStub
-
leaveSharedAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<LeaveSharedAlbumRequest,LeaveSharedAlbumResponse> leaveSharedAlbumCallable()
- Overrides:
leaveSharedAlbumCallablein classPhotosLibraryStub
-
shareAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<ShareAlbumRequest,ShareAlbumResponse> shareAlbumCallable()
- Overrides:
shareAlbumCallablein classPhotosLibraryStub
-
listSharedAlbumsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSharedAlbumsRequest,InternalPhotosLibraryClient.ListSharedAlbumsPagedResponse> listSharedAlbumsPagedCallable()
- Overrides:
listSharedAlbumsPagedCallablein classPhotosLibraryStub
-
listSharedAlbumsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSharedAlbumsRequest,ListSharedAlbumsResponse> listSharedAlbumsCallable()
- Overrides:
listSharedAlbumsCallablein classPhotosLibraryStub
-
unshareAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<UnshareAlbumRequest,UnshareAlbumResponse> unshareAlbumCallable()
- Overrides:
unshareAlbumCallablein classPhotosLibraryStub
-
batchRemoveMediaItemsFromAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<BatchRemoveMediaItemsFromAlbumRequest,BatchRemoveMediaItemsFromAlbumResponse> batchRemoveMediaItemsFromAlbumCallable()
- Overrides:
batchRemoveMediaItemsFromAlbumCallablein classPhotosLibraryStub
-
close
public final void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein classPhotosLibraryStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-