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

package notification

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

type LobbyMembershipRemovedEvent struct {
	_tab flatbuffers.Table
}

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

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

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

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

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

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

func (rcv *LobbyMembershipRemovedEvent) Reason() []byte {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
	if o != 0 {
		return rcv._tab.ByteVector(o + rcv._tab.Pos)
	}
	return nil
}

func LobbyMembershipRemovedEventStart(builder *flatbuffers.Builder) {
	builder.StartObject(1)
}
func LobbyMembershipRemovedEventAddReason(builder *flatbuffers.Builder, reason flatbuffers.UOffsetT) {
	builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(reason), 0)
}
func LobbyMembershipRemovedEventEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
