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 the sharing of an album.
         
        .google.photos.types.SharedAlbumOptions shared_album_options = 1;
        Specified by:
        hasSharedAlbumOptions in interface ShareInfoOrBuilder
      • 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;
      • 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 interface ShareInfoOrBuilder
      • 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 interface ShareInfoOrBuilder
      • 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 interface ShareInfoOrBuilder
      • 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 interface ShareInfoOrBuilder
      • 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 interface ShareInfoOrBuilder
      • 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 interface ShareInfoOrBuilder
      • 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 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>