-
Notifications
You must be signed in to change notification settings - Fork 0
/
value_type.pb.go
127 lines (114 loc) · 4.62 KB
/
value_type.pb.go
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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: policy/v1beta1/value_type.proto
package v1beta1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
strconv "strconv"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// ValueType describes the types that values in the Istio system can take. These
// are used to describe the type of Attributes at run time, describe the type of
// the result of evaluating an expression, and to describe the runtime type of
// fields of other descriptors.
type ValueType int32
const (
// Invalid, default value.
VALUE_TYPE_UNSPECIFIED ValueType = 0
// An undiscriminated variable-length string.
STRING ValueType = 1
// An undiscriminated 64-bit signed integer.
INT64 ValueType = 2
// An undiscriminated 64-bit floating-point value.
DOUBLE ValueType = 3
// An undiscriminated boolean value.
BOOL ValueType = 4
// A point in time.
TIMESTAMP ValueType = 5
// An IP address.
IP_ADDRESS ValueType = 6
// An email address.
EMAIL_ADDRESS ValueType = 7
// A URI.
URI ValueType = 8
// A DNS name.
DNS_NAME ValueType = 9
// A span between two points in time.
DURATION ValueType = 10
// A map string -> string, typically used by headers.
STRING_MAP ValueType = 11
)
var ValueType_name = map[int32]string{
0: "VALUE_TYPE_UNSPECIFIED",
1: "STRING",
2: "INT64",
3: "DOUBLE",
4: "BOOL",
5: "TIMESTAMP",
6: "IP_ADDRESS",
7: "EMAIL_ADDRESS",
8: "URI",
9: "DNS_NAME",
10: "DURATION",
11: "STRING_MAP",
}
var ValueType_value = map[string]int32{
"VALUE_TYPE_UNSPECIFIED": 0,
"STRING": 1,
"INT64": 2,
"DOUBLE": 3,
"BOOL": 4,
"TIMESTAMP": 5,
"IP_ADDRESS": 6,
"EMAIL_ADDRESS": 7,
"URI": 8,
"DNS_NAME": 9,
"DURATION": 10,
"STRING_MAP": 11,
}
func (ValueType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_72649b1dc07496e9, []int{0}
}
func init() {
proto.RegisterEnum("istio.policy.v1beta1.ValueType", ValueType_name, ValueType_value)
}
func init() { proto.RegisterFile("policy/v1beta1/value_type.proto", fileDescriptor_72649b1dc07496e9) }
var fileDescriptor_72649b1dc07496e9 = []byte{
// 309 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xcd, 0x4a, 0xfb, 0x40,
0x14, 0x47, 0x67, 0xfe, 0xfd, 0xcc, 0xfd, 0x5b, 0x19, 0x07, 0x71, 0xa1, 0x70, 0xdd, 0xbb, 0x68,
0x28, 0x8a, 0xfb, 0xa9, 0x19, 0x65, 0x20, 0x5f, 0x26, 0x93, 0x82, 0x6e, 0x42, 0x2b, 0x59, 0x04,
0x0a, 0x09, 0x1a, 0x0b, 0xdd, 0xf9, 0x08, 0x3e, 0x86, 0xef, 0xe0, 0x0b, 0xb8, 0xec, 0xb2, 0x4b,
0x3b, 0xdd, 0xb8, 0xec, 0x23, 0x48, 0x1b, 0x11, 0x5c, 0xde, 0xc3, 0xe1, 0xf2, 0xe3, 0xc0, 0x69,
0x59, 0x4c, 0xf3, 0x87, 0xb9, 0x3d, 0x1b, 0x4c, 0xb2, 0x6a, 0x3c, 0xb0, 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0x91, 0xdc, 0x9f, 0xd4, 0x25, 0xf2, 0xc2, 0x1e, 0x97, 0xb9,
0xfd, 0xb7, 0xdb, 0xa4, 0xbd, 0xab, 0x75, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x0e, 0x39,
0x92, 0x50, 0x01, 0x00, 0x00,
}
func (x ValueType) String() string {
s, ok := ValueType_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}