This repository was archived by the owner on Jul 8, 2022. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathImportCustomerRequest.php
More file actions
322 lines (292 loc) · 11.1 KB
/
Copy pathImportCustomerRequest.php
File metadata and controls
322 lines (292 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/channel/v1/service.proto
namespace Google\Cloud\Channel\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer]
*
* Generated from protobuf message <code>google.cloud.channel.v1.ImportCustomerRequest</code>
*/
class ImportCustomerRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The resource name of the reseller's account.
* Parent takes the format: accounts/{account_id} or
* accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
*/
private $parent = '';
/**
* Optional. The super admin of the resold customer generates this token to
* authorize a reseller to access their Cloud Identity and purchase
* entitlements on their behalf. You can omit this token after authorization.
* See https://support.google.com/a/answer/7643790 for more details.
*
* Generated from protobuf field <code>string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
private $auth_token = '';
/**
* Required. Choose to overwrite an existing customer if found.
* This must be set to true if there is an existing customer with a
* conflicting region code or domain.
*
* Generated from protobuf field <code>bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];</code>
*/
private $overwrite_if_exists = false;
/**
* Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
* the customer's order. This field is required for 2-tier transfer scenarios
* and can be provided via the request Parent binding as well.
*
* Generated from protobuf field <code>string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
private $channel_partner_id = '';
/**
* Optional. Specifies the customer that will receive imported Cloud Identity
* information.
* Format: accounts/{account_id}/customers/{customer_id}
*
* Generated from protobuf field <code>string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
*/
private $customer = '';
protected $customer_identity;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $domain
* Required. Customer domain.
* @type string $cloud_identity_id
* Required. Customer's Cloud Identity ID
* @type string $parent
* Required. The resource name of the reseller's account.
* Parent takes the format: accounts/{account_id} or
* accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
* @type string $auth_token
* Optional. The super admin of the resold customer generates this token to
* authorize a reseller to access their Cloud Identity and purchase
* entitlements on their behalf. You can omit this token after authorization.
* See https://support.google.com/a/answer/7643790 for more details.
* @type bool $overwrite_if_exists
* Required. Choose to overwrite an existing customer if found.
* This must be set to true if there is an existing customer with a
* conflicting region code or domain.
* @type string $channel_partner_id
* Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
* the customer's order. This field is required for 2-tier transfer scenarios
* and can be provided via the request Parent binding as well.
* @type string $customer
* Optional. Specifies the customer that will receive imported Cloud Identity
* information.
* Format: accounts/{account_id}/customers/{customer_id}
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce();
parent::__construct($data);
}
/**
* Required. Customer domain.
*
* Generated from protobuf field <code>string domain = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public function getDomain()
{
return $this->readOneof(2);
}
public function hasDomain()
{
return $this->hasOneof(2);
}
/**
* Required. Customer domain.
*
* Generated from protobuf field <code>string domain = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public function setDomain($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(2, $var);
return $this;
}
/**
* Required. Customer's Cloud Identity ID
*
* Generated from protobuf field <code>string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public function getCloudIdentityId()
{
return $this->readOneof(3);
}
public function hasCloudIdentityId()
{
return $this->hasOneof(3);
}
/**
* Required. Customer's Cloud Identity ID
*
* Generated from protobuf field <code>string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public function setCloudIdentityId($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(3, $var);
return $this;
}
/**
* Required. The resource name of the reseller's account.
* Parent takes the format: accounts/{account_id} or
* accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The resource name of the reseller's account.
* Parent takes the format: accounts/{account_id} or
* accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public function setParent($var)
{
GPBUtil::checkString($var, True);
$this->parent = $var;
return $this;
}
/**
* Optional. The super admin of the resold customer generates this token to
* authorize a reseller to access their Cloud Identity and purchase
* entitlements on their behalf. You can omit this token after authorization.
* See https://support.google.com/a/answer/7643790 for more details.
*
* Generated from protobuf field <code>string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getAuthToken()
{
return $this->auth_token;
}
/**
* Optional. The super admin of the resold customer generates this token to
* authorize a reseller to access their Cloud Identity and purchase
* entitlements on their behalf. You can omit this token after authorization.
* See https://support.google.com/a/answer/7643790 for more details.
*
* Generated from protobuf field <code>string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setAuthToken($var)
{
GPBUtil::checkString($var, True);
$this->auth_token = $var;
return $this;
}
/**
* Required. Choose to overwrite an existing customer if found.
* This must be set to true if there is an existing customer with a
* conflicting region code or domain.
*
* Generated from protobuf field <code>bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];</code>
* @return bool
*/
public function getOverwriteIfExists()
{
return $this->overwrite_if_exists;
}
/**
* Required. Choose to overwrite an existing customer if found.
* This must be set to true if there is an existing customer with a
* conflicting region code or domain.
*
* Generated from protobuf field <code>bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];</code>
* @param bool $var
* @return $this
*/
public function setOverwriteIfExists($var)
{
GPBUtil::checkBool($var);
$this->overwrite_if_exists = $var;
return $this;
}
/**
* Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
* the customer's order. This field is required for 2-tier transfer scenarios
* and can be provided via the request Parent binding as well.
*
* Generated from protobuf field <code>string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getChannelPartnerId()
{
return $this->channel_partner_id;
}
/**
* Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
* the customer's order. This field is required for 2-tier transfer scenarios
* and can be provided via the request Parent binding as well.
*
* Generated from protobuf field <code>string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setChannelPartnerId($var)
{
GPBUtil::checkString($var, True);
$this->channel_partner_id = $var;
return $this;
}
/**
* Optional. Specifies the customer that will receive imported Cloud Identity
* information.
* Format: accounts/{account_id}/customers/{customer_id}
*
* Generated from protobuf field <code>string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
* @return string
*/
public function getCustomer()
{
return $this->customer;
}
/**
* Optional. Specifies the customer that will receive imported Cloud Identity
* information.
* Format: accounts/{account_id}/customers/{customer_id}
*
* Generated from protobuf field <code>string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
* @param string $var
* @return $this
*/
public function setCustomer($var)
{
GPBUtil::checkString($var, True);
$this->customer = $var;
return $this;
}
/**
* @return string
*/
public function getCustomerIdentity()
{
return $this->whichOneof("customer_identity");
}
}