Class ListAlbumsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
- com.google.photos.library.v1.proto.ListAlbumsRequest.Builder
-
- All Implemented Interfaces:
ListAlbumsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ListAlbumsRequest
public static final class ListAlbumsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder> implements ListAlbumsRequestOrBuilder
Request to retrieve the list of albums created by the user. This will return the list of albums corresponding to the user's 'Albums' tab in the Google Photos app.
Protobuf typegoogle.photos.library.v1.ListAlbumsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListAlbumsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ListAlbumsRequest
build()
ListAlbumsRequest
buildPartial()
ListAlbumsRequest.Builder
clear()
ListAlbumsRequest.Builder
clearExcludeNonAppCreatedData()
If set, the results exclude media items that were not created by this app.ListAlbumsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListAlbumsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListAlbumsRequest.Builder
clearPageSize()
Maximum number of albums to return in the response.ListAlbumsRequest.Builder
clearPageToken()
A continuation token to get the next page of the results.ListAlbumsRequest.Builder
clone()
ListAlbumsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getExcludeNonAppCreatedData()
If set, the results exclude media items that were not created by this app.int
getPageSize()
Maximum number of albums to return in the response.java.lang.String
getPageToken()
A continuation token to get the next page of the results.com.google.protobuf.ByteString
getPageTokenBytes()
A continuation token to get the next page of the results.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListAlbumsRequest.Builder
mergeFrom(ListAlbumsRequest other)
ListAlbumsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListAlbumsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
ListAlbumsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListAlbumsRequest.Builder
setExcludeNonAppCreatedData(boolean value)
If set, the results exclude media items that were not created by this app.ListAlbumsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ListAlbumsRequest.Builder
setPageSize(int value)
Maximum number of albums to return in the response.ListAlbumsRequest.Builder
setPageToken(java.lang.String value)
A continuation token to get the next page of the results.ListAlbumsRequest.Builder
setPageTokenBytes(com.google.protobuf.ByteString value)
A continuation token to get the next page of the results.ListAlbumsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ListAlbumsRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
clear
public ListAlbumsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
getDefaultInstanceForType
public ListAlbumsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListAlbumsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListAlbumsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListAlbumsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
setField
public ListAlbumsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
clearField
public ListAlbumsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
clearOneof
public ListAlbumsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
setRepeatedField
public ListAlbumsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
addRepeatedField
public ListAlbumsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
mergeFrom
public ListAlbumsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListAlbumsRequest.Builder>
-
mergeFrom
public ListAlbumsRequest.Builder mergeFrom(ListAlbumsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
mergeFrom
public ListAlbumsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListAlbumsRequest.Builder>
- Throws:
java.io.IOException
-
getPageSize
public int getPageSize()
Maximum number of albums to return in the response. Fewer albums might be returned than the specified number. The default `pageSize` is 20, the maximum is 50.
int32 page_size = 1;
- Specified by:
getPageSize
in interfaceListAlbumsRequestOrBuilder
-
setPageSize
public ListAlbumsRequest.Builder setPageSize(int value)
Maximum number of albums to return in the response. Fewer albums might be returned than the specified number. The default `pageSize` is 20, the maximum is 50.
int32 page_size = 1;
-
clearPageSize
public ListAlbumsRequest.Builder clearPageSize()
Maximum number of albums to return in the response. Fewer albums might be returned than the specified number. The default `pageSize` is 20, the maximum is 50.
int32 page_size = 1;
-
getPageToken
public java.lang.String getPageToken()
A continuation token to get the next page of the results. Adding this to the request returns the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in the response to the `listAlbums` request.
string page_token = 2;
- Specified by:
getPageToken
in interfaceListAlbumsRequestOrBuilder
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()
A continuation token to get the next page of the results. Adding this to the request returns the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in the response to the `listAlbums` request.
string page_token = 2;
- Specified by:
getPageTokenBytes
in interfaceListAlbumsRequestOrBuilder
-
setPageToken
public ListAlbumsRequest.Builder setPageToken(java.lang.String value)
A continuation token to get the next page of the results. Adding this to the request returns the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in the response to the `listAlbums` request.
string page_token = 2;
-
clearPageToken
public ListAlbumsRequest.Builder clearPageToken()
A continuation token to get the next page of the results. Adding this to the request returns the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in the response to the `listAlbums` request.
string page_token = 2;
-
setPageTokenBytes
public ListAlbumsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
A continuation token to get the next page of the results. Adding this to the request returns the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in the response to the `listAlbums` request.
string page_token = 2;
-
getExcludeNonAppCreatedData
public boolean getExcludeNonAppCreatedData()
If set, the results exclude media items that were not created by this app. Defaults to false (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.
bool exclude_non_app_created_data = 3;
- Specified by:
getExcludeNonAppCreatedData
in interfaceListAlbumsRequestOrBuilder
-
setExcludeNonAppCreatedData
public ListAlbumsRequest.Builder setExcludeNonAppCreatedData(boolean value)
If set, the results exclude media items that were not created by this app. Defaults to false (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.
bool exclude_non_app_created_data = 3;
-
clearExcludeNonAppCreatedData
public ListAlbumsRequest.Builder clearExcludeNonAppCreatedData()
If set, the results exclude media items that were not created by this app. Defaults to false (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.
bool exclude_non_app_created_data = 3;
-
setUnknownFields
public final ListAlbumsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
mergeUnknownFields
public final ListAlbumsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsRequest.Builder>
-
-