1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.channel.v1; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto"; 20*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto"; 21*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/channel/v1/common.proto"; 22*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto"; 23*d5c09012SAndroid Build Coastguard Workerimport "google/type/postal_address.proto"; 24*d5c09012SAndroid Build Coastguard Worker 25*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; 26*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 27*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "CustomersProto"; 28*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.channel.v1"; 29*d5c09012SAndroid Build Coastguard Worker 30*d5c09012SAndroid Build Coastguard Worker// Entity representing a customer of a reseller or distributor. 31*d5c09012SAndroid Build Coastguard Workermessage Customer { 32*d5c09012SAndroid Build Coastguard Worker option (google.api.resource) = { 33*d5c09012SAndroid Build Coastguard Worker type: "cloudchannel.googleapis.com/Customer" 34*d5c09012SAndroid Build Coastguard Worker pattern: "accounts/{account}/customers/{customer}" 35*d5c09012SAndroid Build Coastguard Worker }; 36*d5c09012SAndroid Build Coastguard Worker 37*d5c09012SAndroid Build Coastguard Worker // Output only. Resource name of the customer. 38*d5c09012SAndroid Build Coastguard Worker // Format: accounts/{account_id}/customers/{customer_id} 39*d5c09012SAndroid Build Coastguard Worker string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 40*d5c09012SAndroid Build Coastguard Worker 41*d5c09012SAndroid Build Coastguard Worker // Required. Name of the organization that the customer entity represents. 42*d5c09012SAndroid Build Coastguard Worker string org_display_name = 2 [(google.api.field_behavior) = REQUIRED]; 43*d5c09012SAndroid Build Coastguard Worker 44*d5c09012SAndroid Build Coastguard Worker // Required. The organization address for the customer. To enforce US laws and 45*d5c09012SAndroid Build Coastguard Worker // embargoes, we require a region, postal code, and address lines. You must 46*d5c09012SAndroid Build Coastguard Worker // provide valid addresses for every customer. To set the customer's 47*d5c09012SAndroid Build Coastguard Worker // language, use the Customer-level language code. 48*d5c09012SAndroid Build Coastguard Worker google.type.PostalAddress org_postal_address = 3 49*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = REQUIRED]; 50*d5c09012SAndroid Build Coastguard Worker 51*d5c09012SAndroid Build Coastguard Worker // Primary contact info. 52*d5c09012SAndroid Build Coastguard Worker ContactInfo primary_contact_info = 4; 53*d5c09012SAndroid Build Coastguard Worker 54*d5c09012SAndroid Build Coastguard Worker // Secondary contact email. You need to provide an alternate email to create 55*d5c09012SAndroid Build Coastguard Worker // different domains if a primary contact email already exists. Users will 56*d5c09012SAndroid Build Coastguard Worker // receive a notification with credentials when you create an admin.google.com 57*d5c09012SAndroid Build Coastguard Worker // account. Secondary emails are also recovery email addresses. Alternate 58*d5c09012SAndroid Build Coastguard Worker // emails are optional when you create Team customers. 59*d5c09012SAndroid Build Coastguard Worker string alternate_email = 5; 60*d5c09012SAndroid Build Coastguard Worker 61*d5c09012SAndroid Build Coastguard Worker // Required. The customer's primary domain. Must match the primary contact 62*d5c09012SAndroid Build Coastguard Worker // email's domain. 63*d5c09012SAndroid Build Coastguard Worker string domain = 6 [(google.api.field_behavior) = REQUIRED]; 64*d5c09012SAndroid Build Coastguard Worker 65*d5c09012SAndroid Build Coastguard Worker // Output only. Time when the customer was created. 66*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp create_time = 7 67*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 68*d5c09012SAndroid Build Coastguard Worker 69*d5c09012SAndroid Build Coastguard Worker // Output only. Time when the customer was updated. 70*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp update_time = 8 71*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 72*d5c09012SAndroid Build Coastguard Worker 73*d5c09012SAndroid Build Coastguard Worker // Output only. The customer's Cloud Identity ID if the customer has a Cloud 74*d5c09012SAndroid Build Coastguard Worker // Identity resource. 75*d5c09012SAndroid Build Coastguard Worker string cloud_identity_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; 76*d5c09012SAndroid Build Coastguard Worker 77*d5c09012SAndroid Build Coastguard Worker // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more 78*d5c09012SAndroid Build Coastguard Worker // information, see 79*d5c09012SAndroid Build Coastguard Worker // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. 80*d5c09012SAndroid Build Coastguard Worker string language_code = 10 [(google.api.field_behavior) = OPTIONAL]; 81*d5c09012SAndroid Build Coastguard Worker 82*d5c09012SAndroid Build Coastguard Worker // Output only. Cloud Identity information for the customer. 83*d5c09012SAndroid Build Coastguard Worker // Populated only if a Cloud Identity account exists for this customer. 84*d5c09012SAndroid Build Coastguard Worker CloudIdentityInfo cloud_identity_info = 12 85*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 86*d5c09012SAndroid Build Coastguard Worker 87*d5c09012SAndroid Build Coastguard Worker // Cloud Identity ID of the customer's channel partner. 88*d5c09012SAndroid Build Coastguard Worker // Populated only if a channel partner exists for this customer. 89*d5c09012SAndroid Build Coastguard Worker string channel_partner_id = 13; 90*d5c09012SAndroid Build Coastguard Worker 91*d5c09012SAndroid Build Coastguard Worker // Optional. External CRM ID for the customer. 92*d5c09012SAndroid Build Coastguard Worker // Populated only if a CRM ID exists for this customer. 93*d5c09012SAndroid Build Coastguard Worker string correlation_id = 14 [(google.api.field_behavior) = OPTIONAL]; 94*d5c09012SAndroid Build Coastguard Worker} 95*d5c09012SAndroid Build Coastguard Worker 96*d5c09012SAndroid Build Coastguard Worker// Contact information for a customer account. 97*d5c09012SAndroid Build Coastguard Workermessage ContactInfo { 98*d5c09012SAndroid Build Coastguard Worker // The customer account contact's first name. Optional for Team customers. 99*d5c09012SAndroid Build Coastguard Worker string first_name = 1; 100*d5c09012SAndroid Build Coastguard Worker 101*d5c09012SAndroid Build Coastguard Worker // The customer account contact's last name. Optional for Team customers. 102*d5c09012SAndroid Build Coastguard Worker string last_name = 2; 103*d5c09012SAndroid Build Coastguard Worker 104*d5c09012SAndroid Build Coastguard Worker // Output only. The customer account contact's display name, formatted as a 105*d5c09012SAndroid Build Coastguard Worker // combination of the customer's first and last name. 106*d5c09012SAndroid Build Coastguard Worker string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; 107*d5c09012SAndroid Build Coastguard Worker 108*d5c09012SAndroid Build Coastguard Worker // The customer account's contact email. Required for entitlements that create 109*d5c09012SAndroid Build Coastguard Worker // admin.google.com accounts, and serves as the customer's username for those 110*d5c09012SAndroid Build Coastguard Worker // accounts. Use this email to invite Team customers. 111*d5c09012SAndroid Build Coastguard Worker string email = 5; 112*d5c09012SAndroid Build Coastguard Worker 113*d5c09012SAndroid Build Coastguard Worker // Optional. The customer account contact's job title. 114*d5c09012SAndroid Build Coastguard Worker string title = 6 [(google.api.field_behavior) = OPTIONAL]; 115*d5c09012SAndroid Build Coastguard Worker 116*d5c09012SAndroid Build Coastguard Worker // The customer account's contact phone number. 117*d5c09012SAndroid Build Coastguard Worker string phone = 7; 118*d5c09012SAndroid Build Coastguard Worker} 119