FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
google-cloud-php/Dms/src/V1/EntityNameTransformation.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
32
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
/
Dms
/
src
/
V1
/
EntityNameTransformation.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
75 lines (67 loc) · 2.52 KB
Breadcrumbs
google-cloud-php
/
Dms
/
src
/
V1
/
EntityNameTransformation.php
Copy path
File metadata and controls
75 lines (67 loc) · 2.52 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/clouddms/v1/conversionworkspace_resources.proto
namespace
Google
\
Cloud
\
CloudDms
\
V1
;
use
UnexpectedValueException
;
/**
* Entity Name Transformation Types
*
* Protobuf type <code>google.cloud.clouddms.v1.EntityNameTransformation</code>
*/
class
EntityNameTransformation
{
/**
* Entity name transformation unspecified.
*
* Generated from protobuf enum <code>ENTITY_NAME_TRANSFORMATION_UNSPECIFIED = 0;</code>
*/
const
ENTITY_NAME_TRANSFORMATION_UNSPECIFIED
=
0
;
/**
* No transformation.
*
* Generated from protobuf enum <code>ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION = 1;</code>
*/
const
ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION
=
1
;
/**
* Transform to lower case.
*
* Generated from protobuf enum <code>ENTITY_NAME_TRANSFORMATION_LOWER_CASE = 2;</code>
*/
const
ENTITY_NAME_TRANSFORMATION_LOWER_CASE
=
2
;
/**
* Transform to upper case.
*
* Generated from protobuf enum <code>ENTITY_NAME_TRANSFORMATION_UPPER_CASE = 3;</code>
*/
const
ENTITY_NAME_TRANSFORMATION_UPPER_CASE
=
3
;
/**
* Transform to capitalized case.
*
* Generated from protobuf enum <code>ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE = 4;</code>
*/
const
ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE
=
4
;
private
static
$
valueToName
= [
self
::
ENTITY_NAME_TRANSFORMATION_UNSPECIFIED
=>
'
ENTITY_NAME_TRANSFORMATION_UNSPECIFIED
'
,
self
::
ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION
=>
'
ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION
'
,
self
::
ENTITY_NAME_TRANSFORMATION_LOWER_CASE
=>
'
ENTITY_NAME_TRANSFORMATION_LOWER_CASE
'
,
self
::
ENTITY_NAME_TRANSFORMATION_UPPER_CASE
=>
'
ENTITY_NAME_TRANSFORMATION_UPPER_CASE
'
,
self
::
ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE
=>
'
ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE
'
,
];
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
)) {
throw
new
UnexpectedValueException
(
sprintf
(
'
Enum %s has no value defined for name %s
'
,
__CLASS__
,
$
name
));
}
return
constant
(
$
const
);
}
}
Back
|
FazBrowse Home
|
New Git URL