// automatically generated by the FlatBuffers compiler, do not modify /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ import * as flatbuffers from 'flatbuffers'; export class RevokeMySessionRequest implements flatbuffers.IUnpackableObject { bb: flatbuffers.ByteBuffer|null = null; bb_pos = 0; __init(i:number, bb:flatbuffers.ByteBuffer):RevokeMySessionRequest { this.bb_pos = i; this.bb = bb; return this; } static getRootAsRevokeMySessionRequest(bb:flatbuffers.ByteBuffer, obj?:RevokeMySessionRequest):RevokeMySessionRequest { return (obj || new RevokeMySessionRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb); } static getSizePrefixedRootAsRevokeMySessionRequest(bb:flatbuffers.ByteBuffer, obj?:RevokeMySessionRequest):RevokeMySessionRequest { bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH); return (obj || new RevokeMySessionRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb); } deviceSessionId():string|null deviceSessionId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null deviceSessionId(optionalEncoding?:any):string|Uint8Array|null { const offset = this.bb!.__offset(this.bb_pos, 4); return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null; } static startRevokeMySessionRequest(builder:flatbuffers.Builder) { builder.startObject(1); } static addDeviceSessionId(builder:flatbuffers.Builder, deviceSessionIdOffset:flatbuffers.Offset) { builder.addFieldOffset(0, deviceSessionIdOffset, 0); } static endRevokeMySessionRequest(builder:flatbuffers.Builder):flatbuffers.Offset { const offset = builder.endObject(); return offset; } static createRevokeMySessionRequest(builder:flatbuffers.Builder, deviceSessionIdOffset:flatbuffers.Offset):flatbuffers.Offset { RevokeMySessionRequest.startRevokeMySessionRequest(builder); RevokeMySessionRequest.addDeviceSessionId(builder, deviceSessionIdOffset); return RevokeMySessionRequest.endRevokeMySessionRequest(builder); } unpack(): RevokeMySessionRequestT { return new RevokeMySessionRequestT( this.deviceSessionId() ); } unpackTo(_o: RevokeMySessionRequestT): void { _o.deviceSessionId = this.deviceSessionId(); } } export class RevokeMySessionRequestT implements flatbuffers.IGeneratedObject { constructor( public deviceSessionId: string|Uint8Array|null = null ){} pack(builder:flatbuffers.Builder): flatbuffers.Offset { const deviceSessionId = (this.deviceSessionId !== null ? builder.createString(this.deviceSessionId!) : 0); return RevokeMySessionRequest.createRevokeMySessionRequest(builder, deviceSessionId ); } }