/
enums.pb.go
190 lines (153 loc) · 5.43 KB
/
enums.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
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: grpc/proto/generate/enums.proto
package generate
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
type OrgType int32
const (
OrgType_Order OrgType = 0
OrgType_Peer OrgType = 1
)
var OrgType_name = map[int32]string{
0: "Order",
1: "Peer",
}
var OrgType_value = map[string]int32{
"Order": 0,
"Peer": 1,
}
func (x OrgType) String() string {
return proto.EnumName(OrgType_name, int32(x))
}
func (OrgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d76e7aea8c852478, []int{0}
}
type CryptoType int32
const (
CryptoType_ECDSA CryptoType = 0
CryptoType_RSA CryptoType = 1
)
var CryptoType_name = map[int32]string{
0: "ECDSA",
1: "RSA",
}
var CryptoType_value = map[string]int32{
"ECDSA": 0,
"RSA": 1,
}
func (x CryptoType) String() string {
return proto.EnumName(CryptoType_name, int32(x))
}
func (CryptoType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d76e7aea8c852478, []int{1}
}
type EccAlgorithm int32
const (
EccAlgorithm_p256 EccAlgorithm = 0
EccAlgorithm_p384 EccAlgorithm = 1
EccAlgorithm_p521 EccAlgorithm = 2
)
var EccAlgorithm_name = map[int32]string{
0: "p256",
1: "p384",
2: "p521",
}
var EccAlgorithm_value = map[string]int32{
"p256": 0,
"p384": 1,
"p521": 2,
}
func (x EccAlgorithm) String() string {
return proto.EnumName(EccAlgorithm_name, int32(x))
}
func (EccAlgorithm) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d76e7aea8c852478, []int{2}
}
type RsaAlgorithm int32
const (
RsaAlgorithm_r2048 RsaAlgorithm = 0
RsaAlgorithm_r4096 RsaAlgorithm = 1
)
var RsaAlgorithm_name = map[int32]string{
0: "r2048",
1: "r4096",
}
var RsaAlgorithm_value = map[string]int32{
"r2048": 0,
"r4096": 1,
}
func (x RsaAlgorithm) String() string {
return proto.EnumName(RsaAlgorithm_name, int32(x))
}
func (RsaAlgorithm) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d76e7aea8c852478, []int{3}
}
type SignAlgorithm int32
const (
SignAlgorithm_SHA256WithRSA SignAlgorithm = 0
SignAlgorithm_SHA512WithRSA SignAlgorithm = 1
SignAlgorithm_ECDSAWithSHA256 SignAlgorithm = 2
SignAlgorithm_ECDSAWithSHA384 SignAlgorithm = 3
SignAlgorithm_ECDSAWithSHA512 SignAlgorithm = 4
)
var SignAlgorithm_name = map[int32]string{
0: "SHA256WithRSA",
1: "SHA512WithRSA",
2: "ECDSAWithSHA256",
3: "ECDSAWithSHA384",
4: "ECDSAWithSHA512",
}
var SignAlgorithm_value = map[string]int32{
"SHA256WithRSA": 0,
"SHA512WithRSA": 1,
"ECDSAWithSHA256": 2,
"ECDSAWithSHA384": 3,
"ECDSAWithSHA512": 4,
}
func (x SignAlgorithm) String() string {
return proto.EnumName(SignAlgorithm_name, int32(x))
}
func (SignAlgorithm) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d76e7aea8c852478, []int{4}
}
func init() {
proto.RegisterEnum("generate.OrgType", OrgType_name, OrgType_value)
proto.RegisterEnum("generate.CryptoType", CryptoType_name, CryptoType_value)
proto.RegisterEnum("generate.EccAlgorithm", EccAlgorithm_name, EccAlgorithm_value)
proto.RegisterEnum("generate.RsaAlgorithm", RsaAlgorithm_name, RsaAlgorithm_value)
proto.RegisterEnum("generate.SignAlgorithm", SignAlgorithm_name, SignAlgorithm_value)
}
func init() { proto.RegisterFile("grpc/proto/generate/enums.proto", fileDescriptor_d76e7aea8c852478) }
var fileDescriptor_d76e7aea8c852478 = []byte{
// 279 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x6b, 0xc2, 0x30,
0x18, 0x86, 0x5b, 0x7f, 0x4c, 0xfd, 0x50, 0x96, 0xd5, 0xfb, 0xb6, 0xc3, 0x4e, 0x61, 0x6b, 0x6d,
0x6c, 0x8b, 0x3b, 0x56, 0x57, 0xd8, 0x65, 0x28, 0xed, 0x60, 0xb0, 0x5b, 0xed, 0xb2, 0x1a, 0xd0,
0x24, 0xc4, 0xec, 0xe0, 0x7f, 0x3f, 0x92, 0x52, 0x04, 0xf1, 0xf6, 0xe6, 0xe1, 0xcd, 0xc7, 0xcb,
0x03, 0x0f, 0xb5, 0x92, 0x55, 0x20, 0x95, 0xd0, 0x22, 0xa8, 0x29, 0xa7, 0xaa, 0xd4, 0x34, 0xa0,
0xfc, 0xef, 0x70, 0xf4, 0x2d, 0xf4, 0x86, 0x2d, 0xc5, 0xf7, 0x30, 0x58, 0xab, 0xfa, 0xf3, 0x24,
0xa9, 0x37, 0x82, 0xfe, 0x5a, 0xfd, 0x50, 0x85, 0x1c, 0x6f, 0x08, 0xbd, 0x0d, 0xa5, 0x0a, 0xb9,
0xf8, 0x11, 0x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