forked from mwitkow/go-proto-validators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidator.pb.go
98 lines (83 loc) · 3.41 KB
/
validator.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
// Code generated by protoc-gen-gogo.
// source: validator.proto
// DO NOT EDIT!
/*
Package validator is a generated protocol buffer package.
It is generated from these files:
validator.proto
It has these top-level messages:
FieldValidator
*/
package validator
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
// 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.
const _ = proto.GoGoProtoPackageIsVersion1
type FieldValidator struct {
Regex *string `protobuf:"bytes,1,opt,name=regex" json:"regex,omitempty"`
IntGt *int64 `protobuf:"varint,2,opt,name=int_gt" json:"int_gt,omitempty"`
IntLt *int64 `protobuf:"varint,3,opt,name=int_lt" json:"int_lt,omitempty"`
MsgExists *bool `protobuf:"varint,4,opt,name=msg_exists" json:"msg_exists,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *FieldValidator) Reset() { *m = FieldValidator{} }
func (m *FieldValidator) String() string { return proto.CompactTextString(m) }
func (*FieldValidator) ProtoMessage() {}
func (*FieldValidator) Descriptor() ([]byte, []int) { return fileDescriptorValidator, []int{0} }
func (m *FieldValidator) GetRegex() string {
if m != nil && m.Regex != nil {
return *m.Regex
}
return ""
}
func (m *FieldValidator) GetIntGt() int64 {
if m != nil && m.IntGt != nil {
return *m.IntGt
}
return 0
}
func (m *FieldValidator) GetIntLt() int64 {
if m != nil && m.IntLt != nil {
return *m.IntLt
}
return 0
}
func (m *FieldValidator) GetMsgExists() bool {
if m != nil && m.MsgExists != nil {
return *m.MsgExists
}
return false
}
var E_Field = &proto.ExtensionDesc{
ExtendedType: (*google_protobuf.FieldOptions)(nil),
ExtensionType: (*FieldValidator)(nil),
Field: 65020,
Name: "validator.field",
Tag: "bytes,65020,opt,name=field",
}
func init() {
proto.RegisterType((*FieldValidator)(nil), "validator.FieldValidator")
proto.RegisterExtension(E_Field)
}
var fileDescriptorValidator = []byte{
// 181 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x4b, 0xcc, 0xc9,
0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x84, 0x0b, 0x48,
0x29, 0xa4, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x83, 0x25, 0x92, 0x4a, 0xd3, 0xf4, 0x53, 0x52,
0x8b, 0x93, 0x8b, 0x32, 0x0b, 0xe0, 0x8a, 0x95, 0x82, 0xb9, 0xf8, 0xdc, 0x32, 0x53, 0x73, 0x52,
0xc2, 0x60, 0x7a, 0x84, 0x78, 0xb9, 0x58, 0x8b, 0x52, 0xd3, 0x53, 0x2b, 0x24, 0x18, 0x15, 0x18,
0x35, 0x38, 0x85, 0xf8, 0xb8, 0xd8, 0x32, 0xf3, 0x4a, 0xe2, 0xd3, 0x4b, 0x24, 0x98, 0x80, 0x7c,
0x66, 0x18, 0x3f, 0xa7, 0x44, 0x82, 0x19, 0xcc, 0x17, 0xe2, 0xe2, 0xca, 0x2d, 0x4e, 0x8f, 0x4f,
0xad, 0xc8, 0x2c, 0x2e, 0x29, 0x96, 0x60, 0x01, 0x8a, 0x71, 0x58, 0x79, 0x72, 0xb1, 0xa6, 0x81,
0x0c, 0x15, 0x92, 0xd5, 0x83, 0x38, 0x40, 0x0f, 0xe6, 0x00, 0x3d, 0xb0, 0x65, 0xfe, 0x05, 0x25,
0x99, 0xf9, 0x79, 0xc5, 0x12, 0x7f, 0x7e, 0x83, 0xcc, 0xe0, 0x36, 0x92, 0xd4, 0x43, 0xf8, 0x01,
0xd5, 0x35, 0x4e, 0xdc, 0x51, 0x08, 0xef, 0x00, 0x02, 0x00, 0x00, 0xff, 0xff, 0x82, 0x54, 0x34,
0x8a, 0xeb, 0x00, 0x00, 0x00,
}