model/modelpb/network.pb.go (220 lines of code) (raw):

// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v5.28.3 // source: network.proto package modelpb import ( reflect "reflect" sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type Network struct { state protoimpl.MessageState `protogen:"open.v1"` Connection *NetworkConnection `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` Carrier *NetworkCarrier `protobuf:"bytes,2,opt,name=carrier,proto3" json:"carrier,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Network) Reset() { *x = Network{} mi := &file_network_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Network) String() string { return protoimpl.X.MessageStringOf(x) } func (*Network) ProtoMessage() {} func (x *Network) ProtoReflect() protoreflect.Message { mi := &file_network_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Network.ProtoReflect.Descriptor instead. func (*Network) Descriptor() ([]byte, []int) { return file_network_proto_rawDescGZIP(), []int{0} } func (x *Network) GetConnection() *NetworkConnection { if x != nil { return x.Connection } return nil } func (x *Network) GetCarrier() *NetworkCarrier { if x != nil { return x.Carrier } return nil } type NetworkConnection struct { state protoimpl.MessageState `protogen:"open.v1"` Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Subtype string `protobuf:"bytes,2,opt,name=subtype,proto3" json:"subtype,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NetworkConnection) Reset() { *x = NetworkConnection{} mi := &file_network_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NetworkConnection) String() string { return protoimpl.X.MessageStringOf(x) } func (*NetworkConnection) ProtoMessage() {} func (x *NetworkConnection) ProtoReflect() protoreflect.Message { mi := &file_network_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use NetworkConnection.ProtoReflect.Descriptor instead. func (*NetworkConnection) Descriptor() ([]byte, []int) { return file_network_proto_rawDescGZIP(), []int{1} } func (x *NetworkConnection) GetType() string { if x != nil { return x.Type } return "" } func (x *NetworkConnection) GetSubtype() string { if x != nil { return x.Subtype } return "" } type NetworkCarrier struct { state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mcc string `protobuf:"bytes,2,opt,name=mcc,proto3" json:"mcc,omitempty"` Mnc string `protobuf:"bytes,3,opt,name=mnc,proto3" json:"mnc,omitempty"` Icc string `protobuf:"bytes,4,opt,name=icc,proto3" json:"icc,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NetworkCarrier) Reset() { *x = NetworkCarrier{} mi := &file_network_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NetworkCarrier) String() string { return protoimpl.X.MessageStringOf(x) } func (*NetworkCarrier) ProtoMessage() {} func (x *NetworkCarrier) ProtoReflect() protoreflect.Message { mi := &file_network_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use NetworkCarrier.ProtoReflect.Descriptor instead. func (*NetworkCarrier) Descriptor() ([]byte, []int) { return file_network_proto_rawDescGZIP(), []int{2} } func (x *NetworkCarrier) GetName() string { if x != nil { return x.Name } return "" } func (x *NetworkCarrier) GetMcc() string { if x != nil { return x.Mcc } return "" } func (x *NetworkCarrier) GetMnc() string { if x != nil { return x.Mnc } return "" } func (x *NetworkCarrier) GetIcc() string { if x != nil { return x.Icc } return "" } var File_network_proto protoreflect.FileDescriptor const file_network_proto_rawDesc = "" + "\n" + "\rnetwork.proto\x12\x0eelastic.apm.v1\"\x86\x01\n" + "\aNetwork\x12A\n" + "\n" + "connection\x18\x01 \x01(\v2!.elastic.apm.v1.NetworkConnectionR\n" + "connection\x128\n" + "\acarrier\x18\x02 \x01(\v2\x1e.elastic.apm.v1.NetworkCarrierR\acarrier\"A\n" + "\x11NetworkConnection\x12\x12\n" + "\x04type\x18\x01 \x01(\tR\x04type\x12\x18\n" + "\asubtype\x18\x02 \x01(\tR\asubtype\"Z\n" + "\x0eNetworkCarrier\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + "\x03mcc\x18\x02 \x01(\tR\x03mcc\x12\x10\n" + "\x03mnc\x18\x03 \x01(\tR\x03mnc\x12\x10\n" + "\x03icc\x18\x04 \x01(\tR\x03iccB+Z)github.com/elastic/apm-data/model/modelpbb\x06proto3" var ( file_network_proto_rawDescOnce sync.Once file_network_proto_rawDescData []byte ) func file_network_proto_rawDescGZIP() []byte { file_network_proto_rawDescOnce.Do(func() { file_network_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_network_proto_rawDesc), len(file_network_proto_rawDesc))) }) return file_network_proto_rawDescData } var file_network_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_network_proto_goTypes = []any{ (*Network)(nil), // 0: elastic.apm.v1.Network (*NetworkConnection)(nil), // 1: elastic.apm.v1.NetworkConnection (*NetworkCarrier)(nil), // 2: elastic.apm.v1.NetworkCarrier } var file_network_proto_depIdxs = []int32{ 1, // 0: elastic.apm.v1.Network.connection:type_name -> elastic.apm.v1.NetworkConnection 2, // 1: elastic.apm.v1.Network.carrier:type_name -> elastic.apm.v1.NetworkCarrier 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_network_proto_init() } func file_network_proto_init() { if File_network_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_network_proto_rawDesc), len(file_network_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_network_proto_goTypes, DependencyIndexes: file_network_proto_depIdxs, MessageInfos: file_network_proto_msgTypes, }.Build() File_network_proto = out.File file_network_proto_goTypes = nil file_network_proto_depIdxs = nil }