// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.21.12 // source: reservation.proto // We can't change this to swapserverrpc, it would be a breaking change because // the package name is also contained in the HTTP URIs and old clients would // call the wrong endpoints. Luckily with the go_package option we can have // different golang and RPC package names to fix protobuf namespace conflicts. package swapserverrpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // ReservationProtocolVersion is the version of the reservation protocol. type ReservationProtocolVersion int32 const ( // RESERVATION_NONE is the default value and means that the reservation // protocol version is not set. ReservationProtocolVersion_RESERVATION_NONE ReservationProtocolVersion = 0 // RESERVATION_SERVER_NOTIFY is the first version of the reservation // protocol where the server notifies the client about a reservation. ReservationProtocolVersion_RESERVATION_SERVER_NOTIFY ReservationProtocolVersion = 1 ) // Enum value maps for ReservationProtocolVersion. var ( ReservationProtocolVersion_name = map[int32]string{ 0: "RESERVATION_NONE", 1: "RESERVATION_SERVER_NOTIFY", } ReservationProtocolVersion_value = map[string]int32{ "RESERVATION_NONE": 0, "RESERVATION_SERVER_NOTIFY": 1, } ) func (x ReservationProtocolVersion) Enum() *ReservationProtocolVersion { p := new(ReservationProtocolVersion) *p = x return p } func (x ReservationProtocolVersion) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (ReservationProtocolVersion) Descriptor() protoreflect.EnumDescriptor { return file_reservation_proto_enumTypes[0].Descriptor() } func (ReservationProtocolVersion) Type() protoreflect.EnumType { return &file_reservation_proto_enumTypes[0] } func (x ReservationProtocolVersion) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use ReservationProtocolVersion.Descriptor instead. func (ReservationProtocolVersion) EnumDescriptor() ([]byte, []int) { return file_reservation_proto_rawDescGZIP(), []int{0} } // ReservationNotificationRequest is an empty request sent from the client to // the server to open a stream to receive reservation notifications. type ReservationNotificationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // protocol_version is the maximum version the client supports. ProtocolVersion ReservationProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ReservationProtocolVersion" json:"protocol_version,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ReservationNotificationRequest) Reset() { *x = ReservationNotificationRequest{} mi := &file_reservation_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ReservationNotificationRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ReservationNotificationRequest) ProtoMessage() {} func (x *ReservationNotificationRequest) ProtoReflect() protoreflect.Message { mi := &file_reservation_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ReservationNotificationRequest.ProtoReflect.Descriptor instead. func (*ReservationNotificationRequest) Descriptor() ([]byte, []int) { return file_reservation_proto_rawDescGZIP(), []int{0} } func (x *ReservationNotificationRequest) GetProtocolVersion() ReservationProtocolVersion { if x != nil { return x.ProtocolVersion } return ReservationProtocolVersion_RESERVATION_NONE } // ServerReservationNotification is a notification sent from the server to the // client if the server wants to open a reservation. type ServerReservationNotification struct { state protoimpl.MessageState `protogen:"open.v1"` // reservation_id is the id of the reservation. ReservationId []byte `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` // value is the value of the reservation in satoshis. Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // server_key is the public key of the server. ServerKey []byte `protobuf:"bytes,3,opt,name=server_key,json=serverKey,proto3" json:"server_key,omitempty"` // expiry is the absolute expiry of the reservation. Expiry uint32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // protocol_version is the version of the reservation protocol. ProtocolVersion ReservationProtocolVersion `protobuf:"varint,5,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ReservationProtocolVersion" json:"protocol_version,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ServerReservationNotification) Reset() { *x = ServerReservationNotification{} mi := &file_reservation_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ServerReservationNotification) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerReservationNotification) ProtoMessage() {} func (x *ServerReservationNotification) ProtoReflect() protoreflect.Message { mi := &file_reservation_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerReservationNotification.ProtoReflect.Descriptor instead. func (*ServerReservationNotification) Descriptor() ([]byte, []int) { return file_reservation_proto_rawDescGZIP(), []int{1} } func (x *ServerReservationNotification) GetReservationId() []byte { if x != nil { return x.ReservationId } return nil } func (x *ServerReservationNotification) GetValue() uint64 { if x != nil { return x.Value } return 0 } func (x *ServerReservationNotification) GetServerKey() []byte { if x != nil { return x.ServerKey } return nil } func (x *ServerReservationNotification) GetExpiry() uint32 { if x != nil { return x.Expiry } return 0 } func (x *ServerReservationNotification) GetProtocolVersion() ReservationProtocolVersion { if x != nil { return x.ProtocolVersion } return ReservationProtocolVersion_RESERVATION_NONE } // ServerOpenReservationRequest is a request sent from the client to the server // to confirm a reservation opening. type ServerOpenReservationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // reservation_id is the id of the reservation. ReservationId []byte `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` // client_key is the public key of the client. ClientKey []byte `protobuf:"bytes,2,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ServerOpenReservationRequest) Reset() { *x = ServerOpenReservationRequest{} mi := &file_reservation_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ServerOpenReservationRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerOpenReservationRequest) ProtoMessage() {} func (x *ServerOpenReservationRequest) ProtoReflect() protoreflect.Message { mi := &file_reservation_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerOpenReservationRequest.ProtoReflect.Descriptor instead. func (*ServerOpenReservationRequest) Descriptor() ([]byte, []int) { return file_reservation_proto_rawDescGZIP(), []int{2} } func (x *ServerOpenReservationRequest) GetReservationId() []byte { if x != nil { return x.ReservationId } return nil } func (x *ServerOpenReservationRequest) GetClientKey() []byte { if x != nil { return x.ClientKey } return nil } // ServerOpenReservationResponse is a response sent from the server to the // client to confirm a reservation opening. type ServerOpenReservationResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ServerOpenReservationResponse) Reset() { *x = ServerOpenReservationResponse{} mi := &file_reservation_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ServerOpenReservationResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerOpenReservationResponse) ProtoMessage() {} func (x *ServerOpenReservationResponse) ProtoReflect() protoreflect.Message { mi := &file_reservation_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerOpenReservationResponse.ProtoReflect.Descriptor instead. func (*ServerOpenReservationResponse) Descriptor() ([]byte, []int) { return file_reservation_proto_rawDescGZIP(), []int{3} } var File_reservation_proto protoreflect.FileDescriptor const file_reservation_proto_rawDesc = "" + "\n" + "\x11reservation.proto\x12\alooprpc\"p\n" + "\x1eReservationNotificationRequest\x12N\n" + "\x10protocol_version\x18\x01 \x01(\x0e2#.looprpc.ReservationProtocolVersionR\x0fprotocolVersion\"\xe3\x01\n" + "\x1dServerReservationNotification\x12%\n" + "\x0ereservation_id\x18\x01 \x01(\fR\rreservationId\x12\x14\n" + "\x05value\x18\x02 \x01(\x04R\x05value\x12\x1d\n" + "\n" + "server_key\x18\x03 \x01(\fR\tserverKey\x12\x16\n" + "\x06expiry\x18\x04 \x01(\rR\x06expiry\x12N\n" + "\x10protocol_version\x18\x05 \x01(\x0e2#.looprpc.ReservationProtocolVersionR\x0fprotocolVersion\"d\n" + "\x1cServerOpenReservationRequest\x12%\n" + "\x0ereservation_id\x18\x01 \x01(\fR\rreservationId\x12\x1d\n" + "\n" + "client_key\x18\x02 \x01(\fR\tclientKey\"\x1f\n" + "\x1dServerOpenReservationResponse*Q\n" + "\x1aReservationProtocolVersion\x12\x14\n" + "\x10RESERVATION_NONE\x10\x00\x12\x1d\n" + "\x19RESERVATION_SERVER_NOTIFY\x10\x012\xef\x01\n" + "\x12ReservationService\x12w\n" + "\x1dReservationNotificationStream\x12'.looprpc.ReservationNotificationRequest\x1a&.looprpc.ServerReservationNotification\"\x03\x88\x02\x010\x01\x12`\n" + "\x0fOpenReservation\x12%.looprpc.ServerOpenReservationRequest\x1a&.looprpc.ServerOpenReservationResponseB-Z+github.com/lightninglabs/loop/swapserverrpcb\x06proto3" var ( file_reservation_proto_rawDescOnce sync.Once file_reservation_proto_rawDescData []byte ) func file_reservation_proto_rawDescGZIP() []byte { file_reservation_proto_rawDescOnce.Do(func() { file_reservation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reservation_proto_rawDesc), len(file_reservation_proto_rawDesc))) }) return file_reservation_proto_rawDescData } var file_reservation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_reservation_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_reservation_proto_goTypes = []any{ (ReservationProtocolVersion)(0), // 0: looprpc.ReservationProtocolVersion (*ReservationNotificationRequest)(nil), // 1: looprpc.ReservationNotificationRequest (*ServerReservationNotification)(nil), // 2: looprpc.ServerReservationNotification (*ServerOpenReservationRequest)(nil), // 3: looprpc.ServerOpenReservationRequest (*ServerOpenReservationResponse)(nil), // 4: looprpc.ServerOpenReservationResponse } var file_reservation_proto_depIdxs = []int32{ 0, // 0: looprpc.ReservationNotificationRequest.protocol_version:type_name -> looprpc.ReservationProtocolVersion 0, // 1: looprpc.ServerReservationNotification.protocol_version:type_name -> looprpc.ReservationProtocolVersion 1, // 2: looprpc.ReservationService.ReservationNotificationStream:input_type -> looprpc.ReservationNotificationRequest 3, // 3: looprpc.ReservationService.OpenReservation:input_type -> looprpc.ServerOpenReservationRequest 2, // 4: looprpc.ReservationService.ReservationNotificationStream:output_type -> looprpc.ServerReservationNotification 4, // 5: looprpc.ReservationService.OpenReservation:output_type -> looprpc.ServerOpenReservationResponse 4, // [4:6] is the sub-list for method output_type 2, // [2:4] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_reservation_proto_init() } func file_reservation_proto_init() { if File_reservation_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_reservation_proto_rawDesc), len(file_reservation_proto_rawDesc)), NumEnums: 1, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, GoTypes: file_reservation_proto_goTypes, DependencyIndexes: file_reservation_proto_depIdxs, EnumInfos: file_reservation_proto_enumTypes, MessageInfos: file_reservation_proto_msgTypes, }.Build() File_reservation_proto = out.File file_reservation_proto_goTypes = nil file_reservation_proto_depIdxs = nil }