// Code generated by the FlatBuffers compiler. DO NOT EDIT.

package user

import (
	flatbuffers "github.com/google/flatbuffers/go"
)

type RevokeAllMySessionsRequest struct {
	_tab flatbuffers.Table
}

func GetRootAsRevokeAllMySessionsRequest(buf []byte, offset flatbuffers.UOffsetT) *RevokeAllMySessionsRequest {
	n := flatbuffers.GetUOffsetT(buf[offset:])
	x := &RevokeAllMySessionsRequest{}
	x.Init(buf, n+offset)
	return x
}

func FinishRevokeAllMySessionsRequestBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
	builder.Finish(offset)
}

func GetSizePrefixedRootAsRevokeAllMySessionsRequest(buf []byte, offset flatbuffers.UOffsetT) *RevokeAllMySessionsRequest {
	n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])
	x := &RevokeAllMySessionsRequest{}
	x.Init(buf, n+offset+flatbuffers.SizeUint32)
	return x
}

func FinishSizePrefixedRevokeAllMySessionsRequestBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
	builder.FinishSizePrefixed(offset)
}

func (rcv *RevokeAllMySessionsRequest) Init(buf []byte, i flatbuffers.UOffsetT) {
	rcv._tab.Bytes = buf
	rcv._tab.Pos = i
}

func (rcv *RevokeAllMySessionsRequest) Table() flatbuffers.Table {
	return rcv._tab
}

func RevokeAllMySessionsRequestStart(builder *flatbuffers.Builder) {
	builder.StartObject(0)
}
func RevokeAllMySessionsRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
