github.com/s7techlab/cckit@v0.10.5/state/mapping/testdata/schema/with_slice_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_slice_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 EntityWithSliceId struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Id []string `protobuf:"bytes,1,rep,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 *EntityWithSliceId) Reset() { 34 *x = EntityWithSliceId{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_mapping_testdata_schema_with_slice_id_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *EntityWithSliceId) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*EntityWithSliceId) ProtoMessage() {} 47 48 func (x *EntityWithSliceId) ProtoReflect() protoreflect.Message { 49 mi := &file_mapping_testdata_schema_with_slice_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 EntityWithSliceId.ProtoReflect.Descriptor instead. 61 func (*EntityWithSliceId) Descriptor() ([]byte, []int) { 62 return file_mapping_testdata_schema_with_slice_id_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *EntityWithSliceId) GetId() []string { 66 if x != nil { 67 return x.Id 68 } 69 return nil 70 } 71 72 func (x *EntityWithSliceId) GetSomeDate() *timestamppb.Timestamp { 73 if x != nil { 74 return x.SomeDate 75 } 76 return nil 77 } 78 79 var File_mapping_testdata_schema_with_slice_id_proto protoreflect.FileDescriptor 80 81 var file_mapping_testdata_schema_with_slice_id_proto_rawDesc = []byte{ 82 0x0a, 0x2b, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 83 0x74, 0x61, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x73, 84 0x6c, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 85 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 86 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 87 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x11, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 88 0x57, 0x69, 0x74, 0x68, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 89 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x09, 0x73, 90 0x6f, 0x6d, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 91 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 92 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x73, 0x6f, 0x6d, 0x65, 93 0x44, 0x61, 0x74, 0x65, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 94 0x6f, 0x6d, 0x2f, 0x73, 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 95 0x69, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 96 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 97 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 98 } 99 100 var ( 101 file_mapping_testdata_schema_with_slice_id_proto_rawDescOnce sync.Once 102 file_mapping_testdata_schema_with_slice_id_proto_rawDescData = file_mapping_testdata_schema_with_slice_id_proto_rawDesc 103 ) 104 105 func file_mapping_testdata_schema_with_slice_id_proto_rawDescGZIP() []byte { 106 file_mapping_testdata_schema_with_slice_id_proto_rawDescOnce.Do(func() { 107 file_mapping_testdata_schema_with_slice_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_mapping_testdata_schema_with_slice_id_proto_rawDescData) 108 }) 109 return file_mapping_testdata_schema_with_slice_id_proto_rawDescData 110 } 111 112 var file_mapping_testdata_schema_with_slice_id_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 113 var file_mapping_testdata_schema_with_slice_id_proto_goTypes = []interface{}{ 114 (*EntityWithSliceId)(nil), // 0: schema.EntityWithSliceId 115 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp 116 } 117 var file_mapping_testdata_schema_with_slice_id_proto_depIdxs = []int32{ 118 1, // 0: schema.EntityWithSliceId.some_date:type_name -> google.protobuf.Timestamp 119 1, // [1:1] is the sub-list for method output_type 120 1, // [1:1] is the sub-list for method input_type 121 1, // [1:1] is the sub-list for extension type_name 122 1, // [1:1] is the sub-list for extension extendee 123 0, // [0:1] is the sub-list for field type_name 124 } 125 126 func init() { file_mapping_testdata_schema_with_slice_id_proto_init() } 127 func file_mapping_testdata_schema_with_slice_id_proto_init() { 128 if File_mapping_testdata_schema_with_slice_id_proto != nil { 129 return 130 } 131 if !protoimpl.UnsafeEnabled { 132 file_mapping_testdata_schema_with_slice_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 133 switch v := v.(*EntityWithSliceId); i { 134 case 0: 135 return &v.state 136 case 1: 137 return &v.sizeCache 138 case 2: 139 return &v.unknownFields 140 default: 141 return nil 142 } 143 } 144 } 145 type x struct{} 146 out := protoimpl.TypeBuilder{ 147 File: protoimpl.DescBuilder{ 148 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 149 RawDescriptor: file_mapping_testdata_schema_with_slice_id_proto_rawDesc, 150 NumEnums: 0, 151 NumMessages: 1, 152 NumExtensions: 0, 153 NumServices: 0, 154 }, 155 GoTypes: file_mapping_testdata_schema_with_slice_id_proto_goTypes, 156 DependencyIndexes: file_mapping_testdata_schema_with_slice_id_proto_depIdxs, 157 MessageInfos: file_mapping_testdata_schema_with_slice_id_proto_msgTypes, 158 }.Build() 159 File_mapping_testdata_schema_with_slice_id_proto = out.File 160 file_mapping_testdata_schema_with_slice_id_proto_rawDesc = nil 161 file_mapping_testdata_schema_with_slice_id_proto_goTypes = nil 162 file_mapping_testdata_schema_with_slice_id_proto_depIdxs = nil 163 }