Class 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 type google.photos.types.ShareInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • clear

        public ShareInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • getDefaultInstanceForType

        public ShareInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ShareInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ShareInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ShareInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • clearField

        public ShareInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • clearOneof

        public ShareInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • mergeFrom

        public ShareInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShareInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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;
      • 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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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 interface ShareInfoOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>
      • mergeUnknownFields

        public final ShareInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShareInfo.Builder>