// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.shopping.merchant.accounts.v1beta;

import "google/api/field_behavior.proto";

option csharp_namespace = "Google.Shopping.Merchant.Accounts.V1Beta";
option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
option java_multiple_files = true;
option java_outer_classname = "VerificationMailSettingsProto";
option java_package = "com.google.shopping.merchant.accounts.v1beta";
option php_namespace = "Google\\Shopping\\Merchant\\Accounts\\V1beta";
option ruby_package = "Google::Shopping::Merchant::Accounts::V1beta";

// Settings related to the verification email that is sent after adding a user.
message VerificationMailSettings {
  // The different configuration options for sending a verification email
  // when adding a user.
  enum VerificationMailMode {
    // Default first member of every enum. Do not use.
    VERIFICATION_MAIL_MODE_UNSPECIFIED = 0;

    // An invitation email is sent to the user added shortly after.
    SEND_VERIFICATION_MAIL = 1;

    // No invitation email is sent. This can be useful if the user is
    // expected to accept the invitation through the API without needing
    // another notification.
    SUPPRESS_VERIFICATION_MAIL = 2;
  }

  // Optional. Mode of the verification mail. If not set, the default is
  // `SEND_VERIFICATION_MAIL`.
  VerificationMailMode verification_mail_mode = 1
      [(google.api.field_behavior) = OPTIONAL];
}
