Class PhotosLibraryStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<PhotosLibraryStubSettings>
-
- com.google.photos.library.v1.internal.stub.PhotosLibraryStubSettings
-
@Generated("by gapic-generator") @BetaApi public class PhotosLibraryStubSettings extends com.google.api.gax.rpc.StubSettings<PhotosLibraryStubSettings>
Settings class to configure an instance ofPhotosLibraryStub
.The default instance has everything set to sensible defaults:
- The default service address (photoslibrary.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of createAlbum to 30 seconds:
PhotosLibraryStubSettings.Builder internalPhotosLibrarySettingsBuilder = PhotosLibraryStubSettings.newBuilder(); internalPhotosLibrarySettingsBuilder.createAlbumSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)); PhotosLibraryStubSettings internalPhotosLibrarySettings = internalPhotosLibrarySettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PhotosLibraryStubSettings.Builder
Builder for PhotosLibraryStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PhotosLibraryStubSettings(PhotosLibraryStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<AddEnrichmentToAlbumRequest,AddEnrichmentToAlbumResponse>
addEnrichmentToAlbumSettings()
Returns the object with the settings used for calls to addEnrichmentToAlbum.com.google.api.gax.rpc.UnaryCallSettings<BatchAddMediaItemsToAlbumRequest,BatchAddMediaItemsToAlbumResponse>
batchAddMediaItemsToAlbumSettings()
Returns the object with the settings used for calls to batchAddMediaItemsToAlbum.com.google.api.gax.rpc.UnaryCallSettings<BatchCreateMediaItemsRequest,BatchCreateMediaItemsResponse>
batchCreateMediaItemsSettings()
Returns the object with the settings used for calls to batchCreateMediaItems.com.google.api.gax.rpc.UnaryCallSettings<BatchGetMediaItemsRequest,BatchGetMediaItemsResponse>
batchGetMediaItemsSettings()
Returns the object with the settings used for calls to batchGetMediaItems.com.google.api.gax.rpc.UnaryCallSettings<BatchRemoveMediaItemsFromAlbumRequest,BatchRemoveMediaItemsFromAlbumResponse>
batchRemoveMediaItemsFromAlbumSettings()
Returns the object with the settings used for calls to batchRemoveMediaItemsFromAlbum.com.google.api.gax.rpc.UnaryCallSettings<CreateAlbumRequest,Album>
createAlbumSettings()
Returns the object with the settings used for calls to createAlbum.PhotosLibraryStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<GetAlbumRequest,Album>
getAlbumSettings()
Returns the object with the settings used for calls to getAlbum.static java.lang.String
getDefaultEndpoint()
Returns the default service endpoint.static java.util.List<java.lang.String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetMediaItemRequest,MediaItem>
getMediaItemSettings()
Returns the object with the settings used for calls to getMediaItem.com.google.api.gax.rpc.UnaryCallSettings<GetSharedAlbumRequest,Album>
getSharedAlbumSettings()
Returns the object with the settings used for calls to getSharedAlbum.com.google.api.gax.rpc.UnaryCallSettings<JoinSharedAlbumRequest,JoinSharedAlbumResponse>
joinSharedAlbumSettings()
Returns the object with the settings used for calls to joinSharedAlbum.com.google.api.gax.rpc.UnaryCallSettings<LeaveSharedAlbumRequest,LeaveSharedAlbumResponse>
leaveSharedAlbumSettings()
Returns the object with the settings used for calls to leaveSharedAlbum.com.google.api.gax.rpc.PagedCallSettings<ListAlbumsRequest,ListAlbumsResponse,InternalPhotosLibraryClient.ListAlbumsPagedResponse>
listAlbumsSettings()
Returns the object with the settings used for calls to listAlbums.com.google.api.gax.rpc.PagedCallSettings<ListMediaItemsRequest,ListMediaItemsResponse,InternalPhotosLibraryClient.ListMediaItemsPagedResponse>
listMediaItemsSettings()
Returns the object with the settings used for calls to listMediaItems.com.google.api.gax.rpc.PagedCallSettings<ListSharedAlbumsRequest,ListSharedAlbumsResponse,InternalPhotosLibraryClient.ListSharedAlbumsPagedResponse>
listSharedAlbumsSettings()
Returns the object with the settings used for calls to listSharedAlbums.static PhotosLibraryStubSettings.Builder
newBuilder()
Returns a new builder for this class.static PhotosLibraryStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.com.google.api.gax.rpc.PagedCallSettings<SearchMediaItemsRequest,SearchMediaItemsResponse,InternalPhotosLibraryClient.SearchMediaItemsPagedResponse>
searchMediaItemsSettings()
Returns the object with the settings used for calls to searchMediaItems.com.google.api.gax.rpc.UnaryCallSettings<ShareAlbumRequest,ShareAlbumResponse>
shareAlbumSettings()
Returns the object with the settings used for calls to shareAlbum.PhotosLibraryStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UnshareAlbumRequest,UnshareAlbumResponse>
unshareAlbumSettings()
Returns the object with the settings used for calls to unshareAlbum.
-
-
-
Constructor Detail
-
PhotosLibraryStubSettings
protected PhotosLibraryStubSettings(PhotosLibraryStubSettings.Builder settingsBuilder) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
createAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateAlbumRequest,Album> createAlbumSettings()
Returns the object with the settings used for calls to createAlbum.
-
batchCreateMediaItemsSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchCreateMediaItemsRequest,BatchCreateMediaItemsResponse> batchCreateMediaItemsSettings()
Returns the object with the settings used for calls to batchCreateMediaItems.
-
batchAddMediaItemsToAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchAddMediaItemsToAlbumRequest,BatchAddMediaItemsToAlbumResponse> batchAddMediaItemsToAlbumSettings()
Returns the object with the settings used for calls to batchAddMediaItemsToAlbum.
-
searchMediaItemsSettings
public com.google.api.gax.rpc.PagedCallSettings<SearchMediaItemsRequest,SearchMediaItemsResponse,InternalPhotosLibraryClient.SearchMediaItemsPagedResponse> searchMediaItemsSettings()
Returns the object with the settings used for calls to searchMediaItems.
-
listMediaItemsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListMediaItemsRequest,ListMediaItemsResponse,InternalPhotosLibraryClient.ListMediaItemsPagedResponse> listMediaItemsSettings()
Returns the object with the settings used for calls to listMediaItems.
-
getMediaItemSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetMediaItemRequest,MediaItem> getMediaItemSettings()
Returns the object with the settings used for calls to getMediaItem.
-
batchGetMediaItemsSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchGetMediaItemsRequest,BatchGetMediaItemsResponse> batchGetMediaItemsSettings()
Returns the object with the settings used for calls to batchGetMediaItems.
-
listAlbumsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAlbumsRequest,ListAlbumsResponse,InternalPhotosLibraryClient.ListAlbumsPagedResponse> listAlbumsSettings()
Returns the object with the settings used for calls to listAlbums.
-
getAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetAlbumRequest,Album> getAlbumSettings()
Returns the object with the settings used for calls to getAlbum.
-
getSharedAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetSharedAlbumRequest,Album> getSharedAlbumSettings()
Returns the object with the settings used for calls to getSharedAlbum.
-
addEnrichmentToAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<AddEnrichmentToAlbumRequest,AddEnrichmentToAlbumResponse> addEnrichmentToAlbumSettings()
Returns the object with the settings used for calls to addEnrichmentToAlbum.
-
joinSharedAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<JoinSharedAlbumRequest,JoinSharedAlbumResponse> joinSharedAlbumSettings()
Returns the object with the settings used for calls to joinSharedAlbum.
-
leaveSharedAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<LeaveSharedAlbumRequest,LeaveSharedAlbumResponse> leaveSharedAlbumSettings()
Returns the object with the settings used for calls to leaveSharedAlbum.
-
shareAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<ShareAlbumRequest,ShareAlbumResponse> shareAlbumSettings()
Returns the object with the settings used for calls to shareAlbum.
-
listSharedAlbumsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListSharedAlbumsRequest,ListSharedAlbumsResponse,InternalPhotosLibraryClient.ListSharedAlbumsPagedResponse> listSharedAlbumsSettings()
Returns the object with the settings used for calls to listSharedAlbums.
-
unshareAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<UnshareAlbumRequest,UnshareAlbumResponse> unshareAlbumSettings()
Returns the object with the settings used for calls to unshareAlbum.
-
batchRemoveMediaItemsFromAlbumSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchRemoveMediaItemsFromAlbumRequest,BatchRemoveMediaItemsFromAlbumResponse> batchRemoveMediaItemsFromAlbumSettings()
Returns the object with the settings used for calls to batchRemoveMediaItemsFromAlbum.
-
createStub
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PhotosLibraryStub createStub() throws java.io.IOException
- Throws:
java.io.IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static java.lang.String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultServiceScopes
public static java.util.List<java.lang.String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static PhotosLibraryStubSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilder
public static PhotosLibraryStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public PhotosLibraryStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<PhotosLibraryStubSettings>
-
-