skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarity-protobuf Show documentation
Show all versions of clarity-protobuf Show documentation
Clarity is an open source replay parser for Dota 2 and CSGO 1 and 2 written in Java. This JAR contains the protobuf classes for clarity.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: claritymessages.proto
package skadistats.clarity.wire.csgo.s1.proto;
public final class CSGOS1ClarityMessages {
private CSGOS1ClarityMessages() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface CsGoDemoHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:CsGoDemoHeader)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
boolean hasDemoprotocol();
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
int getDemoprotocol();
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
boolean hasNetworkprotocol();
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
int getNetworkprotocol();
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
boolean hasServername();
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
java.lang.String getServername();
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
com.google.protobuf.ByteString
getServernameBytes();
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
boolean hasClientname();
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
java.lang.String getClientname();
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
com.google.protobuf.ByteString
getClientnameBytes();
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
boolean hasMapname();
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
java.lang.String getMapname();
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
com.google.protobuf.ByteString
getMapnameBytes();
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
boolean hasGamedirectory();
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
java.lang.String getGamedirectory();
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
com.google.protobuf.ByteString
getGamedirectoryBytes();
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
boolean hasPlaybackTime();
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
float getPlaybackTime();
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
boolean hasPlaybackTicks();
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
int getPlaybackTicks();
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
boolean hasPlaybackFrames();
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
int getPlaybackFrames();
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
boolean hasSignonlength();
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
int getSignonlength();
}
/**
* Protobuf type {@code CsGoDemoHeader}
*/
public static final class CsGoDemoHeader extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CsGoDemoHeader)
CsGoDemoHeaderOrBuilder {
// Use CsGoDemoHeader.newBuilder() to construct.
private CsGoDemoHeader(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CsGoDemoHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CsGoDemoHeader defaultInstance;
public static CsGoDemoHeader getDefaultInstance() {
return defaultInstance;
}
public CsGoDemoHeader getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CsGoDemoHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
demoprotocol_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
networkprotocol_ = input.readInt32();
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
servername_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
clientname_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
mapname_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
gamedirectory_ = bs;
break;
}
case 61: {
bitField0_ |= 0x00000040;
playbackTime_ = input.readFloat();
break;
}
case 64: {
bitField0_ |= 0x00000080;
playbackTicks_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
playbackFrames_ = input.readInt32();
break;
}
case 80: {
bitField0_ |= 0x00000200;
signonlength_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.internal_static_CsGoDemoHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.internal_static_CsGoDemoHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.class, skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CsGoDemoHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CsGoDemoHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int DEMOPROTOCOL_FIELD_NUMBER = 1;
private int demoprotocol_;
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
public boolean hasDemoprotocol() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
public int getDemoprotocol() {
return demoprotocol_;
}
public static final int NETWORKPROTOCOL_FIELD_NUMBER = 2;
private int networkprotocol_;
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
public boolean hasNetworkprotocol() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
public int getNetworkprotocol() {
return networkprotocol_;
}
public static final int SERVERNAME_FIELD_NUMBER = 3;
private java.lang.Object servername_;
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public boolean hasServername() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public java.lang.String getServername() {
java.lang.Object ref = servername_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
servername_ = s;
}
return s;
}
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public com.google.protobuf.ByteString
getServernameBytes() {
java.lang.Object ref = servername_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
servername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENTNAME_FIELD_NUMBER = 4;
private java.lang.Object clientname_;
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public boolean hasClientname() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public java.lang.String getClientname() {
java.lang.Object ref = clientname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clientname_ = s;
}
return s;
}
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public com.google.protobuf.ByteString
getClientnameBytes() {
java.lang.Object ref = clientname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAPNAME_FIELD_NUMBER = 5;
private java.lang.Object mapname_;
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public boolean hasMapname() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public java.lang.String getMapname() {
java.lang.Object ref = mapname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mapname_ = s;
}
return s;
}
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public com.google.protobuf.ByteString
getMapnameBytes() {
java.lang.Object ref = mapname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mapname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GAMEDIRECTORY_FIELD_NUMBER = 6;
private java.lang.Object gamedirectory_;
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public boolean hasGamedirectory() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public java.lang.String getGamedirectory() {
java.lang.Object ref = gamedirectory_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
gamedirectory_ = s;
}
return s;
}
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public com.google.protobuf.ByteString
getGamedirectoryBytes() {
java.lang.Object ref = gamedirectory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gamedirectory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLAYBACK_TIME_FIELD_NUMBER = 7;
private float playbackTime_;
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
public boolean hasPlaybackTime() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
public float getPlaybackTime() {
return playbackTime_;
}
public static final int PLAYBACK_TICKS_FIELD_NUMBER = 8;
private int playbackTicks_;
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
public boolean hasPlaybackTicks() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
public int getPlaybackTicks() {
return playbackTicks_;
}
public static final int PLAYBACK_FRAMES_FIELD_NUMBER = 9;
private int playbackFrames_;
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
public boolean hasPlaybackFrames() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
public int getPlaybackFrames() {
return playbackFrames_;
}
public static final int SIGNONLENGTH_FIELD_NUMBER = 10;
private int signonlength_;
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
public boolean hasSignonlength() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
public int getSignonlength() {
return signonlength_;
}
private void initFields() {
demoprotocol_ = 0;
networkprotocol_ = 0;
servername_ = "";
clientname_ = "";
mapname_ = "";
gamedirectory_ = "";
playbackTime_ = 0F;
playbackTicks_ = 0;
playbackFrames_ = 0;
signonlength_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, demoprotocol_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, networkprotocol_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getServernameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getClientnameBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getMapnameBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getGamedirectoryBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFloat(7, playbackTime_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(8, playbackTicks_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, playbackFrames_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt32(10, signonlength_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, demoprotocol_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, networkprotocol_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getServernameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getClientnameBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getMapnameBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getGamedirectoryBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, playbackTime_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, playbackTicks_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, playbackFrames_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, signonlength_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code CsGoDemoHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CsGoDemoHeader)
skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.internal_static_CsGoDemoHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.internal_static_CsGoDemoHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.class, skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.Builder.class);
}
// Construct using skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
demoprotocol_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
networkprotocol_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
servername_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
clientname_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
mapname_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
gamedirectory_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
playbackTime_ = 0F;
bitField0_ = (bitField0_ & ~0x00000040);
playbackTicks_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
playbackFrames_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
signonlength_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.internal_static_CsGoDemoHeader_descriptor;
}
public skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader getDefaultInstanceForType() {
return skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.getDefaultInstance();
}
public skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader build() {
skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader buildPartial() {
skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader result = new skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.demoprotocol_ = demoprotocol_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.networkprotocol_ = networkprotocol_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.servername_ = servername_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.clientname_ = clientname_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.mapname_ = mapname_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.gamedirectory_ = gamedirectory_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.playbackTime_ = playbackTime_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.playbackTicks_ = playbackTicks_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.playbackFrames_ = playbackFrames_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.signonlength_ = signonlength_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader) {
return mergeFrom((skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader other) {
if (other == skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader.getDefaultInstance()) return this;
if (other.hasDemoprotocol()) {
setDemoprotocol(other.getDemoprotocol());
}
if (other.hasNetworkprotocol()) {
setNetworkprotocol(other.getNetworkprotocol());
}
if (other.hasServername()) {
bitField0_ |= 0x00000004;
servername_ = other.servername_;
onChanged();
}
if (other.hasClientname()) {
bitField0_ |= 0x00000008;
clientname_ = other.clientname_;
onChanged();
}
if (other.hasMapname()) {
bitField0_ |= 0x00000010;
mapname_ = other.mapname_;
onChanged();
}
if (other.hasGamedirectory()) {
bitField0_ |= 0x00000020;
gamedirectory_ = other.gamedirectory_;
onChanged();
}
if (other.hasPlaybackTime()) {
setPlaybackTime(other.getPlaybackTime());
}
if (other.hasPlaybackTicks()) {
setPlaybackTicks(other.getPlaybackTicks());
}
if (other.hasPlaybackFrames()) {
setPlaybackFrames(other.getPlaybackFrames());
}
if (other.hasSignonlength()) {
setSignonlength(other.getSignonlength());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (skadistats.clarity.wire.csgo.s1.proto.CSGOS1ClarityMessages.CsGoDemoHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int demoprotocol_ ;
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
public boolean hasDemoprotocol() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
public int getDemoprotocol() {
return demoprotocol_;
}
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
public Builder setDemoprotocol(int value) {
bitField0_ |= 0x00000001;
demoprotocol_ = value;
onChanged();
return this;
}
/**
* optional int32 demoprotocol = 1;
*
*
* Should be DEMO_PROTOCOL
*
*/
public Builder clearDemoprotocol() {
bitField0_ = (bitField0_ & ~0x00000001);
demoprotocol_ = 0;
onChanged();
return this;
}
private int networkprotocol_ ;
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
public boolean hasNetworkprotocol() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
public int getNetworkprotocol() {
return networkprotocol_;
}
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
public Builder setNetworkprotocol(int value) {
bitField0_ |= 0x00000002;
networkprotocol_ = value;
onChanged();
return this;
}
/**
* optional int32 networkprotocol = 2;
*
*
* Should be PROTOCOL_VERSION
*
*/
public Builder clearNetworkprotocol() {
bitField0_ = (bitField0_ & ~0x00000002);
networkprotocol_ = 0;
onChanged();
return this;
}
private java.lang.Object servername_ = "";
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public boolean hasServername() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public java.lang.String getServername() {
java.lang.Object ref = servername_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
servername_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public com.google.protobuf.ByteString
getServernameBytes() {
java.lang.Object ref = servername_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
servername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public Builder setServername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
servername_ = value;
onChanged();
return this;
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public Builder clearServername() {
bitField0_ = (bitField0_ & ~0x00000004);
servername_ = getDefaultInstance().getServername();
onChanged();
return this;
}
/**
* optional string servername = 3;
*
*
* Name of server
*
*/
public Builder setServernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
servername_ = value;
onChanged();
return this;
}
private java.lang.Object clientname_ = "";
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public boolean hasClientname() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public java.lang.String getClientname() {
java.lang.Object ref = clientname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clientname_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public com.google.protobuf.ByteString
getClientnameBytes() {
java.lang.Object ref = clientname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public Builder setClientname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
clientname_ = value;
onChanged();
return this;
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public Builder clearClientname() {
bitField0_ = (bitField0_ & ~0x00000008);
clientname_ = getDefaultInstance().getClientname();
onChanged();
return this;
}
/**
* optional string clientname = 4;
*
*
* Name of client who recorded the game
*
*/
public Builder setClientnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
clientname_ = value;
onChanged();
return this;
}
private java.lang.Object mapname_ = "";
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public boolean hasMapname() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public java.lang.String getMapname() {
java.lang.Object ref = mapname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mapname_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public com.google.protobuf.ByteString
getMapnameBytes() {
java.lang.Object ref = mapname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mapname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public Builder setMapname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mapname_ = value;
onChanged();
return this;
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public Builder clearMapname() {
bitField0_ = (bitField0_ & ~0x00000010);
mapname_ = getDefaultInstance().getMapname();
onChanged();
return this;
}
/**
* optional string mapname = 5;
*
*
* Name of map
*
*/
public Builder setMapnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mapname_ = value;
onChanged();
return this;
}
private java.lang.Object gamedirectory_ = "";
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public boolean hasGamedirectory() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public java.lang.String getGamedirectory() {
java.lang.Object ref = gamedirectory_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
gamedirectory_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public com.google.protobuf.ByteString
getGamedirectoryBytes() {
java.lang.Object ref = gamedirectory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gamedirectory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public Builder setGamedirectory(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
gamedirectory_ = value;
onChanged();
return this;
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public Builder clearGamedirectory() {
bitField0_ = (bitField0_ & ~0x00000020);
gamedirectory_ = getDefaultInstance().getGamedirectory();
onChanged();
return this;
}
/**
* optional string gamedirectory = 6;
*
*
* Name of game directory (com_gamedir)
*
*/
public Builder setGamedirectoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
gamedirectory_ = value;
onChanged();
return this;
}
private float playbackTime_ ;
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
public boolean hasPlaybackTime() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
public float getPlaybackTime() {
return playbackTime_;
}
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
public Builder setPlaybackTime(float value) {
bitField0_ |= 0x00000040;
playbackTime_ = value;
onChanged();
return this;
}
/**
* optional float playback_time = 7;
*
*
* Time of track
*
*/
public Builder clearPlaybackTime() {
bitField0_ = (bitField0_ & ~0x00000040);
playbackTime_ = 0F;
onChanged();
return this;
}
private int playbackTicks_ ;
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
public boolean hasPlaybackTicks() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
public int getPlaybackTicks() {
return playbackTicks_;
}
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
public Builder setPlaybackTicks(int value) {
bitField0_ |= 0x00000080;
playbackTicks_ = value;
onChanged();
return this;
}
/**
* optional int32 playback_ticks = 8;
*
*
* # of ticks in track
*
*/
public Builder clearPlaybackTicks() {
bitField0_ = (bitField0_ & ~0x00000080);
playbackTicks_ = 0;
onChanged();
return this;
}
private int playbackFrames_ ;
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
public boolean hasPlaybackFrames() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
public int getPlaybackFrames() {
return playbackFrames_;
}
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
public Builder setPlaybackFrames(int value) {
bitField0_ |= 0x00000100;
playbackFrames_ = value;
onChanged();
return this;
}
/**
* optional int32 playback_frames = 9;
*
*
* # of frames in track
*
*/
public Builder clearPlaybackFrames() {
bitField0_ = (bitField0_ & ~0x00000100);
playbackFrames_ = 0;
onChanged();
return this;
}
private int signonlength_ ;
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
public boolean hasSignonlength() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
public int getSignonlength() {
return signonlength_;
}
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
public Builder setSignonlength(int value) {
bitField0_ |= 0x00000200;
signonlength_ = value;
onChanged();
return this;
}
/**
* optional int32 signonlength = 10;
*
*
* length of sigondata in bytes
*
*/
public Builder clearSignonlength() {
bitField0_ = (bitField0_ & ~0x00000200);
signonlength_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:CsGoDemoHeader)
}
static {
defaultInstance = new CsGoDemoHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CsGoDemoHeader)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CsGoDemoHeader_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CsGoDemoHeader_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025claritymessages.proto\"\355\001\n\016CsGoDemoHead" +
"er\022\024\n\014demoprotocol\030\001 \001(\005\022\027\n\017networkproto" +
"col\030\002 \001(\005\022\022\n\nservername\030\003 \001(\t\022\022\n\nclientn" +
"ame\030\004 \001(\t\022\017\n\007mapname\030\005 \001(\t\022\025\n\rgamedirect" +
"ory\030\006 \001(\t\022\025\n\rplayback_time\030\007 \001(\002\022\026\n\016play" +
"back_ticks\030\010 \001(\005\022\027\n\017playback_frames\030\t \001(" +
"\005\022\024\n\014signonlength\030\n \001(\005B>\n%skadistats.cl" +
"arity.wire.csgo.s1.protoB\025CSGOS1ClarityM" +
"essages"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_CsGoDemoHeader_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CsGoDemoHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CsGoDemoHeader_descriptor,
new java.lang.String[] { "Demoprotocol", "Networkprotocol", "Servername", "Clientname", "Mapname", "Gamedirectory", "PlaybackTime", "PlaybackTicks", "PlaybackFrames", "Signonlength", });
}
// @@protoc_insertion_point(outer_class_scope)
}