go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 // Code generated by protoc-gen-go. DO NOT EDIT. 5 // versions: 6 // protoc-gen-go v1.31.0 7 // protoc v4.24.3 8 // source: cvss.proto 9 10 package cvss 11 12 import ( 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 type Cvss struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 Vector string `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` 32 Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` 33 Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"` 34 } 35 36 func (x *Cvss) Reset() { 37 *x = Cvss{} 38 if protoimpl.UnsafeEnabled { 39 mi := &file_cvss_proto_msgTypes[0] 40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 41 ms.StoreMessageInfo(mi) 42 } 43 } 44 45 func (x *Cvss) String() string { 46 return protoimpl.X.MessageStringOf(x) 47 } 48 49 func (*Cvss) ProtoMessage() {} 50 51 func (x *Cvss) ProtoReflect() protoreflect.Message { 52 mi := &file_cvss_proto_msgTypes[0] 53 if protoimpl.UnsafeEnabled && x != nil { 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 if ms.LoadMessageInfo() == nil { 56 ms.StoreMessageInfo(mi) 57 } 58 return ms 59 } 60 return mi.MessageOf(x) 61 } 62 63 // Deprecated: Use Cvss.ProtoReflect.Descriptor instead. 64 func (*Cvss) Descriptor() ([]byte, []int) { 65 return file_cvss_proto_rawDescGZIP(), []int{0} 66 } 67 68 func (x *Cvss) GetVector() string { 69 if x != nil { 70 return x.Vector 71 } 72 return "" 73 } 74 75 func (x *Cvss) GetSource() string { 76 if x != nil { 77 return x.Source 78 } 79 return "" 80 } 81 82 func (x *Cvss) GetScore() float32 { 83 if x != nil { 84 return x.Score 85 } 86 return 0 87 } 88 89 var File_cvss_proto protoreflect.FileDescriptor 90 91 var file_cvss_proto_rawDesc = []byte{ 92 0x0a, 0x0a, 0x63, 0x76, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6d, 0x6f, 93 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x6d, 0x76, 0x64, 0x2e, 0x63, 0x76, 0x73, 0x73, 0x2e, 0x76, 0x31, 94 0x22, 0x4c, 0x0a, 0x04, 0x43, 0x76, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 95 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 96 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 97 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 98 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x3a, 99 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 100 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 101 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 102 0x6d, 0x2f, 0x6d, 0x76, 0x64, 0x2f, 0x63, 0x76, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 103 0x6f, 0x33, 104 } 105 106 var ( 107 file_cvss_proto_rawDescOnce sync.Once 108 file_cvss_proto_rawDescData = file_cvss_proto_rawDesc 109 ) 110 111 func file_cvss_proto_rawDescGZIP() []byte { 112 file_cvss_proto_rawDescOnce.Do(func() { 113 file_cvss_proto_rawDescData = protoimpl.X.CompressGZIP(file_cvss_proto_rawDescData) 114 }) 115 return file_cvss_proto_rawDescData 116 } 117 118 var file_cvss_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 119 var file_cvss_proto_goTypes = []interface{}{ 120 (*Cvss)(nil), // 0: mondoo.mvd.cvss.v1.Cvss 121 } 122 var file_cvss_proto_depIdxs = []int32{ 123 0, // [0:0] is the sub-list for method output_type 124 0, // [0:0] is the sub-list for method input_type 125 0, // [0:0] is the sub-list for extension type_name 126 0, // [0:0] is the sub-list for extension extendee 127 0, // [0:0] is the sub-list for field type_name 128 } 129 130 func init() { file_cvss_proto_init() } 131 func file_cvss_proto_init() { 132 if File_cvss_proto != nil { 133 return 134 } 135 if !protoimpl.UnsafeEnabled { 136 file_cvss_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 137 switch v := v.(*Cvss); i { 138 case 0: 139 return &v.state 140 case 1: 141 return &v.sizeCache 142 case 2: 143 return &v.unknownFields 144 default: 145 return nil 146 } 147 } 148 } 149 type x struct{} 150 out := protoimpl.TypeBuilder{ 151 File: protoimpl.DescBuilder{ 152 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 153 RawDescriptor: file_cvss_proto_rawDesc, 154 NumEnums: 0, 155 NumMessages: 1, 156 NumExtensions: 0, 157 NumServices: 0, 158 }, 159 GoTypes: file_cvss_proto_goTypes, 160 DependencyIndexes: file_cvss_proto_depIdxs, 161 MessageInfos: file_cvss_proto_msgTypes, 162 }.Build() 163 File_cvss_proto = out.File 164 file_cvss_proto_rawDesc = nil 165 file_cvss_proto_goTypes = nil 166 file_cvss_proto_depIdxs = nil 167 }