FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
google-cloud-php/AdsDataManager/src/V1/CustomerType.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
/
CustomerType.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
72 lines (64 loc) · 1.99 KB
Breadcrumbs
google-cloud-php
/
AdsDataManager
/
src
/
V1
/
CustomerType.php
Copy path
File metadata and controls
72 lines (64 loc) · 1.99 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/datamanager/v1/user_properties.proto
namespace
Google
\
Ads
\
DataManager
\
V1
;
use
UnexpectedValueException
;
/**
* Type of the customer associated with the event.
*
* Protobuf type <code>google.ads.datamanager.v1.CustomerType</code>
*/
class
CustomerType
{
/**
* Unspecified CustomerType. Should never be used.
*
* Generated from protobuf enum <code>CUSTOMER_TYPE_UNSPECIFIED = 0;</code>
*/
const
CUSTOMER_TYPE_UNSPECIFIED
=
0
;
/**
* The customer is new to the advertiser.
*
* Generated from protobuf enum <code>NEW = 1;</code>
*/
const
PBNEW
=
1
;
/**
* The customer is returning to the advertiser.
*
* Generated from protobuf enum <code>RETURNING = 2;</code>
*/
const
RETURNING
=
2
;
/**
* The customer has re-engaged with the advertiser.
*
* Generated from protobuf enum <code>REENGAGED = 3;</code>
*/
const
REENGAGED
=
3
;
private
static
$
valueToName
= [
self
::
CUSTOMER_TYPE_UNSPECIFIED
=>
'
CUSTOMER_TYPE_UNSPECIFIED
'
,
self
::
PBNEW
=>
'
NEW
'
,
self
::
RETURNING
=>
'
RETURNING
'
,
self
::
REENGAGED
=>
'
REENGAGED
'
,
];
public
static
function
name
(
$
value
)
{
if
(!
isset
(
self
::
$
valueToName
[
$
value
])) {
throw
new
UnexpectedValueException
(
sprintf
(
'
Enum %s has no name defined for value %s
'
,
__CLASS__
,
$
value
));
}
return
self
::
$
valueToName
[
$
value
];
}
public
static
function
value
(
$
name
)
{
$
const
=
__CLASS__
.
'
::
'
.
strtoupper
(
$
name
);
if
(!
defined
(
$
const
)) {
$
pbconst
=
__CLASS__
.
'
::PB
'
.
strtoupper
(
$
name
);
if
(!
defined
(
$
pbconst
)) {
throw
new
UnexpectedValueException
(
sprintf
(
'
Enum %s has no value defined for name %s
'
,
__CLASS__
,
$
name
));
}
return
constant
(
$
pbconst
);
}
return
constant
(
$
const
);
}
}
Back
|
FazBrowse Home
|
New Git URL