• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.ads.googleads.v15.resources;
18
19import "google/ads/googleads/v15/common/local_services.proto";
20import "google/ads/googleads/v15/enums/local_services_insurance_rejection_reason.proto";
21import "google/ads/googleads/v15/enums/local_services_license_rejection_reason.proto";
22import "google/ads/googleads/v15/enums/local_services_verification_artifact_status.proto";
23import "google/ads/googleads/v15/enums/local_services_verification_artifact_type.proto";
24import "google/api/field_behavior.proto";
25import "google/api/resource.proto";
26
27option csharp_namespace = "Google.Ads.GoogleAds.V15.Resources";
28option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources";
29option java_multiple_files = true;
30option java_outer_classname = "LocalServicesVerificationArtifactProto";
31option java_package = "com.google.ads.googleads.v15.resources";
32option objc_class_prefix = "GAA";
33option php_namespace = "Google\\Ads\\GoogleAds\\V15\\Resources";
34option ruby_package = "Google::Ads::GoogleAds::V15::Resources";
35
36// A local services verification resource.
37message LocalServicesVerificationArtifact {
38  option (google.api.resource) = {
39    type: "googleads.googleapis.com/LocalServicesVerificationArtifact"
40    pattern: "customers/{customer_id}/localServicesVerificationArtifacts/{gls_verification_artifact_id}"
41  };
42
43  // Immutable. The resource name of the Local Services Verification.
44  // Local Services Verification resource names have the form:
45  //
46  // `customers/{customer_id}/localServicesVerificationArtifacts/{verification_artifact_id}`
47  string resource_name = 1 [
48    (google.api.field_behavior) = IMMUTABLE,
49    (google.api.resource_reference) = {
50      type: "googleads.googleapis.com/LocalServicesVerificationArtifact"
51    }
52  ];
53
54  // Output only. The ID of the verification artifact.
55  optional int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
56
57  // Output only. The timestamp when this verification artifact was created.
58  // The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
59  // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
60  string creation_date_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
61
62  // Output only. The status of the verification artifact.
63  google.ads.googleads.v15.enums.LocalServicesVerificationArtifactStatusEnum
64      .LocalServicesVerificationArtifactStatus status = 4
65      [(google.api.field_behavior) = OUTPUT_ONLY];
66
67  // Output only. The type of the verification artifact.
68  google.ads.googleads.v15.enums.LocalServicesVerificationArtifactTypeEnum
69      .LocalServicesVerificationArtifactType artifact_type = 5
70      [(google.api.field_behavior) = OUTPUT_ONLY];
71
72  // The types of verification info.
73  oneof artifact_data {
74    // Output only. A background check verification artifact.
75    BackgroundCheckVerificationArtifact background_check_verification_artifact =
76        6 [(google.api.field_behavior) = OUTPUT_ONLY];
77
78    // Output only. An insurance verification artifact.
79    InsuranceVerificationArtifact insurance_verification_artifact = 7
80        [(google.api.field_behavior) = OUTPUT_ONLY];
81
82    // Output only. A license verification artifact.
83    LicenseVerificationArtifact license_verification_artifact = 8
84        [(google.api.field_behavior) = OUTPUT_ONLY];
85  }
86}
87
88// A proto holding information specific to local services background check.
89message BackgroundCheckVerificationArtifact {
90  // Output only. URL to access background case.
91  optional string case_url = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
92
93  // Output only. The timestamp when this background check case result was
94  // adjudicated. The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads
95  // account's timezone. Examples: "2018-03-05 09:15:00" or "2018-02-01
96  // 14:34:30"
97  optional string final_adjudication_date_time = 2
98      [(google.api.field_behavior) = OUTPUT_ONLY];
99}
100
101// A proto holding information specific to a local services insurance.
102message InsuranceVerificationArtifact {
103  // Output only. Insurance amount. This is measured in "micros" of the currency
104  // mentioned in the insurance document.
105  optional int64 amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
106
107  // Output only. Insurance document's rejection reason.
108  optional
109      google.ads.googleads.v15.enums.LocalServicesInsuranceRejectionReasonEnum
110          .LocalServicesInsuranceRejectionReason rejection_reason = 2
111      [(google.api.field_behavior) = OUTPUT_ONLY];
112
113  // Output only. The readonly field containing the information for an uploaded
114  // insurance document.
115  optional google.ads.googleads.v15.common.LocalServicesDocumentReadOnly
116      insurance_document_readonly = 3
117      [(google.api.field_behavior) = OUTPUT_ONLY];
118}
119
120// A proto holding information specific to a local services license.
121message LicenseVerificationArtifact {
122  // Output only. License type / name.
123  optional string license_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
124
125  // Output only. License number.
126  optional string license_number = 2
127      [(google.api.field_behavior) = OUTPUT_ONLY];
128
129  // Output only. First name of the licensee.
130  optional string licensee_first_name = 3
131      [(google.api.field_behavior) = OUTPUT_ONLY];
132
133  // Output only. Last name of the licensee.
134  optional string licensee_last_name = 4
135      [(google.api.field_behavior) = OUTPUT_ONLY];
136
137  // Output only. License rejection reason.
138  optional
139      google.ads.googleads.v15.enums.LocalServicesLicenseRejectionReasonEnum
140          .LocalServicesLicenseRejectionReason rejection_reason = 5
141      [(google.api.field_behavior) = OUTPUT_ONLY];
142
143  // Output only. The readonly field containing the information for an uploaded
144  // license document.
145  optional google.ads.googleads.v15.common.LocalServicesDocumentReadOnly
146      license_document_readonly = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
147}
148