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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ShareInfobuild()ShareInfobuildPartial()ShareInfo.Builderclear()ShareInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ShareInfo.BuilderclearIsJoined()True if the user has joined the album.ShareInfo.BuilderclearIsOwned()True if the user owns the album.ShareInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ShareInfo.BuilderclearShareableUrl()A link to the album that's now shared on the Google Photos website and app.ShareInfo.BuilderclearSharedAlbumOptions()Options that control the sharing of an album.ShareInfo.BuilderclearShareToken()A token that can be used by other users to join this shared album via the API.ShareInfo.Builderclone()ShareInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIsJoined()True if the user has joined the album.booleangetIsOwned()True if the user owns the album.java.lang.StringgetShareableUrl()A link to the album that's now shared on the Google Photos website and app.com.google.protobuf.ByteStringgetShareableUrlBytes()A link to the album that's now shared on the Google Photos website and app.SharedAlbumOptionsgetSharedAlbumOptions()Options that control the sharing of an album.SharedAlbumOptions.BuildergetSharedAlbumOptionsBuilder()Options that control the sharing of an album.SharedAlbumOptionsOrBuildergetSharedAlbumOptionsOrBuilder()Options that control the sharing of an album.java.lang.StringgetShareToken()A token that can be used by other users to join this shared album via the API.com.google.protobuf.ByteStringgetShareTokenBytes()A token that can be used by other users to join this shared album via the API.booleanhasSharedAlbumOptions()Options that control the sharing of an album.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ShareInfo.BuildermergeFrom(ShareInfo other)ShareInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ShareInfo.BuildermergeFrom(com.google.protobuf.Message other)ShareInfo.BuildermergeSharedAlbumOptions(SharedAlbumOptions value)Options that control the sharing of an album.ShareInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ShareInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ShareInfo.BuildersetIsJoined(boolean value)True if the user has joined the album.ShareInfo.BuildersetIsOwned(boolean value)True if the user owns the album.ShareInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ShareInfo.BuildersetShareableUrl(java.lang.String value)A link to the album that's now shared on the Google Photos website and app.ShareInfo.BuildersetShareableUrlBytes(com.google.protobuf.ByteString value)A link to the album that's now shared on the Google Photos website and app.ShareInfo.BuildersetSharedAlbumOptions(SharedAlbumOptions value)Options that control the sharing of an album.ShareInfo.BuildersetSharedAlbumOptions(SharedAlbumOptions.Builder builderForValue)Options that control the sharing of an album.ShareInfo.BuildersetShareToken(java.lang.String value)A token that can be used by other users to join this shared album via the API.ShareInfo.BuildersetShareTokenBytes(com.google.protobuf.ByteString value)A token that can be used by other users to join this shared album via the API.ShareInfo.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
clear
public ShareInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
getDefaultInstanceForType
public ShareInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ShareInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ShareInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ShareInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
setField
public ShareInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
clearField
public ShareInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
clearOneof
public ShareInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
addRepeatedField
public ShareInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
mergeFrom
public ShareInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShareInfo.Builder>
-
mergeFrom
public ShareInfo.Builder mergeFrom(ShareInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasSharedAlbumOptionsin interfaceShareInfoOrBuilder
-
getSharedAlbumOptions
public SharedAlbumOptions getSharedAlbumOptions()
Options that control the sharing of an album.
.google.photos.types.SharedAlbumOptions shared_album_options = 1;- Specified by:
getSharedAlbumOptionsin 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:
getSharedAlbumOptionsOrBuilderin 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:
getShareableUrlin 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:
getShareableUrlBytesin 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:
getShareTokenin 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:
getShareTokenBytesin 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:
getIsJoinedin 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:
getIsOwnedin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
mergeUnknownFields
public final ShareInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
-
-