Package com.google.photos.types.proto
Class ShareInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
- com.google.photos.types.proto.ShareInfo.Builder
-
- All Implemented Interfaces:
ShareInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ShareInfo
public static final class ShareInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder> implements ShareInfoOrBuilder
Information about albums that are shared. This information is only included if you created the album, it is shared and you have the sharing scope.
Protobuf typegoogle.photos.types.ShareInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShareInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ShareInfo
build()
ShareInfo
buildPartial()
ShareInfo.Builder
clear()
ShareInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ShareInfo.Builder
clearIsJoinable()
True if the album can be joined by users.ShareInfo.Builder
clearIsJoined()
True if the user is joined to the album.ShareInfo.Builder
clearIsOwned()
True if the user owns the album.ShareInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ShareInfo.Builder
clearShareableUrl()
A link to the shared Google Photos album.ShareInfo.Builder
clearSharedAlbumOptions()
Options that control whether someone can add media items to, or comment on a shared album.ShareInfo.Builder
clearShareToken()
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.ShareInfo.Builder
clone()
ShareInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIsJoinable()
True if the album can be joined by users.boolean
getIsJoined()
True if the user is joined to the album.boolean
getIsOwned()
True if the user owns the album.java.lang.String
getShareableUrl()
A link to the shared Google Photos album.com.google.protobuf.ByteString
getShareableUrlBytes()
A link to the shared Google Photos album.SharedAlbumOptions
getSharedAlbumOptions()
Options that control whether someone can add media items to, or comment on a shared album.SharedAlbumOptions.Builder
getSharedAlbumOptionsBuilder()
Options that control whether someone can add media items to, or comment on a shared album.SharedAlbumOptionsOrBuilder
getSharedAlbumOptionsOrBuilder()
Options that control whether someone can add media items to, or comment on a shared album.java.lang.String
getShareToken()
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.com.google.protobuf.ByteString
getShareTokenBytes()
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.boolean
hasSharedAlbumOptions()
Options that control whether someone can add media items to, or comment on a shared album.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ShareInfo.Builder
mergeFrom(ShareInfo other)
ShareInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ShareInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ShareInfo.Builder
mergeSharedAlbumOptions(SharedAlbumOptions value)
Options that control whether someone can add media items to, or comment on a shared album.ShareInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShareInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ShareInfo.Builder
setIsJoinable(boolean value)
True if the album can be joined by users.ShareInfo.Builder
setIsJoined(boolean value)
True if the user is joined to the album.ShareInfo.Builder
setIsOwned(boolean value)
True if the user owns the album.ShareInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ShareInfo.Builder
setShareableUrl(java.lang.String value)
A link to the shared Google Photos album.ShareInfo.Builder
setShareableUrlBytes(com.google.protobuf.ByteString value)
A link to the shared Google Photos album.ShareInfo.Builder
setSharedAlbumOptions(SharedAlbumOptions value)
Options that control whether someone can add media items to, or comment on a shared album.ShareInfo.Builder
setSharedAlbumOptions(SharedAlbumOptions.Builder builderForValue)
Options that control whether someone can add media items to, or comment on a shared album.ShareInfo.Builder
setShareToken(java.lang.String value)
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.ShareInfo.Builder
setShareTokenBytes(com.google.protobuf.ByteString value)
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.ShareInfo.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<ShareInfo.Builder>
-
clear
public ShareInfo.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<ShareInfo.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<ShareInfo.Builder>
-
getDefaultInstanceForType
public ShareInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ShareInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ShareInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ShareInfo.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<ShareInfo.Builder>
-
setField
public ShareInfo.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<ShareInfo.Builder>
-
clearField
public ShareInfo.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<ShareInfo.Builder>
-
clearOneof
public ShareInfo.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<ShareInfo.Builder>
-
setRepeatedField
public ShareInfo.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<ShareInfo.Builder>
-
addRepeatedField
public ShareInfo.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<ShareInfo.Builder>
-
mergeFrom
public ShareInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ShareInfo.Builder>
-
mergeFrom
public ShareInfo.Builder mergeFrom(ShareInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
mergeFrom
public ShareInfo.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<ShareInfo.Builder>
- Throws:
java.io.IOException
-
hasSharedAlbumOptions
public boolean hasSharedAlbumOptions()
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
- Specified by:
hasSharedAlbumOptions
in interfaceShareInfoOrBuilder
- Returns:
- Whether the sharedAlbumOptions field is set.
-
getSharedAlbumOptions
public SharedAlbumOptions getSharedAlbumOptions()
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
- Specified by:
getSharedAlbumOptions
in interfaceShareInfoOrBuilder
- Returns:
- The sharedAlbumOptions.
-
setSharedAlbumOptions
public ShareInfo.Builder setSharedAlbumOptions(SharedAlbumOptions value)
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
setSharedAlbumOptions
public ShareInfo.Builder setSharedAlbumOptions(SharedAlbumOptions.Builder builderForValue)
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
mergeSharedAlbumOptions
public ShareInfo.Builder mergeSharedAlbumOptions(SharedAlbumOptions value)
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
clearSharedAlbumOptions
public ShareInfo.Builder clearSharedAlbumOptions()
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
getSharedAlbumOptionsBuilder
public SharedAlbumOptions.Builder getSharedAlbumOptionsBuilder()
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
getSharedAlbumOptionsOrBuilder
public SharedAlbumOptionsOrBuilder getSharedAlbumOptionsOrBuilder()
Options that control whether someone can add media items to, or comment on a shared album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
- Specified by:
getSharedAlbumOptionsOrBuilder
in interfaceShareInfoOrBuilder
-
getShareableUrl
public java.lang.String getShareableUrl()
A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care. The `shareableUrl` parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's [`productUrl`](https://developers.google.com/photos/library/reference/rest/v1/albums#Album) to access it instead. A `shareableUrl` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string shareable_url = 2;
- Specified by:
getShareableUrl
in interfaceShareInfoOrBuilder
- Returns:
- The shareableUrl.
-
getShareableUrlBytes
public com.google.protobuf.ByteString getShareableUrlBytes()
A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care. The `shareableUrl` parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's [`productUrl`](https://developers.google.com/photos/library/reference/rest/v1/albums#Album) to access it instead. A `shareableUrl` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string shareable_url = 2;
- Specified by:
getShareableUrlBytes
in interfaceShareInfoOrBuilder
- Returns:
- The bytes for shareableUrl.
-
setShareableUrl
public ShareInfo.Builder setShareableUrl(java.lang.String value)
A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care. The `shareableUrl` parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's [`productUrl`](https://developers.google.com/photos/library/reference/rest/v1/albums#Album) to access it instead. A `shareableUrl` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string shareable_url = 2;
- Parameters:
value
- The shareableUrl to set.- Returns:
- This builder for chaining.
-
clearShareableUrl
public ShareInfo.Builder clearShareableUrl()
A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care. The `shareableUrl` parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's [`productUrl`](https://developers.google.com/photos/library/reference/rest/v1/albums#Album) to access it instead. A `shareableUrl` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string shareable_url = 2;
- Returns:
- This builder for chaining.
-
setShareableUrlBytes
public ShareInfo.Builder setShareableUrlBytes(com.google.protobuf.ByteString value)
A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care. The `shareableUrl` parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's [`productUrl`](https://developers.google.com/photos/library/reference/rest/v1/albums#Album) to access it instead. A `shareableUrl` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string shareable_url = 2;
- Parameters:
value
- The bytes for shareableUrl to set.- Returns:
- This builder for chaining.
-
getShareToken
public java.lang.String getShareToken()
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner. A `shareToken` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string share_token = 3;
- Specified by:
getShareToken
in interfaceShareInfoOrBuilder
- Returns:
- The shareToken.
-
getShareTokenBytes
public com.google.protobuf.ByteString getShareTokenBytes()
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner. A `shareToken` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string share_token = 3;
- Specified by:
getShareTokenBytes
in interfaceShareInfoOrBuilder
- Returns:
- The bytes for shareToken.
-
setShareToken
public ShareInfo.Builder setShareToken(java.lang.String value)
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner. A `shareToken` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string share_token = 3;
- Parameters:
value
- The shareToken to set.- Returns:
- This builder for chaining.
-
clearShareToken
public ShareInfo.Builder clearShareToken()
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner. A `shareToken` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string share_token = 3;
- Returns:
- This builder for chaining.
-
setShareTokenBytes
public ShareInfo.Builder setShareTokenBytes(com.google.protobuf.ByteString value)
A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner. A `shareToken` is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.
string share_token = 3;
- Parameters:
value
- The bytes for shareToken to set.- Returns:
- This builder for chaining.
-
getIsJoined
public boolean getIsJoined()
True if the user is joined to the album. This is always true for the owner of the album.
bool is_joined = 4;
- Specified by:
getIsJoined
in interfaceShareInfoOrBuilder
- Returns:
- The isJoined.
-
setIsJoined
public ShareInfo.Builder setIsJoined(boolean value)
True if the user is joined to the album. This is always true for the owner of the album.
bool is_joined = 4;
- Parameters:
value
- The isJoined to set.- Returns:
- This builder for chaining.
-
clearIsJoined
public ShareInfo.Builder clearIsJoined()
True if the user is joined to the album. This is always true for the owner of the album.
bool is_joined = 4;
- Returns:
- This builder for chaining.
-
getIsOwned
public boolean getIsOwned()
True if the user owns the album.
bool is_owned = 5;
- Specified by:
getIsOwned
in interfaceShareInfoOrBuilder
- Returns:
- The isOwned.
-
setIsOwned
public ShareInfo.Builder setIsOwned(boolean value)
True if the user owns the album.
bool is_owned = 5;
- Parameters:
value
- The isOwned to set.- Returns:
- This builder for chaining.
-
clearIsOwned
public ShareInfo.Builder clearIsOwned()
True if the user owns the album.
bool is_owned = 5;
- Returns:
- This builder for chaining.
-
getIsJoinable
public boolean getIsJoinable()
True if the album can be joined by users.
bool is_joinable = 6;
- Specified by:
getIsJoinable
in interfaceShareInfoOrBuilder
- Returns:
- The isJoinable.
-
setIsJoinable
public ShareInfo.Builder setIsJoinable(boolean value)
True if the album can be joined by users.
bool is_joinable = 6;
- Parameters:
value
- The isJoinable to set.- Returns:
- This builder for chaining.
-
clearIsJoinable
public ShareInfo.Builder clearIsJoinable()
True if the album can be joined by users.
bool is_joinable = 6;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ShareInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
mergeUnknownFields
public final ShareInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
-