skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld 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: dota_gcmessages_common_overworld.proto
package skadistats.clarity.wire.dota.s2.proto;
public final class DOTAS2GcMessagesCommonOverworld {
private DOTAS2GcMessagesCommonOverworld() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface CMsgOverworldTokenCountOrBuilder extends
// @@protoc_insertion_point(interface_extends:CMsgOverworldTokenCount)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint32 token_id = 1;
*/
boolean hasTokenId();
/**
* optional uint32 token_id = 1;
*/
int getTokenId();
/**
* optional uint32 token_count = 2;
*/
boolean hasTokenCount();
/**
* optional uint32 token_count = 2;
*/
int getTokenCount();
}
/**
* Protobuf type {@code CMsgOverworldTokenCount}
*/
public static final class CMsgOverworldTokenCount extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CMsgOverworldTokenCount)
CMsgOverworldTokenCountOrBuilder {
// Use CMsgOverworldTokenCount.newBuilder() to construct.
private CMsgOverworldTokenCount(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CMsgOverworldTokenCount(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CMsgOverworldTokenCount defaultInstance;
public static CMsgOverworldTokenCount getDefaultInstance() {
return defaultInstance;
}
public CMsgOverworldTokenCount getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CMsgOverworldTokenCount(
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;
tokenId_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
tokenCount_ = input.readUInt32();
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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenCount_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.class, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CMsgOverworldTokenCount parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CMsgOverworldTokenCount(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TOKEN_ID_FIELD_NUMBER = 1;
private int tokenId_;
/**
* optional uint32 token_id = 1;
*/
public boolean hasTokenId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 token_id = 1;
*/
public int getTokenId() {
return tokenId_;
}
public static final int TOKEN_COUNT_FIELD_NUMBER = 2;
private int tokenCount_;
/**
* optional uint32 token_count = 2;
*/
public boolean hasTokenCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 token_count = 2;
*/
public int getTokenCount() {
return tokenCount_;
}
private void initFields() {
tokenId_ = 0;
tokenCount_ = 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.writeUInt32(1, tokenId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, tokenCount_);
}
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
.computeUInt32Size(1, tokenId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, tokenCount_);
}
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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount 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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount 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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount 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 CMsgOverworldTokenCount}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CMsgOverworldTokenCount)
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenCount_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.class, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder.class);
}
// Construct using skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.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();
tokenId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
tokenCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenCount_descriptor;
}
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount getDefaultInstanceForType() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.getDefaultInstance();
}
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount build() {
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount buildPartial() {
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount result = new skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tokenId_ = tokenId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.tokenCount_ = tokenCount_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount) {
return mergeFrom((skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount other) {
if (other == skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.getDefaultInstance()) return this;
if (other.hasTokenId()) {
setTokenId(other.getTokenId());
}
if (other.hasTokenCount()) {
setTokenCount(other.getTokenCount());
}
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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int tokenId_ ;
/**
* optional uint32 token_id = 1;
*/
public boolean hasTokenId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 token_id = 1;
*/
public int getTokenId() {
return tokenId_;
}
/**
* optional uint32 token_id = 1;
*/
public Builder setTokenId(int value) {
bitField0_ |= 0x00000001;
tokenId_ = value;
onChanged();
return this;
}
/**
* optional uint32 token_id = 1;
*/
public Builder clearTokenId() {
bitField0_ = (bitField0_ & ~0x00000001);
tokenId_ = 0;
onChanged();
return this;
}
private int tokenCount_ ;
/**
* optional uint32 token_count = 2;
*/
public boolean hasTokenCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 token_count = 2;
*/
public int getTokenCount() {
return tokenCount_;
}
/**
* optional uint32 token_count = 2;
*/
public Builder setTokenCount(int value) {
bitField0_ |= 0x00000002;
tokenCount_ = value;
onChanged();
return this;
}
/**
* optional uint32 token_count = 2;
*/
public Builder clearTokenCount() {
bitField0_ = (bitField0_ & ~0x00000002);
tokenCount_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:CMsgOverworldTokenCount)
}
static {
defaultInstance = new CMsgOverworldTokenCount(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CMsgOverworldTokenCount)
}
public interface CMsgOverworldTokenQuantityOrBuilder extends
// @@protoc_insertion_point(interface_extends:CMsgOverworldTokenQuantity)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
java.util.List
getTokenCountsList();
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount getTokenCounts(int index);
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
int getTokenCountsCount();
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
java.util.List extends skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder>
getTokenCountsOrBuilderList();
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder getTokenCountsOrBuilder(
int index);
}
/**
* Protobuf type {@code CMsgOverworldTokenQuantity}
*/
public static final class CMsgOverworldTokenQuantity extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CMsgOverworldTokenQuantity)
CMsgOverworldTokenQuantityOrBuilder {
// Use CMsgOverworldTokenQuantity.newBuilder() to construct.
private CMsgOverworldTokenQuantity(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CMsgOverworldTokenQuantity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CMsgOverworldTokenQuantity defaultInstance;
public static CMsgOverworldTokenQuantity getDefaultInstance() {
return defaultInstance;
}
public CMsgOverworldTokenQuantity getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CMsgOverworldTokenQuantity(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tokenCounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tokenCounts_.add(input.readMessage(skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tokenCounts_ = java.util.Collections.unmodifiableList(tokenCounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenQuantity_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenQuantity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.class, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CMsgOverworldTokenQuantity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CMsgOverworldTokenQuantity(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int TOKEN_COUNTS_FIELD_NUMBER = 1;
private java.util.List tokenCounts_;
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public java.util.List getTokenCountsList() {
return tokenCounts_;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public java.util.List extends skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder>
getTokenCountsOrBuilderList() {
return tokenCounts_;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public int getTokenCountsCount() {
return tokenCounts_.size();
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount getTokenCounts(int index) {
return tokenCounts_.get(index);
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder getTokenCountsOrBuilder(
int index) {
return tokenCounts_.get(index);
}
private void initFields() {
tokenCounts_ = java.util.Collections.emptyList();
}
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();
for (int i = 0; i < tokenCounts_.size(); i++) {
output.writeMessage(1, tokenCounts_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < tokenCounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, tokenCounts_.get(i));
}
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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity 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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity 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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity 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 CMsgOverworldTokenQuantity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CMsgOverworldTokenQuantity)
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenQuantity_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenQuantity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.class, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.Builder.class);
}
// Construct using skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTokenCountsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (tokenCountsBuilder_ == null) {
tokenCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tokenCountsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.internal_static_CMsgOverworldTokenQuantity_descriptor;
}
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity getDefaultInstanceForType() {
return skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.getDefaultInstance();
}
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity build() {
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity buildPartial() {
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity result = new skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity(this);
int from_bitField0_ = bitField0_;
if (tokenCountsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tokenCounts_ = java.util.Collections.unmodifiableList(tokenCounts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tokenCounts_ = tokenCounts_;
} else {
result.tokenCounts_ = tokenCountsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity) {
return mergeFrom((skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity other) {
if (other == skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity.getDefaultInstance()) return this;
if (tokenCountsBuilder_ == null) {
if (!other.tokenCounts_.isEmpty()) {
if (tokenCounts_.isEmpty()) {
tokenCounts_ = other.tokenCounts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTokenCountsIsMutable();
tokenCounts_.addAll(other.tokenCounts_);
}
onChanged();
}
} else {
if (!other.tokenCounts_.isEmpty()) {
if (tokenCountsBuilder_.isEmpty()) {
tokenCountsBuilder_.dispose();
tokenCountsBuilder_ = null;
tokenCounts_ = other.tokenCounts_;
bitField0_ = (bitField0_ & ~0x00000001);
tokenCountsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTokenCountsFieldBuilder() : null;
} else {
tokenCountsBuilder_.addAllMessages(other.tokenCounts_);
}
}
}
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.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenQuantity) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List tokenCounts_ =
java.util.Collections.emptyList();
private void ensureTokenCountsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tokenCounts_ = new java.util.ArrayList(tokenCounts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder> tokenCountsBuilder_;
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public java.util.List getTokenCountsList() {
if (tokenCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tokenCounts_);
} else {
return tokenCountsBuilder_.getMessageList();
}
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public int getTokenCountsCount() {
if (tokenCountsBuilder_ == null) {
return tokenCounts_.size();
} else {
return tokenCountsBuilder_.getCount();
}
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount getTokenCounts(int index) {
if (tokenCountsBuilder_ == null) {
return tokenCounts_.get(index);
} else {
return tokenCountsBuilder_.getMessage(index);
}
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder setTokenCounts(
int index, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount value) {
if (tokenCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenCountsIsMutable();
tokenCounts_.set(index, value);
onChanged();
} else {
tokenCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder setTokenCounts(
int index, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder builderForValue) {
if (tokenCountsBuilder_ == null) {
ensureTokenCountsIsMutable();
tokenCounts_.set(index, builderForValue.build());
onChanged();
} else {
tokenCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder addTokenCounts(skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount value) {
if (tokenCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenCountsIsMutable();
tokenCounts_.add(value);
onChanged();
} else {
tokenCountsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder addTokenCounts(
int index, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount value) {
if (tokenCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenCountsIsMutable();
tokenCounts_.add(index, value);
onChanged();
} else {
tokenCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder addTokenCounts(
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder builderForValue) {
if (tokenCountsBuilder_ == null) {
ensureTokenCountsIsMutable();
tokenCounts_.add(builderForValue.build());
onChanged();
} else {
tokenCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder addTokenCounts(
int index, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder builderForValue) {
if (tokenCountsBuilder_ == null) {
ensureTokenCountsIsMutable();
tokenCounts_.add(index, builderForValue.build());
onChanged();
} else {
tokenCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder addAllTokenCounts(
java.lang.Iterable extends skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount> values) {
if (tokenCountsBuilder_ == null) {
ensureTokenCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tokenCounts_);
onChanged();
} else {
tokenCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder clearTokenCounts() {
if (tokenCountsBuilder_ == null) {
tokenCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tokenCountsBuilder_.clear();
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public Builder removeTokenCounts(int index) {
if (tokenCountsBuilder_ == null) {
ensureTokenCountsIsMutable();
tokenCounts_.remove(index);
onChanged();
} else {
tokenCountsBuilder_.remove(index);
}
return this;
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder getTokenCountsBuilder(
int index) {
return getTokenCountsFieldBuilder().getBuilder(index);
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder getTokenCountsOrBuilder(
int index) {
if (tokenCountsBuilder_ == null) {
return tokenCounts_.get(index); } else {
return tokenCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public java.util.List extends skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder>
getTokenCountsOrBuilderList() {
if (tokenCountsBuilder_ != null) {
return tokenCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tokenCounts_);
}
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder addTokenCountsBuilder() {
return getTokenCountsFieldBuilder().addBuilder(
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.getDefaultInstance());
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder addTokenCountsBuilder(
int index) {
return getTokenCountsFieldBuilder().addBuilder(
index, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.getDefaultInstance());
}
/**
* repeated .CMsgOverworldTokenCount token_counts = 1;
*/
public java.util.List
getTokenCountsBuilderList() {
return getTokenCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder>
getTokenCountsFieldBuilder() {
if (tokenCountsBuilder_ == null) {
tokenCountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCount.Builder, skadistats.clarity.wire.dota.s2.proto.DOTAS2GcMessagesCommonOverworld.CMsgOverworldTokenCountOrBuilder>(
tokenCounts_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
tokenCounts_ = null;
}
return tokenCountsBuilder_;
}
// @@protoc_insertion_point(builder_scope:CMsgOverworldTokenQuantity)
}
static {
defaultInstance = new CMsgOverworldTokenQuantity(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CMsgOverworldTokenQuantity)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CMsgOverworldTokenCount_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CMsgOverworldTokenCount_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CMsgOverworldTokenQuantity_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CMsgOverworldTokenQuantity_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&dota_gcmessages_common_overworld.proto" +
"\"@\n\027CMsgOverworldTokenCount\022\020\n\010token_id\030" +
"\001 \001(\r\022\023\n\013token_count\030\002 \001(\r\"L\n\032CMsgOverwo" +
"rldTokenQuantity\022.\n\014token_counts\030\001 \003(\0132\030" +
".CMsgOverworldTokenCountBH\n%skadistats.c" +
"larity.wire.dota.s2.protoB\037DOTAS2GcMessa" +
"gesCommonOverworld"
};
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_CMsgOverworldTokenCount_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CMsgOverworldTokenCount_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CMsgOverworldTokenCount_descriptor,
new java.lang.String[] { "TokenId", "TokenCount", });
internal_static_CMsgOverworldTokenQuantity_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_CMsgOverworldTokenQuantity_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CMsgOverworldTokenQuantity_descriptor,
new java.lang.String[] { "TokenCounts", });
}
// @@protoc_insertion_point(outer_class_scope)
}