github.com/google/cloudprober@v0.11.3/servers/udp/proto/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.17.3 5 // source: github.com/google/cloudprober/servers/udp/proto/config.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type ServerConf_Type int32 24 25 const ( 26 // Echos the incoming packet back. 27 // Note that UDP echo server limits reads to 4098 bytes. For messages longer 28 // than 4098 bytes it won't work as expected. 29 ServerConf_ECHO ServerConf_Type = 0 30 // Discard the incoming packet. Return nothing. 31 ServerConf_DISCARD ServerConf_Type = 1 32 ) 33 34 // Enum value maps for ServerConf_Type. 35 var ( 36 ServerConf_Type_name = map[int32]string{ 37 0: "ECHO", 38 1: "DISCARD", 39 } 40 ServerConf_Type_value = map[string]int32{ 41 "ECHO": 0, 42 "DISCARD": 1, 43 } 44 ) 45 46 func (x ServerConf_Type) Enum() *ServerConf_Type { 47 p := new(ServerConf_Type) 48 *p = x 49 return p 50 } 51 52 func (x ServerConf_Type) String() string { 53 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 54 } 55 56 func (ServerConf_Type) Descriptor() protoreflect.EnumDescriptor { 57 return file_github_com_google_cloudprober_servers_udp_proto_config_proto_enumTypes[0].Descriptor() 58 } 59 60 func (ServerConf_Type) Type() protoreflect.EnumType { 61 return &file_github_com_google_cloudprober_servers_udp_proto_config_proto_enumTypes[0] 62 } 63 64 func (x ServerConf_Type) Number() protoreflect.EnumNumber { 65 return protoreflect.EnumNumber(x) 66 } 67 68 // Deprecated: Do not use. 69 func (x *ServerConf_Type) UnmarshalJSON(b []byte) error { 70 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 71 if err != nil { 72 return err 73 } 74 *x = ServerConf_Type(num) 75 return nil 76 } 77 78 // Deprecated: Use ServerConf_Type.Descriptor instead. 79 func (ServerConf_Type) EnumDescriptor() ([]byte, []int) { 80 return file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescGZIP(), []int{0, 0} 81 } 82 83 type ServerConf struct { 84 state protoimpl.MessageState 85 sizeCache protoimpl.SizeCache 86 unknownFields protoimpl.UnknownFields 87 88 Port *int32 `protobuf:"varint,1,req,name=port" json:"port,omitempty"` 89 Type *ServerConf_Type `protobuf:"varint,2,req,name=type,enum=cloudprober.servers.udp.ServerConf_Type" json:"type,omitempty"` 90 } 91 92 func (x *ServerConf) Reset() { 93 *x = ServerConf{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_github_com_google_cloudprober_servers_udp_proto_config_proto_msgTypes[0] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99 } 100 101 func (x *ServerConf) String() string { 102 return protoimpl.X.MessageStringOf(x) 103 } 104 105 func (*ServerConf) ProtoMessage() {} 106 107 func (x *ServerConf) ProtoReflect() protoreflect.Message { 108 mi := &file_github_com_google_cloudprober_servers_udp_proto_config_proto_msgTypes[0] 109 if protoimpl.UnsafeEnabled && x != nil { 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 if ms.LoadMessageInfo() == nil { 112 ms.StoreMessageInfo(mi) 113 } 114 return ms 115 } 116 return mi.MessageOf(x) 117 } 118 119 // Deprecated: Use ServerConf.ProtoReflect.Descriptor instead. 120 func (*ServerConf) Descriptor() ([]byte, []int) { 121 return file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescGZIP(), []int{0} 122 } 123 124 func (x *ServerConf) GetPort() int32 { 125 if x != nil && x.Port != nil { 126 return *x.Port 127 } 128 return 0 129 } 130 131 func (x *ServerConf) GetType() ServerConf_Type { 132 if x != nil && x.Type != nil { 133 return *x.Type 134 } 135 return ServerConf_ECHO 136 } 137 138 var File_github_com_google_cloudprober_servers_udp_proto_config_proto protoreflect.FileDescriptor 139 140 var file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDesc = []byte{ 141 0x0a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 142 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 143 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x75, 0x64, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 144 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 145 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x73, 0x65, 0x72, 0x76, 146 0x65, 0x72, 0x73, 0x2e, 0x75, 0x64, 0x70, 0x22, 0x7d, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 147 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 148 0x02, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, 149 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 150 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x75, 0x64, 151 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x2e, 0x54, 0x79, 0x70, 152 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1d, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 153 0x08, 0x0a, 0x04, 0x45, 0x43, 0x48, 0x4f, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x49, 0x53, 154 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 155 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 156 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2f, 157 0x75, 0x64, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 158 } 159 160 var ( 161 file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescOnce sync.Once 162 file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescData = file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDesc 163 ) 164 165 func file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescGZIP() []byte { 166 file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescOnce.Do(func() { 167 file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescData) 168 }) 169 return file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDescData 170 } 171 172 var file_github_com_google_cloudprober_servers_udp_proto_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 173 var file_github_com_google_cloudprober_servers_udp_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 174 var file_github_com_google_cloudprober_servers_udp_proto_config_proto_goTypes = []interface{}{ 175 (ServerConf_Type)(0), // 0: cloudprober.servers.udp.ServerConf.Type 176 (*ServerConf)(nil), // 1: cloudprober.servers.udp.ServerConf 177 } 178 var file_github_com_google_cloudprober_servers_udp_proto_config_proto_depIdxs = []int32{ 179 0, // 0: cloudprober.servers.udp.ServerConf.type:type_name -> cloudprober.servers.udp.ServerConf.Type 180 1, // [1:1] is the sub-list for method output_type 181 1, // [1:1] is the sub-list for method input_type 182 1, // [1:1] is the sub-list for extension type_name 183 1, // [1:1] is the sub-list for extension extendee 184 0, // [0:1] is the sub-list for field type_name 185 } 186 187 func init() { file_github_com_google_cloudprober_servers_udp_proto_config_proto_init() } 188 func file_github_com_google_cloudprober_servers_udp_proto_config_proto_init() { 189 if File_github_com_google_cloudprober_servers_udp_proto_config_proto != nil { 190 return 191 } 192 if !protoimpl.UnsafeEnabled { 193 file_github_com_google_cloudprober_servers_udp_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 194 switch v := v.(*ServerConf); i { 195 case 0: 196 return &v.state 197 case 1: 198 return &v.sizeCache 199 case 2: 200 return &v.unknownFields 201 default: 202 return nil 203 } 204 } 205 } 206 type x struct{} 207 out := protoimpl.TypeBuilder{ 208 File: protoimpl.DescBuilder{ 209 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 210 RawDescriptor: file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDesc, 211 NumEnums: 1, 212 NumMessages: 1, 213 NumExtensions: 0, 214 NumServices: 0, 215 }, 216 GoTypes: file_github_com_google_cloudprober_servers_udp_proto_config_proto_goTypes, 217 DependencyIndexes: file_github_com_google_cloudprober_servers_udp_proto_config_proto_depIdxs, 218 EnumInfos: file_github_com_google_cloudprober_servers_udp_proto_config_proto_enumTypes, 219 MessageInfos: file_github_com_google_cloudprober_servers_udp_proto_config_proto_msgTypes, 220 }.Build() 221 File_github_com_google_cloudprober_servers_udp_proto_config_proto = out.File 222 file_github_com_google_cloudprober_servers_udp_proto_config_proto_rawDesc = nil 223 file_github_com_google_cloudprober_servers_udp_proto_config_proto_goTypes = nil 224 file_github_com_google_cloudprober_servers_udp_proto_config_proto_depIdxs = nil 225 }