File
Blob: spec/protocol/pki.pb.go
| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.36.11 |
| 4 | // protoc v7.34.0 |
| 5 | // source: spec/proto/pki.proto |
| 6 | |
| 7 | package protocol |
| 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 | unsafe "unsafe" |
| 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 CertificateRequest struct { |
| 25 | state protoimpl.MessageState `protogen:"open.v1"` |
| 26 | Proof *ProofOfWork `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` |
| 27 | unknownFields protoimpl.UnknownFields |
| 28 | sizeCache protoimpl.SizeCache |
| 29 | } |
| 30 | |
| 31 | func (x *CertificateRequest) Reset() { |
| 32 | *x = CertificateRequest{} |
| 33 | mi := &file_spec_proto_pki_proto_msgTypes[0] |
| 34 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 35 | ms.StoreMessageInfo(mi) |
| 36 | } |
| 37 | |
| 38 | func (x *CertificateRequest) String() string { |
| 39 | return protoimpl.X.MessageStringOf(x) |
| 40 | } |
| 41 | |
| 42 | func (*CertificateRequest) ProtoMessage() {} |
| 43 | |
| 44 | func (x *CertificateRequest) ProtoReflect() protoreflect.Message { |
| 45 | mi := &file_spec_proto_pki_proto_msgTypes[0] |
| 46 | if x != nil { |
| 47 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 48 | if ms.LoadMessageInfo() == nil { |
| 49 | ms.StoreMessageInfo(mi) |
| 50 | } |
| 51 | return ms |
| 52 | } |
| 53 | return mi.MessageOf(x) |
| 54 | } |
| 55 | |
| 56 | // Deprecated: Use CertificateRequest.ProtoReflect.Descriptor instead. |
| 57 | func (*CertificateRequest) Descriptor() ([]byte, []int) { |
| 58 | return file_spec_proto_pki_proto_rawDescGZIP(), []int{0} |
| 59 | } |
| 60 | |
| 61 | func (x *CertificateRequest) GetProof() *ProofOfWork { |
| 62 | if x != nil { |
| 63 | return x.Proof |
| 64 | } |
| 65 | return nil |
| 66 | } |
| 67 | |
| 68 | type CertificateRenewalRequest struct { |
| 69 | state protoimpl.MessageState `protogen:"open.v1"` |
| 70 | Proof *ProofOfWork `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` |
| 71 | CurrentCertDer []byte `protobuf:"bytes,2,opt,name=current_cert_der,json=currentCertDer,proto3" json:"current_cert_der,omitempty"` |
| 72 | unknownFields protoimpl.UnknownFields |
| 73 | sizeCache protoimpl.SizeCache |
| 74 | } |
| 75 | |
| 76 | func (x *CertificateRenewalRequest) Reset() { |
| 77 | *x = CertificateRenewalRequest{} |
| 78 | mi := &file_spec_proto_pki_proto_msgTypes[1] |
| 79 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 80 | ms.StoreMessageInfo(mi) |
| 81 | } |
| 82 | |
| 83 | func (x *CertificateRenewalRequest) String() string { |
| 84 | return protoimpl.X.MessageStringOf(x) |
| 85 | } |
| 86 | |
| 87 | func (*CertificateRenewalRequest) ProtoMessage() {} |
| 88 | |
| 89 | func (x *CertificateRenewalRequest) ProtoReflect() protoreflect.Message { |
| 90 | mi := &file_spec_proto_pki_proto_msgTypes[1] |
| 91 | if x != nil { |
| 92 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 93 | if ms.LoadMessageInfo() == nil { |
| 94 | ms.StoreMessageInfo(mi) |
| 95 | } |
| 96 | return ms |
| 97 | } |
| 98 | return mi.MessageOf(x) |
| 99 | } |
| 100 | |
| 101 | // Deprecated: Use CertificateRenewalRequest.ProtoReflect.Descriptor instead. |
| 102 | func (*CertificateRenewalRequest) Descriptor() ([]byte, []int) { |
| 103 | return file_spec_proto_pki_proto_rawDescGZIP(), []int{1} |
| 104 | } |
| 105 | |
| 106 | func (x *CertificateRenewalRequest) GetProof() *ProofOfWork { |
| 107 | if x != nil { |
| 108 | return x.Proof |
| 109 | } |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | func (x *CertificateRenewalRequest) GetCurrentCertDer() []byte { |
| 114 | if x != nil { |
| 115 | return x.CurrentCertDer |
| 116 | } |
| 117 | return nil |
| 118 | } |
| 119 | |
| 120 | type CertificateResponse struct { |
| 121 | state protoimpl.MessageState `protogen:"open.v1"` |
| 122 | CertDer []byte `protobuf:"bytes,1,opt,name=cert_der,json=certDer,proto3" json:"cert_der,omitempty"` |
| 123 | CertPem []byte `protobuf:"bytes,2,opt,name=cert_pem,json=certPem,proto3" json:"cert_pem,omitempty"` |
| 124 | unknownFields protoimpl.UnknownFields |
| 125 | sizeCache protoimpl.SizeCache |
| 126 | } |
| 127 | |
| 128 | func (x *CertificateResponse) Reset() { |
| 129 | *x = CertificateResponse{} |
| 130 | mi := &file_spec_proto_pki_proto_msgTypes[2] |
| 131 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 132 | ms.StoreMessageInfo(mi) |
| 133 | } |
| 134 | |
| 135 | func (x *CertificateResponse) String() string { |
| 136 | return protoimpl.X.MessageStringOf(x) |
| 137 | } |
| 138 | |
| 139 | func (*CertificateResponse) ProtoMessage() {} |
| 140 | |
| 141 | func (x *CertificateResponse) ProtoReflect() protoreflect.Message { |
| 142 | mi := &file_spec_proto_pki_proto_msgTypes[2] |
| 143 | if x != nil { |
| 144 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 145 | if ms.LoadMessageInfo() == nil { |
| 146 | ms.StoreMessageInfo(mi) |
| 147 | } |
| 148 | return ms |
| 149 | } |
| 150 | return mi.MessageOf(x) |
| 151 | } |
| 152 | |
| 153 | // Deprecated: Use CertificateResponse.ProtoReflect.Descriptor instead. |
| 154 | func (*CertificateResponse) Descriptor() ([]byte, []int) { |
| 155 | return file_spec_proto_pki_proto_rawDescGZIP(), []int{2} |
| 156 | } |
| 157 | |
| 158 | func (x *CertificateResponse) GetCertDer() []byte { |
| 159 | if x != nil { |
| 160 | return x.CertDer |
| 161 | } |
| 162 | return nil |
| 163 | } |
| 164 | |
| 165 | func (x *CertificateResponse) GetCertPem() []byte { |
| 166 | if x != nil { |
| 167 | return x.CertPem |
| 168 | } |
| 169 | return nil |
| 170 | } |
| 171 | |
| 172 | var File_spec_proto_pki_proto protoreflect.FileDescriptor |
| 173 | |
| 174 | const file_spec_proto_pki_proto_rawDesc = "" + |
| 175 | "\n" + |
| 176 | "\x14spec/proto/pki.proto\x12\bprotocol\x1a\x14spec/proto/pow.proto\"A\n" + |
| 177 | "\x12CertificateRequest\x12+\n" + |
| 178 | "\x05proof\x18\x01 \x01(\v2\x15.protocol.ProofOfWorkR\x05proof\"r\n" + |
| 179 | "\x19CertificateRenewalRequest\x12+\n" + |
| 180 | "\x05proof\x18\x01 \x01(\v2\x15.protocol.ProofOfWorkR\x05proof\x12(\n" + |
| 181 | "\x10current_cert_der\x18\x02 \x01(\fR\x0ecurrentCertDer\"K\n" + |
| 182 | "\x13CertificateResponse\x12\x19\n" + |
| 183 | "\bcert_der\x18\x01 \x01(\fR\acertDer\x12\x19\n" + |
| 184 | "\bcert_pem\x18\x02 \x01(\fR\acertPem2\xb7\x01\n" + |
| 185 | "\n" + |
| 186 | "PKIService\x12Q\n" + |
| 187 | "\x12RequestCertificate\x12\x1c.protocol.CertificateRequest\x1a\x1d.protocol.CertificateResponse\x12V\n" + |
| 188 | "\x10RenewCertificate\x12#.protocol.CertificateRenewalRequest\x1a\x1d.protocol.CertificateResponseB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3" |
| 189 | |
| 190 | var ( |
| 191 | file_spec_proto_pki_proto_rawDescOnce sync.Once |
| 192 | file_spec_proto_pki_proto_rawDescData []byte |
| 193 | ) |
| 194 | |
| 195 | func file_spec_proto_pki_proto_rawDescGZIP() []byte { |
| 196 | file_spec_proto_pki_proto_rawDescOnce.Do(func() { |
| 197 | file_spec_proto_pki_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_pki_proto_rawDesc), len(file_spec_proto_pki_proto_rawDesc))) |
| 198 | }) |
| 199 | return file_spec_proto_pki_proto_rawDescData |
| 200 | } |
| 201 | |
| 202 | var file_spec_proto_pki_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 203 | var file_spec_proto_pki_proto_goTypes = []any{ |
| 204 | (*CertificateRequest)(nil), // 0: protocol.CertificateRequest |
| 205 | (*CertificateRenewalRequest)(nil), // 1: protocol.CertificateRenewalRequest |
| 206 | (*CertificateResponse)(nil), // 2: protocol.CertificateResponse |
| 207 | (*ProofOfWork)(nil), // 3: protocol.ProofOfWork |
| 208 | } |
| 209 | var file_spec_proto_pki_proto_depIdxs = []int32{ |
| 210 | 3, // 0: protocol.CertificateRequest.proof:type_name -> protocol.ProofOfWork |
| 211 | 3, // 1: protocol.CertificateRenewalRequest.proof:type_name -> protocol.ProofOfWork |
| 212 | 0, // 2: protocol.PKIService.RequestCertificate:input_type -> protocol.CertificateRequest |
| 213 | 1, // 3: protocol.PKIService.RenewCertificate:input_type -> protocol.CertificateRenewalRequest |
| 214 | 2, // 4: protocol.PKIService.RequestCertificate:output_type -> protocol.CertificateResponse |
| 215 | 2, // 5: protocol.PKIService.RenewCertificate:output_type -> protocol.CertificateResponse |
| 216 | 4, // [4:6] is the sub-list for method output_type |
| 217 | 2, // [2:4] is the sub-list for method input_type |
| 218 | 2, // [2:2] is the sub-list for extension type_name |
| 219 | 2, // [2:2] is the sub-list for extension extendee |
| 220 | 0, // [0:2] is the sub-list for field type_name |
| 221 | } |
| 222 | |
| 223 | func init() { file_spec_proto_pki_proto_init() } |
| 224 | func file_spec_proto_pki_proto_init() { |
| 225 | if File_spec_proto_pki_proto != nil { |
| 226 | return |
| 227 | } |
| 228 | file_spec_proto_pow_proto_init() |
| 229 | type x struct{} |
| 230 | out := protoimpl.TypeBuilder{ |
| 231 | File: protoimpl.DescBuilder{ |
| 232 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 233 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_pki_proto_rawDesc), len(file_spec_proto_pki_proto_rawDesc)), |
| 234 | NumEnums: 0, |
| 235 | NumMessages: 3, |
| 236 | NumExtensions: 0, |
| 237 | NumServices: 1, |
| 238 | }, |
| 239 | GoTypes: file_spec_proto_pki_proto_goTypes, |
| 240 | DependencyIndexes: file_spec_proto_pki_proto_depIdxs, |
| 241 | MessageInfos: file_spec_proto_pki_proto_msgTypes, |
| 242 | }.Build() |
| 243 | File_spec_proto_pki_proto = out.File |
| 244 | file_spec_proto_pki_proto_goTypes = nil |
| 245 | file_spec_proto_pki_proto_depIdxs = nil |
| 246 | } |