FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
google-cloud-php/AdsDataManager/src/V1/AddressInfo.php at main · googleapis/google-cloud-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
googleapis
/
google-cloud-php
Public
Notifications
You must be signed in to change notification settings
Fork
464
Star
1.2k
Code
Issues
45
Pull requests
35
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
google-cloud-php
/
AdsDataManager
/
src
/
V1
/
AddressInfo.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
339 lines (312 loc) · 11.4 KB
Breadcrumbs
google-cloud-php
/
AdsDataManager
/
src
/
V1
/
AddressInfo.php
Copy path
File metadata and controls
339 lines (312 loc) · 11.4 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/datamanager/v1/user_data.proto
namespace
Google
\
Ads
\
DataManager
\
V1
;
use
Google
\
Protobuf
\
Internal
\
GPBType
;
use
Google
\
Protobuf
\
Internal
\
GPBUtil
;
use
Google
\
Protobuf
\
RepeatedField
;
/**
* Address information for the user.
*
* Generated from protobuf message <code>google.ads.datamanager.v1.AddressInfo</code>
*/
class
AddressInfo
extends
\
Google
\
Protobuf
\
Internal
\Message
{
/**
* Required. Given (first) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
*
* Generated from protobuf field <code>string given_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected
$
given_name
=
''
;
/**
* Required. Family (last) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
*
* Generated from protobuf field <code>string family_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected
$
family_name
=
''
;
/**
* Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's
* address.
*
* Generated from protobuf field <code>string region_code = 3 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected
$
region_code
=
''
;
/**
* Required. The postal code of the user's address.
*
* Generated from protobuf field <code>string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected
$
postal_code
=
''
;
/**
* Optional. The street and number of the user's address. Used only for
* Google Analytics. This field is hashed and possibly encrypted.
* Normalize the value before hashing:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected
$
address_line
=
''
;
/**
* Optional. The city of the user's address. Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string city = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected
$
city
=
''
;
/**
* Optional. The administrative area (state/province) of the user's address.
* Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected
$
administrative_area
=
''
;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $given_name
* Required. Given (first) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
* @type string $family_name
* Required. Family (last) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
* @type string $region_code
* Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's
* address.
* @type string $postal_code
* Required. The postal code of the user's address.
* @type string $address_line
* Optional. The street and number of the user's address. Used only for
* Google Analytics. This field is hashed and possibly encrypted.
* Normalize the value before hashing:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
* @type string $city
* Optional. The city of the user's address. Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
* @type string $administrative_area
* Optional. The administrative area (state/province) of the user's address.
* Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
* }
*/
public
function
__construct
(
$
data
=
NULL
) {
\
GPBMetadata
\
Google
\
Ads
\
Datamanager
\
V1
\UserData::
initOnce
();
parent
::
__construct
(
$
data
);
}
/**
* Required. Given (first) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
*
* Generated from protobuf field <code>string given_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public
function
getGivenName
()
{
return
$
this
->
given_name
;
}
/**
* Required. Given (first) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
*
* Generated from protobuf field <code>string given_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public
function
setGivenName
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
given_name
=
$
var
;
return
$
this
;
}
/**
* Required. Family (last) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
*
* Generated from protobuf field <code>string family_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public
function
getFamilyName
()
{
return
$
this
->
family_name
;
}
/**
* Required. Family (last) name of the user, all lowercase, with no
* punctuation, no leading or trailing whitespace, and hashed as SHA-256.
*
* Generated from protobuf field <code>string family_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public
function
setFamilyName
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
family_name
=
$
var
;
return
$
this
;
}
/**
* Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's
* address.
*
* Generated from protobuf field <code>string region_code = 3 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public
function
getRegionCode
()
{
return
$
this
->
region_code
;
}
/**
* Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's
* address.
*
* Generated from protobuf field <code>string region_code = 3 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public
function
setRegionCode
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
region_code
=
$
var
;
return
$
this
;
}
/**
* Required. The postal code of the user's address.
*
* Generated from protobuf field <code>string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public
function
getPostalCode
()
{
return
$
this
->
postal_code
;
}
/**
* Required. The postal code of the user's address.
*
* Generated from protobuf field <code>string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public
function
setPostalCode
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
postal_code
=
$
var
;
return
$
this
;
}
/**
* Optional. The street and number of the user's address. Used only for
* Google Analytics. This field is hashed and possibly encrypted.
* Normalize the value before hashing:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public
function
getAddressLine
()
{
return
$
this
->
address_line
;
}
/**
* Optional. The street and number of the user's address. Used only for
* Google Analytics. This field is hashed and possibly encrypted.
* Normalize the value before hashing:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public
function
setAddressLine
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
address_line
=
$
var
;
return
$
this
;
}
/**
* Optional. The city of the user's address. Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string city = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public
function
getCity
()
{
return
$
this
->
city
;
}
/**
* Optional. The city of the user's address. Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string city = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public
function
setCity
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
city
=
$
var
;
return
$
this
;
}
/**
* Optional. The administrative area (state/province) of the user's address.
* Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public
function
getAdministrativeArea
()
{
return
$
this
->
administrative_area
;
}
/**
* Optional. The administrative area (state/province) of the user's address.
* Used only for Google Analytics.
* The value should be normalized as such:
* - Remove symbol characters
* - Convert to lowercase
* - Remove leading and trailing whitespace
*
* Generated from protobuf field <code>string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public
function
setAdministrativeArea
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
administrative_area
=
$
var
;
return
$
this
;
}
}
Back
|
FazBrowse Home
|
New Git URL