FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
google-cloud-php/Dms/src/V1/NumericFilterOption.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
/
Dms
/
src
/
V1
/
NumericFilterOption.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
70 lines (62 loc) · 2.3 KB
Breadcrumbs
google-cloud-php
/
Dms
/
src
/
V1
/
NumericFilterOption.php
Copy path
File metadata and controls
70 lines (62 loc) · 2.3 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
<?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
;
/**
* Specifies the columns on which numeric filter needs to be applied.
*
* Protobuf type <code>google.cloud.clouddms.v1.NumericFilterOption</code>
*/
class
NumericFilterOption
{
/**
* Numeric filter option unspecified
*
* Generated from protobuf enum <code>NUMERIC_FILTER_OPTION_UNSPECIFIED = 0;</code>
*/
const
NUMERIC_FILTER_OPTION_UNSPECIFIED
=
0
;
/**
* Numeric filter option that matches all numeric columns.
*
* Generated from protobuf enum <code>NUMERIC_FILTER_OPTION_ALL = 1;</code>
*/
const
NUMERIC_FILTER_OPTION_ALL
=
1
;
/**
* Numeric filter option that matches columns having numeric datatypes with
* specified precision and scale within the limited range of filter.
*
* Generated from protobuf enum <code>NUMERIC_FILTER_OPTION_LIMIT = 2;</code>
*/
const
NUMERIC_FILTER_OPTION_LIMIT
=
2
;
/**
* Numeric filter option that matches only the numeric columns with no
* precision and scale specified.
*
* Generated from protobuf enum <code>NUMERIC_FILTER_OPTION_LIMITLESS = 3;</code>
*/
const
NUMERIC_FILTER_OPTION_LIMITLESS
=
3
;
private
static
$
valueToName
= [
self
::
NUMERIC_FILTER_OPTION_UNSPECIFIED
=>
'
NUMERIC_FILTER_OPTION_UNSPECIFIED
'
,
self
::
NUMERIC_FILTER_OPTION_ALL
=>
'
NUMERIC_FILTER_OPTION_ALL
'
,
self
::
NUMERIC_FILTER_OPTION_LIMIT
=>
'
NUMERIC_FILTER_OPTION_LIMIT
'
,
self
::
NUMERIC_FILTER_OPTION_LIMITLESS
=>
'
NUMERIC_FILTER_OPTION_LIMITLESS
'
,
];
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