| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package accountv1 |
| 8 |
|
| 9 |
import ( |
| 10 |
v1 "github.com/humanlogio/api/go/types/v1" |
| 11 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 12 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 13 |
reflect "reflect" |
| 14 |
sync "sync" |
| 15 |
) |
| 16 |
|
| 17 |
const ( |
| 18 |
|
| 19 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 |
) |
| 23 |
|
| 24 |
type ListMachineRequest struct { |
| 25 |
state protoimpl.MessageState |
| 26 |
sizeCache protoimpl.SizeCache |
| 27 |
unknownFields protoimpl.UnknownFields |
| 28 |
|
| 29 |
Cursor *v1.Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` |
| 30 |
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` |
| 31 |
AccountId int64 `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` |
| 32 |
} |
| 33 |
|
| 34 |
func (x *ListMachineRequest) Reset() { |
| 35 |
*x = ListMachineRequest{} |
| 36 |
mi := &file_svc_account_v1_service_proto_msgTypes[0] |
| 37 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 38 |
ms.StoreMessageInfo(mi) |
| 39 |
} |
| 40 |
|
| 41 |
func (x *ListMachineRequest) String() string { |
| 42 |
return protoimpl.X.MessageStringOf(x) |
| 43 |
} |
| 44 |
|
| 45 |
func (*ListMachineRequest) ProtoMessage() {} |
| 46 |
|
| 47 |
func (x *ListMachineRequest) ProtoReflect() protoreflect.Message { |
| 48 |
mi := &file_svc_account_v1_service_proto_msgTypes[0] |
| 49 |
if x != nil { |
| 50 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 51 |
if ms.LoadMessageInfo() == nil { |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
return ms |
| 55 |
} |
| 56 |
return mi.MessageOf(x) |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
func (*ListMachineRequest) Descriptor() ([]byte, []int) { |
| 61 |
return file_svc_account_v1_service_proto_rawDescGZIP(), []int{0} |
| 62 |
} |
| 63 |
|
| 64 |
func (x *ListMachineRequest) GetCursor() *v1.Cursor { |
| 65 |
if x != nil { |
| 66 |
return x.Cursor |
| 67 |
} |
| 68 |
return nil |
| 69 |
} |
| 70 |
|
| 71 |
func (x *ListMachineRequest) GetLimit() int32 { |
| 72 |
if x != nil { |
| 73 |
return x.Limit |
| 74 |
} |
| 75 |
return 0 |
| 76 |
} |
| 77 |
|
| 78 |
func (x *ListMachineRequest) GetAccountId() int64 { |
| 79 |
if x != nil { |
| 80 |
return x.AccountId |
| 81 |
} |
| 82 |
return 0 |
| 83 |
} |
| 84 |
|
| 85 |
type ListMachineResponse struct { |
| 86 |
state protoimpl.MessageState |
| 87 |
sizeCache protoimpl.SizeCache |
| 88 |
unknownFields protoimpl.UnknownFields |
| 89 |
|
| 90 |
Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"` |
| 91 |
Items []*ListMachineResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` |
| 92 |
} |
| 93 |
|
| 94 |
func (x *ListMachineResponse) Reset() { |
| 95 |
*x = ListMachineResponse{} |
| 96 |
mi := &file_svc_account_v1_service_proto_msgTypes[1] |
| 97 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 98 |
ms.StoreMessageInfo(mi) |
| 99 |
} |
| 100 |
|
| 101 |
func (x *ListMachineResponse) String() string { |
| 102 |
return protoimpl.X.MessageStringOf(x) |
| 103 |
} |
| 104 |
|
| 105 |
func (*ListMachineResponse) ProtoMessage() {} |
| 106 |
|
| 107 |
func (x *ListMachineResponse) ProtoReflect() protoreflect.Message { |
| 108 |
mi := &file_svc_account_v1_service_proto_msgTypes[1] |
| 109 |
if x != nil { |
| 110 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 111 |
if ms.LoadMessageInfo() == nil { |
| 112 |
ms.StoreMessageInfo(mi) |
| 113 |
} |
| 114 |
return ms |
| 115 |
} |
| 116 |
return mi.MessageOf(x) |
| 117 |
} |
| 118 |
|
| 119 |
|
| 120 |
func (*ListMachineResponse) Descriptor() ([]byte, []int) { |
| 121 |
return file_svc_account_v1_service_proto_rawDescGZIP(), []int{1} |
| 122 |
} |
| 123 |
|
| 124 |
func (x *ListMachineResponse) GetNext() *v1.Cursor { |
| 125 |
if x != nil { |
| 126 |
return x.Next |
| 127 |
} |
| 128 |
return nil |
| 129 |
} |
| 130 |
|
| 131 |
func (x *ListMachineResponse) GetItems() []*ListMachineResponse_ListItem { |
| 132 |
if x != nil { |
| 133 |
return x.Items |
| 134 |
} |
| 135 |
return nil |
| 136 |
} |
| 137 |
|
| 138 |
type ListMachineResponse_ListItem struct { |
| 139 |
state protoimpl.MessageState |
| 140 |
sizeCache protoimpl.SizeCache |
| 141 |
unknownFields protoimpl.UnknownFields |
| 142 |
|
| 143 |
Machine *v1.Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` |
| 144 |
} |
| 145 |
|
| 146 |
func (x *ListMachineResponse_ListItem) Reset() { |
| 147 |
*x = ListMachineResponse_ListItem{} |
| 148 |
mi := &file_svc_account_v1_service_proto_msgTypes[2] |
| 149 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 150 |
ms.StoreMessageInfo(mi) |
| 151 |
} |
| 152 |
|
| 153 |
func (x *ListMachineResponse_ListItem) String() string { |
| 154 |
return protoimpl.X.MessageStringOf(x) |
| 155 |
} |
| 156 |
|
| 157 |
func (*ListMachineResponse_ListItem) ProtoMessage() {} |
| 158 |
|
| 159 |
func (x *ListMachineResponse_ListItem) ProtoReflect() protoreflect.Message { |
| 160 |
mi := &file_svc_account_v1_service_proto_msgTypes[2] |
| 161 |
if x != nil { |
| 162 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 163 |
if ms.LoadMessageInfo() == nil { |
| 164 |
ms.StoreMessageInfo(mi) |
| 165 |
} |
| 166 |
return ms |
| 167 |
} |
| 168 |
return mi.MessageOf(x) |
| 169 |
} |
| 170 |
|
| 171 |
|
| 172 |
func (*ListMachineResponse_ListItem) Descriptor() ([]byte, []int) { |
| 173 |
return file_svc_account_v1_service_proto_rawDescGZIP(), []int{1, 0} |
| 174 |
} |
| 175 |
|
| 176 |
func (x *ListMachineResponse_ListItem) GetMachine() *v1.Machine { |
| 177 |
if x != nil { |
| 178 |
return x.Machine |
| 179 |
} |
| 180 |
return nil |
| 181 |
} |
| 182 |
|
| 183 |
var File_svc_account_v1_service_proto protoreflect.FileDescriptor |
| 184 |
|
| 185 |
var file_svc_account_v1_service_proto_rawDesc = []byte{ |
| 186 |
0x0a, 0x1c, 0x73, 0x76, 0x63, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x76, 0x31, |
| 187 |
0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, |
| 188 |
0x73, 0x76, 0x63, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x16, |
| 189 |
0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 190 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, |
| 191 |
0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x74, |
| 192 |
0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, |
| 193 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x73, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, |
| 194 |
0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x06, 0x63, |
| 195 |
0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, |
| 196 |
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, |
| 197 |
0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, |
| 198 |
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, |
| 199 |
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, |
| 200 |
0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xb8, 0x01, 0x0a, 0x13, 0x4c, |
| 201 |
0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 202 |
0x73, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
| 203 |
0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, |
| 204 |
0x6f, 0x72, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x42, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, |
| 205 |
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x63, |
| 206 |
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, |
| 207 |
0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4c, 0x69, 0x73, |
| 208 |
0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x37, 0x0a, 0x08, |
| 209 |
0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, |
| 210 |
0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, |
| 211 |
0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x07, 0x6d, 0x61, |
| 212 |
0x63, 0x68, 0x69, 0x6e, 0x65, 0x32, 0x68, 0x0a, 0x0e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 213 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4d, |
| 214 |
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x22, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x63, 0x63, |
| 215 |
0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, |
| 216 |
0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x76, 0x63, |
| 217 |
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, |
| 218 |
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, |
| 219 |
0xb3, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x63, 0x63, 0x6f, |
| 220 |
0x75, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, |
| 221 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, |
| 222 |
0x6f, 0x6d, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, |
| 223 |
0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x76, 0x63, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 224 |
0x2f, 0x76, 0x31, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, |
| 225 |
0x53, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x53, 0x76, 0x63, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 226 |
0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x53, 0x76, 0x63, 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, |
| 227 |
0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x53, 0x76, 0x63, 0x5c, 0x41, 0x63, 0x63, 0x6f, |
| 228 |
0x75, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, |
| 229 |
0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 230 |
0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 231 |
} |
| 232 |
|
| 233 |
var ( |
| 234 |
file_svc_account_v1_service_proto_rawDescOnce sync.Once |
| 235 |
file_svc_account_v1_service_proto_rawDescData = file_svc_account_v1_service_proto_rawDesc |
| 236 |
) |
| 237 |
|
| 238 |
func file_svc_account_v1_service_proto_rawDescGZIP() []byte { |
| 239 |
file_svc_account_v1_service_proto_rawDescOnce.Do(func() { |
| 240 |
file_svc_account_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_svc_account_v1_service_proto_rawDescData) |
| 241 |
}) |
| 242 |
return file_svc_account_v1_service_proto_rawDescData |
| 243 |
} |
| 244 |
|
| 245 |
var file_svc_account_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 246 |
var file_svc_account_v1_service_proto_goTypes = []any{ |
| 247 |
(*ListMachineRequest)(nil), |
| 248 |
(*ListMachineResponse)(nil), |
| 249 |
(*ListMachineResponse_ListItem)(nil), |
| 250 |
(*v1.Cursor)(nil), |
| 251 |
(*v1.Machine)(nil), |
| 252 |
} |
| 253 |
var file_svc_account_v1_service_proto_depIdxs = []int32{ |
| 254 |
3, |
| 255 |
3, |
| 256 |
2, |
| 257 |
4, |
| 258 |
0, |
| 259 |
1, |
| 260 |
5, |
| 261 |
4, |
| 262 |
4, |
| 263 |
4, |
| 264 |
0, |
| 265 |
} |
| 266 |
|
| 267 |
func init() { file_svc_account_v1_service_proto_init() } |
| 268 |
func file_svc_account_v1_service_proto_init() { |
| 269 |
if File_svc_account_v1_service_proto != nil { |
| 270 |
return |
| 271 |
} |
| 272 |
type x struct{} |
| 273 |
out := protoimpl.TypeBuilder{ |
| 274 |
File: protoimpl.DescBuilder{ |
| 275 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 276 |
RawDescriptor: file_svc_account_v1_service_proto_rawDesc, |
| 277 |
NumEnums: 0, |
| 278 |
NumMessages: 3, |
| 279 |
NumExtensions: 0, |
| 280 |
NumServices: 1, |
| 281 |
}, |
| 282 |
GoTypes: file_svc_account_v1_service_proto_goTypes, |
| 283 |
DependencyIndexes: file_svc_account_v1_service_proto_depIdxs, |
| 284 |
MessageInfos: file_svc_account_v1_service_proto_msgTypes, |
| 285 |
}.Build() |
| 286 |
File_svc_account_v1_service_proto = out.File |
| 287 |
file_svc_account_v1_service_proto_rawDesc = nil |
| 288 |
file_svc_account_v1_service_proto_goTypes = nil |
| 289 |
file_svc_account_v1_service_proto_depIdxs = nil |
| 290 |
} |