io.deephaven.barrage.flatbuf.RefreshSessionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of barrage-format Show documentation
Show all versions of barrage-format Show documentation
Generated Java files from the IPC Flatbuffer definitions.
The newest version!
// automatically generated by the FlatBuffers compiler, do not modify
package io.deephaven.barrage.flatbuf;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
/**
* Refresh the provided session.
*/
public final class RefreshSessionRequest extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); }
public static RefreshSessionRequest getRootAsRefreshSessionRequest(ByteBuffer _bb) { return getRootAsRefreshSessionRequest(_bb, new RefreshSessionRequest()); }
public static RefreshSessionRequest getRootAsRefreshSessionRequest(ByteBuffer _bb, RefreshSessionRequest obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public RefreshSessionRequest __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
/**
* this session token is only required if it is the first request of a handshake rpc stream
*/
public byte session(int j) { int o = __offset(4); return o != 0 ? bb.get(__vector(o) + j * 1) : 0; }
public int sessionLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
public ByteVector sessionVector() { return sessionVector(new ByteVector()); }
public ByteVector sessionVector(ByteVector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
public ByteBuffer sessionAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
public ByteBuffer sessionInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); }
public static int createRefreshSessionRequest(FlatBufferBuilder builder,
int sessionOffset) {
builder.startTable(1);
RefreshSessionRequest.addSession(builder, sessionOffset);
return RefreshSessionRequest.endRefreshSessionRequest(builder);
}
public static void startRefreshSessionRequest(FlatBufferBuilder builder) { builder.startTable(1); }
public static void addSession(FlatBufferBuilder builder, int sessionOffset) { builder.addOffset(0, sessionOffset, 0); }
public static int createSessionVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
public static int createSessionVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
public static void startSessionVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
public static int endRefreshSessionRequest(FlatBufferBuilder builder) {
int o = builder.endTable();
return o;
}
public static final class Vector extends BaseVector {
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
public RefreshSessionRequest get(int j) { return get(new RefreshSessionRequest(), j); }
public RefreshSessionRequest get(RefreshSessionRequest obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
}