// 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.ads.datamanager.v1;

import "google/api/field_behavior.proto";

option csharp_namespace = "Google.Ads.DataManager.V1";
option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
option java_multiple_files = true;
option java_outer_classname = "TermsOfServiceProto";
option java_package = "com.google.ads.datamanager.v1";
option php_namespace = "Google\\Ads\\DataManager\\V1";
option ruby_package = "Google::Ads::DataManager::V1";

// The terms of service that the user has accepted/rejected.
message TermsOfService {
  // Optional. The Customer Match terms of service:
  // https://support.google.com/adspolicy/answer/6299717. This must be
  // accepted for all uploads to Customer Match userlists.
  TermsOfServiceStatus customer_match_terms_of_service_status = 1
      [(google.api.field_behavior) = OPTIONAL];
}

// Represents the caller's decision to accept or reject the terms of service.
enum TermsOfServiceStatus {
  // Not specified.
  TERMS_OF_SERVICE_STATUS_UNSPECIFIED = 0;

  // Status indicating the caller has chosen to accept the terms of service.
  ACCEPTED = 1;

  // Status indicating the caller has chosen to reject the terms of service.
  REJECTED = 2;
}
