Interface GCMChannelRequest.Builder

All Superinterfaces:
Buildable, CopyableBuilder<GCMChannelRequest.Builder,GCMChannelRequest>, SdkBuilder<GCMChannelRequest.Builder,GCMChannelRequest>, SdkPojo
Enclosing class:
GCMChannelRequest

public static interface GCMChannelRequest.Builder extends SdkPojo, CopyableBuilder<GCMChannelRequest.Builder,GCMChannelRequest>
  • Method Details

    • 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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • defaultAuthenticationMethod

      GCMChannelRequest.Builder defaultAuthenticationMethod(String defaultAuthenticationMethod)

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

      Parameters:
      defaultAuthenticationMethod - The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabled

      Specifies whether to enable the GCM channel for the application.

      Parameters:
      enabled - Specifies whether to enable the GCM channel for the application.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceJson

      GCMChannelRequest.Builder serviceJson(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.