├── .gitignore
├── .travis.yml
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── photoslibraryapi
├── build.gradle
└── src
│ ├── main
│ └── java
│ │ └── com
│ │ └── google
│ │ └── photos
│ │ ├── library
│ │ └── v1
│ │ │ ├── PhotosLibraryClient.java
│ │ │ ├── PhotosLibrarySettings.java
│ │ │ ├── internal
│ │ │ ├── InternalPhotosLibraryClient.java
│ │ │ ├── InternalPhotosLibrarySettings.java
│ │ │ ├── gapic_metadata.json
│ │ │ ├── package-info.java
│ │ │ └── stub
│ │ │ │ ├── GrpcPhotosLibraryCallableFactory.java
│ │ │ │ ├── GrpcPhotosLibraryStub.java
│ │ │ │ ├── PhotosLibraryStub.java
│ │ │ │ └── PhotosLibraryStubSettings.java
│ │ │ ├── proto
│ │ │ ├── AddEnrichmentToAlbumRequest.java
│ │ │ ├── AddEnrichmentToAlbumRequestOrBuilder.java
│ │ │ ├── AddEnrichmentToAlbumResponse.java
│ │ │ ├── AddEnrichmentToAlbumResponseOrBuilder.java
│ │ │ ├── AlbumPosition.java
│ │ │ ├── AlbumPositionOrBuilder.java
│ │ │ ├── BatchAddMediaItemsToAlbumRequest.java
│ │ │ ├── BatchAddMediaItemsToAlbumRequestOrBuilder.java
│ │ │ ├── BatchAddMediaItemsToAlbumResponse.java
│ │ │ ├── BatchAddMediaItemsToAlbumResponseOrBuilder.java
│ │ │ ├── BatchCreateMediaItemsRequest.java
│ │ │ ├── BatchCreateMediaItemsRequestOrBuilder.java
│ │ │ ├── BatchCreateMediaItemsResponse.java
│ │ │ ├── BatchCreateMediaItemsResponseOrBuilder.java
│ │ │ ├── BatchGetMediaItemsRequest.java
│ │ │ ├── BatchGetMediaItemsRequestOrBuilder.java
│ │ │ ├── BatchGetMediaItemsResponse.java
│ │ │ ├── BatchGetMediaItemsResponseOrBuilder.java
│ │ │ ├── BatchRemoveMediaItemsFromAlbumRequest.java
│ │ │ ├── BatchRemoveMediaItemsFromAlbumRequestOrBuilder.java
│ │ │ ├── BatchRemoveMediaItemsFromAlbumResponse.java
│ │ │ ├── BatchRemoveMediaItemsFromAlbumResponseOrBuilder.java
│ │ │ ├── ContentCategory.java
│ │ │ ├── ContentFilter.java
│ │ │ ├── ContentFilterOrBuilder.java
│ │ │ ├── CreateAlbumRequest.java
│ │ │ ├── CreateAlbumRequestOrBuilder.java
│ │ │ ├── DateFilter.java
│ │ │ ├── DateFilterOrBuilder.java
│ │ │ ├── EnrichmentItem.java
│ │ │ ├── EnrichmentItemOrBuilder.java
│ │ │ ├── FeatureFilter.java
│ │ │ ├── FeatureFilterOrBuilder.java
│ │ │ ├── Filters.java
│ │ │ ├── FiltersOrBuilder.java
│ │ │ ├── GetAlbumRequest.java
│ │ │ ├── GetAlbumRequestOrBuilder.java
│ │ │ ├── GetMediaItemRequest.java
│ │ │ ├── GetMediaItemRequestOrBuilder.java
│ │ │ ├── GetSharedAlbumRequest.java
│ │ │ ├── GetSharedAlbumRequestOrBuilder.java
│ │ │ ├── JoinSharedAlbumRequest.java
│ │ │ ├── JoinSharedAlbumRequestOrBuilder.java
│ │ │ ├── JoinSharedAlbumResponse.java
│ │ │ ├── JoinSharedAlbumResponseOrBuilder.java
│ │ │ ├── LeaveSharedAlbumRequest.java
│ │ │ ├── LeaveSharedAlbumRequestOrBuilder.java
│ │ │ ├── LeaveSharedAlbumResponse.java
│ │ │ ├── LeaveSharedAlbumResponseOrBuilder.java
│ │ │ ├── LibraryServiceProto.java
│ │ │ ├── ListAlbumsRequest.java
│ │ │ ├── ListAlbumsRequestOrBuilder.java
│ │ │ ├── ListAlbumsResponse.java
│ │ │ ├── ListAlbumsResponseOrBuilder.java
│ │ │ ├── ListMediaItemsRequest.java
│ │ │ ├── ListMediaItemsRequestOrBuilder.java
│ │ │ ├── ListMediaItemsResponse.java
│ │ │ ├── ListMediaItemsResponseOrBuilder.java
│ │ │ ├── ListSharedAlbumsRequest.java
│ │ │ ├── ListSharedAlbumsRequestOrBuilder.java
│ │ │ ├── ListSharedAlbumsResponse.java
│ │ │ ├── ListSharedAlbumsResponseOrBuilder.java
│ │ │ ├── Location.java
│ │ │ ├── LocationEnrichment.java
│ │ │ ├── LocationEnrichmentOrBuilder.java
│ │ │ ├── LocationOrBuilder.java
│ │ │ ├── MapEnrichment.java
│ │ │ ├── MapEnrichmentOrBuilder.java
│ │ │ ├── MediaItemResult.java
│ │ │ ├── MediaItemResultOrBuilder.java
│ │ │ ├── MediaTypeFilter.java
│ │ │ ├── MediaTypeFilterOrBuilder.java
│ │ │ ├── NewEnrichmentItem.java
│ │ │ ├── NewEnrichmentItemOrBuilder.java
│ │ │ ├── NewMediaItem.java
│ │ │ ├── NewMediaItemOrBuilder.java
│ │ │ ├── NewMediaItemResult.java
│ │ │ ├── NewMediaItemResultOrBuilder.java
│ │ │ ├── PhotosLibraryGrpc.java
│ │ │ ├── SearchMediaItemsRequest.java
│ │ │ ├── SearchMediaItemsRequestOrBuilder.java
│ │ │ ├── SearchMediaItemsResponse.java
│ │ │ ├── SearchMediaItemsResponseOrBuilder.java
│ │ │ ├── ShareAlbumRequest.java
│ │ │ ├── ShareAlbumRequestOrBuilder.java
│ │ │ ├── ShareAlbumResponse.java
│ │ │ ├── ShareAlbumResponseOrBuilder.java
│ │ │ ├── SimpleMediaItem.java
│ │ │ ├── SimpleMediaItemOrBuilder.java
│ │ │ ├── TextEnrichment.java
│ │ │ ├── TextEnrichmentOrBuilder.java
│ │ │ ├── UnshareAlbumRequest.java
│ │ │ ├── UnshareAlbumRequestOrBuilder.java
│ │ │ ├── UnshareAlbumResponse.java
│ │ │ ├── UnshareAlbumResponseOrBuilder.java
│ │ │ ├── UpdateAlbumRequest.java
│ │ │ ├── UpdateAlbumRequestOrBuilder.java
│ │ │ ├── UpdateMediaItemRequest.java
│ │ │ └── UpdateMediaItemRequestOrBuilder.java
│ │ │ ├── upload
│ │ │ ├── ExceptionStrings.java
│ │ │ ├── NestedUploadRetryCallable.java
│ │ │ ├── PhotosLibraryUploadCallable.java
│ │ │ ├── PhotosLibraryUploadExceptionMappingFn.java
│ │ │ ├── PhotosLibraryUploadStub.java
│ │ │ ├── PhotosLibraryUploadStubImpl.java
│ │ │ ├── PhotosLibraryUploadUnaryCallable.java
│ │ │ ├── UploadApiException.java
│ │ │ ├── UploadMediaItemRequest.java
│ │ │ ├── UploadMediaItemResponse.java
│ │ │ └── UploadRetryCallable.java
│ │ │ └── util
│ │ │ ├── AlbumPositionFactory.java
│ │ │ ├── NewEnrichmentItemFactory.java
│ │ │ ├── NewMediaItemFactory.java
│ │ │ └── OrderBy.java
│ │ └── types
│ │ └── proto
│ │ ├── Album.java
│ │ ├── AlbumOrBuilder.java
│ │ ├── AlbumProto.java
│ │ ├── ContributorInfo.java
│ │ ├── ContributorInfoOrBuilder.java
│ │ ├── DateRange.java
│ │ ├── DateRangeOrBuilder.java
│ │ ├── DateRangeProto.java
│ │ ├── MediaItem.java
│ │ ├── MediaItemOrBuilder.java
│ │ ├── MediaItemProto.java
│ │ ├── MediaMetadata.java
│ │ ├── MediaMetadataOrBuilder.java
│ │ ├── Photo.java
│ │ ├── PhotoOrBuilder.java
│ │ ├── ShareInfo.java
│ │ ├── ShareInfoOrBuilder.java
│ │ ├── SharedAlbumOptions.java
│ │ ├── SharedAlbumOptionsOrBuilder.java
│ │ ├── Video.java
│ │ ├── VideoOrBuilder.java
│ │ └── VideoProcessingStatus.java
│ └── test
│ └── java
│ └── com
│ └── google
│ └── photos
│ └── library
│ └── v1
│ ├── PhotosLibraryClientTest.java
│ ├── internal
│ ├── InternalPhotosLibraryClientTest.java
│ ├── MockPhotosLibrary.java
│ └── MockPhotosLibraryImpl.java
│ └── upload
│ ├── PhotosLibraryUploadCallableTest.java
│ └── UploadRetryCallableTest.java
├── sample
├── README.md
├── build.gradle
└── src
│ └── main
│ ├── java
│ └── com
│ │ └── google
│ │ └── photos
│ │ └── library
│ │ └── sample
│ │ ├── Resources.java
│ │ ├── components
│ │ ├── AbstractCreateAlbumToolPanel.java
│ │ ├── AlbumPreviewPanel.java
│ │ ├── AppPanel.java
│ │ ├── ConnectToPhotosButton.java
│ │ ├── CreateAlbumToolPanel.java
│ │ ├── CustomButton.java
│ │ ├── DatePickerPanel.java
│ │ ├── LoadMoreButton.java
│ │ ├── OrderByPanel.java
│ │ ├── PlainCreateAlbumToolPanel.java
│ │ ├── SearchToolPanel.java
│ │ ├── ShareAlbumToolPanel.java
│ │ ├── ShareAndJoinAlbumToolPanel.java
│ │ ├── ShareableAlbumToolPanel.java
│ │ ├── ToolPanel.java
│ │ └── UploadToAlbumToolPanel.java
│ │ ├── demos
│ │ ├── AlbumDemo.java
│ │ ├── FilterDemo.java
│ │ ├── ShareDemo.java
│ │ ├── UploadDemo.java
│ │ └── upload
│ │ │ ├── UploadDemoHelper.java
│ │ │ ├── Uploader.java
│ │ │ └── tasks
│ │ │ ├── ByteUploadTask.java
│ │ │ └── ItemCreationTask.java
│ │ ├── factories
│ │ └── PhotosLibraryClientFactory.java
│ │ ├── helpers
│ │ ├── ErrorHelper.java
│ │ └── UIHelper.java
│ │ ├── suppliers
│ │ ├── AlbumsSupplier.java
│ │ ├── ListAlbumsSupplier.java
│ │ ├── ListSharedAlbumsSupplier.java
│ │ └── SearchMediaItemSupplier.java
│ │ └── views
│ │ ├── AbstractCustomView.java
│ │ ├── AlbumListView.java
│ │ ├── ConnectToPhotosView.java
│ │ ├── LoadingView.java
│ │ ├── PhotoListView.java
│ │ ├── PhotoView.java
│ │ └── SearchMediaItemView.java
│ └── resources
│ └── assets
│ ├── album.png
│ ├── back.png
│ ├── filter.png
│ ├── google_photos.png
│ └── share.png
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | # Intellij IDEA metadata
2 | .idea
3 | *.iml
4 |
5 | # Gradle and build directories
6 | .gradle
7 | build/
8 | out/
9 |
10 | # Ignore Gradle GUI config
11 | gradle-app.setting
12 |
13 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
14 | !gradle-wrapper.jar
15 |
16 | # Cache of project
17 | .gradletasknamecache
18 |
19 | # .DS_Store
20 | .DS_Store
21 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: java
2 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # How to Contribute
2 |
3 | We'd love to accept your patches and contributions to this project. There are
4 | just a few small guidelines you need to follow.
5 |
6 | ## Contributor License Agreement
7 |
8 | Contributions to this project must be accompanied by a Contributor License
9 | Agreement. You (or your employer) retain the copyright to your contribution;
10 | this simply gives us permission to use and redistribute your contributions as
11 | part of the project. Head over to
======================= InternalPhotosLibraryClient ======================= 21 | * 22 | *
Service Description: Service which allows developers to perform the following actions on 23 | * behalf of the user: - upload media items directly to their Google Photos library - create albums 24 | * - add media items (including album enrichments) to albums - list and download content from their 25 | * Google Photos library - filter results by media type, date range or content category - create, 26 | * join, and access shared albums 27 | * 28 | *
Sample for InternalPhotosLibraryClient: 29 | * 30 | *
{@code 31 | * // This snippet has been automatically generated and should be regarded as a code template only. 32 | * // It will require modifications to work: 33 | * // - It may require correct/in-range values for request initialization. 34 | * // - It may require specifying regional endpoints when creating the service client as shown in 35 | * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 36 | * try (InternalPhotosLibraryClient internalPhotosLibraryClient = 37 | * InternalPhotosLibraryClient.create()) { 38 | * Album album = Album.newBuilder().build(); 39 | * Album response = internalPhotosLibraryClient.createAlbum(album); 40 | * } 41 | * }42 | */ 43 | @Generated("by gapic-generator-java") 44 | package com.google.photos.library.v1.internal; 45 | 46 | import javax.annotation.Generated; 47 | -------------------------------------------------------------------------------- /photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/AddEnrichmentToAlbumRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/photos/library/v1/photos_library.proto 3 | 4 | package com.google.photos.library.v1.proto; 5 | 6 | public interface AddEnrichmentToAlbumRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.AddEnrichmentToAlbumRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 | * Required. Identifier of the album where the enrichment is to be added. 16 | *17 | * 18 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return The albumId.
21 | */
22 | java.lang.String getAlbumId();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. Identifier of the album where the enrichment is to be added. 28 | *29 | * 30 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The bytes for albumId.
33 | */
34 | com.google.protobuf.ByteString getAlbumIdBytes();
35 |
36 | /**
37 | *
38 | *
39 | * 40 | * Required. The enrichment to be added. 41 | *42 | * 43 | *
44 | * .google.photos.library.v1.NewEnrichmentItem new_enrichment_item = 2 [(.google.api.field_behavior) = REQUIRED];
45 | *
46 | *
47 | * @return Whether the newEnrichmentItem field is set.
48 | */
49 | boolean hasNewEnrichmentItem();
50 | /**
51 | *
52 | *
53 | * 54 | * Required. The enrichment to be added. 55 | *56 | * 57 | *
58 | * .google.photos.library.v1.NewEnrichmentItem new_enrichment_item = 2 [(.google.api.field_behavior) = REQUIRED];
59 | *
60 | *
61 | * @return The newEnrichmentItem.
62 | */
63 | com.google.photos.library.v1.proto.NewEnrichmentItem getNewEnrichmentItem();
64 | /**
65 | *
66 | *
67 | * 68 | * Required. The enrichment to be added. 69 | *70 | * 71 | *
72 | * .google.photos.library.v1.NewEnrichmentItem new_enrichment_item = 2 [(.google.api.field_behavior) = REQUIRED];
73 | *
74 | */
75 | com.google.photos.library.v1.proto.NewEnrichmentItemOrBuilder getNewEnrichmentItemOrBuilder();
76 |
77 | /**
78 | *
79 | *
80 | * 81 | * Required. The position in the album where the enrichment is to be inserted. 82 | *83 | * 84 | *
85 | * .google.photos.library.v1.AlbumPosition album_position = 3 [(.google.api.field_behavior) = REQUIRED];
86 | *
87 | *
88 | * @return Whether the albumPosition field is set.
89 | */
90 | boolean hasAlbumPosition();
91 | /**
92 | *
93 | *
94 | * 95 | * Required. The position in the album where the enrichment is to be inserted. 96 | *97 | * 98 | *
99 | * .google.photos.library.v1.AlbumPosition album_position = 3 [(.google.api.field_behavior) = REQUIRED];
100 | *
101 | *
102 | * @return The albumPosition.
103 | */
104 | com.google.photos.library.v1.proto.AlbumPosition getAlbumPosition();
105 | /**
106 | *
107 | *
108 | * 109 | * Required. The position in the album where the enrichment is to be inserted. 110 | *111 | * 112 | *
113 | * .google.photos.library.v1.AlbumPosition album_position = 3 [(.google.api.field_behavior) = REQUIRED];
114 | *
115 | */
116 | com.google.photos.library.v1.proto.AlbumPositionOrBuilder getAlbumPositionOrBuilder();
117 | }
118 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/AddEnrichmentToAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface AddEnrichmentToAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.AddEnrichmentToAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. Enrichment which was added. 16 | *17 | * 18 | *
.google.photos.library.v1.EnrichmentItem enrichment_item = 1;
19 | *
20 | * @return Whether the enrichmentItem field is set.
21 | */
22 | boolean hasEnrichmentItem();
23 | /**
24 | *
25 | *
26 | * 27 | * Output only. Enrichment which was added. 28 | *29 | * 30 | *
.google.photos.library.v1.EnrichmentItem enrichment_item = 1;
31 | *
32 | * @return The enrichmentItem.
33 | */
34 | com.google.photos.library.v1.proto.EnrichmentItem getEnrichmentItem();
35 | /**
36 | *
37 | *
38 | * 39 | * Output only. Enrichment which was added. 40 | *41 | * 42 | *
.google.photos.library.v1.EnrichmentItem enrichment_item = 1;
43 | */
44 | com.google.photos.library.v1.proto.EnrichmentItemOrBuilder getEnrichmentItemOrBuilder();
45 | }
46 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/AlbumPositionOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface AlbumPositionOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.AlbumPosition)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Type of position, for a media or enrichment item. 16 | *17 | * 18 | *
.google.photos.library.v1.AlbumPosition.PositionType position = 1;
19 | *
20 | * @return The enum numeric value on the wire for position.
21 | */
22 | int getPositionValue();
23 | /**
24 | *
25 | *
26 | * 27 | * Type of position, for a media or enrichment item. 28 | *29 | * 30 | *
.google.photos.library.v1.AlbumPosition.PositionType position = 1;
31 | *
32 | * @return The position.
33 | */
34 | com.google.photos.library.v1.proto.AlbumPosition.PositionType getPosition();
35 |
36 | /**
37 | *
38 | *
39 | * 40 | * The media item to which the position is relative to. 41 | * Only used when position type is AFTER_MEDIA_ITEM. 42 | *43 | * 44 | *
string relative_media_item_id = 2;
45 | *
46 | * @return Whether the relativeMediaItemId field is set.
47 | */
48 | boolean hasRelativeMediaItemId();
49 | /**
50 | *
51 | *
52 | * 53 | * The media item to which the position is relative to. 54 | * Only used when position type is AFTER_MEDIA_ITEM. 55 | *56 | * 57 | *
string relative_media_item_id = 2;
58 | *
59 | * @return The relativeMediaItemId.
60 | */
61 | java.lang.String getRelativeMediaItemId();
62 | /**
63 | *
64 | *
65 | * 66 | * The media item to which the position is relative to. 67 | * Only used when position type is AFTER_MEDIA_ITEM. 68 | *69 | * 70 | *
string relative_media_item_id = 2;
71 | *
72 | * @return The bytes for relativeMediaItemId.
73 | */
74 | com.google.protobuf.ByteString getRelativeMediaItemIdBytes();
75 |
76 | /**
77 | *
78 | *
79 | * 80 | * The enrichment item to which the position is relative to. 81 | * Only used when position type is AFTER_ENRICHMENT_ITEM. 82 | *83 | * 84 | *
string relative_enrichment_item_id = 3;
85 | *
86 | * @return Whether the relativeEnrichmentItemId field is set.
87 | */
88 | boolean hasRelativeEnrichmentItemId();
89 | /**
90 | *
91 | *
92 | * 93 | * The enrichment item to which the position is relative to. 94 | * Only used when position type is AFTER_ENRICHMENT_ITEM. 95 | *96 | * 97 | *
string relative_enrichment_item_id = 3;
98 | *
99 | * @return The relativeEnrichmentItemId.
100 | */
101 | java.lang.String getRelativeEnrichmentItemId();
102 | /**
103 | *
104 | *
105 | * 106 | * The enrichment item to which the position is relative to. 107 | * Only used when position type is AFTER_ENRICHMENT_ITEM. 108 | *109 | * 110 | *
string relative_enrichment_item_id = 3;
111 | *
112 | * @return The bytes for relativeEnrichmentItemId.
113 | */
114 | com.google.protobuf.ByteString getRelativeEnrichmentItemIdBytes();
115 |
116 | public com.google.photos.library.v1.proto.AlbumPosition.RelativeItemCase getRelativeItemCase();
117 | }
118 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchAddMediaItemsToAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchAddMediaItemsToAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchAddMediaItemsToAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 16 | * be added. The maximum number of media items that can be added in one call 17 | * is 50. 18 | *19 | * 20 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
21 | *
22 | * @return A list containing the mediaItemIds.
23 | */
24 | java.util.List29 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 30 | * be added. The maximum number of media items that can be added in one call 31 | * is 50. 32 | *33 | * 34 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
35 | *
36 | * @return The count of mediaItemIds.
37 | */
38 | int getMediaItemIdsCount();
39 | /**
40 | *
41 | *
42 | * 43 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 44 | * be added. The maximum number of media items that can be added in one call 45 | * is 50. 46 | *47 | * 48 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
49 | *
50 | * @param index The index of the element to return.
51 | * @return The mediaItemIds at the given index.
52 | */
53 | java.lang.String getMediaItemIds(int index);
54 | /**
55 | *
56 | *
57 | * 58 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 59 | * be added. The maximum number of media items that can be added in one call 60 | * is 50. 61 | *62 | * 63 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
64 | *
65 | * @param index The index of the value to return.
66 | * @return The bytes of the mediaItemIds at the given index.
67 | */
68 | com.google.protobuf.ByteString getMediaItemIdsBytes(int index);
69 |
70 | /**
71 | *
72 | *
73 | * 74 | * Required. Identifier of the [Album][google.photos.types.Album] that the 75 | * media items are added to. 76 | *77 | * 78 | *
string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
79 | *
80 | * @return The albumId.
81 | */
82 | java.lang.String getAlbumId();
83 | /**
84 | *
85 | *
86 | * 87 | * Required. Identifier of the [Album][google.photos.types.Album] that the 88 | * media items are added to. 89 | *90 | * 91 | *
string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
92 | *
93 | * @return The bytes for albumId.
94 | */
95 | com.google.protobuf.ByteString getAlbumIdBytes();
96 | }
97 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchAddMediaItemsToAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchAddMediaItemsToAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchAddMediaItemsToAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {}
10 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchCreateMediaItemsResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchCreateMediaItemsResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchCreateMediaItemsResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. List of media items created. 16 | *17 | * 18 | *
repeated .google.photos.library.v1.NewMediaItemResult new_media_item_results = 1;
19 | */
20 | java.util.List26 | * Output only. List of media items created. 27 | *28 | * 29 | *
repeated .google.photos.library.v1.NewMediaItemResult new_media_item_results = 1;
30 | */
31 | com.google.photos.library.v1.proto.NewMediaItemResult getNewMediaItemResults(int index);
32 | /**
33 | *
34 | *
35 | * 36 | * Output only. List of media items created. 37 | *38 | * 39 | *
repeated .google.photos.library.v1.NewMediaItemResult new_media_item_results = 1;
40 | */
41 | int getNewMediaItemResultsCount();
42 | /**
43 | *
44 | *
45 | * 46 | * Output only. List of media items created. 47 | *48 | * 49 | *
repeated .google.photos.library.v1.NewMediaItemResult new_media_item_results = 1;
50 | */
51 | java.util.List extends com.google.photos.library.v1.proto.NewMediaItemResultOrBuilder>
52 | getNewMediaItemResultsOrBuilderList();
53 | /**
54 | *
55 | *
56 | * 57 | * Output only. List of media items created. 58 | *59 | * 60 | *
repeated .google.photos.library.v1.NewMediaItemResult new_media_item_results = 1;
61 | */
62 | com.google.photos.library.v1.proto.NewMediaItemResultOrBuilder getNewMediaItemResultsOrBuilder(
63 | int index);
64 | }
65 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchGetMediaItemsRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchGetMediaItemsRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchGetMediaItemsRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifiers of the media items to be requested. 16 | * Must not contain repeated identifiers and cannot be empty. The maximum 17 | * number of media items that can be retrieved in one call is 50. 18 | *19 | * 20 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
21 | *
22 | * @return A list containing the mediaItemIds.
23 | */
24 | java.util.List29 | * Required. Identifiers of the media items to be requested. 30 | * Must not contain repeated identifiers and cannot be empty. The maximum 31 | * number of media items that can be retrieved in one call is 50. 32 | *33 | * 34 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
35 | *
36 | * @return The count of mediaItemIds.
37 | */
38 | int getMediaItemIdsCount();
39 | /**
40 | *
41 | *
42 | * 43 | * Required. Identifiers of the media items to be requested. 44 | * Must not contain repeated identifiers and cannot be empty. The maximum 45 | * number of media items that can be retrieved in one call is 50. 46 | *47 | * 48 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
49 | *
50 | * @param index The index of the element to return.
51 | * @return The mediaItemIds at the given index.
52 | */
53 | java.lang.String getMediaItemIds(int index);
54 | /**
55 | *
56 | *
57 | * 58 | * Required. Identifiers of the media items to be requested. 59 | * Must not contain repeated identifiers and cannot be empty. The maximum 60 | * number of media items that can be retrieved in one call is 50. 61 | *62 | * 63 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
64 | *
65 | * @param index The index of the value to return.
66 | * @return The bytes of the mediaItemIds at the given index.
67 | */
68 | com.google.protobuf.ByteString getMediaItemIdsBytes(int index);
69 | }
70 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchGetMediaItemsResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchGetMediaItemsResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchGetMediaItemsResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. List of media items retrieved. 16 | * Note that even if the call to BatchGetMediaItems succeeds, there may have 17 | * been failures for some media items in the batch. These failures are 18 | * indicated in each 19 | * [MediaItemResult.status][google.photos.library.v1.MediaItemResult.status]. 20 | *21 | * 22 | *
repeated .google.photos.library.v1.MediaItemResult media_item_results = 1;
23 | */
24 | java.util.List29 | * Output only. List of media items retrieved. 30 | * Note that even if the call to BatchGetMediaItems succeeds, there may have 31 | * been failures for some media items in the batch. These failures are 32 | * indicated in each 33 | * [MediaItemResult.status][google.photos.library.v1.MediaItemResult.status]. 34 | *35 | * 36 | *
repeated .google.photos.library.v1.MediaItemResult media_item_results = 1;
37 | */
38 | com.google.photos.library.v1.proto.MediaItemResult getMediaItemResults(int index);
39 | /**
40 | *
41 | *
42 | * 43 | * Output only. List of media items retrieved. 44 | * Note that even if the call to BatchGetMediaItems succeeds, there may have 45 | * been failures for some media items in the batch. These failures are 46 | * indicated in each 47 | * [MediaItemResult.status][google.photos.library.v1.MediaItemResult.status]. 48 | *49 | * 50 | *
repeated .google.photos.library.v1.MediaItemResult media_item_results = 1;
51 | */
52 | int getMediaItemResultsCount();
53 | /**
54 | *
55 | *
56 | * 57 | * Output only. List of media items retrieved. 58 | * Note that even if the call to BatchGetMediaItems succeeds, there may have 59 | * been failures for some media items in the batch. These failures are 60 | * indicated in each 61 | * [MediaItemResult.status][google.photos.library.v1.MediaItemResult.status]. 62 | *63 | * 64 | *
repeated .google.photos.library.v1.MediaItemResult media_item_results = 1;
65 | */
66 | java.util.List extends com.google.photos.library.v1.proto.MediaItemResultOrBuilder>
67 | getMediaItemResultsOrBuilderList();
68 | /**
69 | *
70 | *
71 | * 72 | * Output only. List of media items retrieved. 73 | * Note that even if the call to BatchGetMediaItems succeeds, there may have 74 | * been failures for some media items in the batch. These failures are 75 | * indicated in each 76 | * [MediaItemResult.status][google.photos.library.v1.MediaItemResult.status]. 77 | *78 | * 79 | *
repeated .google.photos.library.v1.MediaItemResult media_item_results = 1;
80 | */
81 | com.google.photos.library.v1.proto.MediaItemResultOrBuilder getMediaItemResultsOrBuilder(
82 | int index);
83 | }
84 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchRemoveMediaItemsFromAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchRemoveMediaItemsFromAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchRemoveMediaItemsFromAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 16 | * be removed. 17 | * Must not contain repeated identifiers and cannot be empty. The maximum 18 | * number of media items that can be removed in one call is 50. 19 | *20 | * 21 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
22 | *
23 | * @return A list containing the mediaItemIds.
24 | */
25 | java.util.List30 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 31 | * be removed. 32 | * Must not contain repeated identifiers and cannot be empty. The maximum 33 | * number of media items that can be removed in one call is 50. 34 | *35 | * 36 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
37 | *
38 | * @return The count of mediaItemIds.
39 | */
40 | int getMediaItemIdsCount();
41 | /**
42 | *
43 | *
44 | * 45 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 46 | * be removed. 47 | * Must not contain repeated identifiers and cannot be empty. The maximum 48 | * number of media items that can be removed in one call is 50. 49 | *50 | * 51 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
52 | *
53 | * @param index The index of the element to return.
54 | * @return The mediaItemIds at the given index.
55 | */
56 | java.lang.String getMediaItemIds(int index);
57 | /**
58 | *
59 | *
60 | * 61 | * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to 62 | * be removed. 63 | * Must not contain repeated identifiers and cannot be empty. The maximum 64 | * number of media items that can be removed in one call is 50. 65 | *66 | * 67 | *
repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
68 | *
69 | * @param index The index of the value to return.
70 | * @return The bytes of the mediaItemIds at the given index.
71 | */
72 | com.google.protobuf.ByteString getMediaItemIdsBytes(int index);
73 |
74 | /**
75 | *
76 | *
77 | * 78 | * Required. Identifier of the [Album][google.photos.types.Album] that the 79 | * media items are to be removed from. 80 | *81 | * 82 | *
string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
83 | *
84 | * @return The albumId.
85 | */
86 | java.lang.String getAlbumId();
87 | /**
88 | *
89 | *
90 | * 91 | * Required. Identifier of the [Album][google.photos.types.Album] that the 92 | * media items are to be removed from. 93 | *94 | * 95 | *
string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
96 | *
97 | * @return The bytes for albumId.
98 | */
99 | com.google.protobuf.ByteString getAlbumIdBytes();
100 | }
101 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/BatchRemoveMediaItemsFromAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface BatchRemoveMediaItemsFromAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.BatchRemoveMediaItemsFromAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {}
10 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/CreateAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface CreateAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.CreateAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. The album to be created. 16 | *17 | * 18 | *
.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return Whether the album field is set.
21 | */
22 | boolean hasAlbum();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. The album to be created. 28 | *29 | * 30 | *
.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The album.
33 | */
34 | com.google.photos.types.proto.Album getAlbum();
35 | /**
36 | *
37 | *
38 | * 39 | * Required. The album to be created. 40 | *41 | * 42 | *
.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
43 | */
44 | com.google.photos.types.proto.AlbumOrBuilder getAlbumOrBuilder();
45 | }
46 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/DateFilterOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface DateFilterOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.DateFilter)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * List of dates that match the media items' creation date. A maximum of 16 | * 5 dates can be included per request. 17 | *18 | * 19 | *
repeated .google.type.Date dates = 1;
20 | */
21 | java.util.List26 | * List of dates that match the media items' creation date. A maximum of 27 | * 5 dates can be included per request. 28 | *29 | * 30 | *
repeated .google.type.Date dates = 1;
31 | */
32 | com.google.type.Date getDates(int index);
33 | /**
34 | *
35 | *
36 | * 37 | * List of dates that match the media items' creation date. A maximum of 38 | * 5 dates can be included per request. 39 | *40 | * 41 | *
repeated .google.type.Date dates = 1;
42 | */
43 | int getDatesCount();
44 | /**
45 | *
46 | *
47 | * 48 | * List of dates that match the media items' creation date. A maximum of 49 | * 5 dates can be included per request. 50 | *51 | * 52 | *
repeated .google.type.Date dates = 1;
53 | */
54 | java.util.List extends com.google.type.DateOrBuilder> getDatesOrBuilderList();
55 | /**
56 | *
57 | *
58 | * 59 | * List of dates that match the media items' creation date. A maximum of 60 | * 5 dates can be included per request. 61 | *62 | * 63 | *
repeated .google.type.Date dates = 1;
64 | */
65 | com.google.type.DateOrBuilder getDatesOrBuilder(int index);
66 |
67 | /**
68 | *
69 | *
70 | * 71 | * List of dates ranges that match the media items' creation date. A 72 | * maximum of 5 dates ranges can be included per request. 73 | *74 | * 75 | *
repeated .google.photos.types.DateRange ranges = 2;
76 | */
77 | java.util.List82 | * List of dates ranges that match the media items' creation date. A 83 | * maximum of 5 dates ranges can be included per request. 84 | *85 | * 86 | *
repeated .google.photos.types.DateRange ranges = 2;
87 | */
88 | com.google.photos.types.proto.DateRange getRanges(int index);
89 | /**
90 | *
91 | *
92 | * 93 | * List of dates ranges that match the media items' creation date. A 94 | * maximum of 5 dates ranges can be included per request. 95 | *96 | * 97 | *
repeated .google.photos.types.DateRange ranges = 2;
98 | */
99 | int getRangesCount();
100 | /**
101 | *
102 | *
103 | * 104 | * List of dates ranges that match the media items' creation date. A 105 | * maximum of 5 dates ranges can be included per request. 106 | *107 | * 108 | *
repeated .google.photos.types.DateRange ranges = 2;
109 | */
110 | java.util.List extends com.google.photos.types.proto.DateRangeOrBuilder>
111 | getRangesOrBuilderList();
112 | /**
113 | *
114 | *
115 | * 116 | * List of dates ranges that match the media items' creation date. A 117 | * maximum of 5 dates ranges can be included per request. 118 | *119 | * 120 | *
repeated .google.photos.types.DateRange ranges = 2;
121 | */
122 | com.google.photos.types.proto.DateRangeOrBuilder getRangesOrBuilder(int index);
123 | }
124 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/EnrichmentItemOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface EnrichmentItemOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.EnrichmentItem)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Identifier of the enrichment item. 16 | *17 | * 18 | *
string id = 1;
19 | *
20 | * @return The id.
21 | */
22 | java.lang.String getId();
23 | /**
24 | *
25 | *
26 | * 27 | * Identifier of the enrichment item. 28 | *29 | * 30 | *
string id = 1;
31 | *
32 | * @return The bytes for id.
33 | */
34 | com.google.protobuf.ByteString getIdBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/FeatureFilterOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface FeatureFilterOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.FeatureFilter)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * The set of features to be included in the media item search results. 16 | * The items in the set are ORed and may match any of the specified features. 17 | *18 | * 19 | *
repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;
20 | *
21 | * @return A list containing the includedFeatures.
22 | */
23 | java.util.List29 | * The set of features to be included in the media item search results. 30 | * The items in the set are ORed and may match any of the specified features. 31 | *32 | * 33 | *
repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;
34 | *
35 | * @return The count of includedFeatures.
36 | */
37 | int getIncludedFeaturesCount();
38 | /**
39 | *
40 | *
41 | * 42 | * The set of features to be included in the media item search results. 43 | * The items in the set are ORed and may match any of the specified features. 44 | *45 | * 46 | *
repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;
47 | *
48 | * @param index The index of the element to return.
49 | * @return The includedFeatures at the given index.
50 | */
51 | com.google.photos.library.v1.proto.FeatureFilter.Feature getIncludedFeatures(int index);
52 | /**
53 | *
54 | *
55 | * 56 | * The set of features to be included in the media item search results. 57 | * The items in the set are ORed and may match any of the specified features. 58 | *59 | * 60 | *
repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;
61 | *
62 | * @return A list containing the enum numeric values on the wire for includedFeatures.
63 | */
64 | java.util.List69 | * The set of features to be included in the media item search results. 70 | * The items in the set are ORed and may match any of the specified features. 71 | *72 | * 73 | *
repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;
74 | *
75 | * @param index The index of the value to return.
76 | * @return The enum numeric value on the wire of includedFeatures at the given index.
77 | */
78 | int getIncludedFeaturesValue(int index);
79 | }
80 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/GetAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface GetAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.GetAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifier of the album to be requested. 16 | *17 | * 18 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return The albumId.
21 | */
22 | java.lang.String getAlbumId();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. Identifier of the album to be requested. 28 | *29 | * 30 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The bytes for albumId.
33 | */
34 | com.google.protobuf.ByteString getAlbumIdBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/GetMediaItemRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface GetMediaItemRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.GetMediaItemRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifier of the media item to be requested. 16 | *17 | * 18 | *
string media_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return The mediaItemId.
21 | */
22 | java.lang.String getMediaItemId();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. Identifier of the media item to be requested. 28 | *29 | * 30 | *
string media_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The bytes for mediaItemId.
33 | */
34 | com.google.protobuf.ByteString getMediaItemIdBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/GetSharedAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface GetSharedAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.GetSharedAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Share token of the album to be requested. 16 | *17 | * 18 | *
string share_token = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return The shareToken.
21 | */
22 | java.lang.String getShareToken();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. Share token of the album to be requested. 28 | *29 | * 30 | *
string share_token = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The bytes for shareToken.
33 | */
34 | com.google.protobuf.ByteString getShareTokenBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/JoinSharedAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface JoinSharedAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.JoinSharedAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Token to join the shared album on behalf of the user. 16 | *17 | * 18 | *
string share_token = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return The shareToken.
21 | */
22 | java.lang.String getShareToken();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. Token to join the shared album on behalf of the user. 28 | *29 | * 30 | *
string share_token = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The bytes for shareToken.
33 | */
34 | com.google.protobuf.ByteString getShareTokenBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/JoinSharedAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface JoinSharedAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.JoinSharedAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Shared album that the user has joined. 16 | *17 | * 18 | *
.google.photos.types.Album album = 1;
19 | *
20 | * @return Whether the album field is set.
21 | */
22 | boolean hasAlbum();
23 | /**
24 | *
25 | *
26 | * 27 | * Shared album that the user has joined. 28 | *29 | * 30 | *
.google.photos.types.Album album = 1;
31 | *
32 | * @return The album.
33 | */
34 | com.google.photos.types.proto.Album getAlbum();
35 | /**
36 | *
37 | *
38 | * 39 | * Shared album that the user has joined. 40 | *41 | * 42 | *
.google.photos.types.Album album = 1;
43 | */
44 | com.google.photos.types.proto.AlbumOrBuilder getAlbumOrBuilder();
45 | }
46 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/LeaveSharedAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface LeaveSharedAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.LeaveSharedAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Token to leave the shared album on behalf of the user. 16 | *17 | * 18 | *
string share_token = 1 [(.google.api.field_behavior) = REQUIRED];
19 | *
20 | * @return The shareToken.
21 | */
22 | java.lang.String getShareToken();
23 | /**
24 | *
25 | *
26 | * 27 | * Required. Token to leave the shared album on behalf of the user. 28 | *29 | * 30 | *
string share_token = 1 [(.google.api.field_behavior) = REQUIRED];
31 | *
32 | * @return The bytes for shareToken.
33 | */
34 | com.google.protobuf.ByteString getShareTokenBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/LeaveSharedAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface LeaveSharedAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.LeaveSharedAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {}
10 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ListAlbumsRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ListAlbumsRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ListAlbumsRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Maximum number of albums to return in the response. Fewer albums might be 16 | * returned than the specified number. The default `pageSize` is 20, the 17 | * maximum is 50. 18 | *19 | * 20 | *
int32 page_size = 1;
21 | *
22 | * @return The pageSize.
23 | */
24 | int getPageSize();
25 |
26 | /**
27 | *
28 | *
29 | * 30 | * A continuation token to get the next page of the results. Adding this to 31 | * the request returns the rows after the `pageToken`. The `pageToken` should 32 | * be the value returned in the `nextPageToken` parameter in the response to 33 | * the `listAlbums` request. 34 | *35 | * 36 | *
string page_token = 2;
37 | *
38 | * @return The pageToken.
39 | */
40 | java.lang.String getPageToken();
41 | /**
42 | *
43 | *
44 | * 45 | * A continuation token to get the next page of the results. Adding this to 46 | * the request returns the rows after the `pageToken`. The `pageToken` should 47 | * be the value returned in the `nextPageToken` parameter in the response to 48 | * the `listAlbums` request. 49 | *50 | * 51 | *
string page_token = 2;
52 | *
53 | * @return The bytes for pageToken.
54 | */
55 | com.google.protobuf.ByteString getPageTokenBytes();
56 |
57 | /**
58 | *
59 | *
60 | * 61 | * If set, the results exclude media items that were not created by this app. 62 | * Defaults to false (all albums are returned). This field is ignored if the 63 | * photoslibrary.readonly.appcreateddata scope is used. 64 | *65 | * 66 | *
bool exclude_non_app_created_data = 3;
67 | *
68 | * @return The excludeNonAppCreatedData.
69 | */
70 | boolean getExcludeNonAppCreatedData();
71 | }
72 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ListAlbumsResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ListAlbumsResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ListAlbumsResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. List of albums shown in the Albums tab of the user's Google 16 | * Photos app. 17 | *18 | * 19 | *
repeated .google.photos.types.Album albums = 1;
20 | */
21 | java.util.List26 | * Output only. List of albums shown in the Albums tab of the user's Google 27 | * Photos app. 28 | *29 | * 30 | *
repeated .google.photos.types.Album albums = 1;
31 | */
32 | com.google.photos.types.proto.Album getAlbums(int index);
33 | /**
34 | *
35 | *
36 | * 37 | * Output only. List of albums shown in the Albums tab of the user's Google 38 | * Photos app. 39 | *40 | * 41 | *
repeated .google.photos.types.Album albums = 1;
42 | */
43 | int getAlbumsCount();
44 | /**
45 | *
46 | *
47 | * 48 | * Output only. List of albums shown in the Albums tab of the user's Google 49 | * Photos app. 50 | *51 | * 52 | *
repeated .google.photos.types.Album albums = 1;
53 | */
54 | java.util.List extends com.google.photos.types.proto.AlbumOrBuilder> getAlbumsOrBuilderList();
55 | /**
56 | *
57 | *
58 | * 59 | * Output only. List of albums shown in the Albums tab of the user's Google 60 | * Photos app. 61 | *62 | * 63 | *
repeated .google.photos.types.Album albums = 1;
64 | */
65 | com.google.photos.types.proto.AlbumOrBuilder getAlbumsOrBuilder(int index);
66 |
67 | /**
68 | *
69 | *
70 | * 71 | * Output only. Token to use to get the next set of albums. Populated if 72 | * there are more albums to retrieve for this request. 73 | *74 | * 75 | *
string next_page_token = 2;
76 | *
77 | * @return The nextPageToken.
78 | */
79 | java.lang.String getNextPageToken();
80 | /**
81 | *
82 | *
83 | * 84 | * Output only. Token to use to get the next set of albums. Populated if 85 | * there are more albums to retrieve for this request. 86 | *87 | * 88 | *
string next_page_token = 2;
89 | *
90 | * @return The bytes for nextPageToken.
91 | */
92 | com.google.protobuf.ByteString getNextPageTokenBytes();
93 | }
94 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ListMediaItemsRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ListMediaItemsRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ListMediaItemsRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Maximum number of media items to return in the response. Fewer media items 16 | * might be returned than the specified number. The default `pageSize` is 25, 17 | * the maximum is 100. 18 | *19 | * 20 | *
int32 page_size = 1;
21 | *
22 | * @return The pageSize.
23 | */
24 | int getPageSize();
25 |
26 | /**
27 | *
28 | *
29 | * 30 | * A continuation token to get the next page of the results. Adding this to 31 | * the request returns the rows after the `pageToken`. The `pageToken` should 32 | * be the value returned in the `nextPageToken` parameter in the response to 33 | * the `listMediaItems` request. 34 | *35 | * 36 | *
string page_token = 2;
37 | *
38 | * @return The pageToken.
39 | */
40 | java.lang.String getPageToken();
41 | /**
42 | *
43 | *
44 | * 45 | * A continuation token to get the next page of the results. Adding this to 46 | * the request returns the rows after the `pageToken`. The `pageToken` should 47 | * be the value returned in the `nextPageToken` parameter in the response to 48 | * the `listMediaItems` request. 49 | *50 | * 51 | *
string page_token = 2;
52 | *
53 | * @return The bytes for pageToken.
54 | */
55 | com.google.protobuf.ByteString getPageTokenBytes();
56 | }
57 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ListMediaItemsResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ListMediaItemsResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ListMediaItemsResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. List of media items in the user's library. 16 | *17 | * 18 | *
repeated .google.photos.types.MediaItem media_items = 1;
19 | */
20 | java.util.List25 | * Output only. List of media items in the user's library. 26 | *27 | * 28 | *
repeated .google.photos.types.MediaItem media_items = 1;
29 | */
30 | com.google.photos.types.proto.MediaItem getMediaItems(int index);
31 | /**
32 | *
33 | *
34 | * 35 | * Output only. List of media items in the user's library. 36 | *37 | * 38 | *
repeated .google.photos.types.MediaItem media_items = 1;
39 | */
40 | int getMediaItemsCount();
41 | /**
42 | *
43 | *
44 | * 45 | * Output only. List of media items in the user's library. 46 | *47 | * 48 | *
repeated .google.photos.types.MediaItem media_items = 1;
49 | */
50 | java.util.List extends com.google.photos.types.proto.MediaItemOrBuilder>
51 | getMediaItemsOrBuilderList();
52 | /**
53 | *
54 | *
55 | * 56 | * Output only. List of media items in the user's library. 57 | *58 | * 59 | *
repeated .google.photos.types.MediaItem media_items = 1;
60 | */
61 | com.google.photos.types.proto.MediaItemOrBuilder getMediaItemsOrBuilder(int index);
62 |
63 | /**
64 | *
65 | *
66 | * 67 | * Output only. Token to use to get the next set of media items. Its presence 68 | * is the only reliable indicator of more media items being available in the 69 | * next request. 70 | *71 | * 72 | *
string next_page_token = 2;
73 | *
74 | * @return The nextPageToken.
75 | */
76 | java.lang.String getNextPageToken();
77 | /**
78 | *
79 | *
80 | * 81 | * Output only. Token to use to get the next set of media items. Its presence 82 | * is the only reliable indicator of more media items being available in the 83 | * next request. 84 | *85 | * 86 | *
string next_page_token = 2;
87 | *
88 | * @return The bytes for nextPageToken.
89 | */
90 | com.google.protobuf.ByteString getNextPageTokenBytes();
91 | }
92 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ListSharedAlbumsRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ListSharedAlbumsRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ListSharedAlbumsRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Maximum number of albums to return in the response. Fewer albums might be 16 | * returned than the specified number. The default `pageSize` is 20, the 17 | * maximum is 50. 18 | *19 | * 20 | *
int32 page_size = 1;
21 | *
22 | * @return The pageSize.
23 | */
24 | int getPageSize();
25 |
26 | /**
27 | *
28 | *
29 | * 30 | * A continuation token to get the next page of the results. Adding this to 31 | * the request returns the rows after the `pageToken`. The `pageToken` should 32 | * be the value returned in the `nextPageToken` parameter in the response to 33 | * the `listSharedAlbums` request. 34 | *35 | * 36 | *
string page_token = 2;
37 | *
38 | * @return The pageToken.
39 | */
40 | java.lang.String getPageToken();
41 | /**
42 | *
43 | *
44 | * 45 | * A continuation token to get the next page of the results. Adding this to 46 | * the request returns the rows after the `pageToken`. The `pageToken` should 47 | * be the value returned in the `nextPageToken` parameter in the response to 48 | * the `listSharedAlbums` request. 49 | *50 | * 51 | *
string page_token = 2;
52 | *
53 | * @return The bytes for pageToken.
54 | */
55 | com.google.protobuf.ByteString getPageTokenBytes();
56 |
57 | /**
58 | *
59 | *
60 | * 61 | * If set, the results exclude media items that were not created by this app. 62 | * Defaults to false (all albums are returned). This field is ignored if the 63 | * photoslibrary.readonly.appcreateddata scope is used. 64 | *65 | * 66 | *
bool exclude_non_app_created_data = 3;
67 | *
68 | * @return The excludeNonAppCreatedData.
69 | */
70 | boolean getExcludeNonAppCreatedData();
71 | }
72 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ListSharedAlbumsResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ListSharedAlbumsResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ListSharedAlbumsResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. List of shared albums. 16 | *17 | * 18 | *
repeated .google.photos.types.Album shared_albums = 1;
19 | */
20 | java.util.List25 | * Output only. List of shared albums. 26 | *27 | * 28 | *
repeated .google.photos.types.Album shared_albums = 1;
29 | */
30 | com.google.photos.types.proto.Album getSharedAlbums(int index);
31 | /**
32 | *
33 | *
34 | * 35 | * Output only. List of shared albums. 36 | *37 | * 38 | *
repeated .google.photos.types.Album shared_albums = 1;
39 | */
40 | int getSharedAlbumsCount();
41 | /**
42 | *
43 | *
44 | * 45 | * Output only. List of shared albums. 46 | *47 | * 48 | *
repeated .google.photos.types.Album shared_albums = 1;
49 | */
50 | java.util.List extends com.google.photos.types.proto.AlbumOrBuilder>
51 | getSharedAlbumsOrBuilderList();
52 | /**
53 | *
54 | *
55 | * 56 | * Output only. List of shared albums. 57 | *58 | * 59 | *
repeated .google.photos.types.Album shared_albums = 1;
60 | */
61 | com.google.photos.types.proto.AlbumOrBuilder getSharedAlbumsOrBuilder(int index);
62 |
63 | /**
64 | *
65 | *
66 | * 67 | * Output only. Token to use to get the next set of shared albums. Populated 68 | * if there are more shared albums to retrieve for this request. 69 | *70 | * 71 | *
string next_page_token = 2;
72 | *
73 | * @return The nextPageToken.
74 | */
75 | java.lang.String getNextPageToken();
76 | /**
77 | *
78 | *
79 | * 80 | * Output only. Token to use to get the next set of shared albums. Populated 81 | * if there are more shared albums to retrieve for this request. 82 | *83 | * 84 | *
string next_page_token = 2;
85 | *
86 | * @return The bytes for nextPageToken.
87 | */
88 | com.google.protobuf.ByteString getNextPageTokenBytes();
89 | }
90 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/LocationEnrichmentOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface LocationEnrichmentOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.LocationEnrichment)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Location for this enrichment item. 16 | *17 | * 18 | *
.google.photos.library.v1.Location location = 1;
19 | *
20 | * @return Whether the location field is set.
21 | */
22 | boolean hasLocation();
23 | /**
24 | *
25 | *
26 | * 27 | * Location for this enrichment item. 28 | *29 | * 30 | *
.google.photos.library.v1.Location location = 1;
31 | *
32 | * @return The location.
33 | */
34 | com.google.photos.library.v1.proto.Location getLocation();
35 | /**
36 | *
37 | *
38 | * 39 | * Location for this enrichment item. 40 | *41 | * 42 | *
.google.photos.library.v1.Location location = 1;
43 | */
44 | com.google.photos.library.v1.proto.LocationOrBuilder getLocationOrBuilder();
45 | }
46 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/LocationOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface LocationOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.Location)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Name of the location to be displayed. 16 | *17 | * 18 | *
string location_name = 1;
19 | *
20 | * @return The locationName.
21 | */
22 | java.lang.String getLocationName();
23 | /**
24 | *
25 | *
26 | * 27 | * Name of the location to be displayed. 28 | *29 | * 30 | *
string location_name = 1;
31 | *
32 | * @return The bytes for locationName.
33 | */
34 | com.google.protobuf.ByteString getLocationNameBytes();
35 |
36 | /**
37 | *
38 | *
39 | * 40 | * Position of the location on the map. 41 | *42 | * 43 | *
.google.type.LatLng latlng = 2;
44 | *
45 | * @return Whether the latlng field is set.
46 | */
47 | boolean hasLatlng();
48 | /**
49 | *
50 | *
51 | * 52 | * Position of the location on the map. 53 | *54 | * 55 | *
.google.type.LatLng latlng = 2;
56 | *
57 | * @return The latlng.
58 | */
59 | com.google.type.LatLng getLatlng();
60 | /**
61 | *
62 | *
63 | * 64 | * Position of the location on the map. 65 | *66 | * 67 | *
.google.type.LatLng latlng = 2;
68 | */
69 | com.google.type.LatLngOrBuilder getLatlngOrBuilder();
70 | }
71 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/MapEnrichmentOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface MapEnrichmentOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.MapEnrichment)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Origin location for this enrichment item. 16 | *17 | * 18 | *
.google.photos.library.v1.Location origin = 1;
19 | *
20 | * @return Whether the origin field is set.
21 | */
22 | boolean hasOrigin();
23 | /**
24 | *
25 | *
26 | * 27 | * Origin location for this enrichment item. 28 | *29 | * 30 | *
.google.photos.library.v1.Location origin = 1;
31 | *
32 | * @return The origin.
33 | */
34 | com.google.photos.library.v1.proto.Location getOrigin();
35 | /**
36 | *
37 | *
38 | * 39 | * Origin location for this enrichment item. 40 | *41 | * 42 | *
.google.photos.library.v1.Location origin = 1;
43 | */
44 | com.google.photos.library.v1.proto.LocationOrBuilder getOriginOrBuilder();
45 |
46 | /**
47 | *
48 | *
49 | * 50 | * Destination location for this enrichemt item. 51 | *52 | * 53 | *
.google.photos.library.v1.Location destination = 2;
54 | *
55 | * @return Whether the destination field is set.
56 | */
57 | boolean hasDestination();
58 | /**
59 | *
60 | *
61 | * 62 | * Destination location for this enrichemt item. 63 | *64 | * 65 | *
.google.photos.library.v1.Location destination = 2;
66 | *
67 | * @return The destination.
68 | */
69 | com.google.photos.library.v1.proto.Location getDestination();
70 | /**
71 | *
72 | *
73 | * 74 | * Destination location for this enrichemt item. 75 | *76 | * 77 | *
.google.photos.library.v1.Location destination = 2;
78 | */
79 | com.google.photos.library.v1.proto.LocationOrBuilder getDestinationOrBuilder();
80 | }
81 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/MediaItemResultOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface MediaItemResultOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.MediaItemResult)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * If an error occurred while accessing this media item, this field 16 | * is populated with information related to the error. For details regarding 17 | * this field, see [Status][google.rpc.Status]. 18 | *19 | * 20 | *
.google.rpc.Status status = 1;
21 | *
22 | * @return Whether the status field is set.
23 | */
24 | boolean hasStatus();
25 | /**
26 | *
27 | *
28 | * 29 | * If an error occurred while accessing this media item, this field 30 | * is populated with information related to the error. For details regarding 31 | * this field, see [Status][google.rpc.Status]. 32 | *33 | * 34 | *
.google.rpc.Status status = 1;
35 | *
36 | * @return The status.
37 | */
38 | com.google.rpc.Status getStatus();
39 | /**
40 | *
41 | *
42 | * 43 | * If an error occurred while accessing this media item, this field 44 | * is populated with information related to the error. For details regarding 45 | * this field, see [Status][google.rpc.Status]. 46 | *47 | * 48 | *
.google.rpc.Status status = 1;
49 | */
50 | com.google.rpc.StatusOrBuilder getStatusOrBuilder();
51 |
52 | /**
53 | *
54 | *
55 | * 56 | * Media item retrieved from the user's library. It's populated if no errors 57 | * occurred and the media item was fetched successfully. 58 | *59 | * 60 | *
.google.photos.types.MediaItem media_item = 2;
61 | *
62 | * @return Whether the mediaItem field is set.
63 | */
64 | boolean hasMediaItem();
65 | /**
66 | *
67 | *
68 | * 69 | * Media item retrieved from the user's library. It's populated if no errors 70 | * occurred and the media item was fetched successfully. 71 | *72 | * 73 | *
.google.photos.types.MediaItem media_item = 2;
74 | *
75 | * @return The mediaItem.
76 | */
77 | com.google.photos.types.proto.MediaItem getMediaItem();
78 | /**
79 | *
80 | *
81 | * 82 | * Media item retrieved from the user's library. It's populated if no errors 83 | * occurred and the media item was fetched successfully. 84 | *85 | * 86 | *
.google.photos.types.MediaItem media_item = 2;
87 | */
88 | com.google.photos.types.proto.MediaItemOrBuilder getMediaItemOrBuilder();
89 | }
90 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/MediaTypeFilterOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface MediaTypeFilterOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.MediaTypeFilter)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * The types of media items to be included. This field should be populated 16 | * with only one media type. If you specify multiple media types, it results 17 | * in an error. 18 | *19 | * 20 | *
repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;
21 | *
22 | * @return A list containing the mediaTypes.
23 | */
24 | java.util.List29 | * The types of media items to be included. This field should be populated 30 | * with only one media type. If you specify multiple media types, it results 31 | * in an error. 32 | *33 | * 34 | *
repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;
35 | *
36 | * @return The count of mediaTypes.
37 | */
38 | int getMediaTypesCount();
39 | /**
40 | *
41 | *
42 | * 43 | * The types of media items to be included. This field should be populated 44 | * with only one media type. If you specify multiple media types, it results 45 | * in an error. 46 | *47 | * 48 | *
repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;
49 | *
50 | * @param index The index of the element to return.
51 | * @return The mediaTypes at the given index.
52 | */
53 | com.google.photos.library.v1.proto.MediaTypeFilter.MediaType getMediaTypes(int index);
54 | /**
55 | *
56 | *
57 | * 58 | * The types of media items to be included. This field should be populated 59 | * with only one media type. If you specify multiple media types, it results 60 | * in an error. 61 | *62 | * 63 | *
repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;
64 | *
65 | * @return A list containing the enum numeric values on the wire for mediaTypes.
66 | */
67 | java.util.List72 | * The types of media items to be included. This field should be populated 73 | * with only one media type. If you specify multiple media types, it results 74 | * in an error. 75 | *76 | * 77 | *
repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;
78 | *
79 | * @param index The index of the value to return.
80 | * @return The enum numeric value on the wire of mediaTypes at the given index.
81 | */
82 | int getMediaTypesValue(int index);
83 | }
84 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/NewEnrichmentItemOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface NewEnrichmentItemOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.NewEnrichmentItem)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Text to be added to the album. 16 | *17 | * 18 | *
.google.photos.library.v1.TextEnrichment text_enrichment = 1;
19 | *
20 | * @return Whether the textEnrichment field is set.
21 | */
22 | boolean hasTextEnrichment();
23 | /**
24 | *
25 | *
26 | * 27 | * Text to be added to the album. 28 | *29 | * 30 | *
.google.photos.library.v1.TextEnrichment text_enrichment = 1;
31 | *
32 | * @return The textEnrichment.
33 | */
34 | com.google.photos.library.v1.proto.TextEnrichment getTextEnrichment();
35 | /**
36 | *
37 | *
38 | * 39 | * Text to be added to the album. 40 | *41 | * 42 | *
.google.photos.library.v1.TextEnrichment text_enrichment = 1;
43 | */
44 | com.google.photos.library.v1.proto.TextEnrichmentOrBuilder getTextEnrichmentOrBuilder();
45 |
46 | /**
47 | *
48 | *
49 | * 50 | * Location to be added to the album. 51 | *52 | * 53 | *
.google.photos.library.v1.LocationEnrichment location_enrichment = 2;
54 | *
55 | * @return Whether the locationEnrichment field is set.
56 | */
57 | boolean hasLocationEnrichment();
58 | /**
59 | *
60 | *
61 | * 62 | * Location to be added to the album. 63 | *64 | * 65 | *
.google.photos.library.v1.LocationEnrichment location_enrichment = 2;
66 | *
67 | * @return The locationEnrichment.
68 | */
69 | com.google.photos.library.v1.proto.LocationEnrichment getLocationEnrichment();
70 | /**
71 | *
72 | *
73 | * 74 | * Location to be added to the album. 75 | *76 | * 77 | *
.google.photos.library.v1.LocationEnrichment location_enrichment = 2;
78 | */
79 | com.google.photos.library.v1.proto.LocationEnrichmentOrBuilder getLocationEnrichmentOrBuilder();
80 |
81 | /**
82 | *
83 | *
84 | * 85 | * Map to be added to the album. 86 | *87 | * 88 | *
.google.photos.library.v1.MapEnrichment map_enrichment = 3;
89 | *
90 | * @return Whether the mapEnrichment field is set.
91 | */
92 | boolean hasMapEnrichment();
93 | /**
94 | *
95 | *
96 | * 97 | * Map to be added to the album. 98 | *99 | * 100 | *
.google.photos.library.v1.MapEnrichment map_enrichment = 3;
101 | *
102 | * @return The mapEnrichment.
103 | */
104 | com.google.photos.library.v1.proto.MapEnrichment getMapEnrichment();
105 | /**
106 | *
107 | *
108 | * 109 | * Map to be added to the album. 110 | *111 | * 112 | *
.google.photos.library.v1.MapEnrichment map_enrichment = 3;
113 | */
114 | com.google.photos.library.v1.proto.MapEnrichmentOrBuilder getMapEnrichmentOrBuilder();
115 |
116 | public com.google.photos.library.v1.proto.NewEnrichmentItem.EnrichmentCase getEnrichmentCase();
117 | }
118 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/NewMediaItemOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface NewMediaItemOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.NewMediaItem)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Description of the media item. This is shown to the user in the item's info 16 | * section in the Google Photos app. Must be shorter than 1000 characters. 17 | * Only include text written by users. Descriptions should add context and 18 | * help users understand media. Do not include any auto-generated 19 | * strings such as filenames, tags, and other metadata. 20 | *21 | * 22 | *
string description = 1;
23 | *
24 | * @return The description.
25 | */
26 | java.lang.String getDescription();
27 | /**
28 | *
29 | *
30 | * 31 | * Description of the media item. This is shown to the user in the item's info 32 | * section in the Google Photos app. Must be shorter than 1000 characters. 33 | * Only include text written by users. Descriptions should add context and 34 | * help users understand media. Do not include any auto-generated 35 | * strings such as filenames, tags, and other metadata. 36 | *37 | * 38 | *
string description = 1;
39 | *
40 | * @return The bytes for description.
41 | */
42 | com.google.protobuf.ByteString getDescriptionBytes();
43 |
44 | /**
45 | *
46 | *
47 | * 48 | * A new media item that has been uploaded via the included `uploadToken`. 49 | *50 | * 51 | *
.google.photos.library.v1.SimpleMediaItem simple_media_item = 2;
52 | *
53 | * @return Whether the simpleMediaItem field is set.
54 | */
55 | boolean hasSimpleMediaItem();
56 | /**
57 | *
58 | *
59 | * 60 | * A new media item that has been uploaded via the included `uploadToken`. 61 | *62 | * 63 | *
.google.photos.library.v1.SimpleMediaItem simple_media_item = 2;
64 | *
65 | * @return The simpleMediaItem.
66 | */
67 | com.google.photos.library.v1.proto.SimpleMediaItem getSimpleMediaItem();
68 | /**
69 | *
70 | *
71 | * 72 | * A new media item that has been uploaded via the included `uploadToken`. 73 | *74 | * 75 | *
.google.photos.library.v1.SimpleMediaItem simple_media_item = 2;
76 | */
77 | com.google.photos.library.v1.proto.SimpleMediaItemOrBuilder getSimpleMediaItemOrBuilder();
78 |
79 | public com.google.photos.library.v1.proto.NewMediaItem.NewMediaItemTypeCase
80 | getNewMediaItemTypeCase();
81 | }
82 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/NewMediaItemResultOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface NewMediaItemResultOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.NewMediaItemResult)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * The upload token used to create this new (simple) media item. Only 16 | * populated if the media item is simple and required a single upload token. 17 | *18 | * 19 | *
string upload_token = 1;
20 | *
21 | * @return The uploadToken.
22 | */
23 | java.lang.String getUploadToken();
24 | /**
25 | *
26 | *
27 | * 28 | * The upload token used to create this new (simple) media item. Only 29 | * populated if the media item is simple and required a single upload token. 30 | *31 | * 32 | *
string upload_token = 1;
33 | *
34 | * @return The bytes for uploadToken.
35 | */
36 | com.google.protobuf.ByteString getUploadTokenBytes();
37 |
38 | /**
39 | *
40 | *
41 | * 42 | * If an error occurred during the creation of this media item, this field 43 | * is populated with information related to the error. For details regarding 44 | * this field, see <a href="#Status">Status</a>. 45 | *46 | * 47 | *
.google.rpc.Status status = 2;
48 | *
49 | * @return Whether the status field is set.
50 | */
51 | boolean hasStatus();
52 | /**
53 | *
54 | *
55 | * 56 | * If an error occurred during the creation of this media item, this field 57 | * is populated with information related to the error. For details regarding 58 | * this field, see <a href="#Status">Status</a>. 59 | *60 | * 61 | *
.google.rpc.Status status = 2;
62 | *
63 | * @return The status.
64 | */
65 | com.google.rpc.Status getStatus();
66 | /**
67 | *
68 | *
69 | * 70 | * If an error occurred during the creation of this media item, this field 71 | * is populated with information related to the error. For details regarding 72 | * this field, see <a href="#Status">Status</a>. 73 | *74 | * 75 | *
.google.rpc.Status status = 2;
76 | */
77 | com.google.rpc.StatusOrBuilder getStatusOrBuilder();
78 |
79 | /**
80 | *
81 | *
82 | * 83 | * Media item created with the upload token. It's populated if no errors 84 | * occurred and the media item was created successfully. 85 | *86 | * 87 | *
.google.photos.types.MediaItem media_item = 3;
88 | *
89 | * @return Whether the mediaItem field is set.
90 | */
91 | boolean hasMediaItem();
92 | /**
93 | *
94 | *
95 | * 96 | * Media item created with the upload token. It's populated if no errors 97 | * occurred and the media item was created successfully. 98 | *99 | * 100 | *
.google.photos.types.MediaItem media_item = 3;
101 | *
102 | * @return The mediaItem.
103 | */
104 | com.google.photos.types.proto.MediaItem getMediaItem();
105 | /**
106 | *
107 | *
108 | * 109 | * Media item created with the upload token. It's populated if no errors 110 | * occurred and the media item was created successfully. 111 | *112 | * 113 | *
.google.photos.types.MediaItem media_item = 3;
114 | */
115 | com.google.photos.types.proto.MediaItemOrBuilder getMediaItemOrBuilder();
116 | }
117 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/SearchMediaItemsResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface SearchMediaItemsResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.SearchMediaItemsResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. List of media items that match the search parameters. 16 | *17 | * 18 | *
repeated .google.photos.types.MediaItem media_items = 1;
19 | */
20 | java.util.List25 | * Output only. List of media items that match the search parameters. 26 | *27 | * 28 | *
repeated .google.photos.types.MediaItem media_items = 1;
29 | */
30 | com.google.photos.types.proto.MediaItem getMediaItems(int index);
31 | /**
32 | *
33 | *
34 | * 35 | * Output only. List of media items that match the search parameters. 36 | *37 | * 38 | *
repeated .google.photos.types.MediaItem media_items = 1;
39 | */
40 | int getMediaItemsCount();
41 | /**
42 | *
43 | *
44 | * 45 | * Output only. List of media items that match the search parameters. 46 | *47 | * 48 | *
repeated .google.photos.types.MediaItem media_items = 1;
49 | */
50 | java.util.List extends com.google.photos.types.proto.MediaItemOrBuilder>
51 | getMediaItemsOrBuilderList();
52 | /**
53 | *
54 | *
55 | * 56 | * Output only. List of media items that match the search parameters. 57 | *58 | * 59 | *
repeated .google.photos.types.MediaItem media_items = 1;
60 | */
61 | com.google.photos.types.proto.MediaItemOrBuilder getMediaItemsOrBuilder(int index);
62 |
63 | /**
64 | *
65 | *
66 | * 67 | * Output only. Use this token to get the next set of media items. Its 68 | * presence is the only reliable indicator of more media items being available 69 | * in the next request. 70 | *71 | * 72 | *
string next_page_token = 2;
73 | *
74 | * @return The nextPageToken.
75 | */
76 | java.lang.String getNextPageToken();
77 | /**
78 | *
79 | *
80 | * 81 | * Output only. Use this token to get the next set of media items. Its 82 | * presence is the only reliable indicator of more media items being available 83 | * in the next request. 84 | *85 | * 86 | *
string next_page_token = 2;
87 | *
88 | * @return The bytes for nextPageToken.
89 | */
90 | com.google.protobuf.ByteString getNextPageTokenBytes();
91 | }
92 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ShareAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ShareAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ShareAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifier of the album to be shared. This `albumId` must belong 16 | * to an album created by the developer. 17 | *18 | * 19 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
20 | *
21 | * @return The albumId.
22 | */
23 | java.lang.String getAlbumId();
24 | /**
25 | *
26 | *
27 | * 28 | * Required. Identifier of the album to be shared. This `albumId` must belong 29 | * to an album created by the developer. 30 | *31 | * 32 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
33 | *
34 | * @return The bytes for albumId.
35 | */
36 | com.google.protobuf.ByteString getAlbumIdBytes();
37 |
38 | /**
39 | *
40 | *
41 | * 42 | * Options to be set when converting the album to a shared album. 43 | *44 | * 45 | *
.google.photos.types.SharedAlbumOptions shared_album_options = 2;
46 | *
47 | * @return Whether the sharedAlbumOptions field is set.
48 | */
49 | boolean hasSharedAlbumOptions();
50 | /**
51 | *
52 | *
53 | * 54 | * Options to be set when converting the album to a shared album. 55 | *56 | * 57 | *
.google.photos.types.SharedAlbumOptions shared_album_options = 2;
58 | *
59 | * @return The sharedAlbumOptions.
60 | */
61 | com.google.photos.types.proto.SharedAlbumOptions getSharedAlbumOptions();
62 | /**
63 | *
64 | *
65 | * 66 | * Options to be set when converting the album to a shared album. 67 | *68 | * 69 | *
.google.photos.types.SharedAlbumOptions shared_album_options = 2;
70 | */
71 | com.google.photos.types.proto.SharedAlbumOptionsOrBuilder getSharedAlbumOptionsOrBuilder();
72 | }
73 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/ShareAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface ShareAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.ShareAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Output only. Information about the shared album. 16 | *17 | * 18 | *
.google.photos.types.ShareInfo share_info = 1;
19 | *
20 | * @return Whether the shareInfo field is set.
21 | */
22 | boolean hasShareInfo();
23 | /**
24 | *
25 | *
26 | * 27 | * Output only. Information about the shared album. 28 | *29 | * 30 | *
.google.photos.types.ShareInfo share_info = 1;
31 | *
32 | * @return The shareInfo.
33 | */
34 | com.google.photos.types.proto.ShareInfo getShareInfo();
35 | /**
36 | *
37 | *
38 | * 39 | * Output only. Information about the shared album. 40 | *41 | * 42 | *
.google.photos.types.ShareInfo share_info = 1;
43 | */
44 | com.google.photos.types.proto.ShareInfoOrBuilder getShareInfoOrBuilder();
45 | }
46 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/SimpleMediaItemOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface SimpleMediaItemOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.SimpleMediaItem)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Token identifying the media bytes that have been uploaded to Google. 16 | *17 | * 18 | *
string upload_token = 1;
19 | *
20 | * @return The uploadToken.
21 | */
22 | java.lang.String getUploadToken();
23 | /**
24 | *
25 | *
26 | * 27 | * Token identifying the media bytes that have been uploaded to Google. 28 | *29 | * 30 | *
string upload_token = 1;
31 | *
32 | * @return The bytes for uploadToken.
33 | */
34 | com.google.protobuf.ByteString getUploadTokenBytes();
35 |
36 | /**
37 | *
38 | *
39 | * 40 | * File name with extension of the media item. This is shown to the user in 41 | * Google Photos. The file name specified during the <a 42 | * href="https://developers.google.com/photos/library/guides/upload-media">byte 43 | * upload process</a> is ignored if this field is set. The file name, 44 | * including the file extension, shouldn't be more than 255 characters. This 45 | * is an optional field. 46 | *47 | * 48 | *
string file_name = 2;
49 | *
50 | * @return The fileName.
51 | */
52 | java.lang.String getFileName();
53 | /**
54 | *
55 | *
56 | * 57 | * File name with extension of the media item. This is shown to the user in 58 | * Google Photos. The file name specified during the <a 59 | * href="https://developers.google.com/photos/library/guides/upload-media">byte 60 | * upload process</a> is ignored if this field is set. The file name, 61 | * including the file extension, shouldn't be more than 255 characters. This 62 | * is an optional field. 63 | *64 | * 65 | *
string file_name = 2;
66 | *
67 | * @return The bytes for fileName.
68 | */
69 | com.google.protobuf.ByteString getFileNameBytes();
70 | }
71 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/TextEnrichmentOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface TextEnrichmentOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.TextEnrichment)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Text for this enrichment item. 16 | *17 | * 18 | *
string text = 1;
19 | *
20 | * @return The text.
21 | */
22 | java.lang.String getText();
23 | /**
24 | *
25 | *
26 | * 27 | * Text for this enrichment item. 28 | *29 | * 30 | *
string text = 1;
31 | *
32 | * @return The bytes for text.
33 | */
34 | com.google.protobuf.ByteString getTextBytes();
35 | }
36 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/UnshareAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface UnshareAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.UnshareAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. Identifier of the album to be unshared. This album id must belong 16 | * to an album created by the developer. 17 | *18 | * 19 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
20 | *
21 | * @return The albumId.
22 | */
23 | java.lang.String getAlbumId();
24 | /**
25 | *
26 | *
27 | * 28 | * Required. Identifier of the album to be unshared. This album id must belong 29 | * to an album created by the developer. 30 | *31 | * 32 | *
string album_id = 1 [(.google.api.field_behavior) = REQUIRED];
33 | *
34 | * @return The bytes for albumId.
35 | */
36 | com.google.protobuf.ByteString getAlbumIdBytes();
37 | }
38 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/UnshareAlbumResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface UnshareAlbumResponseOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.UnshareAlbumResponse)
9 | com.google.protobuf.MessageOrBuilder {}
10 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/UpdateAlbumRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface UpdateAlbumRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.UpdateAlbumRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. The [Album][google.photos.types.Album] to update. 16 | * The album’s `id` field is used to identify the album to be updated. 17 | * The album’s `title` field is used to set the new album title. 18 | * The album’s `cover_photo_media_item_id` field is used to set the new album 19 | * cover photo. 20 | *21 | * 22 | *
.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
23 | *
24 | * @return Whether the album field is set.
25 | */
26 | boolean hasAlbum();
27 | /**
28 | *
29 | *
30 | * 31 | * Required. The [Album][google.photos.types.Album] to update. 32 | * The album’s `id` field is used to identify the album to be updated. 33 | * The album’s `title` field is used to set the new album title. 34 | * The album’s `cover_photo_media_item_id` field is used to set the new album 35 | * cover photo. 36 | *37 | * 38 | *
.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
39 | *
40 | * @return The album.
41 | */
42 | com.google.photos.types.proto.Album getAlbum();
43 | /**
44 | *
45 | *
46 | * 47 | * Required. The [Album][google.photos.types.Album] to update. 48 | * The album’s `id` field is used to identify the album to be updated. 49 | * The album’s `title` field is used to set the new album title. 50 | * The album’s `cover_photo_media_item_id` field is used to set the new album 51 | * cover photo. 52 | *53 | * 54 | *
.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
55 | */
56 | com.google.photos.types.proto.AlbumOrBuilder getAlbumOrBuilder();
57 |
58 | /**
59 | *
60 | *
61 | * 62 | * Required. Indicate what fields in the provided album to update. 63 | * The only valid values are `title` and `cover_photo_media_item_id`. 64 | *65 | * 66 | *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
67 | *
68 | *
69 | * @return Whether the updateMask field is set.
70 | */
71 | boolean hasUpdateMask();
72 | /**
73 | *
74 | *
75 | * 76 | * Required. Indicate what fields in the provided album to update. 77 | * The only valid values are `title` and `cover_photo_media_item_id`. 78 | *79 | * 80 | *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
81 | *
82 | *
83 | * @return The updateMask.
84 | */
85 | com.google.protobuf.FieldMask getUpdateMask();
86 | /**
87 | *
88 | *
89 | * 90 | * Required. Indicate what fields in the provided album to update. 91 | * The only valid values are `title` and `cover_photo_media_item_id`. 92 | *93 | * 94 | *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
95 | *
96 | */
97 | com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
98 | }
99 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/UpdateMediaItemRequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/library/v1/photos_library.proto
3 |
4 | package com.google.photos.library.v1.proto;
5 |
6 | public interface UpdateMediaItemRequestOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.library.v1.UpdateMediaItemRequest)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * 15 | * Required. The [MediaItem][google.photos.types.MediaItem] to update. 16 | * The media item's `id` field is used to identify the media item to be 17 | * updated. 18 | * The media item's `description` field is used to set the new media item 19 | * description. 20 | *21 | * 22 | *
.google.photos.types.MediaItem media_item = 1 [(.google.api.field_behavior) = REQUIRED];
23 | *
24 | *
25 | * @return Whether the mediaItem field is set.
26 | */
27 | boolean hasMediaItem();
28 | /**
29 | *
30 | *
31 | * 32 | * Required. The [MediaItem][google.photos.types.MediaItem] to update. 33 | * The media item's `id` field is used to identify the media item to be 34 | * updated. 35 | * The media item's `description` field is used to set the new media item 36 | * description. 37 | *38 | * 39 | *
.google.photos.types.MediaItem media_item = 1 [(.google.api.field_behavior) = REQUIRED];
40 | *
41 | *
42 | * @return The mediaItem.
43 | */
44 | com.google.photos.types.proto.MediaItem getMediaItem();
45 | /**
46 | *
47 | *
48 | * 49 | * Required. The [MediaItem][google.photos.types.MediaItem] to update. 50 | * The media item's `id` field is used to identify the media item to be 51 | * updated. 52 | * The media item's `description` field is used to set the new media item 53 | * description. 54 | *55 | * 56 | *
.google.photos.types.MediaItem media_item = 1 [(.google.api.field_behavior) = REQUIRED];
57 | *
58 | */
59 | com.google.photos.types.proto.MediaItemOrBuilder getMediaItemOrBuilder();
60 |
61 | /**
62 | *
63 | *
64 | * 65 | * Required. Indicate what fields in the provided media item to update. 66 | * The only valid value is `description`. 67 | *68 | * 69 | *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
70 | *
71 | *
72 | * @return Whether the updateMask field is set.
73 | */
74 | boolean hasUpdateMask();
75 | /**
76 | *
77 | *
78 | * 79 | * Required. Indicate what fields in the provided media item to update. 80 | * The only valid value is `description`. 81 | *82 | * 83 | *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
84 | *
85 | *
86 | * @return The updateMask.
87 | */
88 | com.google.protobuf.FieldMask getUpdateMask();
89 | /**
90 | *
91 | *
92 | * 93 | * Required. Indicate what fields in the provided media item to update. 94 | * The only valid value is `description`. 95 | *96 | * 97 | *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
98 | *
99 | */
100 | com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
101 | }
102 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/upload/ExceptionStrings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2018 Google LLC
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.photos.library.v1.upload;
18 |
19 | final class ExceptionStrings {
20 |
21 | static final String INVALID_UPLOAD_RESULT =
22 | "The upload was completed but failed to finalize or get the result.";
23 | static final String INVALID_UPLOAD_STATUS = "Invalid upload status received.";
24 | static final String NOT_INITIALIZED = "The upload could not be initialized.";
25 | static final String UNKNOWN_ERROR = "The upload encountered an unknown error.";
26 | static final String UPLOAD_THREAD_INTERRUPTED = "Upload thread was interrupted.";
27 | static final String UPLOAD_URL_REJECTED =
28 | "The upload url is either finalized or rejected by the server.";
29 | static final String UPLOAD_TIMED_OUT = "The upload has timed out.";
30 | static final String INVALID_PROGRESS = "The upload progress could not be verified.";
31 | }
32 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/upload/NestedUploadRetryCallable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021 Google LLC
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.photos.library.v1.upload;
18 |
19 | import com.google.api.core.ApiFuture;
20 | import com.google.api.gax.rpc.ApiCallContext;
21 | import com.google.api.gax.rpc.Callables;
22 | import com.google.api.gax.rpc.ClientContext;
23 | import com.google.api.gax.rpc.UnaryCallSettings;
24 | import com.google.api.gax.rpc.UnaryCallable;
25 |
26 | /**
27 | * Manages retries and calls to a Callable that uploads bytes.
28 | *
29 | * Each individual call to {@link #futureCall(UploadMediaItemRequest, ApiCallContext)} is wrapped 30 | * in a {@link UploadRetryCallable} that handles retries and resumes of in-progress upload requests. 31 | * 32 | *
Package-private for internal use.
33 | */
34 | final class NestedUploadRetryCallable
35 | extends UnaryCallable Calls are retried per the retry configuration configured in the {@link UnaryCallSettings}
62 | * given when this object was created. Retries are handled through {@link UploadRetryCallable}.
63 | */
64 | @Override
65 | public ApiFuture This type of {@link ApiException} contains an optional resume URL from which an in-progress
26 | * upload can be resumed.
27 | *
28 | * @see PhotosLibraryUploadCallable
29 | */
30 | public class UploadApiException extends ApiException {
31 |
32 | /** Resume URL from which an in-progress upload can be resumed. */
33 | private final String resumeUrl;
34 |
35 | /**
36 | * Exception that occurred during an upload that includes a URL to resume the upload.
37 | *
38 | * @param cause The cause of this exception.
39 | * @param statusCode StatusCode that describes the underlying error.
40 | * @param retryable Whether the request can be retried.
41 | * @param resumeUrl The URL to use to resume the failed upload.
42 | */
43 | public UploadApiException(
44 | Throwable cause, StatusCode statusCode, boolean retryable, String resumeUrl) {
45 | super(cause, statusCode, retryable);
46 | this.resumeUrl = resumeUrl;
47 | }
48 |
49 | /**
50 | * Exception that occurred during an upload that includes a resume URL to resume the upload.
51 | *
52 | * @param message The detail message that describes this error.
53 | * @param cause The cause of this exception.
54 | * @param statusCode StatusCode that describes the underlying error.
55 | * @param retryable Whether the request can be retried.
56 | * @param resumeUrl The URL to use to resume the failed upload.
57 | */
58 | public UploadApiException(
59 | String message, Throwable cause, StatusCode statusCode, boolean retryable, String resumeUrl) {
60 | super(message, cause, statusCode, retryable);
61 | this.resumeUrl = resumeUrl;
62 | }
63 |
64 | /**
65 | * The resume URL from which the in-progress upload can be resumed.
66 | *
67 | * This URL can be set for an {@link UploadMediaItemRequest} in {@link
68 | * UploadMediaItemRequest.Builder#setUploadUrl(String)}.
69 | */
70 | public String getResumeUrl() {
71 | return resumeUrl;
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/library/v1/upload/UploadMediaItemResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2018 Google LLC
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.photos.library.v1.upload;
18 |
19 | import com.google.api.gax.rpc.ApiException;
20 | import java.util.Optional;
21 |
22 | /** Represents an upload response. */
23 | public final class UploadMediaItemResponse {
24 | /** Represents an error while uploading the media item. */
25 | public static final class Error {
26 | private final Optional The value expected by the Library API can be retrieved from {@link #getRequestValue()}.
25 | *
26 | * @see com.google.photos.library.v1.PhotosLibraryClient#searchMediaItems(Filters, OrderBy...)
27 | */
28 | public enum OrderBy {
29 | MEDIAMETADATA_CREATION_TIME("MediaMetadata.creation_time"),
30 | MEDIAMETADATA_CREATION_TIME_DESC("MediaMetadata.creation_time desc");
31 |
32 | /** Separator used to join multiple order configurations. */
33 | public static final String SEPARATOR = ",";
34 |
35 | /** String representation of this order as expected by the API. */
36 | private final String requestValue;
37 |
38 | /**
39 | * Order of search results.
40 | *
41 | * @param requestValue String representation as expected by the API.
42 | */
43 | OrderBy(String requestValue) {
44 | this.requestValue = requestValue;
45 | }
46 |
47 | /**
48 | * String representation of a sort option. Returns a string that is accepted by the Google Photos
49 | * Library as a parameter.
50 | *
51 | * @return Representation of this order as accepted by the API.
52 | */
53 | public String getRequestValue() {
54 | return requestValue;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/ContributorInfoOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/media_item.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public interface ContributorInfoOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.types.ContributorInfo)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | * %s %s
15 | * URL to the profile picture of the contributor.
16 | *
17 | *
18 | * string profile_picture_base_url = 1;
19 | *
20 | * @return The profilePictureBaseUrl.
21 | */
22 | java.lang.String getProfilePictureBaseUrl();
23 | /**
24 | *
25 | *
26 | *
27 | * URL to the profile picture of the contributor.
28 | *
29 | *
30 | * string profile_picture_base_url = 1;
31 | *
32 | * @return The bytes for profilePictureBaseUrl.
33 | */
34 | com.google.protobuf.ByteString getProfilePictureBaseUrlBytes();
35 |
36 | /**
37 | *
38 | *
39 | *
40 | * Display name of the contributor.
41 | *
42 | *
43 | * string display_name = 2;
44 | *
45 | * @return The displayName.
46 | */
47 | java.lang.String getDisplayName();
48 | /**
49 | *
50 | *
51 | *
52 | * Display name of the contributor.
53 | *
54 | *
55 | * string display_name = 2;
56 | *
57 | * @return The bytes for displayName.
58 | */
59 | com.google.protobuf.ByteString getDisplayNameBytes();
60 | }
61 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/DateRangeOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/date_range.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public interface DateRangeOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.types.DateRange)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | *
15 | * The start date (included as part of the range) in one of the formats
16 | * described.
17 | *
18 | *
19 | * .google.type.Date start_date = 1;
20 | *
21 | * @return Whether the startDate field is set.
22 | */
23 | boolean hasStartDate();
24 | /**
25 | *
26 | *
27 | *
28 | * The start date (included as part of the range) in one of the formats
29 | * described.
30 | *
31 | *
32 | * .google.type.Date start_date = 1;
33 | *
34 | * @return The startDate.
35 | */
36 | com.google.type.Date getStartDate();
37 | /**
38 | *
39 | *
40 | *
41 | * The start date (included as part of the range) in one of the formats
42 | * described.
43 | *
44 | *
45 | * .google.type.Date start_date = 1;
46 | */
47 | com.google.type.DateOrBuilder getStartDateOrBuilder();
48 |
49 | /**
50 | *
51 | *
52 | *
53 | * The end date (included as part of the range). It must be specified in the
54 | * same format as the start date.
55 | *
56 | *
57 | * .google.type.Date end_date = 2;
58 | *
59 | * @return Whether the endDate field is set.
60 | */
61 | boolean hasEndDate();
62 | /**
63 | *
64 | *
65 | *
66 | * The end date (included as part of the range). It must be specified in the
67 | * same format as the start date.
68 | *
69 | *
70 | * .google.type.Date end_date = 2;
71 | *
72 | * @return The endDate.
73 | */
74 | com.google.type.Date getEndDate();
75 | /**
76 | *
77 | *
78 | *
79 | * The end date (included as part of the range). It must be specified in the
80 | * same format as the start date.
81 | *
82 | *
83 | * .google.type.Date end_date = 2;
84 | */
85 | com.google.type.DateOrBuilder getEndDateOrBuilder();
86 | }
87 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/DateRangeProto.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/date_range.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public final class DateRangeProto {
7 | private DateRangeProto() {}
8 |
9 | public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
10 |
11 | public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
12 | registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
13 | }
14 |
15 | static final com.google.protobuf.Descriptors.Descriptor
16 | internal_static_google_photos_types_DateRange_descriptor;
17 | static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
18 | internal_static_google_photos_types_DateRange_fieldAccessorTable;
19 |
20 | public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
21 | return descriptor;
22 | }
23 |
24 | private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
25 |
26 | static {
27 | java.lang.String[] descriptorData = {
28 | "\n$google/photos/types/date_range.proto\022\023"
29 | + "google.photos.types\032\026google/type/date.pr"
30 | + "oto\"W\n\tDateRange\022%\n\nstart_date\030\001 \001(\0132\021.g"
31 | + "oogle.type.Date\022#\n\010end_date\030\002 \001(\0132\021.goog"
32 | + "le.type.DateBk\n\035com.google.photos.types."
33 | + "protoB\016DateRangeProtoP\001Z8google.golang.o"
34 | + "rg/genproto/googleapis/photos/types;type"
35 | + "sb\006proto3"
36 | };
37 | descriptor =
38 | com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
39 | descriptorData,
40 | new com.google.protobuf.Descriptors.FileDescriptor[] {
41 | com.google.type.DateProto.getDescriptor(),
42 | });
43 | internal_static_google_photos_types_DateRange_descriptor =
44 | getDescriptor().getMessageTypes().get(0);
45 | internal_static_google_photos_types_DateRange_fieldAccessorTable =
46 | new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
47 | internal_static_google_photos_types_DateRange_descriptor,
48 | new java.lang.String[] {
49 | "StartDate", "EndDate",
50 | });
51 | com.google.type.DateProto.getDescriptor();
52 | }
53 |
54 | // @@protoc_insertion_point(outer_class_scope)
55 | }
56 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/MediaMetadataOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/media_item.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public interface MediaMetadataOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.types.MediaMetadata)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | *
15 | * Time when the media item was first created (not when it was uploaded to
16 | * Google Photos).
17 | *
18 | *
19 | * .google.protobuf.Timestamp creation_time = 1;
20 | *
21 | * @return Whether the creationTime field is set.
22 | */
23 | boolean hasCreationTime();
24 | /**
25 | *
26 | *
27 | *
28 | * Time when the media item was first created (not when it was uploaded to
29 | * Google Photos).
30 | *
31 | *
32 | * .google.protobuf.Timestamp creation_time = 1;
33 | *
34 | * @return The creationTime.
35 | */
36 | com.google.protobuf.Timestamp getCreationTime();
37 | /**
38 | *
39 | *
40 | *
41 | * Time when the media item was first created (not when it was uploaded to
42 | * Google Photos).
43 | *
44 | *
45 | * .google.protobuf.Timestamp creation_time = 1;
46 | */
47 | com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder();
48 |
49 | /**
50 | *
51 | *
52 | *
53 | * Original width (in pixels) of the media item.
54 | *
55 | *
56 | * int64 width = 2;
57 | *
58 | * @return The width.
59 | */
60 | long getWidth();
61 |
62 | /**
63 | *
64 | *
65 | *
66 | * Original height (in pixels) of the media item.
67 | *
68 | *
69 | * int64 height = 3;
70 | *
71 | * @return The height.
72 | */
73 | long getHeight();
74 |
75 | /**
76 | *
77 | *
78 | *
79 | * Metadata for a photo media type.
80 | *
81 | *
82 | * .google.photos.types.Photo photo = 6;
83 | *
84 | * @return Whether the photo field is set.
85 | */
86 | boolean hasPhoto();
87 | /**
88 | *
89 | *
90 | *
91 | * Metadata for a photo media type.
92 | *
93 | *
94 | * .google.photos.types.Photo photo = 6;
95 | *
96 | * @return The photo.
97 | */
98 | com.google.photos.types.proto.Photo getPhoto();
99 | /**
100 | *
101 | *
102 | *
103 | * Metadata for a photo media type.
104 | *
105 | *
106 | * .google.photos.types.Photo photo = 6;
107 | */
108 | com.google.photos.types.proto.PhotoOrBuilder getPhotoOrBuilder();
109 |
110 | /**
111 | *
112 | *
113 | *
114 | * Metadata for a video media type.
115 | *
116 | *
117 | * .google.photos.types.Video video = 7;
118 | *
119 | * @return Whether the video field is set.
120 | */
121 | boolean hasVideo();
122 | /**
123 | *
124 | *
125 | *
126 | * Metadata for a video media type.
127 | *
128 | *
129 | * .google.photos.types.Video video = 7;
130 | *
131 | * @return The video.
132 | */
133 | com.google.photos.types.proto.Video getVideo();
134 | /**
135 | *
136 | *
137 | *
138 | * Metadata for a video media type.
139 | *
140 | *
141 | * .google.photos.types.Video video = 7;
142 | */
143 | com.google.photos.types.proto.VideoOrBuilder getVideoOrBuilder();
144 |
145 | public com.google.photos.types.proto.MediaMetadata.MetadataCase getMetadataCase();
146 | }
147 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/PhotoOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/media_item.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public interface PhotoOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.types.Photo)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | *
15 | * Brand of the camera with which the photo was taken.
16 | *
17 | *
18 | * string camera_make = 1;
19 | *
20 | * @return The cameraMake.
21 | */
22 | java.lang.String getCameraMake();
23 | /**
24 | *
25 | *
26 | *
27 | * Brand of the camera with which the photo was taken.
28 | *
29 | *
30 | * string camera_make = 1;
31 | *
32 | * @return The bytes for cameraMake.
33 | */
34 | com.google.protobuf.ByteString getCameraMakeBytes();
35 |
36 | /**
37 | *
38 | *
39 | *
40 | * Model of the camera with which the photo was taken.
41 | *
42 | *
43 | * string camera_model = 2;
44 | *
45 | * @return The cameraModel.
46 | */
47 | java.lang.String getCameraModel();
48 | /**
49 | *
50 | *
51 | *
52 | * Model of the camera with which the photo was taken.
53 | *
54 | *
55 | * string camera_model = 2;
56 | *
57 | * @return The bytes for cameraModel.
58 | */
59 | com.google.protobuf.ByteString getCameraModelBytes();
60 |
61 | /**
62 | *
63 | *
64 | *
65 | * Focal length of the camera lens with which the photo was taken.
66 | *
67 | *
68 | * float focal_length = 3;
69 | *
70 | * @return The focalLength.
71 | */
72 | float getFocalLength();
73 |
74 | /**
75 | *
76 | *
77 | *
78 | * Aperture f number of the camera lens with which the photo was taken.
79 | *
80 | *
81 | * float aperture_f_number = 4;
82 | *
83 | * @return The apertureFNumber.
84 | */
85 | float getApertureFNumber();
86 |
87 | /**
88 | *
89 | *
90 | *
91 | * ISO of the camera with which the photo was taken.
92 | *
93 | *
94 | * int32 iso_equivalent = 5;
95 | *
96 | * @return The isoEquivalent.
97 | */
98 | int getIsoEquivalent();
99 |
100 | /**
101 | *
102 | *
103 | *
104 | * Exposure time of the camera aperture when the photo was taken.
105 | *
106 | *
107 | * .google.protobuf.Duration exposure_time = 6;
108 | *
109 | * @return Whether the exposureTime field is set.
110 | */
111 | boolean hasExposureTime();
112 | /**
113 | *
114 | *
115 | *
116 | * Exposure time of the camera aperture when the photo was taken.
117 | *
118 | *
119 | * .google.protobuf.Duration exposure_time = 6;
120 | *
121 | * @return The exposureTime.
122 | */
123 | com.google.protobuf.Duration getExposureTime();
124 | /**
125 | *
126 | *
127 | *
128 | * Exposure time of the camera aperture when the photo was taken.
129 | *
130 | *
131 | * .google.protobuf.Duration exposure_time = 6;
132 | */
133 | com.google.protobuf.DurationOrBuilder getExposureTimeOrBuilder();
134 | }
135 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/SharedAlbumOptionsOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/album.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public interface SharedAlbumOptionsOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.types.SharedAlbumOptions)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | *
15 | * True if the shared album allows collaborators (users who have joined
16 | * the album) to add media items to it. Defaults to false.
17 | *
18 | *
19 | * bool is_collaborative = 1;
20 | *
21 | * @return The isCollaborative.
22 | */
23 | boolean getIsCollaborative();
24 |
25 | /**
26 | *
27 | *
28 | *
29 | * True if the shared album allows collaborators (users who have joined the
30 | * album) to add comments to the album. Defaults to false.
31 | *
32 | *
33 | * bool is_commentable = 2;
34 | *
35 | * @return The isCommentable.
36 | */
37 | boolean getIsCommentable();
38 | }
39 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/main/java/com/google/photos/types/proto/VideoOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: google/photos/types/media_item.proto
3 |
4 | package com.google.photos.types.proto;
5 |
6 | public interface VideoOrBuilder
7 | extends
8 | // @@protoc_insertion_point(interface_extends:google.photos.types.Video)
9 | com.google.protobuf.MessageOrBuilder {
10 |
11 | /**
12 | *
13 | *
14 | *
15 | * Brand of the camera with which the video was taken.
16 | *
17 | *
18 | * string camera_make = 1;
19 | *
20 | * @return The cameraMake.
21 | */
22 | java.lang.String getCameraMake();
23 | /**
24 | *
25 | *
26 | *
27 | * Brand of the camera with which the video was taken.
28 | *
29 | *
30 | * string camera_make = 1;
31 | *
32 | * @return The bytes for cameraMake.
33 | */
34 | com.google.protobuf.ByteString getCameraMakeBytes();
35 |
36 | /**
37 | *
38 | *
39 | *
40 | * Model of the camera with which the video was taken.
41 | *
42 | *
43 | * string camera_model = 2;
44 | *
45 | * @return The cameraModel.
46 | */
47 | java.lang.String getCameraModel();
48 | /**
49 | *
50 | *
51 | *
52 | * Model of the camera with which the video was taken.
53 | *
54 | *
55 | * string camera_model = 2;
56 | *
57 | * @return The bytes for cameraModel.
58 | */
59 | com.google.protobuf.ByteString getCameraModelBytes();
60 |
61 | /**
62 | *
63 | *
64 | *
65 | * Frame rate of the video.
66 | *
67 | *
68 | * double fps = 3;
69 | *
70 | * @return The fps.
71 | */
72 | double getFps();
73 |
74 | /**
75 | *
76 | *
77 | *
78 | * Processing status of the video.
79 | *
80 | *
81 | * .google.photos.types.VideoProcessingStatus status = 4;
82 | *
83 | * @return The enum numeric value on the wire for status.
84 | */
85 | int getStatusValue();
86 | /**
87 | *
88 | *
89 | *
90 | * Processing status of the video.
91 | *
92 | *
93 | * .google.photos.types.VideoProcessingStatus status = 4;
94 | *
95 | * @return The status.
96 | */
97 | com.google.photos.types.proto.VideoProcessingStatus getStatus();
98 | }
99 |
--------------------------------------------------------------------------------
/photoslibraryapi/src/test/java/com/google/photos/library/v1/PhotosLibraryClientTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021 Google LLC
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.photos.library.v1;
18 |
19 | import com.google.api.gax.core.NoCredentialsProvider;
20 | import com.google.api.gax.grpc.testing.LocalChannelProvider;
21 | import com.google.api.gax.grpc.testing.MockGrpcService;
22 | import com.google.api.gax.grpc.testing.MockServiceHelper;
23 | import com.google.photos.library.v1.internal.MockPhotosLibrary;
24 | import com.google.photos.library.v1.proto.Filters;
25 | import com.google.photos.library.v1.proto.SearchMediaItemsRequest;
26 | import com.google.photos.library.v1.proto.SearchMediaItemsResponse;
27 | import com.google.photos.library.v1.util.OrderBy;
28 | import com.google.protobuf.AbstractMessage;
29 | import java.io.IOException;
30 | import java.util.Arrays;
31 | import java.util.List;
32 | import java.util.UUID;
33 | import org.junit.AfterClass;
34 | import org.junit.Assert;
35 | import org.junit.Before;
36 | import org.junit.BeforeClass;
37 | import org.junit.Test;
38 |
39 | public class PhotosLibraryClientTest {
40 | private static MockPhotosLibrary mockPhotosLibrary;
41 | private static MockServiceHelper mockServiceHelper;
42 | private LocalChannelProvider channelProvider;
43 | private PhotosLibraryClient client;
44 |
45 | @BeforeClass
46 | public static void startStaticServer() {
47 | mockPhotosLibrary = new MockPhotosLibrary();
48 | mockServiceHelper =
49 | new MockServiceHelper(
50 | UUID.randomUUID().toString(), Arrays.> {
24 | void refresh();
25 | }
26 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/google/photos/library/sample/suppliers/ListAlbumsSupplier.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2018 Google LLC
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.photos.library.sample.suppliers;
18 |
19 | import com.google.photos.library.v1.PhotosLibraryClient;
20 | import com.google.photos.library.v1.proto.ListAlbumsRequest;
21 | import com.google.photos.library.v1.proto.ListAlbumsResponse;
22 | import com.google.photos.types.proto.Album;
23 | import java.util.Collections;
24 | import java.util.List;
25 | import java.util.Optional;
26 |
27 | public final class ListAlbumsSupplier implements AlbumsSupplier {
28 | private final PhotosLibraryClient client;
29 | private final ListAlbumsRequest baseRequest;
30 | private Optional