github.com/s7techlab/cckit@v0.10.5/state/mapping/testdata/schema/with_complex_id.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: mapping/testdata/schema/with_complex_id.proto 6 7 package schema 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 EntityWithComplexId struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Id *EntityComplexId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 30 SomeDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=some_date,json=someDate,proto3" json:"some_date,omitempty"` 31 } 32 33 func (x *EntityWithComplexId) Reset() { 34 *x = EntityWithComplexId{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_mapping_testdata_schema_with_complex_id_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *EntityWithComplexId) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*EntityWithComplexId) ProtoMessage() {} 47 48 func (x *EntityWithComplexId) ProtoReflect() protoreflect.Message { 49 mi := &file_mapping_testdata_schema_with_complex_id_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58 } 59 60 // Deprecated: Use EntityWithComplexId.ProtoReflect.Descriptor instead. 61 func (*EntityWithComplexId) Descriptor() ([]byte, []int) { 62 return file_mapping_testdata_schema_with_complex_id_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *EntityWithComplexId) GetId() *EntityComplexId { 66 if x != nil { 67 return x.Id 68 } 69 return nil 70 } 71 72 func (x *EntityWithComplexId) GetSomeDate() *timestamppb.Timestamp { 73 if x != nil { 74 return x.SomeDate 75 } 76 return nil 77 } 78 79 // EntityComplexId 80 type EntityComplexId struct { 81 state protoimpl.MessageState 82 sizeCache protoimpl.SizeCache 83 unknownFields protoimpl.UnknownFields 84 85 IdPart1 []string `protobuf:"bytes,1,rep,name=id_part1,json=idPart1,proto3" json:"id_part1,omitempty"` 86 IdPart2 string `protobuf:"bytes,2,opt,name=id_part2,json=idPart2,proto3" json:"id_part2,omitempty"` 87 IdPart3 *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=id_part3,json=idPart3,proto3" json:"id_part3,omitempty"` 88 } 89 90 func (x *EntityComplexId) Reset() { 91 *x = EntityComplexId{} 92 if protoimpl.UnsafeEnabled { 93 mi := &file_mapping_testdata_schema_with_complex_id_proto_msgTypes[1] 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 ms.StoreMessageInfo(mi) 96 } 97 } 98 99 func (x *EntityComplexId) String() string { 100 return protoimpl.X.MessageStringOf(x) 101 } 102 103 func (*EntityComplexId) ProtoMessage() {} 104 105 func (x *EntityComplexId) ProtoReflect() protoreflect.Message { 106 mi := &file_mapping_testdata_schema_with_complex_id_proto_msgTypes[1] 107 if protoimpl.UnsafeEnabled && x != nil { 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 if ms.LoadMessageInfo() == nil { 110 ms.StoreMessageInfo(mi) 111 } 112 return ms 113 } 114 return mi.MessageOf(x) 115 } 116 117 // Deprecated: Use EntityComplexId.ProtoReflect.Descriptor instead. 118 func (*EntityComplexId) Descriptor() ([]byte, []int) { 119 return file_mapping_testdata_schema_with_complex_id_proto_rawDescGZIP(), []int{1} 120 } 121 122 func (x *EntityComplexId) GetIdPart1() []string { 123 if x != nil { 124 return x.IdPart1 125 } 126 return nil 127 } 128 129 func (x *EntityComplexId) GetIdPart2() string { 130 if x != nil { 131 return x.IdPart2 132 } 133 return "" 134 } 135 136 func (x *EntityComplexId) GetIdPart3() *timestamppb.Timestamp { 137 if x != nil { 138 return x.IdPart3 139 } 140 return nil 141 } 142 143 var File_mapping_testdata_schema_with_complex_id_proto protoreflect.FileDescriptor 144 145 var file_mapping_testdata_schema_with_complex_id_proto_rawDesc = []byte{ 146 0x0a, 0x2d, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 147 0x74, 0x61, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x63, 148 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 149 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 150 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 151 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x13, 0x45, 0x6e, 0x74, 0x69, 152 0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x49, 0x64, 0x12, 153 0x27, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x63, 154 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 155 0x65, 0x78, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x6f, 0x6d, 0x65, 156 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 157 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 158 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x73, 0x6f, 0x6d, 0x65, 0x44, 0x61, 0x74, 159 0x65, 0x22, 0x7e, 0x0a, 0x0f, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 160 0x65, 0x78, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x31, 161 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x50, 0x61, 0x72, 0x74, 0x31, 0x12, 162 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 163 0x09, 0x52, 0x07, 0x69, 0x64, 0x50, 0x61, 0x72, 0x74, 0x32, 0x12, 0x35, 0x0a, 0x08, 0x69, 0x64, 164 0x5f, 0x70, 0x61, 0x72, 0x74, 0x33, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 165 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 166 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x69, 0x64, 0x50, 0x61, 0x72, 0x74, 167 0x33, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 168 0x73, 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 169 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 170 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, 0x70, 171 0x72, 0x6f, 0x74, 0x6f, 0x33, 172 } 173 174 var ( 175 file_mapping_testdata_schema_with_complex_id_proto_rawDescOnce sync.Once 176 file_mapping_testdata_schema_with_complex_id_proto_rawDescData = file_mapping_testdata_schema_with_complex_id_proto_rawDesc 177 ) 178 179 func file_mapping_testdata_schema_with_complex_id_proto_rawDescGZIP() []byte { 180 file_mapping_testdata_schema_with_complex_id_proto_rawDescOnce.Do(func() { 181 file_mapping_testdata_schema_with_complex_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_mapping_testdata_schema_with_complex_id_proto_rawDescData) 182 }) 183 return file_mapping_testdata_schema_with_complex_id_proto_rawDescData 184 } 185 186 var file_mapping_testdata_schema_with_complex_id_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 187 var file_mapping_testdata_schema_with_complex_id_proto_goTypes = []interface{}{ 188 (*EntityWithComplexId)(nil), // 0: schema.EntityWithComplexId 189 (*EntityComplexId)(nil), // 1: schema.EntityComplexId 190 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 191 } 192 var file_mapping_testdata_schema_with_complex_id_proto_depIdxs = []int32{ 193 1, // 0: schema.EntityWithComplexId.id:type_name -> schema.EntityComplexId 194 2, // 1: schema.EntityWithComplexId.some_date:type_name -> google.protobuf.Timestamp 195 2, // 2: schema.EntityComplexId.id_part3:type_name -> google.protobuf.Timestamp 196 3, // [3:3] is the sub-list for method output_type 197 3, // [3:3] is the sub-list for method input_type 198 3, // [3:3] is the sub-list for extension type_name 199 3, // [3:3] is the sub-list for extension extendee 200 0, // [0:3] is the sub-list for field type_name 201 } 202 203 func init() { file_mapping_testdata_schema_with_complex_id_proto_init() } 204 func file_mapping_testdata_schema_with_complex_id_proto_init() { 205 if File_mapping_testdata_schema_with_complex_id_proto != nil { 206 return 207 } 208 if !protoimpl.UnsafeEnabled { 209 file_mapping_testdata_schema_with_complex_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*EntityWithComplexId); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 file_mapping_testdata_schema_with_complex_id_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 222 switch v := v.(*EntityComplexId); i { 223 case 0: 224 return &v.state 225 case 1: 226 return &v.sizeCache 227 case 2: 228 return &v.unknownFields 229 default: 230 return nil 231 } 232 } 233 } 234 type x struct{} 235 out := protoimpl.TypeBuilder{ 236 File: protoimpl.DescBuilder{ 237 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 238 RawDescriptor: file_mapping_testdata_schema_with_complex_id_proto_rawDesc, 239 NumEnums: 0, 240 NumMessages: 2, 241 NumExtensions: 0, 242 NumServices: 0, 243 }, 244 GoTypes: file_mapping_testdata_schema_with_complex_id_proto_goTypes, 245 DependencyIndexes: file_mapping_testdata_schema_with_complex_id_proto_depIdxs, 246 MessageInfos: file_mapping_testdata_schema_with_complex_id_proto_msgTypes, 247 }.Build() 248 File_mapping_testdata_schema_with_complex_id_proto = out.File 249 file_mapping_testdata_schema_with_complex_id_proto_rawDesc = nil 250 file_mapping_testdata_schema_with_complex_id_proto_goTypes = nil 251 file_mapping_testdata_schema_with_complex_id_proto_depIdxs = nil 252 }