All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.directory.model.UserPhoto.html Maven / Gradle / Ivy

There is a newer version: directory_v1-rev20240709-2.0.0
Show newest version






UserPhoto (Admin SDK API directory_v1-rev20220802-2.0.0)












com.google.api.services.directory.model

Class UserPhoto

    • Constructor Detail

      • UserPhoto

        public UserPhoto()
    • Method Detail

      • getEtag

        public String getEtag()
        ETag of the resource.
        Returns:
        value or null for none
      • setEtag

        public UserPhoto setEtag(String etag)
        ETag of the resource.
        Parameters:
        etag - etag or null for none
      • getHeight

        public Integer getHeight()
        Height of the photo in pixels.
        Returns:
        value or null for none
      • setHeight

        public UserPhoto setHeight(Integer height)
        Height of the photo in pixels.
        Parameters:
        height - height or null for none
      • getId

        public String getId()
        The ID the API uses to uniquely identify the user.
        Returns:
        value or null for none
      • setId

        public UserPhoto setId(String id)
        The ID the API uses to uniquely identify the user.
        Parameters:
        id - id or null for none
      • getKind

        public String getKind()
        The type of the API resource. For Photo resources, this is `admin#directory#user#photo`.
        Returns:
        value or null for none
      • setKind

        public UserPhoto setKind(String kind)
        The type of the API resource. For Photo resources, this is `admin#directory#user#photo`.
        Parameters:
        kind - kind or null for none
      • getMimeType

        public String getMimeType()
        The MIME type of the photo. Allowed values are `JPEG`, `PNG`, `GIF`, `BMP`, `TIFF`, and web- safe base64 encoding.
        Returns:
        value or null for none
      • setMimeType

        public UserPhoto setMimeType(String mimeType)
        The MIME type of the photo. Allowed values are `JPEG`, `PNG`, `GIF`, `BMP`, `TIFF`, and web- safe base64 encoding.
        Parameters:
        mimeType - mimeType or null for none
      • getPhotoData

        public String getPhotoData()
        The user photo's upload data in [web-safe Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes. This means: * The slash (/) character is replaced with the underscore (_) character. * The plus sign (+) character is replaced with the hyphen (-) character. * The equals sign (=) character is replaced with the asterisk (*). * For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. * Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels.
        Returns:
        value or null for none
        See Also:
        decodePhotoData()
      • decodePhotoData

        public byte[] decodePhotoData()
        The user photo's upload data in [web-safe Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes. This means: * The slash (/) character is replaced with the underscore (_) character. * The plus sign (+) character is replaced with the hyphen (-) character. * The equals sign (=) character is replaced with the asterisk (*). * For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. * Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getPhotoData()
      • setPhotoData

        public UserPhoto setPhotoData(String photoData)
        The user photo's upload data in [web-safe Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes. This means: * The slash (/) character is replaced with the underscore (_) character. * The plus sign (+) character is replaced with the hyphen (-) character. * The equals sign (=) character is replaced with the asterisk (*). * For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. * Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels.
        Parameters:
        photoData - photoData or null for none
        See Also:
        #encodePhotoData()
      • encodePhotoData

        public UserPhoto encodePhotoData(byte[] photoData)
        The user photo's upload data in [web-safe Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes. This means: * The slash (/) character is replaced with the underscore (_) character. * The plus sign (+) character is replaced with the hyphen (-) character. * The equals sign (=) character is replaced with the asterisk (*). * For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. * Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels.
        Since:
        1.14
        See Also:

        The value is encoded Base64 or {@code null} for none.

      • getPrimaryEmail

        public String getPrimaryEmail()
        The user's primary email address.
        Returns:
        value or null for none
      • setPrimaryEmail

        public UserPhoto setPrimaryEmail(String primaryEmail)
        The user's primary email address.
        Parameters:
        primaryEmail - primaryEmail or null for none
      • getWidth

        public Integer getWidth()
        Width of the photo in pixels.
        Returns:
        value or null for none
      • setWidth

        public UserPhoto setWidth(Integer width)
        Width of the photo in pixels.
        Parameters:
        width - width or null for none

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy