// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.6.1 // source: server.proto package looprpc import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 //* //This enum defines the protocol versions that clients may adhere to. Note that //this is not a flagged enum. If a particular protocol version adds a feature, //then in general all the preceding features are also supported. Exception to this //is when features get deprecated. type ProtocolVersion int32 const ( /// No protocol version reported at all. ProtocolVersion_LEGACY ProtocolVersion = 0 /// Client may attempt to send the loop out payment in multiple parts. ProtocolVersion_MULTI_LOOP_OUT ProtocolVersion = 1 //* //Loop will use native segwit (P2WSH) htlcs by default, while externally //published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well. ProtocolVersion_NATIVE_SEGWIT_LOOP_IN ProtocolVersion = 2 // //Once the on chain loop out htlc is confirmed, the client can push the swap //preimage to the server to speed up claim of their off chain htlc (acquiring //incoming liquidity more quickly than if the server waited for the on chain //claim tx). ProtocolVersion_PREIMAGE_PUSH_LOOP_OUT ProtocolVersion = 3 // The client will propose a cltv expiry height for loop out. ProtocolVersion_USER_EXPIRY_LOOP_OUT ProtocolVersion = 4 // The client will use the new v2 HTLC scripts. ProtocolVersion_HTLC_V2 ProtocolVersion = 5 // The client creates a probe invoice so that the server can perform a // multi-path probe. ProtocolVersion_MULTI_LOOP_IN ProtocolVersion = 6 // The client supports loop out swap cancelation. ProtocolVersion_LOOP_OUT_CANCEL ProtocolVersion = 7 ) // Enum value maps for ProtocolVersion. var ( ProtocolVersion_name = map[int32]string{ 0: "LEGACY", 1: "MULTI_LOOP_OUT", 2: "NATIVE_SEGWIT_LOOP_IN", 3: "PREIMAGE_PUSH_LOOP_OUT", 4: "USER_EXPIRY_LOOP_OUT", 5: "HTLC_V2", 6: "MULTI_LOOP_IN", 7: "LOOP_OUT_CANCEL", } ProtocolVersion_value = map[string]int32{ "LEGACY": 0, "MULTI_LOOP_OUT": 1, "NATIVE_SEGWIT_LOOP_IN": 2, "PREIMAGE_PUSH_LOOP_OUT": 3, "USER_EXPIRY_LOOP_OUT": 4, "HTLC_V2": 5, "MULTI_LOOP_IN": 6, "LOOP_OUT_CANCEL": 7, } ) func (x ProtocolVersion) Enum() *ProtocolVersion { p := new(ProtocolVersion) *p = x return p } func (x ProtocolVersion) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (ProtocolVersion) Descriptor() protoreflect.EnumDescriptor { return file_server_proto_enumTypes[0].Descriptor() } func (ProtocolVersion) Type() protoreflect.EnumType { return &file_server_proto_enumTypes[0] } func (x ProtocolVersion) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use ProtocolVersion.Descriptor instead. func (ProtocolVersion) EnumDescriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{0} } // ServerSwapState is an enum which represents all the states a swap may have // from the server's perspective. type ServerSwapState int32 const ( // The server has created the swap. ServerSwapState_SERVER_INITIATED ServerSwapState = 0 // The server has published the loop out on chain htlc. ServerSwapState_SERVER_HTLC_PUBLISHED ServerSwapState = 1 // The swap completed successfully. ServerSwapState_SERVER_SUCCESS ServerSwapState = 2 // //The swap failed for a reason that is unknown to the server, this is only //set for older swaps. ServerSwapState_SERVER_FAILED_UNKNOWN ServerSwapState = 3 // No htlc was confirmed in time for the loop in swap to complete. ServerSwapState_SERVER_FAILED_NO_HTLC ServerSwapState = 4 // A loop in htlc confirmed on chain, but it did not have the correct value. ServerSwapState_SERVER_FAILED_INVALID_HTLC_AMOUNT ServerSwapState = 5 // //We did not succeed in completing the loop in off chain payment before the //timeout. ServerSwapState_SERVER_FAILED_OFF_CHAIN_TIMEOUT ServerSwapState = 6 // The on chain timeout was claimed. ServerSwapState_SERVER_FAILED_TIMEOUT ServerSwapState = 7 // //The server could not publish the loop out on chain htlc before the deadline //provided. ServerSwapState_SERVER_FAILED_SWAP_DEADLINE ServerSwapState = 8 // The server could not publish the loop out on chain htlc. ServerSwapState_SERVER_FAILED_HTLC_PUBLICATION ServerSwapState = 9 // The server has published the loop out on chain timeout tx. ServerSwapState_SERVER_TIMEOUT_PUBLISHED ServerSwapState = 10 // The swap has failed for unknown reasons, it will not be completed. ServerSwapState_SERVER_UNEXPECTED_FAILURE ServerSwapState = 11 // The swap htlc has confirmed on chain. ServerSwapState_SERVER_HTLC_CONFIRMED ServerSwapState = 12 // The client canceled the swap because they could not route the prepay. ServerSwapState_SERVER_CLIENT_PREPAY_CANCEL ServerSwapState = 13 // The client canceled the swap because they could not route the swap // payment. ServerSwapState_SERVER_CLIENT_INVOICE_CANCEL ServerSwapState = 14 ) // Enum value maps for ServerSwapState. var ( ServerSwapState_name = map[int32]string{ 0: "SERVER_INITIATED", 1: "SERVER_HTLC_PUBLISHED", 2: "SERVER_SUCCESS", 3: "SERVER_FAILED_UNKNOWN", 4: "SERVER_FAILED_NO_HTLC", 5: "SERVER_FAILED_INVALID_HTLC_AMOUNT", 6: "SERVER_FAILED_OFF_CHAIN_TIMEOUT", 7: "SERVER_FAILED_TIMEOUT", 8: "SERVER_FAILED_SWAP_DEADLINE", 9: "SERVER_FAILED_HTLC_PUBLICATION", 10: "SERVER_TIMEOUT_PUBLISHED", 11: "SERVER_UNEXPECTED_FAILURE", 12: "SERVER_HTLC_CONFIRMED", 13: "SERVER_CLIENT_PREPAY_CANCEL", 14: "SERVER_CLIENT_INVOICE_CANCEL", } ServerSwapState_value = map[string]int32{ "SERVER_INITIATED": 0, "SERVER_HTLC_PUBLISHED": 1, "SERVER_SUCCESS": 2, "SERVER_FAILED_UNKNOWN": 3, "SERVER_FAILED_NO_HTLC": 4, "SERVER_FAILED_INVALID_HTLC_AMOUNT": 5, "SERVER_FAILED_OFF_CHAIN_TIMEOUT": 6, "SERVER_FAILED_TIMEOUT": 7, "SERVER_FAILED_SWAP_DEADLINE": 8, "SERVER_FAILED_HTLC_PUBLICATION": 9, "SERVER_TIMEOUT_PUBLISHED": 10, "SERVER_UNEXPECTED_FAILURE": 11, "SERVER_HTLC_CONFIRMED": 12, "SERVER_CLIENT_PREPAY_CANCEL": 13, "SERVER_CLIENT_INVOICE_CANCEL": 14, } ) func (x ServerSwapState) Enum() *ServerSwapState { p := new(ServerSwapState) *p = x return p } func (x ServerSwapState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (ServerSwapState) Descriptor() protoreflect.EnumDescriptor { return file_server_proto_enumTypes[1].Descriptor() } func (ServerSwapState) Type() protoreflect.EnumType { return &file_server_proto_enumTypes[1] } func (x ServerSwapState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use ServerSwapState.Descriptor instead. func (ServerSwapState) EnumDescriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{1} } type RoutePaymentType int32 const ( // No reason, used to distinguish from the default value. RoutePaymentType_ROUTE_UNKNOWN RoutePaymentType = 0 // Prepay route indicates that the swap was canceled because the client // could not find a route to the server for the prepay. RoutePaymentType_PREPAY_ROUTE RoutePaymentType = 1 // Invoice route indicates that the swap was canceled because the client // could not find a route to the server for the swap invoice. RoutePaymentType_INVOICE_ROUTE RoutePaymentType = 2 ) // Enum value maps for RoutePaymentType. var ( RoutePaymentType_name = map[int32]string{ 0: "ROUTE_UNKNOWN", 1: "PREPAY_ROUTE", 2: "INVOICE_ROUTE", } RoutePaymentType_value = map[string]int32{ "ROUTE_UNKNOWN": 0, "PREPAY_ROUTE": 1, "INVOICE_ROUTE": 2, } ) func (x RoutePaymentType) Enum() *RoutePaymentType { p := new(RoutePaymentType) *p = x return p } func (x RoutePaymentType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (RoutePaymentType) Descriptor() protoreflect.EnumDescriptor { return file_server_proto_enumTypes[2].Descriptor() } func (RoutePaymentType) Type() protoreflect.EnumType { return &file_server_proto_enumTypes[2] } func (x RoutePaymentType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use RoutePaymentType.Descriptor instead. func (RoutePaymentType) EnumDescriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{2} } // PaymentFailureReason describes the reason that a payment failed. These // values are copied directly from lnd. type PaymentFailureReason int32 const ( // //Payment isn't failed (yet). PaymentFailureReason_LND_FAILURE_REASON_NONE PaymentFailureReason = 0 // //There are more routes to try, but the payment timeout was exceeded. PaymentFailureReason_LND_FAILURE_REASON_TIMEOUT PaymentFailureReason = 1 // //All possible routes were tried and failed permanently. Or were no //routes to the destination at all. PaymentFailureReason_LND_FAILURE_REASON_NO_ROUTE PaymentFailureReason = 2 // //A non-recoverable error has occured. PaymentFailureReason_LND_FAILURE_REASON_ERROR PaymentFailureReason = 3 // //Payment details incorrect (unknown hash, invalid amt or //invalid final cltv delta) PaymentFailureReason_LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS PaymentFailureReason = 4 // //Insufficient local balance. PaymentFailureReason_LND_FAILURE_REASON_INSUFFICIENT_BALANCE PaymentFailureReason = 5 ) // Enum value maps for PaymentFailureReason. var ( PaymentFailureReason_name = map[int32]string{ 0: "LND_FAILURE_REASON_NONE", 1: "LND_FAILURE_REASON_TIMEOUT", 2: "LND_FAILURE_REASON_NO_ROUTE", 3: "LND_FAILURE_REASON_ERROR", 4: "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS", 5: "LND_FAILURE_REASON_INSUFFICIENT_BALANCE", } PaymentFailureReason_value = map[string]int32{ "LND_FAILURE_REASON_NONE": 0, "LND_FAILURE_REASON_TIMEOUT": 1, "LND_FAILURE_REASON_NO_ROUTE": 2, "LND_FAILURE_REASON_ERROR": 3, "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS": 4, "LND_FAILURE_REASON_INSUFFICIENT_BALANCE": 5, } ) func (x PaymentFailureReason) Enum() *PaymentFailureReason { p := new(PaymentFailureReason) *p = x return p } func (x PaymentFailureReason) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (PaymentFailureReason) Descriptor() protoreflect.EnumDescriptor { return file_server_proto_enumTypes[3].Descriptor() } func (PaymentFailureReason) Type() protoreflect.EnumType { return &file_server_proto_enumTypes[3] } func (x PaymentFailureReason) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use PaymentFailureReason.Descriptor instead. func (PaymentFailureReason) EnumDescriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{3} } type ServerLoopOutRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"` SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` /// The unix time in seconds we want the on-chain swap to be published by. SwapPublicationDeadline int64 `protobuf:"varint,4,opt,name=swap_publication_deadline,json=swapPublicationDeadline,proto3" json:"swap_publication_deadline,omitempty"` /// The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,5,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // The requested absolute block height of the on-chain htlc. This is // subjected to min and max constraints as reported in the LoopOutTerms // response. Expiry int32 `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"` // The user agent string that identifies the software running on the user's // side. This can be changed in the user's client software but it _SHOULD_ // conform to the following pattern: // Agent-Name/semver-version(/additional-info) // Examples: // loopd/v0.10.0-beta/commit=3b635821 // litd/v0.2.0-alpha/commit=326d754 UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` } func (x *ServerLoopOutRequest) Reset() { *x = ServerLoopOutRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutRequest) ProtoMessage() {} func (x *ServerLoopOutRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutRequest.ProtoReflect.Descriptor instead. func (*ServerLoopOutRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{0} } func (x *ServerLoopOutRequest) GetReceiverKey() []byte { if x != nil { return x.ReceiverKey } return nil } func (x *ServerLoopOutRequest) GetSwapHash() []byte { if x != nil { return x.SwapHash } return nil } func (x *ServerLoopOutRequest) GetAmt() uint64 { if x != nil { return x.Amt } return 0 } func (x *ServerLoopOutRequest) GetSwapPublicationDeadline() int64 { if x != nil { return x.SwapPublicationDeadline } return 0 } func (x *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } func (x *ServerLoopOutRequest) GetExpiry() int32 { if x != nil { return x.Expiry } return 0 } func (x *ServerLoopOutRequest) GetUserAgent() string { if x != nil { return x.UserAgent } return "" } type ServerLoopOutResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SwapInvoice string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"` PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"` SenderKey []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"` // The height at which the on-chain htlc will expire. Deprecated because the // field is already specified in the request. // // Deprecated: Do not use. Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // A human-readable message from the loop server. ServerMessage string `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` } func (x *ServerLoopOutResponse) Reset() { *x = ServerLoopOutResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutResponse) ProtoMessage() {} func (x *ServerLoopOutResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutResponse.ProtoReflect.Descriptor instead. func (*ServerLoopOutResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{1} } func (x *ServerLoopOutResponse) GetSwapInvoice() string { if x != nil { return x.SwapInvoice } return "" } func (x *ServerLoopOutResponse) GetPrepayInvoice() string { if x != nil { return x.PrepayInvoice } return "" } func (x *ServerLoopOutResponse) GetSenderKey() []byte { if x != nil { return x.SenderKey } return nil } // Deprecated: Do not use. func (x *ServerLoopOutResponse) GetExpiry() int32 { if x != nil { return x.Expiry } return 0 } func (x *ServerLoopOutResponse) GetServerMessage() string { if x != nil { return x.ServerMessage } return "" } type ServerLoopOutQuoteRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields /// The swap amount. If zero, a quote for a maximum amt swap will be given. Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` /// The unix time in seconds we want the on-chain swap to be published by. SwapPublicationDeadline int64 `protobuf:"varint,2,opt,name=swap_publication_deadline,json=swapPublicationDeadline,proto3" json:"swap_publication_deadline,omitempty"` /// The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // The requested absolute block height of the on-chain htlc. This is // subjected to min and max constraints as reported in the LoopOutTerms // response. Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` } func (x *ServerLoopOutQuoteRequest) Reset() { *x = ServerLoopOutQuoteRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutQuoteRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutQuoteRequest) ProtoMessage() {} func (x *ServerLoopOutQuoteRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutQuoteRequest.ProtoReflect.Descriptor instead. func (*ServerLoopOutQuoteRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{2} } func (x *ServerLoopOutQuoteRequest) GetAmt() uint64 { if x != nil { return x.Amt } return 0 } func (x *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64 { if x != nil { return x.SwapPublicationDeadline } return 0 } func (x *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } func (x *ServerLoopOutQuoteRequest) GetExpiry() int32 { if x != nil { return x.Expiry } return 0 } type ServerLoopOutQuote struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"` /// The total estimated swap fee given the quote amt. SwapFee int64 `protobuf:"varint,2,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"` /// Deprecated, total swap fee given quote amt is calculated in swap_fee. // // Deprecated: Do not use. SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"` // Deprecated: Do not use. MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use. MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // The server-proposed cltv delta of the on-chain htlc. Deprecated because // the field is already specified in the request. // // Deprecated: Do not use. CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` } func (x *ServerLoopOutQuote) Reset() { *x = ServerLoopOutQuote{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutQuote) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutQuote) ProtoMessage() {} func (x *ServerLoopOutQuote) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutQuote.ProtoReflect.Descriptor instead. func (*ServerLoopOutQuote) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{3} } func (x *ServerLoopOutQuote) GetSwapPaymentDest() string { if x != nil { return x.SwapPaymentDest } return "" } func (x *ServerLoopOutQuote) GetSwapFee() int64 { if x != nil { return x.SwapFee } return 0 } // Deprecated: Do not use. func (x *ServerLoopOutQuote) GetSwapFeeRate() int64 { if x != nil { return x.SwapFeeRate } return 0 } func (x *ServerLoopOutQuote) GetPrepayAmt() uint64 { if x != nil { return x.PrepayAmt } return 0 } // Deprecated: Do not use. func (x *ServerLoopOutQuote) GetMinSwapAmount() uint64 { if x != nil { return x.MinSwapAmount } return 0 } // Deprecated: Do not use. func (x *ServerLoopOutQuote) GetMaxSwapAmount() uint64 { if x != nil { return x.MaxSwapAmount } return 0 } // Deprecated: Do not use. func (x *ServerLoopOutQuote) GetCltvDelta() int32 { if x != nil { return x.CltvDelta } return 0 } type ServerLoopOutTermsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields /// The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` } func (x *ServerLoopOutTermsRequest) Reset() { *x = ServerLoopOutTermsRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutTermsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutTermsRequest) ProtoMessage() {} func (x *ServerLoopOutTermsRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutTermsRequest.ProtoReflect.Descriptor instead. func (*ServerLoopOutTermsRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{4} } func (x *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } type ServerLoopOutTerms struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // The minimally accepted cltv delta of the on-chain htlc. MinCltvDelta int32 `protobuf:"varint,3,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"` // The maximally accepted cltv delta of the on-chain htlc. MaxCltvDelta int32 `protobuf:"varint,4,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"` } func (x *ServerLoopOutTerms) Reset() { *x = ServerLoopOutTerms{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutTerms) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutTerms) ProtoMessage() {} func (x *ServerLoopOutTerms) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutTerms.ProtoReflect.Descriptor instead. func (*ServerLoopOutTerms) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{5} } func (x *ServerLoopOutTerms) GetMinSwapAmount() uint64 { if x != nil { return x.MinSwapAmount } return 0 } func (x *ServerLoopOutTerms) GetMaxSwapAmount() uint64 { if x != nil { return x.MaxSwapAmount } return 0 } func (x *ServerLoopOutTerms) GetMinCltvDelta() int32 { if x != nil { return x.MinCltvDelta } return 0 } func (x *ServerLoopOutTerms) GetMaxCltvDelta() int32 { if x != nil { return x.MaxCltvDelta } return 0 } type ServerLoopInRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SenderKey []byte `protobuf:"bytes,1,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"` SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` SwapInvoice string `protobuf:"bytes,4,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"` LastHop []byte `protobuf:"bytes,5,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"` /// The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,6,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` ProbeInvoice string `protobuf:"bytes,7,opt,name=probe_invoice,json=probeInvoice,proto3" json:"probe_invoice,omitempty"` // The user agent string that identifies the software running on the user's // side. This can be changed in the user's client software but it _SHOULD_ // conform to the following pattern: // Agent-Name/semver-version(/additional-info) // Examples: // loopd/v0.10.0-beta/commit=3b635821 // litd/v0.2.0-alpha/commit=326d754 UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` } func (x *ServerLoopInRequest) Reset() { *x = ServerLoopInRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopInRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopInRequest) ProtoMessage() {} func (x *ServerLoopInRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopInRequest.ProtoReflect.Descriptor instead. func (*ServerLoopInRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{6} } func (x *ServerLoopInRequest) GetSenderKey() []byte { if x != nil { return x.SenderKey } return nil } func (x *ServerLoopInRequest) GetSwapHash() []byte { if x != nil { return x.SwapHash } return nil } func (x *ServerLoopInRequest) GetAmt() uint64 { if x != nil { return x.Amt } return 0 } func (x *ServerLoopInRequest) GetSwapInvoice() string { if x != nil { return x.SwapInvoice } return "" } func (x *ServerLoopInRequest) GetLastHop() []byte { if x != nil { return x.LastHop } return nil } func (x *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } func (x *ServerLoopInRequest) GetProbeInvoice() string { if x != nil { return x.ProbeInvoice } return "" } func (x *ServerLoopInRequest) GetUserAgent() string { if x != nil { return x.UserAgent } return "" } type ServerLoopInResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"` Expiry int32 `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // A human-readable message from the loop server. ServerMessage string `protobuf:"bytes,3,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` } func (x *ServerLoopInResponse) Reset() { *x = ServerLoopInResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopInResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopInResponse) ProtoMessage() {} func (x *ServerLoopInResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopInResponse.ProtoReflect.Descriptor instead. func (*ServerLoopInResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{7} } func (x *ServerLoopInResponse) GetReceiverKey() []byte { if x != nil { return x.ReceiverKey } return nil } func (x *ServerLoopInResponse) GetExpiry() int32 { if x != nil { return x.Expiry } return 0 } func (x *ServerLoopInResponse) GetServerMessage() string { if x != nil { return x.ServerMessage } return "" } type ServerLoopInQuoteRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields /// The swap amount. If zero, a quote for a maximum amt swap will be given. Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` /// The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` } func (x *ServerLoopInQuoteRequest) Reset() { *x = ServerLoopInQuoteRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopInQuoteRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopInQuoteRequest) ProtoMessage() {} func (x *ServerLoopInQuoteRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopInQuoteRequest.ProtoReflect.Descriptor instead. func (*ServerLoopInQuoteRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{8} } func (x *ServerLoopInQuoteRequest) GetAmt() uint64 { if x != nil { return x.Amt } return 0 } func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } type ServerLoopInQuoteResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SwapFee int64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"` // Deprecated: Do not use. SwapFeeRate int64 `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` // Deprecated: Do not use. MinSwapAmount uint64 `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use. MaxSwapAmount uint64 `protobuf:"varint,5,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` CltvDelta int32 `protobuf:"varint,6,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` } func (x *ServerLoopInQuoteResponse) Reset() { *x = ServerLoopInQuoteResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopInQuoteResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopInQuoteResponse) ProtoMessage() {} func (x *ServerLoopInQuoteResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopInQuoteResponse.ProtoReflect.Descriptor instead. func (*ServerLoopInQuoteResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{9} } func (x *ServerLoopInQuoteResponse) GetSwapFee() int64 { if x != nil { return x.SwapFee } return 0 } // Deprecated: Do not use. func (x *ServerLoopInQuoteResponse) GetSwapFeeRate() int64 { if x != nil { return x.SwapFeeRate } return 0 } // Deprecated: Do not use. func (x *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64 { if x != nil { return x.MinSwapAmount } return 0 } // Deprecated: Do not use. func (x *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64 { if x != nil { return x.MaxSwapAmount } return 0 } func (x *ServerLoopInQuoteResponse) GetCltvDelta() int32 { if x != nil { return x.CltvDelta } return 0 } type ServerLoopInTermsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields /// The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` } func (x *ServerLoopInTermsRequest) Reset() { *x = ServerLoopInTermsRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopInTermsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopInTermsRequest) ProtoMessage() {} func (x *ServerLoopInTermsRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopInTermsRequest.ProtoReflect.Descriptor instead. func (*ServerLoopInTermsRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{10} } func (x *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } type ServerLoopInTerms struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` } func (x *ServerLoopInTerms) Reset() { *x = ServerLoopInTerms{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopInTerms) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopInTerms) ProtoMessage() {} func (x *ServerLoopInTerms) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopInTerms.ProtoReflect.Descriptor instead. func (*ServerLoopInTerms) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{11} } func (x *ServerLoopInTerms) GetMinSwapAmount() uint64 { if x != nil { return x.MinSwapAmount } return 0 } func (x *ServerLoopInTerms) GetMaxSwapAmount() uint64 { if x != nil { return x.MaxSwapAmount } return 0 } // ServerLoopOutPushPreimageRequest pushes a preimage to the server. Note that // this call returns with no error after the server acknowledges the preimage // and does not block until the invoice is settled. type ServerLoopOutPushPreimageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // //Preimage is the preimage of the loop out swap that we wish to push to the //server to speed up off-chain claim once the on-chain htlc has confirmed. Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"` } func (x *ServerLoopOutPushPreimageRequest) Reset() { *x = ServerLoopOutPushPreimageRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutPushPreimageRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutPushPreimageRequest) ProtoMessage() {} func (x *ServerLoopOutPushPreimageRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutPushPreimageRequest.ProtoReflect.Descriptor instead. func (*ServerLoopOutPushPreimageRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{12} } func (x *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } func (x *ServerLoopOutPushPreimageRequest) GetPreimage() []byte { if x != nil { return x.Preimage } return nil } type ServerLoopOutPushPreimageResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *ServerLoopOutPushPreimageResponse) Reset() { *x = ServerLoopOutPushPreimageResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ServerLoopOutPushPreimageResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServerLoopOutPushPreimageResponse) ProtoMessage() {} func (x *ServerLoopOutPushPreimageResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ServerLoopOutPushPreimageResponse.ProtoReflect.Descriptor instead. func (*ServerLoopOutPushPreimageResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{13} } type SubscribeUpdatesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // Swap hash is the hash of the swap to subscribe to updates for. SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` } func (x *SubscribeUpdatesRequest) Reset() { *x = SubscribeUpdatesRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SubscribeUpdatesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SubscribeUpdatesRequest) ProtoMessage() {} func (x *SubscribeUpdatesRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SubscribeUpdatesRequest.ProtoReflect.Descriptor instead. func (*SubscribeUpdatesRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{14} } func (x *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } func (x *SubscribeUpdatesRequest) GetSwapHash() []byte { if x != nil { return x.SwapHash } return nil } type SubscribeLoopOutUpdatesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The unix timestamp in nanoseconds when the swap was updated. TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"` // The swap's current state. State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"` } func (x *SubscribeLoopOutUpdatesResponse) Reset() { *x = SubscribeLoopOutUpdatesResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SubscribeLoopOutUpdatesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SubscribeLoopOutUpdatesResponse) ProtoMessage() {} func (x *SubscribeLoopOutUpdatesResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SubscribeLoopOutUpdatesResponse.ProtoReflect.Descriptor instead. func (*SubscribeLoopOutUpdatesResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{15} } func (x *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64 { if x != nil { return x.TimestampNs } return 0 } func (x *SubscribeLoopOutUpdatesResponse) GetState() ServerSwapState { if x != nil { return x.State } return ServerSwapState_SERVER_INITIATED } type SubscribeLoopInUpdatesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The unix timestamp in nanoseconds when the swap was updated. TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"` // The swap's current state. State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"` } func (x *SubscribeLoopInUpdatesResponse) Reset() { *x = SubscribeLoopInUpdatesResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SubscribeLoopInUpdatesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SubscribeLoopInUpdatesResponse) ProtoMessage() {} func (x *SubscribeLoopInUpdatesResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SubscribeLoopInUpdatesResponse.ProtoReflect.Descriptor instead. func (*SubscribeLoopInUpdatesResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{16} } func (x *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64 { if x != nil { return x.TimestampNs } return 0 } func (x *SubscribeLoopInUpdatesResponse) GetState() ServerSwapState { if x != nil { return x.State } return ServerSwapState_SERVER_INITIATED } type RouteCancel struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The type of the payment that failed. RouteType RoutePaymentType `protobuf:"varint,1,opt,name=route_type,json=routeType,proto3,enum=looprpc.RoutePaymentType" json:"route_type,omitempty"` // The htlcs that the client tried to pay the server with, if any. Attempts []*HtlcAttempt `protobuf:"bytes,2,rep,name=attempts,proto3" json:"attempts,omitempty"` // The reason that the payment failed. Failure PaymentFailureReason `protobuf:"varint,3,opt,name=failure,proto3,enum=looprpc.PaymentFailureReason" json:"failure,omitempty"` } func (x *RouteCancel) Reset() { *x = RouteCancel{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RouteCancel) String() string { return protoimpl.X.MessageStringOf(x) } func (*RouteCancel) ProtoMessage() {} func (x *RouteCancel) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RouteCancel.ProtoReflect.Descriptor instead. func (*RouteCancel) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{17} } func (x *RouteCancel) GetRouteType() RoutePaymentType { if x != nil { return x.RouteType } return RoutePaymentType_ROUTE_UNKNOWN } func (x *RouteCancel) GetAttempts() []*HtlcAttempt { if x != nil { return x.Attempts } return nil } func (x *RouteCancel) GetFailure() PaymentFailureReason { if x != nil { return x.Failure } return PaymentFailureReason_LND_FAILURE_REASON_NONE } type HtlcAttempt struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The number of hops from the htlc's failure hop that it needed to take // to reach the server's node. RemainingHops uint32 `protobuf:"varint,1,opt,name=remaining_hops,json=remainingHops,proto3" json:"remaining_hops,omitempty"` } func (x *HtlcAttempt) Reset() { *x = HtlcAttempt{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HtlcAttempt) String() string { return protoimpl.X.MessageStringOf(x) } func (*HtlcAttempt) ProtoMessage() {} func (x *HtlcAttempt) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HtlcAttempt.ProtoReflect.Descriptor instead. func (*HtlcAttempt) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{18} } func (x *HtlcAttempt) GetRemainingHops() uint32 { if x != nil { return x.RemainingHops } return 0 } type CancelLoopOutSwapRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // The swap hash. SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` // The payment address for the swap invoice, used to ensure that only the // swap owner can cancel the payment. PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"` // Additional information about the swap cancelation. // // Types that are assignable to CancelInfo: // *CancelLoopOutSwapRequest_RouteCancel CancelInfo isCancelLoopOutSwapRequest_CancelInfo `protobuf_oneof:"cancel_info"` } func (x *CancelLoopOutSwapRequest) Reset() { *x = CancelLoopOutSwapRequest{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CancelLoopOutSwapRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CancelLoopOutSwapRequest) ProtoMessage() {} func (x *CancelLoopOutSwapRequest) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CancelLoopOutSwapRequest.ProtoReflect.Descriptor instead. func (*CancelLoopOutSwapRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{19} } func (x *CancelLoopOutSwapRequest) GetProtocolVersion() ProtocolVersion { if x != nil { return x.ProtocolVersion } return ProtocolVersion_LEGACY } func (x *CancelLoopOutSwapRequest) GetSwapHash() []byte { if x != nil { return x.SwapHash } return nil } func (x *CancelLoopOutSwapRequest) GetPaymentAddress() []byte { if x != nil { return x.PaymentAddress } return nil } func (m *CancelLoopOutSwapRequest) GetCancelInfo() isCancelLoopOutSwapRequest_CancelInfo { if m != nil { return m.CancelInfo } return nil } func (x *CancelLoopOutSwapRequest) GetRouteCancel() *RouteCancel { if x, ok := x.GetCancelInfo().(*CancelLoopOutSwapRequest_RouteCancel); ok { return x.RouteCancel } return nil } type isCancelLoopOutSwapRequest_CancelInfo interface { isCancelLoopOutSwapRequest_CancelInfo() } type CancelLoopOutSwapRequest_RouteCancel struct { RouteCancel *RouteCancel `protobuf:"bytes,5,opt,name=route_cancel,json=routeCancel,proto3,oneof"` } func (*CancelLoopOutSwapRequest_RouteCancel) isCancelLoopOutSwapRequest_CancelInfo() {} type CancelLoopOutSwapResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *CancelLoopOutSwapResponse) Reset() { *x = CancelLoopOutSwapResponse{} if protoimpl.UnsafeEnabled { mi := &file_server_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CancelLoopOutSwapResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CancelLoopOutSwapResponse) ProtoMessage() {} func (x *CancelLoopOutSwapResponse) ProtoReflect() protoreflect.Message { mi := &file_server_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CancelLoopOutSwapResponse.ProtoReflect.Descriptor instead. func (*CancelLoopOutSwapResponse) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{20} } var File_server_proto protoreflect.FileDescriptor var file_server_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x22, 0xa0, 0x02, 0x0a, 0x14, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x73, 0x77, 0x61, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xc3, 0x01, 0x0a, 0x15, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x73, 0x77, 0x61, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x9d, 0x02, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x77, 0x61, 0x70, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, 0x61, 0x6d, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x41, 0x6d, 0x74, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0a, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x63, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0x60, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb0, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x43, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0xaa, 0x02, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x6f, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x78, 0x0a, 0x14, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x71, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd5, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x63, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x23, 0x0a, 0x21, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, 0x74, 0x0a, 0x1f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x73, 0x0a, 0x1e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x74, 0x6c, 0x63, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x22, 0x34, 0x0a, 0x0b, 0x48, 0x74, 0x6c, 0x63, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x68, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x6f, 0x70, 0x73, 0x22, 0xef, 0x01, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x42, 0x0d, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x1b, 0x0a, 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xb7, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x53, 0x45, 0x47, 0x57, 0x49, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x45, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x56, 0x32, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x49, 0x4e, 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, 0x07, 0x2a, 0xd3, 0x03, 0x0a, 0x0f, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4e, 0x4f, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x10, 0x04, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x41, 0x4d, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x05, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x46, 0x46, 0x5f, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x41, 0x50, 0x5f, 0x44, 0x45, 0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x08, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0b, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, 0x0c, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x59, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, 0x0e, 0x2a, 0x4a, 0x0a, 0x10, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x45, 0x50, 0x41, 0x59, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x02, 0x2a, 0xf1, 0x01, 0x0a, 0x14, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x30, 0x0a, 0x2c, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x53, 0x10, 0x04, 0x12, 0x2b, 0x0a, 0x27, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x05, 0x32, 0x8b, 0x07, 0x0a, 0x0a, 0x53, 0x77, 0x61, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x12, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x13, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x29, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x4c, 0x0a, 0x0b, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x4c, 0x0a, 0x0d, 0x4e, 0x65, 0x77, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x12, 0x1c, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0b, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x65, 0x0a, 0x16, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x5a, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x12, 0x21, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_server_proto_rawDescOnce sync.Once file_server_proto_rawDescData = file_server_proto_rawDesc ) func file_server_proto_rawDescGZIP() []byte { file_server_proto_rawDescOnce.Do(func() { file_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_proto_rawDescData) }) return file_server_proto_rawDescData } var file_server_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_server_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_server_proto_goTypes = []interface{}{ (ProtocolVersion)(0), // 0: looprpc.ProtocolVersion (ServerSwapState)(0), // 1: looprpc.ServerSwapState (RoutePaymentType)(0), // 2: looprpc.RoutePaymentType (PaymentFailureReason)(0), // 3: looprpc.PaymentFailureReason (*ServerLoopOutRequest)(nil), // 4: looprpc.ServerLoopOutRequest (*ServerLoopOutResponse)(nil), // 5: looprpc.ServerLoopOutResponse (*ServerLoopOutQuoteRequest)(nil), // 6: looprpc.ServerLoopOutQuoteRequest (*ServerLoopOutQuote)(nil), // 7: looprpc.ServerLoopOutQuote (*ServerLoopOutTermsRequest)(nil), // 8: looprpc.ServerLoopOutTermsRequest (*ServerLoopOutTerms)(nil), // 9: looprpc.ServerLoopOutTerms (*ServerLoopInRequest)(nil), // 10: looprpc.ServerLoopInRequest (*ServerLoopInResponse)(nil), // 11: looprpc.ServerLoopInResponse (*ServerLoopInQuoteRequest)(nil), // 12: looprpc.ServerLoopInQuoteRequest (*ServerLoopInQuoteResponse)(nil), // 13: looprpc.ServerLoopInQuoteResponse (*ServerLoopInTermsRequest)(nil), // 14: looprpc.ServerLoopInTermsRequest (*ServerLoopInTerms)(nil), // 15: looprpc.ServerLoopInTerms (*ServerLoopOutPushPreimageRequest)(nil), // 16: looprpc.ServerLoopOutPushPreimageRequest (*ServerLoopOutPushPreimageResponse)(nil), // 17: looprpc.ServerLoopOutPushPreimageResponse (*SubscribeUpdatesRequest)(nil), // 18: looprpc.SubscribeUpdatesRequest (*SubscribeLoopOutUpdatesResponse)(nil), // 19: looprpc.SubscribeLoopOutUpdatesResponse (*SubscribeLoopInUpdatesResponse)(nil), // 20: looprpc.SubscribeLoopInUpdatesResponse (*RouteCancel)(nil), // 21: looprpc.RouteCancel (*HtlcAttempt)(nil), // 22: looprpc.HtlcAttempt (*CancelLoopOutSwapRequest)(nil), // 23: looprpc.CancelLoopOutSwapRequest (*CancelLoopOutSwapResponse)(nil), // 24: looprpc.CancelLoopOutSwapResponse } var file_server_proto_depIdxs = []int32{ 0, // 0: looprpc.ServerLoopOutRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 1: looprpc.ServerLoopOutQuoteRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 2: looprpc.ServerLoopOutTermsRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 3: looprpc.ServerLoopInRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 4: looprpc.ServerLoopInQuoteRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 5: looprpc.ServerLoopInTermsRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 6: looprpc.ServerLoopOutPushPreimageRequest.protocol_version:type_name -> looprpc.ProtocolVersion 0, // 7: looprpc.SubscribeUpdatesRequest.protocol_version:type_name -> looprpc.ProtocolVersion 1, // 8: looprpc.SubscribeLoopOutUpdatesResponse.state:type_name -> looprpc.ServerSwapState 1, // 9: looprpc.SubscribeLoopInUpdatesResponse.state:type_name -> looprpc.ServerSwapState 2, // 10: looprpc.RouteCancel.route_type:type_name -> looprpc.RoutePaymentType 22, // 11: looprpc.RouteCancel.attempts:type_name -> looprpc.HtlcAttempt 3, // 12: looprpc.RouteCancel.failure:type_name -> looprpc.PaymentFailureReason 0, // 13: looprpc.CancelLoopOutSwapRequest.protocol_version:type_name -> looprpc.ProtocolVersion 21, // 14: looprpc.CancelLoopOutSwapRequest.route_cancel:type_name -> looprpc.RouteCancel 8, // 15: looprpc.SwapServer.LoopOutTerms:input_type -> looprpc.ServerLoopOutTermsRequest 4, // 16: looprpc.SwapServer.NewLoopOutSwap:input_type -> looprpc.ServerLoopOutRequest 16, // 17: looprpc.SwapServer.LoopOutPushPreimage:input_type -> looprpc.ServerLoopOutPushPreimageRequest 6, // 18: looprpc.SwapServer.LoopOutQuote:input_type -> looprpc.ServerLoopOutQuoteRequest 14, // 19: looprpc.SwapServer.LoopInTerms:input_type -> looprpc.ServerLoopInTermsRequest 10, // 20: looprpc.SwapServer.NewLoopInSwap:input_type -> looprpc.ServerLoopInRequest 12, // 21: looprpc.SwapServer.LoopInQuote:input_type -> looprpc.ServerLoopInQuoteRequest 18, // 22: looprpc.SwapServer.SubscribeLoopOutUpdates:input_type -> looprpc.SubscribeUpdatesRequest 18, // 23: looprpc.SwapServer.SubscribeLoopInUpdates:input_type -> looprpc.SubscribeUpdatesRequest 23, // 24: looprpc.SwapServer.CancelLoopOutSwap:input_type -> looprpc.CancelLoopOutSwapRequest 9, // 25: looprpc.SwapServer.LoopOutTerms:output_type -> looprpc.ServerLoopOutTerms 5, // 26: looprpc.SwapServer.NewLoopOutSwap:output_type -> looprpc.ServerLoopOutResponse 17, // 27: looprpc.SwapServer.LoopOutPushPreimage:output_type -> looprpc.ServerLoopOutPushPreimageResponse 7, // 28: looprpc.SwapServer.LoopOutQuote:output_type -> looprpc.ServerLoopOutQuote 15, // 29: looprpc.SwapServer.LoopInTerms:output_type -> looprpc.ServerLoopInTerms 11, // 30: looprpc.SwapServer.NewLoopInSwap:output_type -> looprpc.ServerLoopInResponse 13, // 31: looprpc.SwapServer.LoopInQuote:output_type -> looprpc.ServerLoopInQuoteResponse 19, // 32: looprpc.SwapServer.SubscribeLoopOutUpdates:output_type -> looprpc.SubscribeLoopOutUpdatesResponse 20, // 33: looprpc.SwapServer.SubscribeLoopInUpdates:output_type -> looprpc.SubscribeLoopInUpdatesResponse 24, // 34: looprpc.SwapServer.CancelLoopOutSwap:output_type -> looprpc.CancelLoopOutSwapResponse 25, // [25:35] is the sub-list for method output_type 15, // [15:25] is the sub-list for method input_type 15, // [15:15] is the sub-list for extension type_name 15, // [15:15] is the sub-list for extension extendee 0, // [0:15] is the sub-list for field type_name } func init() { file_server_proto_init() } func file_server_proto_init() { if File_server_proto != nil { return } if !protoimpl.UnsafeEnabled { file_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutQuoteRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutQuote); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutTermsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutTerms); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopInRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopInResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopInQuoteRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopInQuoteResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopInTermsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopInTerms); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutPushPreimageRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ServerLoopOutPushPreimageResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SubscribeUpdatesRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SubscribeLoopOutUpdatesResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SubscribeLoopInUpdatesResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RouteCancel); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HtlcAttempt); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CancelLoopOutSwapRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_server_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CancelLoopOutSwapResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_server_proto_msgTypes[19].OneofWrappers = []interface{}{ (*CancelLoopOutSwapRequest_RouteCancel)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_server_proto_rawDesc, NumEnums: 4, NumMessages: 21, NumExtensions: 0, NumServices: 1, }, GoTypes: file_server_proto_goTypes, DependencyIndexes: file_server_proto_depIdxs, EnumInfos: file_server_proto_enumTypes, MessageInfos: file_server_proto_msgTypes, }.Build() File_server_proto = out.File file_server_proto_rawDesc = nil file_server_proto_goTypes = nil file_server_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // SwapServerClient is the client API for SwapServer service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SwapServerClient interface { LoopOutTerms(ctx context.Context, in *ServerLoopOutTermsRequest, opts ...grpc.CallOption) (*ServerLoopOutTerms, error) NewLoopOutSwap(ctx context.Context, in *ServerLoopOutRequest, opts ...grpc.CallOption) (*ServerLoopOutResponse, error) LoopOutPushPreimage(ctx context.Context, in *ServerLoopOutPushPreimageRequest, opts ...grpc.CallOption) (*ServerLoopOutPushPreimageResponse, error) LoopOutQuote(ctx context.Context, in *ServerLoopOutQuoteRequest, opts ...grpc.CallOption) (*ServerLoopOutQuote, error) LoopInTerms(ctx context.Context, in *ServerLoopInTermsRequest, opts ...grpc.CallOption) (*ServerLoopInTerms, error) NewLoopInSwap(ctx context.Context, in *ServerLoopInRequest, opts ...grpc.CallOption) (*ServerLoopInResponse, error) LoopInQuote(ctx context.Context, in *ServerLoopInQuoteRequest, opts ...grpc.CallOption) (*ServerLoopInQuoteResponse, error) SubscribeLoopOutUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopOutUpdatesClient, error) SubscribeLoopInUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopInUpdatesClient, error) CancelLoopOutSwap(ctx context.Context, in *CancelLoopOutSwapRequest, opts ...grpc.CallOption) (*CancelLoopOutSwapResponse, error) } type swapServerClient struct { cc grpc.ClientConnInterface } func NewSwapServerClient(cc grpc.ClientConnInterface) SwapServerClient { return &swapServerClient{cc} } func (c *swapServerClient) LoopOutTerms(ctx context.Context, in *ServerLoopOutTermsRequest, opts ...grpc.CallOption) (*ServerLoopOutTerms, error) { out := new(ServerLoopOutTerms) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/LoopOutTerms", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) NewLoopOutSwap(ctx context.Context, in *ServerLoopOutRequest, opts ...grpc.CallOption) (*ServerLoopOutResponse, error) { out := new(ServerLoopOutResponse) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/NewLoopOutSwap", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) LoopOutPushPreimage(ctx context.Context, in *ServerLoopOutPushPreimageRequest, opts ...grpc.CallOption) (*ServerLoopOutPushPreimageResponse, error) { out := new(ServerLoopOutPushPreimageResponse) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/LoopOutPushPreimage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) LoopOutQuote(ctx context.Context, in *ServerLoopOutQuoteRequest, opts ...grpc.CallOption) (*ServerLoopOutQuote, error) { out := new(ServerLoopOutQuote) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/LoopOutQuote", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) LoopInTerms(ctx context.Context, in *ServerLoopInTermsRequest, opts ...grpc.CallOption) (*ServerLoopInTerms, error) { out := new(ServerLoopInTerms) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/LoopInTerms", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) NewLoopInSwap(ctx context.Context, in *ServerLoopInRequest, opts ...grpc.CallOption) (*ServerLoopInResponse, error) { out := new(ServerLoopInResponse) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/NewLoopInSwap", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) LoopInQuote(ctx context.Context, in *ServerLoopInQuoteRequest, opts ...grpc.CallOption) (*ServerLoopInQuoteResponse, error) { out := new(ServerLoopInQuoteResponse) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/LoopInQuote", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) SubscribeLoopOutUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopOutUpdatesClient, error) { stream, err := c.cc.NewStream(ctx, &_SwapServer_serviceDesc.Streams[0], "/looprpc.SwapServer/SubscribeLoopOutUpdates", opts...) if err != nil { return nil, err } x := &swapServerSubscribeLoopOutUpdatesClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type SwapServer_SubscribeLoopOutUpdatesClient interface { Recv() (*SubscribeLoopOutUpdatesResponse, error) grpc.ClientStream } type swapServerSubscribeLoopOutUpdatesClient struct { grpc.ClientStream } func (x *swapServerSubscribeLoopOutUpdatesClient) Recv() (*SubscribeLoopOutUpdatesResponse, error) { m := new(SubscribeLoopOutUpdatesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *swapServerClient) SubscribeLoopInUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopInUpdatesClient, error) { stream, err := c.cc.NewStream(ctx, &_SwapServer_serviceDesc.Streams[1], "/looprpc.SwapServer/SubscribeLoopInUpdates", opts...) if err != nil { return nil, err } x := &swapServerSubscribeLoopInUpdatesClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type SwapServer_SubscribeLoopInUpdatesClient interface { Recv() (*SubscribeLoopInUpdatesResponse, error) grpc.ClientStream } type swapServerSubscribeLoopInUpdatesClient struct { grpc.ClientStream } func (x *swapServerSubscribeLoopInUpdatesClient) Recv() (*SubscribeLoopInUpdatesResponse, error) { m := new(SubscribeLoopInUpdatesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *swapServerClient) CancelLoopOutSwap(ctx context.Context, in *CancelLoopOutSwapRequest, opts ...grpc.CallOption) (*CancelLoopOutSwapResponse, error) { out := new(CancelLoopOutSwapResponse) err := c.cc.Invoke(ctx, "/looprpc.SwapServer/CancelLoopOutSwap", in, out, opts...) if err != nil { return nil, err } return out, nil } // SwapServerServer is the server API for SwapServer service. type SwapServerServer interface { LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error) NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error) LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error) LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error) LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error) NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error) LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error) SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error) } // UnimplementedSwapServerServer can be embedded to have forward compatible implementations. type UnimplementedSwapServerServer struct { } func (*UnimplementedSwapServerServer) LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutTerms not implemented") } func (*UnimplementedSwapServerServer) NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewLoopOutSwap not implemented") } func (*UnimplementedSwapServerServer) LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutPushPreimage not implemented") } func (*UnimplementedSwapServerServer) LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutQuote not implemented") } func (*UnimplementedSwapServerServer) LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopInTerms not implemented") } func (*UnimplementedSwapServerServer) NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewLoopInSwap not implemented") } func (*UnimplementedSwapServerServer) LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopInQuote not implemented") } func (*UnimplementedSwapServerServer) SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error { return status.Errorf(codes.Unimplemented, "method SubscribeLoopOutUpdates not implemented") } func (*UnimplementedSwapServerServer) SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error { return status.Errorf(codes.Unimplemented, "method SubscribeLoopInUpdates not implemented") } func (*UnimplementedSwapServerServer) CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelLoopOutSwap not implemented") } func RegisterSwapServerServer(s *grpc.Server, srv SwapServerServer) { s.RegisterService(&_SwapServer_serviceDesc, srv) } func _SwapServer_LoopOutTerms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopOutTermsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).LoopOutTerms(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/LoopOutTerms", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).LoopOutTerms(ctx, req.(*ServerLoopOutTermsRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_NewLoopOutSwap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopOutRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).NewLoopOutSwap(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/NewLoopOutSwap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).NewLoopOutSwap(ctx, req.(*ServerLoopOutRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_LoopOutPushPreimage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopOutPushPreimageRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).LoopOutPushPreimage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/LoopOutPushPreimage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).LoopOutPushPreimage(ctx, req.(*ServerLoopOutPushPreimageRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_LoopOutQuote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopOutQuoteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).LoopOutQuote(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/LoopOutQuote", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).LoopOutQuote(ctx, req.(*ServerLoopOutQuoteRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_LoopInTerms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopInTermsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).LoopInTerms(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/LoopInTerms", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).LoopInTerms(ctx, req.(*ServerLoopInTermsRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_NewLoopInSwap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopInRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).NewLoopInSwap(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/NewLoopInSwap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).NewLoopInSwap(ctx, req.(*ServerLoopInRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_LoopInQuote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerLoopInQuoteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).LoopInQuote(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/LoopInQuote", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).LoopInQuote(ctx, req.(*ServerLoopInQuoteRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_SubscribeLoopOutUpdates_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(SubscribeUpdatesRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(SwapServerServer).SubscribeLoopOutUpdates(m, &swapServerSubscribeLoopOutUpdatesServer{stream}) } type SwapServer_SubscribeLoopOutUpdatesServer interface { Send(*SubscribeLoopOutUpdatesResponse) error grpc.ServerStream } type swapServerSubscribeLoopOutUpdatesServer struct { grpc.ServerStream } func (x *swapServerSubscribeLoopOutUpdatesServer) Send(m *SubscribeLoopOutUpdatesResponse) error { return x.ServerStream.SendMsg(m) } func _SwapServer_SubscribeLoopInUpdates_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(SubscribeUpdatesRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(SwapServerServer).SubscribeLoopInUpdates(m, &swapServerSubscribeLoopInUpdatesServer{stream}) } type SwapServer_SubscribeLoopInUpdatesServer interface { Send(*SubscribeLoopInUpdatesResponse) error grpc.ServerStream } type swapServerSubscribeLoopInUpdatesServer struct { grpc.ServerStream } func (x *swapServerSubscribeLoopInUpdatesServer) Send(m *SubscribeLoopInUpdatesResponse) error { return x.ServerStream.SendMsg(m) } func _SwapServer_CancelLoopOutSwap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CancelLoopOutSwapRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).CancelLoopOutSwap(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/looprpc.SwapServer/CancelLoopOutSwap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).CancelLoopOutSwap(ctx, req.(*CancelLoopOutSwapRequest)) } return interceptor(ctx, in, info, handler) } var _SwapServer_serviceDesc = grpc.ServiceDesc{ ServiceName: "looprpc.SwapServer", HandlerType: (*SwapServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoopOutTerms", Handler: _SwapServer_LoopOutTerms_Handler, }, { MethodName: "NewLoopOutSwap", Handler: _SwapServer_NewLoopOutSwap_Handler, }, { MethodName: "LoopOutPushPreimage", Handler: _SwapServer_LoopOutPushPreimage_Handler, }, { MethodName: "LoopOutQuote", Handler: _SwapServer_LoopOutQuote_Handler, }, { MethodName: "LoopInTerms", Handler: _SwapServer_LoopInTerms_Handler, }, { MethodName: "NewLoopInSwap", Handler: _SwapServer_NewLoopInSwap_Handler, }, { MethodName: "LoopInQuote", Handler: _SwapServer_LoopInQuote_Handler, }, { MethodName: "CancelLoopOutSwap", Handler: _SwapServer_CancelLoopOutSwap_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeLoopOutUpdates", Handler: _SwapServer_SubscribeLoopOutUpdates_Handler, ServerStreams: true, }, { StreamName: "SubscribeLoopInUpdates", Handler: _SwapServer_SubscribeLoopInUpdates_Handler, ServerStreams: true, }, }, Metadata: "server.proto", }