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 PhotosLibraryStub
gRPC stub implementation for Photos Library API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcPhotosLibraryStub(PhotosLibraryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcPhotosLibraryStub, using the given settings.protected
GrpcPhotosLibraryStub(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:
createAlbumCallable
in classPhotosLibraryStub
-
batchCreateMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCreateMediaItemsRequest,BatchCreateMediaItemsResponse> batchCreateMediaItemsCallable()
- Overrides:
batchCreateMediaItemsCallable
in classPhotosLibraryStub
-
batchAddMediaItemsToAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<BatchAddMediaItemsToAlbumRequest,BatchAddMediaItemsToAlbumResponse> batchAddMediaItemsToAlbumCallable()
- Overrides:
batchAddMediaItemsToAlbumCallable
in classPhotosLibraryStub
-
searchMediaItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchMediaItemsRequest,InternalPhotosLibraryClient.SearchMediaItemsPagedResponse> searchMediaItemsPagedCallable()
- Overrides:
searchMediaItemsPagedCallable
in classPhotosLibraryStub
-
searchMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchMediaItemsRequest,SearchMediaItemsResponse> searchMediaItemsCallable()
- Overrides:
searchMediaItemsCallable
in classPhotosLibraryStub
-
listMediaItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMediaItemsRequest,InternalPhotosLibraryClient.ListMediaItemsPagedResponse> listMediaItemsPagedCallable()
- Overrides:
listMediaItemsPagedCallable
in classPhotosLibraryStub
-
listMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMediaItemsRequest,ListMediaItemsResponse> listMediaItemsCallable()
- Overrides:
listMediaItemsCallable
in classPhotosLibraryStub
-
getMediaItemCallable
public com.google.api.gax.rpc.UnaryCallable<GetMediaItemRequest,MediaItem> getMediaItemCallable()
- Overrides:
getMediaItemCallable
in classPhotosLibraryStub
-
batchGetMediaItemsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchGetMediaItemsRequest,BatchGetMediaItemsResponse> batchGetMediaItemsCallable()
- Overrides:
batchGetMediaItemsCallable
in classPhotosLibraryStub
-
listAlbumsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAlbumsRequest,InternalPhotosLibraryClient.ListAlbumsPagedResponse> listAlbumsPagedCallable()
- Overrides:
listAlbumsPagedCallable
in classPhotosLibraryStub
-
listAlbumsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAlbumsRequest,ListAlbumsResponse> listAlbumsCallable()
- Overrides:
listAlbumsCallable
in classPhotosLibraryStub
-
getAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<GetAlbumRequest,Album> getAlbumCallable()
- Overrides:
getAlbumCallable
in classPhotosLibraryStub
-
getSharedAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<GetSharedAlbumRequest,Album> getSharedAlbumCallable()
- Overrides:
getSharedAlbumCallable
in classPhotosLibraryStub
-
addEnrichmentToAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<AddEnrichmentToAlbumRequest,AddEnrichmentToAlbumResponse> addEnrichmentToAlbumCallable()
- Overrides:
addEnrichmentToAlbumCallable
in classPhotosLibraryStub
-
joinSharedAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<JoinSharedAlbumRequest,JoinSharedAlbumResponse> joinSharedAlbumCallable()
- Overrides:
joinSharedAlbumCallable
in classPhotosLibraryStub
-
leaveSharedAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<LeaveSharedAlbumRequest,LeaveSharedAlbumResponse> leaveSharedAlbumCallable()
- Overrides:
leaveSharedAlbumCallable
in classPhotosLibraryStub
-
shareAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<ShareAlbumRequest,ShareAlbumResponse> shareAlbumCallable()
- Overrides:
shareAlbumCallable
in classPhotosLibraryStub
-
listSharedAlbumsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSharedAlbumsRequest,InternalPhotosLibraryClient.ListSharedAlbumsPagedResponse> listSharedAlbumsPagedCallable()
- Overrides:
listSharedAlbumsPagedCallable
in classPhotosLibraryStub
-
listSharedAlbumsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSharedAlbumsRequest,ListSharedAlbumsResponse> listSharedAlbumsCallable()
- Overrides:
listSharedAlbumsCallable
in classPhotosLibraryStub
-
unshareAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<UnshareAlbumRequest,UnshareAlbumResponse> unshareAlbumCallable()
- Overrides:
unshareAlbumCallable
in classPhotosLibraryStub
-
batchRemoveMediaItemsFromAlbumCallable
public com.google.api.gax.rpc.UnaryCallable<BatchRemoveMediaItemsFromAlbumRequest,BatchRemoveMediaItemsFromAlbumResponse> batchRemoveMediaItemsFromAlbumCallable()
- Overrides:
batchRemoveMediaItemsFromAlbumCallable
in classPhotosLibraryStub
-
close
public final void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in 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
-
-