Class GCMChannelRequest

    • Method Detail

      • apiKey

        public final String apiKey()

        The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.

        Returns:
        The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
      • defaultAuthenticationMethod

        public final String defaultAuthenticationMethod()

        The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".

        Returns:
        The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
      • enabled

        public final Boolean enabled()

        Specifies whether to enable the GCM channel for the application.

        Returns:
        Specifies whether to enable the GCM channel for the application.
      • serviceJson

        public final String serviceJson()

        The contents of the JSON file provided by Google during registration in order to generate an access token for authentication. For more information see Migrate from legacy FCM APIs to HTTP v1.

        Returns:
        The contents of the JSON file provided by Google during registration in order to generate an access token for authentication. For more information see Migrate from legacy FCM APIs to HTTP v1.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)