NAME

Google::Actions::Sdk::V2::AccountLinking - Compiled Protocol Buffers messages for google/actions/sdk/v2/account_linking.proto

SYNOPSIS

use Google::Actions::Sdk::V2::AccountLinking;

my $msg = Google::Actions::Sdk::V2::AccountLinking::AccountLinking->new({
    enable_account_creation => $enable_account_creation,
    linking_type => $linking_type,
    auth_grant_type => $auth_grant_type,
    app_client_id => $app_client_id,
});

# Read or update a field
my $val = $msg->enable_account_creation();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::AccountLinking::AccountLinking->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/account_linking.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Actions::Sdk::V2::AccountLinking::AccountLinking

AccountLinking allows Google to guide the user to sign-in to the App's web services.

For Google Sign In and OAuth + Google Sign In linking types, Google generates a client ID identifying your App to Google ("Client ID issued by Google to your Actions" on Console UI). This field is read-only and can be checked by navigating to the Console UI's Account Linking page. See: https://developers.google.com/assistant/identity/google-sign-in

Note: For all account linking setting types (except for Google Sign In), you must provide a username and password for a test account in Settings.testing_instructions for the review team to review the app (they will not be visible to users).

Inherits from Protobuf::Message.

Accessors

  • $msg->enable_account_creation() / $msg->enable_account_creation($value)

    Type: Bool

    Required. If `true`, users are allowed to sign up for new accounts via voice. If `false`, account creation is only allowed on your website. Select this option if you want to display your terms of service or obtain user consents during sign-up. linking_type cannot be GOOGLE_SIGN_IN when this is `false`. linking_type cannot be OAUTH when this is `true`.

  • $msg->linking_type() / $msg->linking_type($value)

    Type: Enum (Google::Actions::Sdk::V2::AccountLinking::LinkingType)

    Required. The linking type to use. See https://developers.google.com/assistant/identity for further details on the linking types.

  • $msg->auth_grant_type() / $msg->auth_grant_type($value)

    Type: Enum (Google::Actions::Sdk::V2::AccountLinking::AuthGrantType)

    Optional. Indicates the type of authentication for OAUTH linking_type.

  • $msg->app_client_id() / $msg->app_client_id($value)

    Type: String

    Optional. Client ID issued by your App to Google. This is the OAuth2 Client ID identifying Google to your service. Only set when using OAuth.

  • $msg->authorization_url() / $msg->authorization_url($value)

    Type: String

    Optional. Endpoint for your sign-in web page that supports OAuth2 code or implicit flows. URL must use HTTPS. Only set when using OAuth.

  • $msg->token_url() / $msg->token_url($value)

    Type: String

    Optional. OAuth2 endpoint for token exchange. URL must use HTTPS. This is not set when only using OAuth with IMPLICIT grant as the linking type. Only set when using OAuth.

  • $msg->scopes() / $msg->scopes($value)

    Type: String

    Optional. List of permissions the user must consent to in order to use your service. Only set when using OAuth. Make sure to provide a Terms of Service in the directory information in LocalizedSettings.terms_of_service_url section if specifying this field.

  • $msg->learn_more_url() / $msg->learn_more_url($value)

    Type: String

    Optional. This is the web page on your service which describes the permissions the user is granting to Google. Only set if using OAuth and Google Sign In. Make sure to provide a Terms of Service in the directory information in LocalizedSettings.terms_of_service_url section if specifying this field.

  • $msg->use_basic_auth_header() / $msg->use_basic_auth_header($value)

    Type: Bool

    Optional. If true, allow Google to transmit client ID and secret via HTTP basic auth header. Otherwise, Google uses the client ID and secret inside the post body. Only set when using OAuth. Make sure to provide a Terms of Service in the directory information in LocalizedSettings.terms_of_service_url section if specifying this field.

Enum: AccountLinking::LinkingType

  • LINKING_TYPE_UNSPECIFIED => 0

  • GOOGLE_SIGN_IN => 1

  • OAUTH_AND_GOOGLE_SIGN_IN => 2

  • OAUTH => 3

Enum: AccountLinking::AuthGrantType

  • AUTH_GRANT_TYPE_UNSPECIFIED => 0

  • AUTH_CODE => 1

  • IMPLICIT => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::AccountLinking::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.