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
clearIsJoined()
True if the user has joined 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 album that's now shared on the Google Photos website and app.ShareInfo.Builder
clearSharedAlbumOptions()
Options that control the sharing of an album.ShareInfo.Builder
clearShareToken()
A token that can be used by other users to join this shared album via the API.ShareInfo.Builder
clone()
ShareInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIsJoined()
True if the user has joined the album.boolean
getIsOwned()
True if the user owns the album.java.lang.String
getShareableUrl()
A link to the album that's now shared on the Google Photos website and app.com.google.protobuf.ByteString
getShareableUrlBytes()
A link to the album that's now shared on the Google Photos website and app.SharedAlbumOptions
getSharedAlbumOptions()
Options that control the sharing of an album.SharedAlbumOptions.Builder
getSharedAlbumOptionsBuilder()
Options that control the sharing of an album.SharedAlbumOptionsOrBuilder
getSharedAlbumOptionsOrBuilder()
Options that control the sharing of an album.java.lang.String
getShareToken()
A token that can be used by other users to join this shared album via the API.com.google.protobuf.ByteString
getShareTokenBytes()
A token that can be used by other users to join this shared album via the API.boolean
hasSharedAlbumOptions()
Options that control the sharing of an 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 the sharing of an album.ShareInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShareInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ShareInfo.Builder
setIsJoined(boolean value)
True if the user has joined 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 album that's now shared on the Google Photos website and app.ShareInfo.Builder
setShareableUrlBytes(com.google.protobuf.ByteString value)
A link to the album that's now shared on the Google Photos website and app.ShareInfo.Builder
setSharedAlbumOptions(SharedAlbumOptions value)
Options that control the sharing of an album.ShareInfo.Builder
setSharedAlbumOptions(SharedAlbumOptions.Builder builderForValue)
Options that control the sharing of an album.ShareInfo.Builder
setShareToken(java.lang.String value)
A token that can be used by other users to join this shared album via the API.ShareInfo.Builder
setShareTokenBytes(com.google.protobuf.ByteString value)
A token that can be used by other users to join this shared album via the API.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 the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
- Specified by:
hasSharedAlbumOptions
in interfaceShareInfoOrBuilder
-
getSharedAlbumOptions
public SharedAlbumOptions getSharedAlbumOptions()
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
- Specified by:
getSharedAlbumOptions
in interfaceShareInfoOrBuilder
-
setSharedAlbumOptions
public ShareInfo.Builder setSharedAlbumOptions(SharedAlbumOptions value)
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
setSharedAlbumOptions
public ShareInfo.Builder setSharedAlbumOptions(SharedAlbumOptions.Builder builderForValue)
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
mergeSharedAlbumOptions
public ShareInfo.Builder mergeSharedAlbumOptions(SharedAlbumOptions value)
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
clearSharedAlbumOptions
public ShareInfo.Builder clearSharedAlbumOptions()
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
getSharedAlbumOptionsBuilder
public SharedAlbumOptions.Builder getSharedAlbumOptionsBuilder()
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
-
getSharedAlbumOptionsOrBuilder
public SharedAlbumOptionsOrBuilder getSharedAlbumOptionsOrBuilder()
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;
- Specified by:
getSharedAlbumOptionsOrBuilder
in interfaceShareInfoOrBuilder
-
getShareableUrl
public java.lang.String getShareableUrl()
A link to the album that's now shared on the Google Photos website and app. Anyone with the link can access this shared album and see all of the items present in the album.
string shareable_url = 2;
- Specified by:
getShareableUrl
in interfaceShareInfoOrBuilder
-
getShareableUrlBytes
public com.google.protobuf.ByteString getShareableUrlBytes()
A link to the album that's now shared on the Google Photos website and app. Anyone with the link can access this shared album and see all of the items present in the album.
string shareable_url = 2;
- Specified by:
getShareableUrlBytes
in interfaceShareInfoOrBuilder
-
setShareableUrl
public ShareInfo.Builder setShareableUrl(java.lang.String value)
A link to the album that's now shared on the Google Photos website and app. Anyone with the link can access this shared album and see all of the items present in the album.
string shareable_url = 2;
-
clearShareableUrl
public ShareInfo.Builder clearShareableUrl()
A link to the album that's now shared on the Google Photos website and app. Anyone with the link can access this shared album and see all of the items present in the album.
string shareable_url = 2;
-
setShareableUrlBytes
public ShareInfo.Builder setShareableUrlBytes(com.google.protobuf.ByteString value)
A link to the album that's now shared on the Google Photos website and app. Anyone with the link can access this shared album and see all of the items present in the album.
string shareable_url = 2;
-
getShareToken
public java.lang.String getShareToken()
A token that can be used by other users to join this shared album via the API.
string share_token = 3;
- Specified by:
getShareToken
in interfaceShareInfoOrBuilder
-
getShareTokenBytes
public com.google.protobuf.ByteString getShareTokenBytes()
A token that can be used by other users to join this shared album via the API.
string share_token = 3;
- Specified by:
getShareTokenBytes
in interfaceShareInfoOrBuilder
-
setShareToken
public ShareInfo.Builder setShareToken(java.lang.String value)
A token that can be used by other users to join this shared album via the API.
string share_token = 3;
-
clearShareToken
public ShareInfo.Builder clearShareToken()
A token that can be used by other users to join this shared album via the API.
string share_token = 3;
-
setShareTokenBytes
public ShareInfo.Builder setShareTokenBytes(com.google.protobuf.ByteString value)
A token that can be used by other users to join this shared album via the API.
string share_token = 3;
-
getIsJoined
public boolean getIsJoined()
True if the user has joined the album. This is always true for the owner of the shared album.
bool is_joined = 4;
- Specified by:
getIsJoined
in interfaceShareInfoOrBuilder
-
setIsJoined
public ShareInfo.Builder setIsJoined(boolean value)
True if the user has joined the album. This is always true for the owner of the shared album.
bool is_joined = 4;
-
clearIsJoined
public ShareInfo.Builder clearIsJoined()
True if the user has joined the album. This is always true for the owner of the shared album.
bool is_joined = 4;
-
getIsOwned
public boolean getIsOwned()
True if the user owns the album.
bool is_owned = 5;
- Specified by:
getIsOwned
in interfaceShareInfoOrBuilder
-
setIsOwned
public ShareInfo.Builder setIsOwned(boolean value)
True if the user owns the album.
bool is_owned = 5;
-
clearIsOwned
public ShareInfo.Builder clearIsOwned()
True if the user owns the album.
bool is_owned = 5;
-
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>
-
-