github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/pkg/kv/kvtest/test_model.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc (unknown) 5 // source: kv/kvtest/test_model.proto 6 7 package kvtest 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type TestModel struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 30 JustAString string `protobuf:"bytes,2,opt,name=just_a_string,json=justAString,proto3" json:"just_a_string,omitempty"` 31 ADouble float64 `protobuf:"fixed64,3,opt,name=a_double,json=aDouble,proto3" json:"a_double,omitempty"` 32 TestTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"` 33 TestMap map[string]int32 `protobuf:"bytes,5,rep,name=test_map,json=testMap,proto3" json:"test_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 34 TestList []bool `protobuf:"varint,6,rep,packed,name=test_list,json=testList,proto3" json:"test_list,omitempty"` 35 } 36 37 func (x *TestModel) Reset() { 38 *x = TestModel{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_kv_kvtest_test_model_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *TestModel) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*TestModel) ProtoMessage() {} 51 52 func (x *TestModel) ProtoReflect() protoreflect.Message { 53 mi := &file_kv_kvtest_test_model_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use TestModel.ProtoReflect.Descriptor instead. 65 func (*TestModel) Descriptor() ([]byte, []int) { 66 return file_kv_kvtest_test_model_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *TestModel) GetName() []byte { 70 if x != nil { 71 return x.Name 72 } 73 return nil 74 } 75 76 func (x *TestModel) GetJustAString() string { 77 if x != nil { 78 return x.JustAString 79 } 80 return "" 81 } 82 83 func (x *TestModel) GetADouble() float64 { 84 if x != nil { 85 return x.ADouble 86 } 87 return 0 88 } 89 90 func (x *TestModel) GetTestTime() *timestamppb.Timestamp { 91 if x != nil { 92 return x.TestTime 93 } 94 return nil 95 } 96 97 func (x *TestModel) GetTestMap() map[string]int32 { 98 if x != nil { 99 return x.TestMap 100 } 101 return nil 102 } 103 104 func (x *TestModel) GetTestList() []bool { 105 if x != nil { 106 return x.TestList 107 } 108 return nil 109 } 110 111 var File_kv_kvtest_test_model_proto protoreflect.FileDescriptor 112 113 var file_kv_kvtest_test_model_proto_rawDesc = []byte{ 114 0x0a, 0x1a, 0x6b, 0x76, 0x2f, 0x6b, 0x76, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 115 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x69, 0x6f, 116 0x2e, 0x74, 0x72, 0x65, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x6c, 0x61, 0x6b, 0x65, 0x66, 117 0x73, 0x2e, 0x6b, 0x76, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 118 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 119 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x02, 0x0a, 0x09, 0x54, 0x65, 120 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 121 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6a, 122 0x75, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 123 0x28, 0x09, 0x52, 0x0b, 0x6a, 0x75, 0x73, 0x74, 0x41, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 124 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 125 0x01, 0x52, 0x07, 0x61, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x74, 0x65, 126 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 127 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 128 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x74, 0x65, 0x73, 0x74, 0x54, 129 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x61, 0x70, 0x18, 130 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x69, 0x6f, 0x2e, 0x74, 0x72, 0x65, 0x65, 0x76, 131 0x65, 0x72, 0x73, 0x65, 0x2e, 0x6c, 0x61, 0x6b, 0x65, 0x66, 0x73, 0x2e, 0x6b, 0x76, 0x74, 0x65, 132 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x54, 0x65, 0x73, 133 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x74, 0x65, 0x73, 0x74, 0x4d, 134 0x61, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 135 0x06, 0x20, 0x03, 0x28, 0x08, 0x52, 0x08, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x1a, 136 0x3a, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 137 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 138 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 139 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x2b, 0x5a, 0x29, 0x67, 140 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x65, 0x65, 0x76, 0x65, 141 0x72, 0x73, 0x65, 0x2f, 0x6c, 0x61, 0x6b, 0x65, 0x66, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6b, 142 0x76, 0x2f, 0x6b, 0x76, 0x74, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 143 } 144 145 var ( 146 file_kv_kvtest_test_model_proto_rawDescOnce sync.Once 147 file_kv_kvtest_test_model_proto_rawDescData = file_kv_kvtest_test_model_proto_rawDesc 148 ) 149 150 func file_kv_kvtest_test_model_proto_rawDescGZIP() []byte { 151 file_kv_kvtest_test_model_proto_rawDescOnce.Do(func() { 152 file_kv_kvtest_test_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_kv_kvtest_test_model_proto_rawDescData) 153 }) 154 return file_kv_kvtest_test_model_proto_rawDescData 155 } 156 157 var file_kv_kvtest_test_model_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 158 var file_kv_kvtest_test_model_proto_goTypes = []interface{}{ 159 (*TestModel)(nil), // 0: io.treeverse.lakefs.kvtest.TestModel 160 nil, // 1: io.treeverse.lakefs.kvtest.TestModel.TestMapEntry 161 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 162 } 163 var file_kv_kvtest_test_model_proto_depIdxs = []int32{ 164 2, // 0: io.treeverse.lakefs.kvtest.TestModel.test_time:type_name -> google.protobuf.Timestamp 165 1, // 1: io.treeverse.lakefs.kvtest.TestModel.test_map:type_name -> io.treeverse.lakefs.kvtest.TestModel.TestMapEntry 166 2, // [2:2] is the sub-list for method output_type 167 2, // [2:2] is the sub-list for method input_type 168 2, // [2:2] is the sub-list for extension type_name 169 2, // [2:2] is the sub-list for extension extendee 170 0, // [0:2] is the sub-list for field type_name 171 } 172 173 func init() { file_kv_kvtest_test_model_proto_init() } 174 func file_kv_kvtest_test_model_proto_init() { 175 if File_kv_kvtest_test_model_proto != nil { 176 return 177 } 178 if !protoimpl.UnsafeEnabled { 179 file_kv_kvtest_test_model_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 180 switch v := v.(*TestModel); i { 181 case 0: 182 return &v.state 183 case 1: 184 return &v.sizeCache 185 case 2: 186 return &v.unknownFields 187 default: 188 return nil 189 } 190 } 191 } 192 type x struct{} 193 out := protoimpl.TypeBuilder{ 194 File: protoimpl.DescBuilder{ 195 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 196 RawDescriptor: file_kv_kvtest_test_model_proto_rawDesc, 197 NumEnums: 0, 198 NumMessages: 2, 199 NumExtensions: 0, 200 NumServices: 0, 201 }, 202 GoTypes: file_kv_kvtest_test_model_proto_goTypes, 203 DependencyIndexes: file_kv_kvtest_test_model_proto_depIdxs, 204 MessageInfos: file_kv_kvtest_test_model_proto_msgTypes, 205 }.Build() 206 File_kv_kvtest_test_model_proto = out.File 207 file_kv_kvtest_test_model_proto_rawDesc = nil 208 file_kv_kvtest_test_model_proto_goTypes = nil 209 file_kv_kvtest_test_model_proto_depIdxs = nil 210 }