github.com/diadata-org/diadata@v1.4.593/pkg/dia/helpers/signer/protoc/signer.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v3.19.4 5 // source: protoc/signer.proto 6 7 package signer 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // The request message containing the user's name. 24 type SignedData struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Signed []byte `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"` 30 } 31 32 func (x *SignedData) Reset() { 33 *x = SignedData{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_protoc_signer_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *SignedData) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*SignedData) ProtoMessage() {} 46 47 func (x *SignedData) ProtoReflect() protoreflect.Message { 48 mi := &file_protoc_signer_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use SignedData.ProtoReflect.Descriptor instead. 60 func (*SignedData) Descriptor() ([]byte, []int) { 61 return file_protoc_signer_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *SignedData) GetSigned() []byte { 65 if x != nil { 66 return x.Signed 67 } 68 return nil 69 } 70 71 type DataToSign struct { 72 state protoimpl.MessageState 73 sizeCache protoimpl.SizeCache 74 unknownFields protoimpl.UnknownFields 75 76 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 77 By string `protobuf:"bytes,2,opt,name=by,proto3" json:"by,omitempty"` 78 } 79 80 func (x *DataToSign) Reset() { 81 *x = DataToSign{} 82 if protoimpl.UnsafeEnabled { 83 mi := &file_protoc_signer_proto_msgTypes[1] 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 ms.StoreMessageInfo(mi) 86 } 87 } 88 89 func (x *DataToSign) String() string { 90 return protoimpl.X.MessageStringOf(x) 91 } 92 93 func (*DataToSign) ProtoMessage() {} 94 95 func (x *DataToSign) ProtoReflect() protoreflect.Message { 96 mi := &file_protoc_signer_proto_msgTypes[1] 97 if protoimpl.UnsafeEnabled && x != nil { 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 if ms.LoadMessageInfo() == nil { 100 ms.StoreMessageInfo(mi) 101 } 102 return ms 103 } 104 return mi.MessageOf(x) 105 } 106 107 // Deprecated: Use DataToSign.ProtoReflect.Descriptor instead. 108 func (*DataToSign) Descriptor() ([]byte, []int) { 109 return file_protoc_signer_proto_rawDescGZIP(), []int{1} 110 } 111 112 func (x *DataToSign) GetData() []byte { 113 if x != nil { 114 return x.Data 115 } 116 return nil 117 } 118 119 func (x *DataToSign) GetBy() string { 120 if x != nil { 121 return x.By 122 } 123 return "" 124 } 125 126 var File_protoc_signer_proto protoreflect.FileDescriptor 127 128 var file_protoc_signer_proto_rawDesc = []byte{ 129 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x2e, 130 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x22, 0x24, 0x0a, 0x0a, 0x53, 0x69, 131 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 132 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 133 0x22, 0x30, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x54, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x12, 134 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 135 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 136 0x62, 0x79, 0x32, 0x34, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x04, 137 0x53, 0x69, 0x67, 0x6e, 0x12, 0x0f, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 138 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x1a, 0x0f, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x69, 0x67, 0x6e, 139 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 140 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x69, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2d, 0x6f, 141 0x72, 0x67, 0x2f, 0x64, 0x69, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 142 0x69, 0x61, 0x2f, 0x68, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 143 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 144 } 145 146 var ( 147 file_protoc_signer_proto_rawDescOnce sync.Once 148 file_protoc_signer_proto_rawDescData = file_protoc_signer_proto_rawDesc 149 ) 150 151 func file_protoc_signer_proto_rawDescGZIP() []byte { 152 file_protoc_signer_proto_rawDescOnce.Do(func() { 153 file_protoc_signer_proto_rawDescData = protoimpl.X.CompressGZIP(file_protoc_signer_proto_rawDescData) 154 }) 155 return file_protoc_signer_proto_rawDescData 156 } 157 158 var file_protoc_signer_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 159 var file_protoc_signer_proto_goTypes = []interface{}{ 160 (*SignedData)(nil), // 0: rpc.SignedData 161 (*DataToSign)(nil), // 1: rpc.DataToSign 162 } 163 var file_protoc_signer_proto_depIdxs = []int32{ 164 1, // 0: rpc.Signer.Sign:input_type -> rpc.DataToSign 165 0, // 1: rpc.Signer.Sign:output_type -> rpc.SignedData 166 1, // [1:2] is the sub-list for method output_type 167 0, // [0:1] is the sub-list for method input_type 168 0, // [0:0] is the sub-list for extension type_name 169 0, // [0:0] is the sub-list for extension extendee 170 0, // [0:0] is the sub-list for field type_name 171 } 172 173 func init() { file_protoc_signer_proto_init() } 174 func file_protoc_signer_proto_init() { 175 if File_protoc_signer_proto != nil { 176 return 177 } 178 if !protoimpl.UnsafeEnabled { 179 file_protoc_signer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 180 switch v := v.(*SignedData); 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 file_protoc_signer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 192 switch v := v.(*DataToSign); i { 193 case 0: 194 return &v.state 195 case 1: 196 return &v.sizeCache 197 case 2: 198 return &v.unknownFields 199 default: 200 return nil 201 } 202 } 203 } 204 type x struct{} 205 out := protoimpl.TypeBuilder{ 206 File: protoimpl.DescBuilder{ 207 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 208 RawDescriptor: file_protoc_signer_proto_rawDesc, 209 NumEnums: 0, 210 NumMessages: 2, 211 NumExtensions: 0, 212 NumServices: 1, 213 }, 214 GoTypes: file_protoc_signer_proto_goTypes, 215 DependencyIndexes: file_protoc_signer_proto_depIdxs, 216 MessageInfos: file_protoc_signer_proto_msgTypes, 217 }.Build() 218 File_protoc_signer_proto = out.File 219 file_protoc_signer_proto_rawDesc = nil 220 file_protoc_signer_proto_goTypes = nil 221 file_protoc_signer_proto_depIdxs = nil 222 }