github.com/kaydxh/golang@v0.0.131/pkg/crontab/crontab.pb.go (about) 1 /* 2 *Copyright (c) 2022, kaydxh 3 * 4 *Permission is hereby granted, free of charge, to any person obtaining a copy 5 *of this software and associated documentation files (the "Software"), to deal 6 *in the Software without restriction, including without limitation the rights 7 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 *copies of the Software, and to permit persons to whom the Software is 9 *furnished to do so, subject to the following conditions: 10 * 11 *The above copyright notice and this permission notice shall be included in all 12 *copies or substantial portions of the Software. 13 * 14 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 *SOFTWARE. 21 */ 22 // Code generated by protoc-gen-go. DO NOT EDIT. 23 // versions: 24 // protoc-gen-go v1.27.0 25 // protoc v3.13.0 26 // source: pkg/crontab/crontab.proto 27 28 package crontab 29 30 import ( 31 duration "github.com/golang/protobuf/ptypes/duration" 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 34 reflect "reflect" 35 sync "sync" 36 ) 37 38 const ( 39 // Verify that this generated code is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 41 // Verify that runtime/protoimpl is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 43 ) 44 45 type Crontab struct { 46 state protoimpl.MessageState 47 sizeCache protoimpl.SizeCache 48 unknownFields protoimpl.UnknownFields 49 50 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 51 CheckInterval *duration.Duration `protobuf:"bytes,4,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` 52 } 53 54 func (x *Crontab) Reset() { 55 *x = Crontab{} 56 if protoimpl.UnsafeEnabled { 57 mi := &file_pkg_crontab_crontab_proto_msgTypes[0] 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 ms.StoreMessageInfo(mi) 60 } 61 } 62 63 func (x *Crontab) String() string { 64 return protoimpl.X.MessageStringOf(x) 65 } 66 67 func (*Crontab) ProtoMessage() {} 68 69 func (x *Crontab) ProtoReflect() protoreflect.Message { 70 mi := &file_pkg_crontab_crontab_proto_msgTypes[0] 71 if protoimpl.UnsafeEnabled && x != nil { 72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 73 if ms.LoadMessageInfo() == nil { 74 ms.StoreMessageInfo(mi) 75 } 76 return ms 77 } 78 return mi.MessageOf(x) 79 } 80 81 // Deprecated: Use Crontab.ProtoReflect.Descriptor instead. 82 func (*Crontab) Descriptor() ([]byte, []int) { 83 return file_pkg_crontab_crontab_proto_rawDescGZIP(), []int{0} 84 } 85 86 func (x *Crontab) GetEnabled() bool { 87 if x != nil { 88 return x.Enabled 89 } 90 return false 91 } 92 93 func (x *Crontab) GetCheckInterval() *duration.Duration { 94 if x != nil { 95 return x.CheckInterval 96 } 97 return nil 98 } 99 100 var File_pkg_crontab_crontab_proto protoreflect.FileDescriptor 101 102 var file_pkg_crontab_crontab_proto_rawDesc = []byte{ 103 0x0a, 0x19, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x72, 0x6f, 0x6e, 0x74, 0x61, 0x62, 0x2f, 0x63, 0x72, 104 0x6f, 0x6e, 0x74, 0x61, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, 0x6f, 0x2e, 105 0x70, 0x6b, 0x67, 0x2e, 0x63, 0x72, 0x6f, 0x6e, 0x74, 0x61, 0x62, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 106 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 107 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x07, 0x43, 108 0x72, 0x6f, 0x6e, 0x74, 0x61, 0x62, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 109 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 110 0x12, 0x40, 0x0a, 0x0e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 111 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 112 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 113 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 114 0x61, 0x6c, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 115 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x63, 116 0x72, 0x6f, 0x6e, 0x74, 0x61, 0x62, 0x3b, 0x63, 0x72, 0x6f, 0x6e, 0x74, 0x61, 0x62, 0x62, 0x06, 117 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 118 } 119 120 var ( 121 file_pkg_crontab_crontab_proto_rawDescOnce sync.Once 122 file_pkg_crontab_crontab_proto_rawDescData = file_pkg_crontab_crontab_proto_rawDesc 123 ) 124 125 func file_pkg_crontab_crontab_proto_rawDescGZIP() []byte { 126 file_pkg_crontab_crontab_proto_rawDescOnce.Do(func() { 127 file_pkg_crontab_crontab_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_crontab_crontab_proto_rawDescData) 128 }) 129 return file_pkg_crontab_crontab_proto_rawDescData 130 } 131 132 var file_pkg_crontab_crontab_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 133 var file_pkg_crontab_crontab_proto_goTypes = []interface{}{ 134 (*Crontab)(nil), // 0: go.pkg.crontab.Crontab 135 (*duration.Duration)(nil), // 1: google.protobuf.Duration 136 } 137 var file_pkg_crontab_crontab_proto_depIdxs = []int32{ 138 1, // 0: go.pkg.crontab.Crontab.check_interval:type_name -> google.protobuf.Duration 139 1, // [1:1] is the sub-list for method output_type 140 1, // [1:1] is the sub-list for method input_type 141 1, // [1:1] is the sub-list for extension type_name 142 1, // [1:1] is the sub-list for extension extendee 143 0, // [0:1] is the sub-list for field type_name 144 } 145 146 func init() { file_pkg_crontab_crontab_proto_init() } 147 func file_pkg_crontab_crontab_proto_init() { 148 if File_pkg_crontab_crontab_proto != nil { 149 return 150 } 151 if !protoimpl.UnsafeEnabled { 152 file_pkg_crontab_crontab_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 153 switch v := v.(*Crontab); i { 154 case 0: 155 return &v.state 156 case 1: 157 return &v.sizeCache 158 case 2: 159 return &v.unknownFields 160 default: 161 return nil 162 } 163 } 164 } 165 type x struct{} 166 out := protoimpl.TypeBuilder{ 167 File: protoimpl.DescBuilder{ 168 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 169 RawDescriptor: file_pkg_crontab_crontab_proto_rawDesc, 170 NumEnums: 0, 171 NumMessages: 1, 172 NumExtensions: 0, 173 NumServices: 0, 174 }, 175 GoTypes: file_pkg_crontab_crontab_proto_goTypes, 176 DependencyIndexes: file_pkg_crontab_crontab_proto_depIdxs, 177 MessageInfos: file_pkg_crontab_crontab_proto_msgTypes, 178 }.Build() 179 File_pkg_crontab_crontab_proto = out.File 180 file_pkg_crontab_crontab_proto_rawDesc = nil 181 file_pkg_crontab_crontab_proto_goTypes = nil 182 file_pkg_crontab_crontab_proto_depIdxs = nil 183 }