@ -1,28 +1,33 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.6.1
// source: wtclientrpc/wtclient.proto
package wtclientrpc
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto . Marshal
var _ = fmt . Errorf
var _ = math . Inf
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 to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto . ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto . ProtoPackageIsVersion4
type PolicyType int32
@ -33,237 +38,300 @@ const (
PolicyType_ANCHOR PolicyType = 1
)
var PolicyType_name = map [ int32 ] string {
0 : "LEGACY" ,
1 : "ANCHOR" ,
}
// Enum value maps for PolicyType.
var (
PolicyType_name = map [ int32 ] string {
0 : "LEGACY" ,
1 : "ANCHOR" ,
}
PolicyType_value = map [ string ] int32 {
"LEGACY" : 0 ,
"ANCHOR" : 1 ,
}
)
var PolicyType_value = map [ string ] int32 {
"LEGACY" : 0 ,
"ANCHOR" : 1 ,
func ( x PolicyType ) Enum ( ) * PolicyType {
p := new ( PolicyType )
* p = x
return p
}
func ( x PolicyType ) String ( ) string {
return proto . EnumName ( PolicyType_name , int32 ( x ) )
return protoimpl . X . EnumStringOf ( x . Descriptor ( ) , protoreflect . EnumNumber ( x ) )
}
func ( PolicyType ) Descriptor ( ) protoreflect . EnumDescriptor {
return file_wtclientrpc_wtclient_proto_enumTypes [ 0 ] . Descriptor ( )
}
func ( PolicyType ) Type ( ) protoreflect . EnumType {
return & file_wtclientrpc_wtclient_proto_enumTypes [ 0 ]
}
func ( x PolicyType ) Number ( ) protoreflect . EnumNumber {
return protoreflect . EnumNumber ( x )
}
// Deprecated: Use PolicyType.Descriptor instead.
func ( PolicyType ) EnumDescriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 0 }
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 0 }
}
type AddTowerRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// The identifying public key of the watchtower to add.
Pubkey [ ] byte ` protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty" `
// A network address the watchtower is reachable over.
Address string ` protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
Address string ` protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" `
}
func ( m * AddTowerRequest ) Reset ( ) { * m = AddTowerRequest { } }
func ( m * AddTowerRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * AddTowerRequest ) ProtoMessage ( ) { }
func ( * AddTowerRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 0 }
func ( x * AddTowerRequest ) Reset ( ) {
* x = AddTowerRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * AddTowerRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_AddTowerRequest . Unmarshal ( m , b )
}
func ( m * AddTowerRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_AddTowerRequest . Marshal ( b , m , deterministic )
}
func ( m * AddTowerRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_AddTowerRequest . Merge ( m , src )
func ( x * AddTowerRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * AddTowerRequest ) XXX_Size ( ) int {
return xxx_messageInfo_AddTowerRequest . Size ( m )
}
func ( m * AddTowerRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_AddTowerRequest . DiscardUnknown ( m )
func ( * AddTowerRequest ) ProtoMessage ( ) { }
func ( x * AddTowerRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_AddTowerRequest proto . InternalMessageInfo
// Deprecated: Use AddTowerRequest.ProtoReflect.Descriptor instead.
func ( * AddTowerRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 0 }
}
func ( m * AddTowerRequest ) GetPubkey ( ) [ ] byte {
if m != nil {
return m . Pubkey
func ( x * AddTowerRequest ) GetPubkey ( ) [ ] byte {
if x != nil {
return x . Pubkey
}
return nil
}
func ( m * AddTowerRequest ) GetAddress ( ) string {
if m != nil {
return m . Address
func ( x * AddTowerRequest ) GetAddress ( ) string {
if x != nil {
return x . Address
}
return ""
}
type AddTowerResponse struct {
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
func ( m * AddTowerResponse ) Reset ( ) { * m = AddTowerResponse { } }
func ( m * AddTowerResponse ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * AddTowerResponse ) ProtoMessage ( ) { }
func ( * AddTowerResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 1 }
func ( x * AddTowerResponse ) Reset ( ) {
* x = AddTowerResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * AddTowerResponse ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_AddTowerResponse . Unmarshal ( m , b )
}
func ( m * AddTowerResponse ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_AddTowerResponse . Marshal ( b , m , deterministic )
}
func ( m * AddTowerResponse ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_AddTowerResponse . Merge ( m , src )
func ( x * AddTowerResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * AddTowerResponse ) XXX_Size ( ) int {
return xxx_messageInfo_AddTowerResponse . Size ( m )
}
func ( m * AddTowerResponse ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_AddTowerResponse . DiscardUnknown ( m )
func ( * AddTowerResponse ) ProtoMessage ( ) { }
func ( x * AddTowerResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_AddTowerResponse proto . InternalMessageInfo
// Deprecated: Use AddTowerResponse.ProtoReflect.Descriptor instead.
func ( * AddTowerResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
type RemoveTowerRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// The identifying public key of the watchtower to remove.
Pubkey [ ] byte ` protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty" `
//
//If set, then the record for this address will be removed, indicating that is
//is stale. Otherwise, the watchtower will no longer be used for future
//session negotiations and backups.
Address string ` protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
Address string ` protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" `
}
func ( m * RemoveTowerRequest ) Reset ( ) { * m = RemoveTowerRequest { } }
func ( m * RemoveTowerRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * RemoveTowerRequest ) ProtoMessage ( ) { }
func ( * RemoveTowerRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 2 }
func ( x * RemoveTowerRequest ) Reset ( ) {
* x = RemoveTowerRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * RemoveTowerRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_RemoveTowerRequest . Unmarshal ( m , b )
}
func ( m * RemoveTowerRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_RemoveTowerRequest . Marshal ( b , m , deterministic )
}
func ( m * RemoveTowerRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_RemoveTowerRequest . Merge ( m , src )
}
func ( m * RemoveTowerRequest ) XXX_Size ( ) int {
return xxx_messageInfo_RemoveTowerRequest . Size ( m )
func ( x * RemoveTowerRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * RemoveTowerRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_RemoveTowerRequest . DiscardUnknown ( m )
func ( * RemoveTowerRequest ) ProtoMessage ( ) { }
func ( x * RemoveTowerRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_RemoveTowerRequest proto . InternalMessageInfo
// Deprecated: Use RemoveTowerRequest.ProtoReflect.Descriptor instead.
func ( * RemoveTowerRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
func ( m * RemoveTowerRequest ) GetPubkey ( ) [ ] byte {
if m != nil {
return m . Pubkey
func ( x * RemoveTowerRequest ) GetPubkey ( ) [ ] byte {
if x != nil {
return x . Pubkey
}
return nil
}
func ( m * RemoveTowerRequest ) GetAddress ( ) string {
if m != nil {
return m . Address
func ( x * RemoveTowerRequest ) GetAddress ( ) string {
if x != nil {
return x . Address
}
return ""
}
type RemoveTowerResponse struct {
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
func ( m * RemoveTowerResponse ) Reset ( ) { * m = RemoveTowerResponse { } }
func ( m * RemoveTowerResponse ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * RemoveTowerResponse ) ProtoMessage ( ) { }
func ( * RemoveTowerResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 3 }
func ( x * RemoveTowerResponse ) Reset ( ) {
* x = RemoveTowerResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * RemoveTowerResponse ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_RemoveTowerResponse . Unmarshal ( m , b )
}
func ( m * RemoveTowerResponse ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_RemoveTowerResponse . Marshal ( b , m , deterministic )
}
func ( m * RemoveTowerResponse ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_RemoveTowerResponse . Merge ( m , src )
}
func ( m * RemoveTowerResponse ) XXX_Size ( ) int {
return xxx_messageInfo_RemoveTowerResponse . Size ( m )
func ( x * RemoveTowerResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * RemoveTowerResponse ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_RemoveTowerResponse . DiscardUnknown ( m )
func ( * RemoveTowerResponse ) ProtoMessage ( ) { }
func ( x * RemoveTowerResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_RemoveTowerResponse proto . InternalMessageInfo
// Deprecated: Use RemoveTowerResponse.ProtoReflect.Descriptor instead.
func ( * RemoveTowerResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 3 }
}
type GetTowerInfoRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// The identifying public key of the watchtower to retrieve information for.
Pubkey [ ] byte ` protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty" `
// Whether we should include sessions with the watchtower in the response.
IncludeSessions bool ` protobuf:"varint,2,opt,name=include_sessions,json=includeSessions,proto3" json:"include_sessions,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
IncludeSessions bool ` protobuf:"varint,2,opt,name=include_sessions,json=includeSessions,proto3" json:"include_sessions,omitempty" `
}
func ( m * GetTowerInfoRequest ) Reset ( ) { * m = GetTowerInfoRequest { } }
func ( m * GetTowerInfoRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * GetTowerInfoRequest ) ProtoMessage ( ) { }
func ( * GetTowerInfoRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 4 }
func ( x * GetTowerInfoRequest ) Reset ( ) {
* x = GetTowerInfoRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 4 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * GetTowerInfoRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_GetTowerInfoRequest . Unmarshal ( m , b )
}
func ( m * GetTowerInfoRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_GetTowerInfoRequest . Marshal ( b , m , deterministic )
}
func ( m * GetTowerInfoRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_GetTowerInfoRequest . Merge ( m , src )
func ( x * GetTowerInfoRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * GetTowerInfoRequest ) XXX_Size ( ) int {
return xxx_messageInfo_GetTowerInfoRequest . Size ( m )
}
func ( m * GetTowerInfoRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_GetTowerInfoRequest . DiscardUnknown ( m )
func ( * GetTowerInfoRequest ) ProtoMessage ( ) { }
func ( x * GetTowerInfoRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_GetTowerInfoRequest proto . InternalMessageInfo
// Deprecated: Use GetTowerInfoRequest.ProtoReflect.Descriptor instead.
func ( * GetTowerInfoRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 4 }
}
func ( m * GetTowerInfoRequest ) GetPubkey ( ) [ ] byte {
if m != nil {
return m . Pubkey
func ( x * GetTowerInfoRequest ) GetPubkey ( ) [ ] byte {
if x != nil {
return x . Pubkey
}
return nil
}
func ( m * GetTowerInfoRequest ) GetIncludeSessions ( ) bool {
if m != nil {
return m . IncludeSessions
func ( x * GetTowerInfoRequest ) GetIncludeSessions ( ) bool {
if x != nil {
return x . IncludeSessions
}
return false
}
type TowerSession struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
//
//The total number of successful backups that have been made to the
//watchtower session.
@ -278,78 +346,88 @@ type TowerSession struct {
//Deprecated, use sweep_sat_per_vbyte.
//The fee rate, in satoshis per vbyte, that will be used by the watchtower for
//the justice transaction in the event of a channel breach.
SweepSatPerByte uint32 ` protobuf:"varint,4,opt,name=sweep_sat_per_byte,json=sweepSatPerByte,proto3" json:"sweep_sat_per_byte,omitempty" ` // Deprecated: Do not use.
//
// Deprecated: Do not use.
SweepSatPerByte uint32 ` protobuf:"varint,4,opt,name=sweep_sat_per_byte,json=sweepSatPerByte,proto3" json:"sweep_sat_per_byte,omitempty" `
//
//The fee rate, in satoshis per vbyte, that will be used by the watchtower for
//the justice transaction in the event of a channel breach.
SweepSatPerVbyte uint32 ` protobuf:"varint,5,opt,name=sweep_sat_per_vbyte,json=sweepSatPerVbyte,proto3" json:"sweep_sat_per_vbyte,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
SweepSatPerVbyte uint32 ` protobuf:"varint,5,opt,name=sweep_sat_per_vbyte,json=sweepSatPerVbyte,proto3" json:"sweep_sat_per_vbyte,omitempty" `
}
func ( m * TowerSession ) Reset ( ) { * m = TowerSession { } }
func ( m * TowerSession ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * TowerSession ) ProtoMessage ( ) { }
func ( * TowerSession ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 5 }
func ( x * TowerSession ) Reset ( ) {
* x = TowerSession { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 5 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * TowerSession ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_TowerSession . Unmarshal ( m , b )
func ( x * TowerSession ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * TowerSession ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_TowerSession . Marshal ( b , m , deterministic )
}
func ( m * TowerSession ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_TowerSession . Merge ( m , src )
}
func ( m * TowerSession ) XXX_Size ( ) int {
return xxx_messageInfo_TowerSession . Size ( m )
}
func ( m * TowerSession ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_TowerSession . DiscardUnknown ( m )
func ( * TowerSession ) ProtoMessage ( ) { }
func ( x * TowerSession ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_TowerSession proto . InternalMessageInfo
// Deprecated: Use TowerSession.ProtoReflect.Descriptor instead.
func ( * TowerSession ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 5 }
}
func ( m * TowerSession ) GetNumBackups ( ) uint32 {
if m != nil {
return m . NumBackups
func ( x * TowerSession ) GetNumBackups ( ) uint32 {
if x != nil {
return x . NumBackups
}
return 0
}
func ( m * TowerSession ) GetNumPendingBackups ( ) uint32 {
if m != nil {
return m . NumPendingBackups
func ( x * TowerSession ) GetNumPendingBackups ( ) uint32 {
if x != nil {
return x . NumPendingBackups
}
return 0
}
func ( m * TowerSession ) GetMaxBackups ( ) uint32 {
if m != nil {
return m . MaxBackups
func ( x * TowerSession ) GetMaxBackups ( ) uint32 {
if x != nil {
return x . MaxBackups
}
return 0
}
// Deprecated: Do not use.
func ( m * TowerSession ) GetSweepSatPerByte ( ) uint32 {
if m != nil {
return m . SweepSatPerByte
func ( x * TowerSession ) GetSweepSatPerByte ( ) uint32 {
if x != nil {
return x . SweepSatPerByte
}
return 0
}
func ( m * TowerSession ) GetSweepSatPerVbyte ( ) uint32 {
if m != nil {
return m . SweepSatPerVbyte
func ( x * TowerSession ) GetSweepSatPerVbyte ( ) uint32 {
if x != nil {
return x . SweepSatPerVbyte
}
return 0
}
type Tower struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// The identifying public key of the watchtower.
Pubkey [ ] byte ` protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty" `
// The list of addresses the watchtower is reachable over.
@ -359,184 +437,215 @@ type Tower struct {
// The number of sessions that have been negotiated with the watchtower.
NumSessions uint32 ` protobuf:"varint,4,opt,name=num_sessions,json=numSessions,proto3" json:"num_sessions,omitempty" `
// The list of sessions that have been negotiated with the watchtower.
Sessions [ ] * TowerSession ` protobuf:"bytes,5,rep,name=sessions,proto3" json:"sessions,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
Sessions [ ] * TowerSession ` protobuf:"bytes,5,rep,name=sessions,proto3" json:"sessions,omitempty" `
}
func ( m * Tower ) Reset ( ) { * m = Tower { } }
func ( m * Tower ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * Tower ) ProtoMessage ( ) { }
func ( * Tower ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 6 }
func ( x * Tower ) Reset ( ) {
* x = Tower { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * Tower ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_Tower . Unmarshal ( m , b )
}
func ( m * Tower ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_Tower . Marshal ( b , m , deterministic )
}
func ( m * Tower ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_Tower . Merge ( m , src )
func ( x * Tower ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * Tower ) XXX_Size ( ) int {
return xxx_messageInfo_Tower . Size ( m )
}
func ( m * Tower ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_Tower . DiscardUnknown ( m )
func ( * Tower ) ProtoMessage ( ) { }
func ( x * Tower ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_Tower proto . InternalMessageInfo
// Deprecated: Use Tower.ProtoReflect.Descriptor instead.
func ( * Tower ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
func ( m * Tower ) GetPubkey ( ) [ ] byte {
if m != nil {
return m . Pubkey
func ( x * Tower ) GetPubkey ( ) [ ] byte {
if x != nil {
return x . Pubkey
}
return nil
}
func ( m * Tower ) GetAddresses ( ) [ ] string {
if m != nil {
return m . Addresses
func ( x * Tower ) GetAddresses ( ) [ ] string {
if x != nil {
return x . Addresses
}
return nil
}
func ( m * Tower ) GetActiveSessionCandidate ( ) bool {
if m != nil {
return m . ActiveSessionCandidate
func ( x * Tower ) GetActiveSessionCandidate ( ) bool {
if x != nil {
return x . ActiveSessionCandidate
}
return false
}
func ( m * Tower ) GetNumSessions ( ) uint32 {
if m != nil {
return m . NumSessions
func ( x * Tower ) GetNumSessions ( ) uint32 {
if x != nil {
return x . NumSessions
}
return 0
}
func ( m * Tower ) GetSessions ( ) [ ] * TowerSession {
if m != nil {
return m . Sessions
func ( x * Tower ) GetSessions ( ) [ ] * TowerSession {
if x != nil {
return x . Sessions
}
return nil
}
type ListTowersRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Whether we should include sessions with the watchtower in the response.
IncludeSessions bool ` protobuf:"varint,1,opt,name=include_sessions,json=includeSessions,proto3" json:"include_sessions,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
IncludeSessions bool ` protobuf:"varint,1,opt,name=include_sessions,json=includeSessions,proto3" json:"include_sessions,omitempty" `
}
func ( m * ListTowersRequest ) Reset ( ) { * m = ListTowersRequest { } }
func ( m * ListTowersRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ListTowersRequest ) ProtoMessage ( ) { }
func ( * ListTowersRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 7 }
func ( x * ListTowersRequest ) Reset ( ) {
* x = ListTowersRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * ListTowersRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_ListTowersRequest . Unmarshal ( m , b )
}
func ( m * ListTowersRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_ListTowersRequest . Marshal ( b , m , deterministic )
}
func ( m * ListTowersRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ListTowersRequest . Merge ( m , src )
}
func ( m * ListTowersRequest ) XXX_Size ( ) int {
return xxx_messageInfo_ListTowersRequest . Size ( m )
func ( x * ListTowersRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * ListTowersRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ListTowersRequest . DiscardUnknown ( m )
func ( * ListTowersRequest ) ProtoMessage ( ) { }
func ( x * ListTowersRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_ListTowersRequest proto . InternalMessageInfo
// Deprecated: Use ListTowersRequest.ProtoReflect.Descriptor instead.
func ( * ListTowersRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
func ( m * ListTowersRequest ) GetIncludeSessions ( ) bool {
if m != nil {
return m . IncludeSessions
func ( x * ListTowersRequest ) GetIncludeSessions ( ) bool {
if x != nil {
return x . IncludeSessions
}
return false
}
type ListTowersResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// The list of watchtowers available for new backups.
Towers [ ] * Tower ` protobuf:"bytes,1,rep,name=towers,proto3" json:"towers,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
Towers [ ] * Tower ` protobuf:"bytes,1,rep,name=towers,proto3" json:"towers,omitempty" `
}
func ( m * ListTowersResponse ) Reset ( ) { * m = ListTowersResponse { } }
func ( m * ListTowersResponse ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ListTowersResponse ) ProtoMessage ( ) { }
func ( * ListTowersResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 8 }
func ( x * ListTowersResponse ) Reset ( ) {
* x = ListTowersResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * ListTowersResponse ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_ListTowersResponse . Unmarshal ( m , b )
}
func ( m * ListTowersResponse ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_ListTowersResponse . Marshal ( b , m , deterministic )
}
func ( m * ListTowersResponse ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ListTowersResponse . Merge ( m , src )
func ( x * ListTowersResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * ListTowersResponse ) XXX_Size ( ) int {
return xxx_messageInfo_ListTowersResponse . Size ( m )
}
func ( m * ListTowersResponse ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ListTowersResponse . DiscardUnknown ( m )
func ( * ListTowersResponse ) ProtoMessage ( ) { }
func ( x * ListTowersResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_ListTowersResponse proto . InternalMessageInfo
// Deprecated: Use ListTowersResponse.ProtoReflect.Descriptor instead.
func ( * ListTowersResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
func ( m * ListTowersResponse ) GetTowers ( ) [ ] * Tower {
if m != nil {
return m . Towers
func ( x * ListTowersResponse ) GetTowers ( ) [ ] * Tower {
if x != nil {
return x . Towers
}
return nil
}
type StatsRequest struct {
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
func ( m * StatsRequest ) Reset ( ) { * m = StatsRequest { } }
func ( m * StatsRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * StatsRequest ) ProtoMessage ( ) { }
func ( * StatsRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 9 }
func ( x * StatsRequest ) Reset ( ) {
* x = StatsRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 9 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * StatsRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_StatsRequest . Unmarshal ( m , b )
}
func ( m * StatsRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_StatsRequest . Marshal ( b , m , deterministic )
}
func ( m * StatsRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_StatsRequest . Merge ( m , src )
func ( x * StatsRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * StatsRequest ) XXX_Size ( ) int {
return xxx_messageInfo_StatsRequest . Size ( m )
}
func ( m * StatsRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_StatsRequest . DiscardUnknown ( m )
func ( * StatsRequest ) ProtoMessage ( ) { }
func ( x * StatsRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_StatsRequest proto . InternalMessageInfo
// Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.
func ( * StatsRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 9 }
}
type StatsResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
//
//The total number of backups made to all active and exhausted watchtower
//sessions.
@ -552,114 +661,130 @@ type StatsResponse struct {
// The total number of new sessions made to watchtowers.
NumSessionsAcquired uint32 ` protobuf:"varint,4,opt,name=num_sessions_acquired,json=numSessionsAcquired,proto3" json:"num_sessions_acquired,omitempty" `
// The total number of watchtower sessions that have been exhausted.
NumSessionsExhausted uint32 ` protobuf:"varint,5,opt,name=num_sessions_exhausted,json=numSessionsExhausted,proto3" json:"num_sessions_exhausted,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
NumSessionsExhausted uint32 ` protobuf:"varint,5,opt,name=num_sessions_exhausted,json=numSessionsExhausted,proto3" json:"num_sessions_exhausted,omitempty" `
}
func ( m * StatsResponse ) Reset ( ) { * m = StatsResponse { } }
func ( m * StatsResponse ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * StatsResponse ) ProtoMessage ( ) { }
func ( * StatsResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 10 }
func ( x * StatsResponse ) Reset ( ) {
* x = StatsResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 10 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * StatsResponse ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_StatsResponse . Unmarshal ( m , b )
}
func ( m * StatsResponse ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_StatsResponse . Marshal ( b , m , deterministic )
func ( x * StatsResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * StatsResponse ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_StatsResponse . Merge ( m , src )
}
func ( m * StatsResponse ) XXX_Size ( ) int {
return xxx_messageInfo_StatsResponse . Size ( m )
}
func ( m * StatsResponse ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_StatsResponse . DiscardUnknown ( m )
func ( * StatsResponse ) ProtoMessage ( ) { }
func ( x * StatsResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_StatsResponse proto . InternalMessageInfo
// Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.
func ( * StatsResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 10 }
}
func ( m * StatsResponse ) GetNumBackups ( ) uint32 {
if m != nil {
return m . NumBackups
func ( x * StatsResponse ) GetNumBackups ( ) uint32 {
if x != nil {
return x . NumBackups
}
return 0
}
func ( m * StatsResponse ) GetNumPendingBackups ( ) uint32 {
if m != nil {
return m . NumPendingBackups
func ( x * StatsResponse ) GetNumPendingBackups ( ) uint32 {
if x != nil {
return x . NumPendingBackups
}
return 0
}
func ( m * StatsResponse ) GetNumFailedBackups ( ) uint32 {
if m != nil {
return m . NumFailedBackups
func ( x * StatsResponse ) GetNumFailedBackups ( ) uint32 {
if x != nil {
return x . NumFailedBackups
}
return 0
}
func ( m * StatsResponse ) GetNumSessionsAcquired ( ) uint32 {
if m != nil {
return m . NumSessionsAcquired
func ( x * StatsResponse ) GetNumSessionsAcquired ( ) uint32 {
if x != nil {
return x . NumSessionsAcquired
}
return 0
}
func ( m * StatsResponse ) GetNumSessionsExhausted ( ) uint32 {
if m != nil {
return m . NumSessionsExhausted
func ( x * StatsResponse ) GetNumSessionsExhausted ( ) uint32 {
if x != nil {
return x . NumSessionsExhausted
}
return 0
}
type PolicyRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
//
//The client type from which to retrieve the active offering policy.
PolicyType PolicyType ` protobuf:"varint,1,opt,name=policy_type,json=policyType,proto3,enum=wtclientrpc.PolicyType" json:"policy_type,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
PolicyType PolicyType ` protobuf:"varint,1,opt,name=policy_type,json=policyType,proto3,enum=wtclientrpc.PolicyType" json:"policy_type,omitempty" `
}
func ( m * PolicyRequest ) Reset ( ) { * m = PolicyRequest { } }
func ( m * PolicyRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * PolicyRequest ) ProtoMessage ( ) { }
func ( * PolicyRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 11 }
func ( x * PolicyRequest ) Reset ( ) {
* x = PolicyRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 11 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * PolicyRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_PolicyRequest . Unmarshal ( m , b )
func ( x * PolicyRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * PolicyRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_PolicyRequest . Marshal ( b , m , deterministic )
}
func ( m * PolicyRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_PolicyRequest . Merge ( m , src )
}
func ( m * PolicyRequest ) XXX_Size ( ) int {
return xxx_messageInfo_PolicyRequest . Size ( m )
}
func ( m * PolicyRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_PolicyRequest . DiscardUnknown ( m )
func ( * PolicyRequest ) ProtoMessage ( ) { }
func ( x * PolicyRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_PolicyRequest proto . InternalMessageInfo
// Deprecated: Use PolicyRequest.ProtoReflect.Descriptor instead.
func ( * PolicyRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 11 }
}
func ( m * PolicyRequest ) GetPolicyType ( ) PolicyType {
if m != nil {
return m . PolicyType
func ( x * PolicyRequest ) GetPolicyType ( ) PolicyType {
if x != nil {
return x . PolicyType
}
return PolicyType_LEGACY
}
type PolicyResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
//
//The maximum number of updates each session we negotiate with watchtowers
//should allow.
@ -668,141 +793,439 @@ type PolicyResponse struct {
//Deprecated, use sweep_sat_per_vbyte.
//The fee rate, in satoshis per vbyte, that will be used by watchtowers for
//justice transactions in response to channel breaches.
SweepSatPerByte uint32 ` protobuf:"varint,2,opt,name=sweep_sat_per_byte,json=sweepSatPerByte,proto3" json:"sweep_sat_per_byte,omitempty" ` // Deprecated: Do not use.
//
// Deprecated: Do not use.
SweepSatPerByte uint32 ` protobuf:"varint,2,opt,name=sweep_sat_per_byte,json=sweepSatPerByte,proto3" json:"sweep_sat_per_byte,omitempty" `
//
//The fee rate, in satoshis per vbyte, that will be used by watchtowers for
//justice transactions in response to channel breaches.
SweepSatPerVbyte uint32 ` protobuf:"varint,3,opt,name=sweep_sat_per_vbyte,json=sweepSatPerVbyte,proto3" json:"sweep_sat_per_vbyte,omitempty" `
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
SweepSatPerVbyte uint32 ` protobuf:"varint,3,opt,name=sweep_sat_per_vbyte,json=sweepSatPerVbyte,proto3" json:"sweep_sat_per_vbyte,omitempty" `
}
func ( m * PolicyResponse ) Reset ( ) { * m = PolicyResponse { } }
func ( m * PolicyResponse ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * PolicyResponse ) ProtoMessage ( ) { }
func ( * PolicyResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_b5f4e7d95a641af2 , [ ] int { 12 }
func ( x * PolicyResponse ) Reset ( ) {
* x = PolicyResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_wtclientrpc_wtclient_proto_msgTypes [ 12 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( m * PolicyResponse ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_PolicyResponse . Unmarshal ( m , b )
}
func ( m * PolicyResponse ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_PolicyResponse . Marshal ( b , m , deterministic )
}
func ( m * PolicyResponse ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_PolicyResponse . Merge ( m , src )
}
func ( m * PolicyResponse ) XXX_Size ( ) int {
return xxx_messageInfo_PolicyResponse . Size ( m )
func ( x * PolicyResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( m * PolicyResponse ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_PolicyResponse . DiscardUnknown ( m )
func ( * PolicyResponse ) ProtoMessage ( ) { }
func ( x * PolicyResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_wtclientrpc_wtclient_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 )
}
var xxx_messageInfo_PolicyResponse proto . InternalMessageInfo
// Deprecated: Use PolicyResponse.ProtoReflect.Descriptor instead.
func ( * PolicyResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) , [ ] int { 12 }
}
func ( m * PolicyResponse ) GetMaxUpdates ( ) uint32 {
if m != nil {
return m . MaxUpdates
func ( x * PolicyResponse ) GetMaxUpdates ( ) uint32 {
if x != nil {
return x . MaxUpdates
}
return 0
}
// Deprecated: Do not use.
func ( m * PolicyResponse ) GetSweepSatPerByte ( ) uint32 {
if m != nil {
return m . SweepSatPerByte
func ( x * PolicyResponse ) GetSweepSatPerByte ( ) uint32 {
if x != nil {
return x . SweepSatPerByte
}
return 0
}
func ( m * PolicyResponse ) GetSweepSatPerVbyte ( ) uint32 {
if m != nil {
return m . SweepSatPerVbyte
func ( x * PolicyResponse ) GetSweepSatPerVbyte ( ) uint32 {
if x != nil {
return x . SweepSatPerVbyte
}
return 0
}
func init ( ) {
proto . RegisterEnum ( "wtclientrpc.PolicyType" , PolicyType_name , PolicyType_value )
proto . RegisterType ( ( * AddTowerRequest ) ( nil ) , "wtclientrpc.AddTowerRequest" )
proto . RegisterType ( ( * AddTowerResponse ) ( nil ) , "wtclientrpc.AddTowerResponse" )
proto . RegisterType ( ( * RemoveTowerRequest ) ( nil ) , "wtclientrpc.RemoveTowerRequest" )
proto . RegisterType ( ( * RemoveTowerResponse ) ( nil ) , "wtclientrpc.RemoveTowerResponse" )
proto . RegisterType ( ( * GetTowerInfoRequest ) ( nil ) , "wtclientrpc.GetTowerInfoRequest" )
proto . RegisterType ( ( * TowerSession ) ( nil ) , "wtclientrpc.TowerSession" )
proto . RegisterType ( ( * Tower ) ( nil ) , "wtclientrpc.Tower" )
proto . RegisterType ( ( * ListTowersRequest ) ( nil ) , "wtclientrpc.ListTowersRequest" )
proto . RegisterType ( ( * ListTowersResponse ) ( nil ) , "wtclientrpc.ListTowersResponse" )
proto . RegisterType ( ( * StatsRequest ) ( nil ) , "wtclientrpc.StatsRequest" )
proto . RegisterType ( ( * StatsResponse ) ( nil ) , "wtclientrpc.StatsResponse" )
proto . RegisterType ( ( * PolicyRequest ) ( nil ) , "wtclientrpc.PolicyRequest" )
proto . RegisterType ( ( * PolicyResponse ) ( nil ) , "wtclientrpc.PolicyResponse" )
}
func init ( ) { proto . RegisterFile ( "wtclientrpc/wtclient.proto" , fileDescriptor_b5f4e7d95a641af2 ) }
var fileDescriptor_b5f4e7d95a641af2 = [ ] byte {
// 765 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0xac , 0x55 , 0xdd , 0x6e , 0xda , 0x48 ,
0x14 , 0x5e , 0xc3 , 0xc2 , 0x92 , 0x03 , 0x49 , 0xc8 , 0xb0 , 0xc9 , 0xb2 , 0xde , 0xec , 0xc2 , 0x5a , 0xbd ,
0xa0 , 0x51 , 0x0b , 0x2a , 0x69 , 0xa5 , 0x5c , 0x45 , 0x05 , 0x9a , 0xa4 , 0x91 , 0xd2 , 0x16 , 0x39 , 0xe9 ,
0xef , 0x8d , 0x35 , 0xd8 , 0x13 , 0xb0 , 0x82 , 0xc7 , 0x8e , 0x3d , 0x0e , 0xf0 , 0x18 , 0x7d , 0xa8 , 0x3e ,
0x40 , 0xdf , 0xa0 , 0x8f , 0xd1 , 0xcb , 0xca , 0xe3 , 0xb1 , 0xb1 , 0x13 , 0xa3 , 0xaa , 0x6a , 0xef , 0xec ,
0xf3 , 0x7d , 0xf3 , 0x79 , 0xce , 0x77 , 0x7e , 0x0c , 0xf2 , 0x8c , 0xe9 , 0x53 , 0x93 , 0x50 , 0xe6 , 0x3a ,
0x7a , 0x27 , 0x7a , 0x6e , 0x3b , 0xae , 0xcd , 0x6c , 0x54 , 0x4e , 0x60 , 0xca , 0x00 , 0x36 , 0x7b , 0x86 ,
0x71 , 0x61 , 0xcf , 0x88 , 0xab , 0x92 , 0x6b , 0x9f , 0x78 , 0x0c , 0xed , 0x40 , 0xd1 , 0xf1 , 0x47 , 0x57 ,
0x64 , 0x51 , 0x97 , 0x9a , 0x52 , 0xab , 0xa2 , 0x8a , 0x37 , 0x54 , 0x87 , 0x3f , 0xb0 , 0x61 , 0xb8 , 0xc4 ,
0xf3 , 0xea , 0xb9 , 0xa6 , 0xd4 , 0x5a , 0x53 , 0xa3 , 0x57 , 0x05 , 0x41 , 0x75 , 0x29 , 0xe2 , 0x39 , 0x36 ,
0xf5 , 0x88 , 0x72 , 0x0c , 0x48 , 0x25 , 0x96 , 0x7d , 0x43 , 0x7e , 0x52 , 0x7b , 0x1b , 0x6a , 0x29 , 0x1d ,
0x21 , 0xff , 0x0e , 0x6a , 0x27 , 0x84 , 0xf1 , 0xd8 , 0x29 , 0xbd , 0xb4 , 0xbf , 0xa7 , 0x7f , 0x1f , 0xaa ,
0x26 , 0xd5 , 0xa7 , 0xbe , 0x41 , 0x34 , 0x8f , 0x78 , 0x9e , 0x69 , 0xd3 , 0xf0 , 0x43 , 0x25 , 0x75 , 0x53 ,
0xc4 , 0xcf , 0x45 , 0x58 , 0xf9 , 0x22 , 0x41 , 0x85 , 0xeb , 0x8a , 0x08 , 0x6a , 0x40 , 0x99 , 0xfa , 0x96 ,
0x36 , 0xc2 , 0xfa , 0x95 , 0xef , 0x78 , 0x5c , 0x78 , 0x5d , 0x05 , 0xea , 0x5b , 0xfd , 0x30 , 0x82 , 0xda ,
0x50 , 0x0b , 0x08 , 0x0e , 0xa1 , 0x86 , 0x49 , 0xc7 , 0x31 , 0x31 , 0xc7 , 0x89 , 0x5b , 0xd4 , 0xb7 , 0x86 ,
0x21 , 0x12 , 0xf1 , 0x1b , 0x50 , 0xb6 , 0xf0 , 0x3c , 0xe6 , 0xe5 , 0x43 , 0x41 , 0x0b , 0xcf , 0x23 , 0x42 ,
0x07 , 0x90 , 0x37 , 0x23 , 0xc4 , 0xd1 , 0x3c , 0xcc , 0x34 , 0x87 , 0xb8 , 0xda , 0x68 , 0xc1 , 0x48 , 0xfd ,
0xf7 , 0x80 , 0xd7 , 0xcf , 0xd5 , 0x25 , 0x75 , 0x93 , 0xa3 , 0xe7 , 0x98 , 0x0d , 0x89 , 0xdb , 0x5f , 0x30 ,
0x82 , 0x1e , 0x42 , 0x2d , 0x7d , 0xe0 , 0x86 , 0x9f , 0x28 , 0x70 , 0xe5 , 0x6a , 0x82 , 0xfd , 0x26 , 0x88 ,
0x2b , 0x9f , 0x25 , 0x28 , 0xf0 , 0x14 , 0x57 , 0xfa , 0xb5 , 0x0b , 0x6b , 0xa2 , 0x00 , 0x24 , 0x48 , 0x24 ,
0xdf , 0x5a , 0x53 , 0x97 , 0x01 , 0x74 , 0x00 , 0x75 , 0xac , 0x33 , 0xf3 , 0x26 , 0x36 , 0x53 , 0xd3 , 0x31 ,
0x35 , 0x4c , 0x03 , 0x33 , 0xc2 , 0xb3 , 0x29 , 0xa9 , 0x3b , 0x21 , 0x2e , 0x2c , 0x1c , 0x44 , 0x28 , 0xfa ,
0x1f , 0x2a , 0x81 , 0x55 , 0x71 , 0x0d , 0x78 , 0x4e , 0x6a , 0xe0 , 0x6f , 0xe4 , 0x3f , 0x7a , 0x02 , 0xa5 ,
0x18 , 0x2e , 0x34 , 0xf3 , 0xad , 0x72 , 0xf7 , 0xef , 0x76 , 0xa2 , 0x63 , 0xdb , 0xc9 , 0xda , 0xa8 , 0x31 ,
0x55 , 0x39 , 0x84 , 0xad , 0x33 , 0xd3 , 0x0b , 0x3b , 0xc2 , 0x8b , 0xda , 0x21 , 0xab , 0xec , 0x52 , 0x76 ,
0xd9 , 0x9f , 0x02 , 0x4a , 0x9e , 0x0f , 0xdb , 0x0c , 0xed , 0x41 , 0x91 , 0xf1 , 0x48 , 0x5d , 0xe2 , 0x57 ,
0x41 , 0x77 , 0xaf , 0xa2 , 0x0a , 0x86 , 0xb2 , 0x01 , 0x95 , 0x73 , 0x86 , 0x59 , 0xf4 , 0x71 , 0xe5 , 0xab ,
0x04 , 0xeb , 0x22 , 0x20 , 0xd4 , 0x7e , 0x79 , 0x27 , 0x3d , 0x00 , 0x14 , 0xf0 , 0x2f , 0xb1 , 0x39 , 0x25 ,
0xc6 , 0xad , 0x86 , 0xaa , 0x52 , 0xdf , 0x3a , 0xe6 , 0x40 , 0xc4 , 0xee , 0xc2 , 0x76 , 0xd2 , 0x7c , 0x0d ,
0xeb , 0xd7 , 0xbe , 0xe9 , 0x12 , 0x43 , 0x54 , 0xa1 , 0x96 , 0xa8 , 0x42 , 0x4f , 0x40 , 0xe8 , 0x31 , 0xec ,
0xa4 , 0xce , 0x90 , 0xf9 , 0x04 , 0xfb , 0x1e , 0x23 , 0x86 , 0x68 , 0xae , 0x3f , 0x13 , 0x87 , 0x8e , 0x22 ,
0x4c , 0x39 , 0x85 , 0xf5 , 0xa1 , 0x3d , 0x35 , 0xf5 , 0x45 , 0x54 , 0x88 , 0x03 , 0x28 , 0x3b , 0x3c , 0xa0 ,
0xb1 , 0x85 , 0x43 , 0x78 , 0xe6 , 0x1b , 0xdd , 0xbf , 0x52 , 0x66 , 0x86 , 0x07 , 0x2e , 0x16 , 0x0e , 0x51 ,
0xc1 , 0x89 , 0x9f , 0x95 , 0x8f , 0x12 , 0x6c , 0x44 , 0x5a , 0x4b , 0x1b , 0x83 , 0xf9 , 0xf1 , 0x9d , 0xa0 ,
0xa5 , 0x62 , 0x1b , 0x2d , 0x3c , 0x7f , 0x1d , 0x46 , 0x56 , 0xcc , 0x4f , 0xee , 0x87 , 0xe7 , 0x27 , 0x9f ,
0x3d , 0x3f , 0x7b , 0xf7 , 0x00 , 0x96 , 0xb7 , 0x45 , 0x00 , 0xc5 , 0xb3 , 0xa3 , 0x93 , 0xde , 0xe0 , 0x7d ,
0xf5 , 0xb7 , 0xe0 , 0xb9 , 0xf7 , 0x72 , 0xf0 , 0xfc , 0x95 , 0x5a , 0x95 , 0xba , 0x9f , 0xf2 , 0x50 , 0x7d ,
0x8b , 0x99 , 0x3e , 0xe1 , 0xfd , 0x31 , 0xe0 , 0x89 , 0xa2 , 0x13 , 0x28 , 0x45 , 0xab , 0x12 , 0xed , 0xa6 ,
0xf2 , 0xbf , 0xb5 , 0x86 , 0xe5 , 0x7f , 0x57 , 0xa0 , 0xc2 , 0x84 , 0x21 , 0x94 , 0x13 , 0x7b , 0x11 , 0x35 ,
0x52 , 0xec , 0xbb , 0x9b , 0x57 , 0x6e , 0xae , 0x26 , 0x08 , 0xc5 , 0x17 , 0x00 , 0xcb , 0x09 , 0x40 , 0xff ,
0xa5 , 0xf8 , 0x77 , 0x46 , 0x4b , 0x6e , 0xac , 0xc4 , 0x85 , 0xdc , 0x33 , 0xa8 , 0x24 , 0x37 , 0x34 , 0x4a ,
0x5f , 0x20 , 0x63 , 0x79 , 0xcb , 0x19 , 0xc3 , 0x85 , 0x0e , 0xa1 , 0xc0 , 0x67 , 0x08 , 0xa5 , 0x97 , 0x40 ,
0x72 , 0xd0 , 0x64 , 0x39 , 0x0b , 0x12 , 0xb7 , 0xe8 , 0x41 , 0x31 , 0x2c , 0x15 , 0x92 , 0x33 , 0xba , 0x2d ,
0x52 , 0xf8 , 0x27 , 0x13 , 0x0b , 0x25 , 0xfa , 0xfb , 0x1f , 0x1e , 0x8d , 0x4d , 0x36 , 0xf1 , 0x47 , 0x6d ,
0xdd , 0xb6 , 0x3a , 0x53 , 0x73 , 0x3c , 0x61 , 0xd4 , 0xa4 , 0x63 , 0x4a , 0xd8 , 0xcc , 0x76 , 0xaf , 0x3a ,
0x53 , 0x6a , 0x74 , 0xa6 , 0x34 , 0xf9 , 0x9f , 0x75 , 0x1d , 0x7d , 0x54 , 0xe4 , 0xff , 0xda , 0xfd , 0x6f ,
0x01 , 0x00 , 0x00 , 0xff , 0xff , 0x49 , 0xcd , 0xe9 , 0xf8 , 0x89 , 0x07 , 0x00 , 0x00 ,
var File_wtclientrpc_wtclient_proto protoreflect . FileDescriptor
var file_wtclientrpc_wtclient_proto_rawDesc = [ ] byte {
0x0a , 0x1a , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x2f , 0x77 , 0x74 ,
0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x0b , 0x77 , 0x74 ,
0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x22 , 0x43 , 0x0a , 0x0f , 0x41 , 0x64 , 0x64 ,
0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x16 , 0x0a , 0x06 ,
0x70 , 0x75 , 0x62 , 0x6b , 0x65 , 0x79 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x06 , 0x70 , 0x75 ,
0x62 , 0x6b , 0x65 , 0x79 , 0x12 , 0x18 , 0x0a , 0x07 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x18 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x22 , 0x12 ,
0x0a , 0x10 , 0x41 , 0x64 , 0x64 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e ,
0x73 , 0x65 , 0x22 , 0x46 , 0x0a , 0x12 , 0x52 , 0x65 , 0x6d , 0x6f , 0x76 , 0x65 , 0x54 , 0x6f , 0x77 , 0x65 ,
0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x16 , 0x0a , 0x06 , 0x70 , 0x75 , 0x62 , 0x6b ,
0x65 , 0x79 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x06 , 0x70 , 0x75 , 0x62 , 0x6b , 0x65 , 0x79 ,
0x12 , 0x18 , 0x0a , 0x07 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 ,
0x09 , 0x52 , 0x07 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x22 , 0x15 , 0x0a , 0x13 , 0x52 , 0x65 ,
0x6d , 0x6f , 0x76 , 0x65 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 ,
0x65 , 0x22 , 0x58 , 0x0a , 0x13 , 0x47 , 0x65 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x49 , 0x6e , 0x66 ,
0x6f , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x16 , 0x0a , 0x06 , 0x70 , 0x75 , 0x62 , 0x6b ,
0x65 , 0x79 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x06 , 0x70 , 0x75 , 0x62 , 0x6b , 0x65 , 0x79 ,
0x12 , 0x29 , 0x0a , 0x10 , 0x69 , 0x6e , 0x63 , 0x6c , 0x75 , 0x64 , 0x65 , 0x5f , 0x73 , 0x65 , 0x73 , 0x73 ,
0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x0f , 0x69 , 0x6e , 0x63 , 0x6c ,
0x75 , 0x64 , 0x65 , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x22 , 0xe0 , 0x01 , 0x0a , 0x0c ,
0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x12 , 0x1f , 0x0a , 0x0b ,
0x6e , 0x75 , 0x6d , 0x5f , 0x62 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 ,
0x0d , 0x52 , 0x0a , 0x6e , 0x75 , 0x6d , 0x42 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x12 , 0x2e , 0x0a ,
0x13 , 0x6e , 0x75 , 0x6d , 0x5f , 0x70 , 0x65 , 0x6e , 0x64 , 0x69 , 0x6e , 0x67 , 0x5f , 0x62 , 0x61 , 0x63 ,
0x6b , 0x75 , 0x70 , 0x73 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x11 , 0x6e , 0x75 , 0x6d , 0x50 ,
0x65 , 0x6e , 0x64 , 0x69 , 0x6e , 0x67 , 0x42 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x12 , 0x1f , 0x0a ,
0x0b , 0x6d , 0x61 , 0x78 , 0x5f , 0x62 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x18 , 0x03 , 0x20 , 0x01 ,
0x28 , 0x0d , 0x52 , 0x0a , 0x6d , 0x61 , 0x78 , 0x42 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x12 , 0x2f ,
0x0a , 0x12 , 0x73 , 0x77 , 0x65 , 0x65 , 0x70 , 0x5f , 0x73 , 0x61 , 0x74 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f ,
0x62 , 0x79 , 0x74 , 0x65 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x0d , 0x42 , 0x02 , 0x18 , 0x01 , 0x52 , 0x0f ,
0x73 , 0x77 , 0x65 , 0x65 , 0x70 , 0x53 , 0x61 , 0x74 , 0x50 , 0x65 , 0x72 , 0x42 , 0x79 , 0x74 , 0x65 , 0x12 ,
0x2d , 0x0a , 0x13 , 0x73 , 0x77 , 0x65 , 0x65 , 0x70 , 0x5f , 0x73 , 0x61 , 0x74 , 0x5f , 0x70 , 0x65 , 0x72 ,
0x5f , 0x76 , 0x62 , 0x79 , 0x74 , 0x65 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x10 , 0x73 , 0x77 ,
0x65 , 0x65 , 0x70 , 0x53 , 0x61 , 0x74 , 0x50 , 0x65 , 0x72 , 0x56 , 0x62 , 0x79 , 0x74 , 0x65 , 0x22 , 0xd1 ,
0x01 , 0x0a , 0x05 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x12 , 0x16 , 0x0a , 0x06 , 0x70 , 0x75 , 0x62 , 0x6b ,
0x65 , 0x79 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x06 , 0x70 , 0x75 , 0x62 , 0x6b , 0x65 , 0x79 ,
0x12 , 0x1c , 0x0a , 0x09 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x65 , 0x73 , 0x18 , 0x02 , 0x20 ,
0x03 , 0x28 , 0x09 , 0x52 , 0x09 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x65 , 0x73 , 0x12 , 0x38 ,
0x0a , 0x18 , 0x61 , 0x63 , 0x74 , 0x69 , 0x76 , 0x65 , 0x5f , 0x73 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e ,
0x5f , 0x63 , 0x61 , 0x6e , 0x64 , 0x69 , 0x64 , 0x61 , 0x74 , 0x65 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x08 ,
0x52 , 0x16 , 0x61 , 0x63 , 0x74 , 0x69 , 0x76 , 0x65 , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x43 ,
0x61 , 0x6e , 0x64 , 0x69 , 0x64 , 0x61 , 0x74 , 0x65 , 0x12 , 0x21 , 0x0a , 0x0c , 0x6e , 0x75 , 0x6d , 0x5f ,
0x73 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0b ,
0x6e , 0x75 , 0x6d , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x12 , 0x35 , 0x0a , 0x08 , 0x73 ,
0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x05 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x19 , 0x2e ,
0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x2e , 0x54 , 0x6f , 0x77 , 0x65 ,
0x72 , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x52 , 0x08 , 0x73 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f ,
0x6e , 0x73 , 0x22 , 0x3e , 0x0a , 0x11 , 0x4c , 0x69 , 0x73 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x73 ,
0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x29 , 0x0a , 0x10 , 0x69 , 0x6e , 0x63 , 0x6c , 0x75 ,
0x64 , 0x65 , 0x5f , 0x73 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 ,
0x08 , 0x52 , 0x0f , 0x69 , 0x6e , 0x63 , 0x6c , 0x75 , 0x64 , 0x65 , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f ,
0x6e , 0x73 , 0x22 , 0x40 , 0x0a , 0x12 , 0x4c , 0x69 , 0x73 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x73 ,
0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x2a , 0x0a , 0x06 , 0x74 , 0x6f , 0x77 , 0x65 ,
0x72 , 0x73 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x12 , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 ,
0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x2e , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x06 , 0x74 , 0x6f ,
0x77 , 0x65 , 0x72 , 0x73 , 0x22 , 0x0e , 0x0a , 0x0c , 0x53 , 0x74 , 0x61 , 0x74 , 0x73 , 0x52 , 0x65 , 0x71 ,
0x75 , 0x65 , 0x73 , 0x74 , 0x22 , 0xf8 , 0x01 , 0x0a , 0x0d , 0x53 , 0x74 , 0x61 , 0x74 , 0x73 , 0x52 , 0x65 ,
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x1f , 0x0a , 0x0b , 0x6e , 0x75 , 0x6d , 0x5f , 0x62 , 0x61 ,
0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0a , 0x6e , 0x75 , 0x6d ,
0x42 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x12 , 0x2e , 0x0a , 0x13 , 0x6e , 0x75 , 0x6d , 0x5f , 0x70 ,
0x65 , 0x6e , 0x64 , 0x69 , 0x6e , 0x67 , 0x5f , 0x62 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x18 , 0x02 ,
0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x11 , 0x6e , 0x75 , 0x6d , 0x50 , 0x65 , 0x6e , 0x64 , 0x69 , 0x6e , 0x67 ,
0x42 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x12 , 0x2c , 0x0a , 0x12 , 0x6e , 0x75 , 0x6d , 0x5f , 0x66 ,
0x61 , 0x69 , 0x6c , 0x65 , 0x64 , 0x5f , 0x62 , 0x61 , 0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x18 , 0x03 , 0x20 ,
0x01 , 0x28 , 0x0d , 0x52 , 0x10 , 0x6e , 0x75 , 0x6d , 0x46 , 0x61 , 0x69 , 0x6c , 0x65 , 0x64 , 0x42 , 0x61 ,
0x63 , 0x6b , 0x75 , 0x70 , 0x73 , 0x12 , 0x32 , 0x0a , 0x15 , 0x6e , 0x75 , 0x6d , 0x5f , 0x73 , 0x65 , 0x73 ,
0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x5f , 0x61 , 0x63 , 0x71 , 0x75 , 0x69 , 0x72 , 0x65 , 0x64 , 0x18 , 0x04 ,
0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x13 , 0x6e , 0x75 , 0x6d , 0x53 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e ,
0x73 , 0x41 , 0x63 , 0x71 , 0x75 , 0x69 , 0x72 , 0x65 , 0x64 , 0x12 , 0x34 , 0x0a , 0x16 , 0x6e , 0x75 , 0x6d ,
0x5f , 0x73 , 0x65 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x5f , 0x65 , 0x78 , 0x68 , 0x61 , 0x75 , 0x73 ,
0x74 , 0x65 , 0x64 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x14 , 0x6e , 0x75 , 0x6d , 0x53 , 0x65 ,
0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x45 , 0x78 , 0x68 , 0x61 , 0x75 , 0x73 , 0x74 , 0x65 , 0x64 , 0x22 ,
0x49 , 0x0a , 0x0d , 0x50 , 0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 ,
0x12 , 0x38 , 0x0a , 0x0b , 0x70 , 0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x5f , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 ,
0x01 , 0x20 , 0x01 , 0x28 , 0x0e , 0x32 , 0x17 , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 ,
0x72 , 0x70 , 0x63 , 0x2e , 0x50 , 0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x54 , 0x79 , 0x70 , 0x65 , 0x52 , 0x0a ,
0x70 , 0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x54 , 0x79 , 0x70 , 0x65 , 0x22 , 0x91 , 0x01 , 0x0a , 0x0e , 0x50 ,
0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x1f , 0x0a ,
0x0b , 0x6d , 0x61 , 0x78 , 0x5f , 0x75 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 ,
0x28 , 0x0d , 0x52 , 0x0a , 0x6d , 0x61 , 0x78 , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x73 , 0x12 , 0x2f ,
0x0a , 0x12 , 0x73 , 0x77 , 0x65 , 0x65 , 0x70 , 0x5f , 0x73 , 0x61 , 0x74 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f ,
0x62 , 0x79 , 0x74 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x42 , 0x02 , 0x18 , 0x01 , 0x52 , 0x0f ,
0x73 , 0x77 , 0x65 , 0x65 , 0x70 , 0x53 , 0x61 , 0x74 , 0x50 , 0x65 , 0x72 , 0x42 , 0x79 , 0x74 , 0x65 , 0x12 ,
0x2d , 0x0a , 0x13 , 0x73 , 0x77 , 0x65 , 0x65 , 0x70 , 0x5f , 0x73 , 0x61 , 0x74 , 0x5f , 0x70 , 0x65 , 0x72 ,
0x5f , 0x76 , 0x62 , 0x79 , 0x74 , 0x65 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x10 , 0x73 , 0x77 ,
0x65 , 0x65 , 0x70 , 0x53 , 0x61 , 0x74 , 0x50 , 0x65 , 0x72 , 0x56 , 0x62 , 0x79 , 0x74 , 0x65 , 0x2a , 0x24 ,
0x0a , 0x0a , 0x50 , 0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x0a , 0x0a , 0x06 ,
0x4c , 0x45 , 0x47 , 0x41 , 0x43 , 0x59 , 0x10 , 0x00 , 0x12 , 0x0a , 0x0a , 0x06 , 0x41 , 0x4e , 0x43 , 0x48 ,
0x4f , 0x52 , 0x10 , 0x01 , 0x32 , 0xc5 , 0x03 , 0x0a , 0x10 , 0x57 , 0x61 , 0x74 , 0x63 , 0x68 , 0x74 , 0x6f ,
0x77 , 0x65 , 0x72 , 0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x12 , 0x47 , 0x0a , 0x08 , 0x41 , 0x64 , 0x64 ,
0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x12 , 0x1c , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 ,
0x72 , 0x70 , 0x63 , 0x2e , 0x41 , 0x64 , 0x64 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x1a , 0x1d , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 ,
0x63 , 0x2e , 0x41 , 0x64 , 0x64 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e ,
0x73 , 0x65 , 0x12 , 0x50 , 0x0a , 0x0b , 0x52 , 0x65 , 0x6d , 0x6f , 0x76 , 0x65 , 0x54 , 0x6f , 0x77 , 0x65 ,
0x72 , 0x12 , 0x1f , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x2e ,
0x52 , 0x65 , 0x6d , 0x6f , 0x76 , 0x65 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 ,
0x73 , 0x74 , 0x1a , 0x20 , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 ,
0x2e , 0x52 , 0x65 , 0x6d , 0x6f , 0x76 , 0x65 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 ,
0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x4d , 0x0a , 0x0a , 0x4c , 0x69 , 0x73 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 ,
0x72 , 0x73 , 0x12 , 0x1e , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 ,
0x2e , 0x4c , 0x69 , 0x73 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 ,
0x73 , 0x74 , 0x1a , 0x1f , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 ,
0x2e , 0x4c , 0x69 , 0x73 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x12 , 0x44 , 0x0a , 0x0c , 0x47 , 0x65 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x49 ,
0x6e , 0x66 , 0x6f , 0x12 , 0x20 , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 ,
0x63 , 0x2e , 0x47 , 0x65 , 0x74 , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x49 , 0x6e , 0x66 , 0x6f , 0x52 , 0x65 ,
0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x12 , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 ,
0x72 , 0x70 , 0x63 , 0x2e , 0x54 , 0x6f , 0x77 , 0x65 , 0x72 , 0x12 , 0x3e , 0x0a , 0x05 , 0x53 , 0x74 , 0x61 ,
0x74 , 0x73 , 0x12 , 0x19 , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 ,
0x2e , 0x53 , 0x74 , 0x61 , 0x74 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1a , 0x2e ,
0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x2e , 0x53 , 0x74 , 0x61 , 0x74 ,
0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x41 , 0x0a , 0x06 , 0x50 , 0x6f , 0x6c ,
0x69 , 0x63 , 0x79 , 0x12 , 0x1a , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 ,
0x63 , 0x2e , 0x50 , 0x6f , 0x6c , 0x69 , 0x63 , 0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a ,
0x1b , 0x2e , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 , 0x63 , 0x2e , 0x50 , 0x6f ,
0x6c , 0x69 , 0x63 , 0x79 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x42 , 0x33 , 0x5a , 0x31 ,
0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x6c , 0x69 , 0x67 , 0x68 , 0x74 ,
0x6e , 0x69 , 0x6e , 0x67 , 0x6e , 0x65 , 0x74 , 0x77 , 0x6f , 0x72 , 0x6b , 0x2f , 0x6c , 0x6e , 0x64 , 0x2f ,
0x6c , 0x6e , 0x72 , 0x70 , 0x63 , 0x2f , 0x77 , 0x74 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x72 , 0x70 ,
0x63 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
file_wtclientrpc_wtclient_proto_rawDescOnce sync . Once
file_wtclientrpc_wtclient_proto_rawDescData = file_wtclientrpc_wtclient_proto_rawDesc
)
func file_wtclientrpc_wtclient_proto_rawDescGZIP ( ) [ ] byte {
file_wtclientrpc_wtclient_proto_rawDescOnce . Do ( func ( ) {
file_wtclientrpc_wtclient_proto_rawDescData = protoimpl . X . CompressGZIP ( file_wtclientrpc_wtclient_proto_rawDescData )
} )
return file_wtclientrpc_wtclient_proto_rawDescData
}
var file_wtclientrpc_wtclient_proto_enumTypes = make ( [ ] protoimpl . EnumInfo , 1 )
var file_wtclientrpc_wtclient_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 13 )
var file_wtclientrpc_wtclient_proto_goTypes = [ ] interface { } {
( PolicyType ) ( 0 ) , // 0: wtclientrpc.PolicyType
( * AddTowerRequest ) ( nil ) , // 1: wtclientrpc.AddTowerRequest
( * AddTowerResponse ) ( nil ) , // 2: wtclientrpc.AddTowerResponse
( * RemoveTowerRequest ) ( nil ) , // 3: wtclientrpc.RemoveTowerRequest
( * RemoveTowerResponse ) ( nil ) , // 4: wtclientrpc.RemoveTowerResponse
( * GetTowerInfoRequest ) ( nil ) , // 5: wtclientrpc.GetTowerInfoRequest
( * TowerSession ) ( nil ) , // 6: wtclientrpc.TowerSession
( * Tower ) ( nil ) , // 7: wtclientrpc.Tower
( * ListTowersRequest ) ( nil ) , // 8: wtclientrpc.ListTowersRequest
( * ListTowersResponse ) ( nil ) , // 9: wtclientrpc.ListTowersResponse
( * StatsRequest ) ( nil ) , // 10: wtclientrpc.StatsRequest
( * StatsResponse ) ( nil ) , // 11: wtclientrpc.StatsResponse
( * PolicyRequest ) ( nil ) , // 12: wtclientrpc.PolicyRequest
( * PolicyResponse ) ( nil ) , // 13: wtclientrpc.PolicyResponse
}
var file_wtclientrpc_wtclient_proto_depIdxs = [ ] int32 {
6 , // 0: wtclientrpc.Tower.sessions:type_name -> wtclientrpc.TowerSession
7 , // 1: wtclientrpc.ListTowersResponse.towers:type_name -> wtclientrpc.Tower
0 , // 2: wtclientrpc.PolicyRequest.policy_type:type_name -> wtclientrpc.PolicyType
1 , // 3: wtclientrpc.WatchtowerClient.AddTower:input_type -> wtclientrpc.AddTowerRequest
3 , // 4: wtclientrpc.WatchtowerClient.RemoveTower:input_type -> wtclientrpc.RemoveTowerRequest
8 , // 5: wtclientrpc.WatchtowerClient.ListTowers:input_type -> wtclientrpc.ListTowersRequest
5 , // 6: wtclientrpc.WatchtowerClient.GetTowerInfo:input_type -> wtclientrpc.GetTowerInfoRequest
10 , // 7: wtclientrpc.WatchtowerClient.Stats:input_type -> wtclientrpc.StatsRequest
12 , // 8: wtclientrpc.WatchtowerClient.Policy:input_type -> wtclientrpc.PolicyRequest
2 , // 9: wtclientrpc.WatchtowerClient.AddTower:output_type -> wtclientrpc.AddTowerResponse
4 , // 10: wtclientrpc.WatchtowerClient.RemoveTower:output_type -> wtclientrpc.RemoveTowerResponse
9 , // 11: wtclientrpc.WatchtowerClient.ListTowers:output_type -> wtclientrpc.ListTowersResponse
7 , // 12: wtclientrpc.WatchtowerClient.GetTowerInfo:output_type -> wtclientrpc.Tower
11 , // 13: wtclientrpc.WatchtowerClient.Stats:output_type -> wtclientrpc.StatsResponse
13 , // 14: wtclientrpc.WatchtowerClient.Policy:output_type -> wtclientrpc.PolicyResponse
9 , // [9:15] is the sub-list for method output_type
3 , // [3:9] is the sub-list for method input_type
3 , // [3:3] is the sub-list for extension type_name
3 , // [3:3] is the sub-list for extension extendee
0 , // [0:3] is the sub-list for field type_name
}
func init ( ) { file_wtclientrpc_wtclient_proto_init ( ) }
func file_wtclientrpc_wtclient_proto_init ( ) {
if File_wtclientrpc_wtclient_proto != nil {
return
}
if ! protoimpl . UnsafeEnabled {
file_wtclientrpc_wtclient_proto_msgTypes [ 0 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * AddTowerRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * AddTowerResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * RemoveTowerRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 3 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * RemoveTowerResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 4 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * GetTowerInfoRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 5 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * TowerSession ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 6 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Tower ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 7 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * ListTowersRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * ListTowersResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 9 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * StatsRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 10 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * StatsResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 11 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * PolicyRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_wtclientrpc_wtclient_proto_msgTypes [ 12 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * PolicyResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
}
type x struct { }
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_wtclientrpc_wtclient_proto_rawDesc ,
NumEnums : 1 ,
NumMessages : 13 ,
NumExtensions : 0 ,
NumServices : 1 ,
} ,
GoTypes : file_wtclientrpc_wtclient_proto_goTypes ,
DependencyIndexes : file_wtclientrpc_wtclient_proto_depIdxs ,
EnumInfos : file_wtclientrpc_wtclient_proto_enumTypes ,
MessageInfos : file_wtclientrpc_wtclient_proto_msgTypes ,
} . Build ( )
File_wtclientrpc_wtclient_proto = out . File
file_wtclientrpc_wtclient_proto_rawDesc = nil
file_wtclientrpc_wtclient_proto_goTypes = nil
file_wtclientrpc_wtclient_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context . Context
var _ grpc . ClientConn
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 . SupportPackageIsVersion4
const _ = grpc . SupportPackageIsVersion6
// WatchtowerClientClient is the client API for WatchtowerClient service.
//
@ -831,10 +1254,10 @@ type WatchtowerClientClient interface {
}
type watchtowerClientClient struct {
cc * grpc . ClientConn
cc grpc . ClientConnInterface
}
func NewWatchtowerClientClient ( cc * grpc . ClientConn ) WatchtowerClientClient {
func NewWatchtowerClientClient ( cc grpc . ClientConnInterface ) WatchtowerClientClient {
return & watchtowerClientClient { cc }
}
@ -920,22 +1343,22 @@ type WatchtowerClientServer interface {
type UnimplementedWatchtowerClientServer struct {
}
func ( * UnimplementedWatchtowerClientServer ) AddTower ( ctx c ontext . Context , req * AddTowerRequest ) ( * AddTowerResponse , error ) {
func ( * UnimplementedWatchtowerClientServer ) AddTower ( context . Context , * AddTowerRequest ) ( * AddTowerResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method AddTower not implemented" )
}
func ( * UnimplementedWatchtowerClientServer ) RemoveTower ( ctx c ontext . Context , req * RemoveTowerRequest ) ( * RemoveTowerResponse , error ) {
func ( * UnimplementedWatchtowerClientServer ) RemoveTower ( context . Context , * RemoveTowerRequest ) ( * RemoveTowerResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RemoveTower not implemented" )
}
func ( * UnimplementedWatchtowerClientServer ) ListTowers ( ctx c ontext . Context , req * ListTowersRequest ) ( * ListTowersResponse , error ) {
func ( * UnimplementedWatchtowerClientServer ) ListTowers ( context . Context , * ListTowersRequest ) ( * ListTowersResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListTowers not implemented" )
}
func ( * UnimplementedWatchtowerClientServer ) GetTowerInfo ( ctx c ontext . Context , req * GetTowerInfoRequest ) ( * Tower , error ) {
func ( * UnimplementedWatchtowerClientServer ) GetTowerInfo ( context . Context , * GetTowerInfoRequest ) ( * Tower , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetTowerInfo not implemented" )
}
func ( * UnimplementedWatchtowerClientServer ) Stats ( ctx c ontext . Context , req * StatsRequest ) ( * StatsResponse , error ) {
func ( * UnimplementedWatchtowerClientServer ) Stats ( context . Context , * StatsRequest ) ( * StatsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Stats not implemented" )
}
func ( * UnimplementedWatchtowerClientServer ) Policy ( ctx c ontext . Context , req * PolicyRequest ) ( * PolicyResponse , error ) {
func ( * UnimplementedWatchtowerClientServer ) Policy ( context . Context , * PolicyRequest ) ( * PolicyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Policy not implemented" )
}