|
| 1 | +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts,json_types=true" |
| 2 | +// @generated from file api/ssl_gc_api.proto (syntax proto2) |
| 3 | +/* eslint-disable */ |
| 4 | + |
| 5 | +import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; |
| 6 | +import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; |
| 7 | +import type { State, StateJson } from "../state/ssl_gc_state_pb"; |
| 8 | +import { file_state_ssl_gc_state } from "../state/ssl_gc_state_pb"; |
| 9 | +import type { Change, ChangeJson } from "../statemachine/ssl_gc_change_pb"; |
| 10 | +import { file_statemachine_ssl_gc_change } from "../statemachine/ssl_gc_change_pb"; |
| 11 | +import type { ContinueAction, ContinueActionJson, GcState, GcStateJson } from "../engine/ssl_gc_engine_pb"; |
| 12 | +import { file_engine_ssl_gc_engine } from "../engine/ssl_gc_engine_pb"; |
| 13 | +import type { Config, ConfigJson } from "../engine/ssl_gc_engine_config_pb"; |
| 14 | +import { file_engine_ssl_gc_engine_config } from "../engine/ssl_gc_engine_config_pb"; |
| 15 | +import type { Duration, DurationJson } from "@bufbuild/protobuf/wkt"; |
| 16 | +import { file_google_protobuf_duration } from "@bufbuild/protobuf/wkt"; |
| 17 | +import type { Message } from "@bufbuild/protobuf"; |
| 18 | + |
| 19 | +/** |
| 20 | + * Describes the file api/ssl_gc_api.proto. |
| 21 | + */ |
| 22 | +export const file_api_ssl_gc_api: GenFile = /*@__PURE__*/ |
| 23 | + fileDesc("ChRhcGkvc3NsX2djX2FwaS5wcm90byJ3CgZPdXRwdXQSGwoLbWF0Y2hfc3RhdGUYASABKAsyBi5TdGF0ZRIaCghnY19zdGF0ZRgCIAEoCzIILkdjU3RhdGUSGwoIcHJvdG9jb2wYAyABKAsyCS5Qcm90b2NvbBIXCgZjb25maWcYBCABKAsyBy5Db25maWciOAoIUHJvdG9jb2wSDQoFZGVsdGEYASABKAgSHQoFZW50cnkYAiADKAsyDi5Qcm90b2NvbEVudHJ5IqIBCg1Qcm90b2NvbEVudHJ5EgoKAmlkGAEgASgFEhcKBmNoYW5nZRgCIAEoCzIHLkNoYW5nZRI1ChJtYXRjaF90aW1lX2VsYXBzZWQYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SNQoSc3RhZ2VfdGltZV9lbGFwc2VkGAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIn4KBUlucHV0EhcKBmNoYW5nZRgBIAEoCzIHLkNoYW5nZRITCgtyZXNldF9tYXRjaBgCIAEoCBIdCgxjb25maWdfZGVsdGEYAyABKAsyBy5Db25maWcSKAoPY29udGludWVfYWN0aW9uGAQgASgLMg8uQ29udGludWVBY3Rpb25CTkINU3NsR2NBcGlQcm90b1ABWjtnaXRodWIuY29tL1JvYm9DdXAtU1NML3NzbC1nYW1lLWNvbnRyb2xsZXIvaW50ZXJuYWwvYXBwL2FwaQ", [file_state_ssl_gc_state, file_statemachine_ssl_gc_change, file_engine_ssl_gc_engine, file_engine_ssl_gc_engine_config, file_google_protobuf_duration]); |
| 24 | + |
| 25 | +/** |
| 26 | + * Message format that is pushed from the GC to the client |
| 27 | + * |
| 28 | + * @generated from message Output |
| 29 | + */ |
| 30 | +export type Output = Message<"Output"> & { |
| 31 | + /** |
| 32 | + * The current match state |
| 33 | + * |
| 34 | + * @generated from field: optional State match_state = 1; |
| 35 | + */ |
| 36 | + matchState?: State; |
| 37 | + |
| 38 | + /** |
| 39 | + * The current GC state |
| 40 | + * |
| 41 | + * @generated from field: optional GcState gc_state = 2; |
| 42 | + */ |
| 43 | + gcState?: GcState; |
| 44 | + |
| 45 | + /** |
| 46 | + * The protocol |
| 47 | + * |
| 48 | + * @generated from field: optional Protocol protocol = 3; |
| 49 | + */ |
| 50 | + protocol?: Protocol; |
| 51 | + |
| 52 | + /** |
| 53 | + * The engine config |
| 54 | + * |
| 55 | + * @generated from field: optional Config config = 4; |
| 56 | + */ |
| 57 | + config?: Config; |
| 58 | +}; |
| 59 | + |
| 60 | +/** |
| 61 | + * Message format that is pushed from the GC to the client |
| 62 | + * |
| 63 | + * @generated from message Output |
| 64 | + */ |
| 65 | +export type OutputJson = { |
| 66 | + /** |
| 67 | + * The current match state |
| 68 | + * |
| 69 | + * @generated from field: optional State match_state = 1; |
| 70 | + */ |
| 71 | + matchState?: StateJson; |
| 72 | + |
| 73 | + /** |
| 74 | + * The current GC state |
| 75 | + * |
| 76 | + * @generated from field: optional GcState gc_state = 2; |
| 77 | + */ |
| 78 | + gcState?: GcStateJson; |
| 79 | + |
| 80 | + /** |
| 81 | + * The protocol |
| 82 | + * |
| 83 | + * @generated from field: optional Protocol protocol = 3; |
| 84 | + */ |
| 85 | + protocol?: ProtocolJson; |
| 86 | + |
| 87 | + /** |
| 88 | + * The engine config |
| 89 | + * |
| 90 | + * @generated from field: optional Config config = 4; |
| 91 | + */ |
| 92 | + config?: ConfigJson; |
| 93 | +}; |
| 94 | + |
| 95 | +/** |
| 96 | + * Describes the message Output. |
| 97 | + * Use `create(OutputSchema)` to create a new message. |
| 98 | + */ |
| 99 | +export const OutputSchema: GenMessage<Output, OutputJson> = /*@__PURE__*/ |
| 100 | + messageDesc(file_api_ssl_gc_api, 0); |
| 101 | + |
| 102 | +/** |
| 103 | + * The game protocol |
| 104 | + * |
| 105 | + * @generated from message Protocol |
| 106 | + */ |
| 107 | +export type Protocol = Message<"Protocol"> & { |
| 108 | + /** |
| 109 | + * Is this a delta only? |
| 110 | + * Entries that were already sent are not sent again, because the protocol is immutable anyway. |
| 111 | + * But if the game is reset, the whole protocol must be replaced. That's what this flag is for. |
| 112 | + * |
| 113 | + * @generated from field: optional bool delta = 1; |
| 114 | + */ |
| 115 | + delta: boolean; |
| 116 | + |
| 117 | + /** |
| 118 | + * The (delta) list of entries |
| 119 | + * |
| 120 | + * @generated from field: repeated ProtocolEntry entry = 2; |
| 121 | + */ |
| 122 | + entry: ProtocolEntry[]; |
| 123 | +}; |
| 124 | + |
| 125 | +/** |
| 126 | + * The game protocol |
| 127 | + * |
| 128 | + * @generated from message Protocol |
| 129 | + */ |
| 130 | +export type ProtocolJson = { |
| 131 | + /** |
| 132 | + * Is this a delta only? |
| 133 | + * Entries that were already sent are not sent again, because the protocol is immutable anyway. |
| 134 | + * But if the game is reset, the whole protocol must be replaced. That's what this flag is for. |
| 135 | + * |
| 136 | + * @generated from field: optional bool delta = 1; |
| 137 | + */ |
| 138 | + delta?: boolean; |
| 139 | + |
| 140 | + /** |
| 141 | + * The (delta) list of entries |
| 142 | + * |
| 143 | + * @generated from field: repeated ProtocolEntry entry = 2; |
| 144 | + */ |
| 145 | + entry?: ProtocolEntryJson[]; |
| 146 | +}; |
| 147 | + |
| 148 | +/** |
| 149 | + * Describes the message Protocol. |
| 150 | + * Use `create(ProtocolSchema)` to create a new message. |
| 151 | + */ |
| 152 | +export const ProtocolSchema: GenMessage<Protocol, ProtocolJson> = /*@__PURE__*/ |
| 153 | + messageDesc(file_api_ssl_gc_api, 1); |
| 154 | + |
| 155 | +/** |
| 156 | + * A protocol entry of a change |
| 157 | + * |
| 158 | + * @generated from message ProtocolEntry |
| 159 | + */ |
| 160 | +export type ProtocolEntry = Message<"ProtocolEntry"> & { |
| 161 | + /** |
| 162 | + * Id of the entry |
| 163 | + * |
| 164 | + * @generated from field: optional int32 id = 1; |
| 165 | + */ |
| 166 | + id: number; |
| 167 | + |
| 168 | + /** |
| 169 | + * The change that was made |
| 170 | + * |
| 171 | + * @generated from field: optional Change change = 2; |
| 172 | + */ |
| 173 | + change?: Change; |
| 174 | + |
| 175 | + /** |
| 176 | + * The match time elapsed when this change was made |
| 177 | + * |
| 178 | + * @generated from field: optional google.protobuf.Duration match_time_elapsed = 3; |
| 179 | + */ |
| 180 | + matchTimeElapsed?: Duration; |
| 181 | + |
| 182 | + /** |
| 183 | + * The stage time elapsed when this change was made |
| 184 | + * |
| 185 | + * @generated from field: optional google.protobuf.Duration stage_time_elapsed = 4; |
| 186 | + */ |
| 187 | + stageTimeElapsed?: Duration; |
| 188 | +}; |
| 189 | + |
| 190 | +/** |
| 191 | + * A protocol entry of a change |
| 192 | + * |
| 193 | + * @generated from message ProtocolEntry |
| 194 | + */ |
| 195 | +export type ProtocolEntryJson = { |
| 196 | + /** |
| 197 | + * Id of the entry |
| 198 | + * |
| 199 | + * @generated from field: optional int32 id = 1; |
| 200 | + */ |
| 201 | + id?: number; |
| 202 | + |
| 203 | + /** |
| 204 | + * The change that was made |
| 205 | + * |
| 206 | + * @generated from field: optional Change change = 2; |
| 207 | + */ |
| 208 | + change?: ChangeJson; |
| 209 | + |
| 210 | + /** |
| 211 | + * The match time elapsed when this change was made |
| 212 | + * |
| 213 | + * @generated from field: optional google.protobuf.Duration match_time_elapsed = 3; |
| 214 | + */ |
| 215 | + matchTimeElapsed?: DurationJson; |
| 216 | + |
| 217 | + /** |
| 218 | + * The stage time elapsed when this change was made |
| 219 | + * |
| 220 | + * @generated from field: optional google.protobuf.Duration stage_time_elapsed = 4; |
| 221 | + */ |
| 222 | + stageTimeElapsed?: DurationJson; |
| 223 | +}; |
| 224 | + |
| 225 | +/** |
| 226 | + * Describes the message ProtocolEntry. |
| 227 | + * Use `create(ProtocolEntrySchema)` to create a new message. |
| 228 | + */ |
| 229 | +export const ProtocolEntrySchema: GenMessage<ProtocolEntry, ProtocolEntryJson> = /*@__PURE__*/ |
| 230 | + messageDesc(file_api_ssl_gc_api, 2); |
| 231 | + |
| 232 | +/** |
| 233 | + * Message format that can be send from the client to the GC |
| 234 | + * |
| 235 | + * @generated from message Input |
| 236 | + */ |
| 237 | +export type Input = Message<"Input"> & { |
| 238 | + /** |
| 239 | + * A change to be enqueued into the GC engine |
| 240 | + * |
| 241 | + * @generated from field: optional Change change = 1; |
| 242 | + */ |
| 243 | + change?: Change; |
| 244 | + |
| 245 | + /** |
| 246 | + * Reset the match |
| 247 | + * |
| 248 | + * @generated from field: optional bool reset_match = 2; |
| 249 | + */ |
| 250 | + resetMatch: boolean; |
| 251 | + |
| 252 | + /** |
| 253 | + * An updated config delta |
| 254 | + * |
| 255 | + * @generated from field: optional Config config_delta = 3; |
| 256 | + */ |
| 257 | + configDelta?: Config; |
| 258 | + |
| 259 | + /** |
| 260 | + * Continue with action |
| 261 | + * |
| 262 | + * @generated from field: optional ContinueAction continue_action = 4; |
| 263 | + */ |
| 264 | + continueAction?: ContinueAction; |
| 265 | +}; |
| 266 | + |
| 267 | +/** |
| 268 | + * Message format that can be send from the client to the GC |
| 269 | + * |
| 270 | + * @generated from message Input |
| 271 | + */ |
| 272 | +export type InputJson = { |
| 273 | + /** |
| 274 | + * A change to be enqueued into the GC engine |
| 275 | + * |
| 276 | + * @generated from field: optional Change change = 1; |
| 277 | + */ |
| 278 | + change?: ChangeJson; |
| 279 | + |
| 280 | + /** |
| 281 | + * Reset the match |
| 282 | + * |
| 283 | + * @generated from field: optional bool reset_match = 2; |
| 284 | + */ |
| 285 | + resetMatch?: boolean; |
| 286 | + |
| 287 | + /** |
| 288 | + * An updated config delta |
| 289 | + * |
| 290 | + * @generated from field: optional Config config_delta = 3; |
| 291 | + */ |
| 292 | + configDelta?: ConfigJson; |
| 293 | + |
| 294 | + /** |
| 295 | + * Continue with action |
| 296 | + * |
| 297 | + * @generated from field: optional ContinueAction continue_action = 4; |
| 298 | + */ |
| 299 | + continueAction?: ContinueActionJson; |
| 300 | +}; |
| 301 | + |
| 302 | +/** |
| 303 | + * Describes the message Input. |
| 304 | + * Use `create(InputSchema)` to create a new message. |
| 305 | + */ |
| 306 | +export const InputSchema: GenMessage<Input, InputJson> = /*@__PURE__*/ |
| 307 | + messageDesc(file_api_ssl_gc_api, 3); |
| 308 | + |
0 commit comments