File
Blob: spec/protocol/client_query.pb.go
| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.36.11 |
| 4 | // protoc v7.34.0 |
| 5 | // source: spec/proto/client_query.proto |
| 6 | |
| 7 | package protocol |
| 8 | |
| 9 | import ( |
| 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 | reflect "reflect" |
| 13 | sync "sync" |
| 14 | unsafe "unsafe" |
| 15 | ) |
| 16 | |
| 17 | const ( |
| 18 | // Verify that this generated code is sufficiently up-to-date. |
| 19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 | ) |
| 23 | |
| 24 | type ClientTunnel struct { |
| 25 | state protoimpl.MessageState `protogen:"open.v1"` |
| 26 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 27 | Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` |
| 28 | unknownFields protoimpl.UnknownFields |
| 29 | sizeCache protoimpl.SizeCache |
| 30 | } |
| 31 | |
| 32 | func (x *ClientTunnel) Reset() { |
| 33 | *x = ClientTunnel{} |
| 34 | mi := &file_spec_proto_client_query_proto_msgTypes[0] |
| 35 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 36 | ms.StoreMessageInfo(mi) |
| 37 | } |
| 38 | |
| 39 | func (x *ClientTunnel) String() string { |
| 40 | return protoimpl.X.MessageStringOf(x) |
| 41 | } |
| 42 | |
| 43 | func (*ClientTunnel) ProtoMessage() {} |
| 44 | |
| 45 | func (x *ClientTunnel) ProtoReflect() protoreflect.Message { |
| 46 | mi := &file_spec_proto_client_query_proto_msgTypes[0] |
| 47 | if x != nil { |
| 48 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 49 | if ms.LoadMessageInfo() == nil { |
| 50 | ms.StoreMessageInfo(mi) |
| 51 | } |
| 52 | return ms |
| 53 | } |
| 54 | return mi.MessageOf(x) |
| 55 | } |
| 56 | |
| 57 | // Deprecated: Use ClientTunnel.ProtoReflect.Descriptor instead. |
| 58 | func (*ClientTunnel) Descriptor() ([]byte, []int) { |
| 59 | return file_spec_proto_client_query_proto_rawDescGZIP(), []int{0} |
| 60 | } |
| 61 | |
| 62 | func (x *ClientTunnel) GetHostname() string { |
| 63 | if x != nil { |
| 64 | return x.Hostname |
| 65 | } |
| 66 | return "" |
| 67 | } |
| 68 | |
| 69 | func (x *ClientTunnel) GetTarget() string { |
| 70 | if x != nil { |
| 71 | return x.Target |
| 72 | } |
| 73 | return "" |
| 74 | } |
| 75 | |
| 76 | type ListTunnelsRequest struct { |
| 77 | state protoimpl.MessageState `protogen:"open.v1"` |
| 78 | unknownFields protoimpl.UnknownFields |
| 79 | sizeCache protoimpl.SizeCache |
| 80 | } |
| 81 | |
| 82 | func (x *ListTunnelsRequest) Reset() { |
| 83 | *x = ListTunnelsRequest{} |
| 84 | mi := &file_spec_proto_client_query_proto_msgTypes[1] |
| 85 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 86 | ms.StoreMessageInfo(mi) |
| 87 | } |
| 88 | |
| 89 | func (x *ListTunnelsRequest) String() string { |
| 90 | return protoimpl.X.MessageStringOf(x) |
| 91 | } |
| 92 | |
| 93 | func (*ListTunnelsRequest) ProtoMessage() {} |
| 94 | |
| 95 | func (x *ListTunnelsRequest) ProtoReflect() protoreflect.Message { |
| 96 | mi := &file_spec_proto_client_query_proto_msgTypes[1] |
| 97 | if x != nil { |
| 98 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 99 | if ms.LoadMessageInfo() == nil { |
| 100 | ms.StoreMessageInfo(mi) |
| 101 | } |
| 102 | return ms |
| 103 | } |
| 104 | return mi.MessageOf(x) |
| 105 | } |
| 106 | |
| 107 | // Deprecated: Use ListTunnelsRequest.ProtoReflect.Descriptor instead. |
| 108 | func (*ListTunnelsRequest) Descriptor() ([]byte, []int) { |
| 109 | return file_spec_proto_client_query_proto_rawDescGZIP(), []int{1} |
| 110 | } |
| 111 | |
| 112 | type ListTunnelsResponse struct { |
| 113 | state protoimpl.MessageState `protogen:"open.v1"` |
| 114 | Tunnels []*ClientTunnel `protobuf:"bytes,1,rep,name=tunnels,proto3" json:"tunnels,omitempty"` |
| 115 | unknownFields protoimpl.UnknownFields |
| 116 | sizeCache protoimpl.SizeCache |
| 117 | } |
| 118 | |
| 119 | func (x *ListTunnelsResponse) Reset() { |
| 120 | *x = ListTunnelsResponse{} |
| 121 | mi := &file_spec_proto_client_query_proto_msgTypes[2] |
| 122 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 123 | ms.StoreMessageInfo(mi) |
| 124 | } |
| 125 | |
| 126 | func (x *ListTunnelsResponse) String() string { |
| 127 | return protoimpl.X.MessageStringOf(x) |
| 128 | } |
| 129 | |
| 130 | func (*ListTunnelsResponse) ProtoMessage() {} |
| 131 | |
| 132 | func (x *ListTunnelsResponse) ProtoReflect() protoreflect.Message { |
| 133 | mi := &file_spec_proto_client_query_proto_msgTypes[2] |
| 134 | if x != nil { |
| 135 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 136 | if ms.LoadMessageInfo() == nil { |
| 137 | ms.StoreMessageInfo(mi) |
| 138 | } |
| 139 | return ms |
| 140 | } |
| 141 | return mi.MessageOf(x) |
| 142 | } |
| 143 | |
| 144 | // Deprecated: Use ListTunnelsResponse.ProtoReflect.Descriptor instead. |
| 145 | func (*ListTunnelsResponse) Descriptor() ([]byte, []int) { |
| 146 | return file_spec_proto_client_query_proto_rawDescGZIP(), []int{2} |
| 147 | } |
| 148 | |
| 149 | func (x *ListTunnelsResponse) GetTunnels() []*ClientTunnel { |
| 150 | if x != nil { |
| 151 | return x.Tunnels |
| 152 | } |
| 153 | return nil |
| 154 | } |
| 155 | |
| 156 | var File_spec_proto_client_query_proto protoreflect.FileDescriptor |
| 157 | |
| 158 | const file_spec_proto_client_query_proto_rawDesc = "" + |
| 159 | "\n" + |
| 160 | "\x1dspec/proto/client_query.proto\x12\bprotocol\"B\n" + |
| 161 | "\fClientTunnel\x12\x1a\n" + |
| 162 | "\bhostname\x18\x01 \x01(\tR\bhostname\x12\x16\n" + |
| 163 | "\x06target\x18\x02 \x01(\tR\x06target\"\x14\n" + |
| 164 | "\x12ListTunnelsRequest\"G\n" + |
| 165 | "\x13ListTunnelsResponse\x120\n" + |
| 166 | "\atunnels\x18\x01 \x03(\v2\x16.protocol.ClientTunnelR\atunnels2`\n" + |
| 167 | "\x12ClientQueryService\x12J\n" + |
| 168 | "\vListTunnels\x12\x1c.protocol.ListTunnelsRequest\x1a\x1d.protocol.ListTunnelsResponseB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3" |
| 169 | |
| 170 | var ( |
| 171 | file_spec_proto_client_query_proto_rawDescOnce sync.Once |
| 172 | file_spec_proto_client_query_proto_rawDescData []byte |
| 173 | ) |
| 174 | |
| 175 | func file_spec_proto_client_query_proto_rawDescGZIP() []byte { |
| 176 | file_spec_proto_client_query_proto_rawDescOnce.Do(func() { |
| 177 | file_spec_proto_client_query_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_client_query_proto_rawDesc), len(file_spec_proto_client_query_proto_rawDesc))) |
| 178 | }) |
| 179 | return file_spec_proto_client_query_proto_rawDescData |
| 180 | } |
| 181 | |
| 182 | var file_spec_proto_client_query_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 183 | var file_spec_proto_client_query_proto_goTypes = []any{ |
| 184 | (*ClientTunnel)(nil), // 0: protocol.ClientTunnel |
| 185 | (*ListTunnelsRequest)(nil), // 1: protocol.ListTunnelsRequest |
| 186 | (*ListTunnelsResponse)(nil), // 2: protocol.ListTunnelsResponse |
| 187 | } |
| 188 | var file_spec_proto_client_query_proto_depIdxs = []int32{ |
| 189 | 0, // 0: protocol.ListTunnelsResponse.tunnels:type_name -> protocol.ClientTunnel |
| 190 | 1, // 1: protocol.ClientQueryService.ListTunnels:input_type -> protocol.ListTunnelsRequest |
| 191 | 2, // 2: protocol.ClientQueryService.ListTunnels:output_type -> protocol.ListTunnelsResponse |
| 192 | 2, // [2:3] is the sub-list for method output_type |
| 193 | 1, // [1:2] is the sub-list for method input_type |
| 194 | 1, // [1:1] is the sub-list for extension type_name |
| 195 | 1, // [1:1] is the sub-list for extension extendee |
| 196 | 0, // [0:1] is the sub-list for field type_name |
| 197 | } |
| 198 | |
| 199 | func init() { file_spec_proto_client_query_proto_init() } |
| 200 | func file_spec_proto_client_query_proto_init() { |
| 201 | if File_spec_proto_client_query_proto != nil { |
| 202 | return |
| 203 | } |
| 204 | type x struct{} |
| 205 | out := protoimpl.TypeBuilder{ |
| 206 | File: protoimpl.DescBuilder{ |
| 207 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 208 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_client_query_proto_rawDesc), len(file_spec_proto_client_query_proto_rawDesc)), |
| 209 | NumEnums: 0, |
| 210 | NumMessages: 3, |
| 211 | NumExtensions: 0, |
| 212 | NumServices: 1, |
| 213 | }, |
| 214 | GoTypes: file_spec_proto_client_query_proto_goTypes, |
| 215 | DependencyIndexes: file_spec_proto_client_query_proto_depIdxs, |
| 216 | MessageInfos: file_spec_proto_client_query_proto_msgTypes, |
| 217 | }.Build() |
| 218 | File_spec_proto_client_query_proto = out.File |
| 219 | file_spec_proto_client_query_proto_goTypes = nil |
| 220 | file_spec_proto_client_query_proto_depIdxs = nil |
| 221 | } |