POGOProtos.Data.Battle.BattleLogOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Battle/BattleLog.proto
package POGOProtos.Data.Battle;
public final class BattleLogOuterClass {
private BattleLogOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BattleLogOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Battle.BattleLog)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
int getStateValue();
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
POGOProtos.Data.Battle.BattleStateOuterClass.BattleState getState();
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
int getBattleTypeValue();
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType getBattleType();
/**
* int64 server_ms = 3;
*/
long getServerMs();
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
java.util.List
getBattleActionsList();
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction getBattleActions(int index);
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
int getBattleActionsCount();
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
java.util.List extends POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder>
getBattleActionsOrBuilderList();
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder getBattleActionsOrBuilder(
int index);
/**
* int64 battle_start_timestamp_ms = 5;
*/
long getBattleStartTimestampMs();
/**
* int64 battle_end_timestamp_ms = 6;
*/
long getBattleEndTimestampMs();
}
/**
* Protobuf type {@code POGOProtos.Data.Battle.BattleLog}
*/
public static final class BattleLog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Battle.BattleLog)
BattleLogOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattleLog.newBuilder() to construct.
private BattleLog(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BattleLog() {
state_ = 0;
battleType_ = 0;
serverMs_ = 0L;
battleActions_ = java.util.Collections.emptyList();
battleStartTimestampMs_ = 0L;
battleEndTimestampMs_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattleLog(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 8: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
battleType_ = rawValue;
break;
}
case 24: {
serverMs_ = input.readInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
battleActions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
battleActions_.add(
input.readMessage(POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.parser(), extensionRegistry));
break;
}
case 40: {
battleStartTimestampMs_ = input.readInt64();
break;
}
case 48: {
battleEndTimestampMs_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
battleActions_ = java.util.Collections.unmodifiableList(battleActions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Battle.BattleLogOuterClass.internal_static_POGOProtos_Data_Battle_BattleLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Battle.BattleLogOuterClass.internal_static_POGOProtos_Data_Battle_BattleLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.class, POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.Builder.class);
}
private int bitField0_;
public static final int STATE_FIELD_NUMBER = 1;
private int state_;
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public int getStateValue() {
return state_;
}
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public POGOProtos.Data.Battle.BattleStateOuterClass.BattleState getState() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Battle.BattleStateOuterClass.BattleState result = POGOProtos.Data.Battle.BattleStateOuterClass.BattleState.valueOf(state_);
return result == null ? POGOProtos.Data.Battle.BattleStateOuterClass.BattleState.UNRECOGNIZED : result;
}
public static final int BATTLE_TYPE_FIELD_NUMBER = 2;
private int battleType_;
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public int getBattleTypeValue() {
return battleType_;
}
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType getBattleType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType result = POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType.valueOf(battleType_);
return result == null ? POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType.UNRECOGNIZED : result;
}
public static final int SERVER_MS_FIELD_NUMBER = 3;
private long serverMs_;
/**
* int64 server_ms = 3;
*/
public long getServerMs() {
return serverMs_;
}
public static final int BATTLE_ACTIONS_FIELD_NUMBER = 4;
private java.util.List battleActions_;
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public java.util.List getBattleActionsList() {
return battleActions_;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public java.util.List extends POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder>
getBattleActionsOrBuilderList() {
return battleActions_;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public int getBattleActionsCount() {
return battleActions_.size();
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction getBattleActions(int index) {
return battleActions_.get(index);
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder getBattleActionsOrBuilder(
int index) {
return battleActions_.get(index);
}
public static final int BATTLE_START_TIMESTAMP_MS_FIELD_NUMBER = 5;
private long battleStartTimestampMs_;
/**
* int64 battle_start_timestamp_ms = 5;
*/
public long getBattleStartTimestampMs() {
return battleStartTimestampMs_;
}
public static final int BATTLE_END_TIMESTAMP_MS_FIELD_NUMBER = 6;
private long battleEndTimestampMs_;
/**
* int64 battle_end_timestamp_ms = 6;
*/
public long getBattleEndTimestampMs() {
return battleEndTimestampMs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (state_ != POGOProtos.Data.Battle.BattleStateOuterClass.BattleState.STATE_UNSET.getNumber()) {
output.writeEnum(1, state_);
}
if (battleType_ != POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType.BATTLE_TYPE_UNSET.getNumber()) {
output.writeEnum(2, battleType_);
}
if (serverMs_ != 0L) {
output.writeInt64(3, serverMs_);
}
for (int i = 0; i < battleActions_.size(); i++) {
output.writeMessage(4, battleActions_.get(i));
}
if (battleStartTimestampMs_ != 0L) {
output.writeInt64(5, battleStartTimestampMs_);
}
if (battleEndTimestampMs_ != 0L) {
output.writeInt64(6, battleEndTimestampMs_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_ != POGOProtos.Data.Battle.BattleStateOuterClass.BattleState.STATE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, state_);
}
if (battleType_ != POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType.BATTLE_TYPE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, battleType_);
}
if (serverMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, serverMs_);
}
for (int i = 0; i < battleActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, battleActions_.get(i));
}
if (battleStartTimestampMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, battleStartTimestampMs_);
}
if (battleEndTimestampMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, battleEndTimestampMs_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog)) {
return super.equals(obj);
}
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog other = (POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog) obj;
boolean result = true;
result = result && state_ == other.state_;
result = result && battleType_ == other.battleType_;
result = result && (getServerMs()
== other.getServerMs());
result = result && getBattleActionsList()
.equals(other.getBattleActionsList());
result = result && (getBattleStartTimestampMs()
== other.getBattleStartTimestampMs());
result = result && (getBattleEndTimestampMs()
== other.getBattleEndTimestampMs());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + BATTLE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + battleType_;
hash = (37 * hash) + SERVER_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getServerMs());
if (getBattleActionsCount() > 0) {
hash = (37 * hash) + BATTLE_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getBattleActionsList().hashCode();
}
hash = (37 * hash) + BATTLE_START_TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBattleStartTimestampMs());
hash = (37 * hash) + BATTLE_END_TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBattleEndTimestampMs());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code POGOProtos.Data.Battle.BattleLog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Battle.BattleLog)
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Battle.BattleLogOuterClass.internal_static_POGOProtos_Data_Battle_BattleLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Battle.BattleLogOuterClass.internal_static_POGOProtos_Data_Battle_BattleLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.class, POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.Builder.class);
}
// Construct using POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBattleActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
state_ = 0;
battleType_ = 0;
serverMs_ = 0L;
if (battleActionsBuilder_ == null) {
battleActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
battleActionsBuilder_.clear();
}
battleStartTimestampMs_ = 0L;
battleEndTimestampMs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Battle.BattleLogOuterClass.internal_static_POGOProtos_Data_Battle_BattleLog_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog getDefaultInstanceForType() {
return POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog build() {
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog buildPartial() {
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog result = new POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.state_ = state_;
result.battleType_ = battleType_;
result.serverMs_ = serverMs_;
if (battleActionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
battleActions_ = java.util.Collections.unmodifiableList(battleActions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.battleActions_ = battleActions_;
} else {
result.battleActions_ = battleActionsBuilder_.build();
}
result.battleStartTimestampMs_ = battleStartTimestampMs_;
result.battleEndTimestampMs_ = battleEndTimestampMs_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog) {
return mergeFrom((POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog other) {
if (other == POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.battleType_ != 0) {
setBattleTypeValue(other.getBattleTypeValue());
}
if (other.getServerMs() != 0L) {
setServerMs(other.getServerMs());
}
if (battleActionsBuilder_ == null) {
if (!other.battleActions_.isEmpty()) {
if (battleActions_.isEmpty()) {
battleActions_ = other.battleActions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureBattleActionsIsMutable();
battleActions_.addAll(other.battleActions_);
}
onChanged();
}
} else {
if (!other.battleActions_.isEmpty()) {
if (battleActionsBuilder_.isEmpty()) {
battleActionsBuilder_.dispose();
battleActionsBuilder_ = null;
battleActions_ = other.battleActions_;
bitField0_ = (bitField0_ & ~0x00000008);
battleActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBattleActionsFieldBuilder() : null;
} else {
battleActionsBuilder_.addAllMessages(other.battleActions_);
}
}
}
if (other.getBattleStartTimestampMs() != 0L) {
setBattleStartTimestampMs(other.getBattleStartTimestampMs());
}
if (other.getBattleEndTimestampMs() != 0L) {
setBattleEndTimestampMs(other.getBattleEndTimestampMs());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int state_ = 0;
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public int getStateValue() {
return state_;
}
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public POGOProtos.Data.Battle.BattleStateOuterClass.BattleState getState() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Battle.BattleStateOuterClass.BattleState result = POGOProtos.Data.Battle.BattleStateOuterClass.BattleState.valueOf(state_);
return result == null ? POGOProtos.Data.Battle.BattleStateOuterClass.BattleState.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public Builder setState(POGOProtos.Data.Battle.BattleStateOuterClass.BattleState value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Battle.BattleState state = 1;
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private int battleType_ = 0;
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public int getBattleTypeValue() {
return battleType_;
}
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public Builder setBattleTypeValue(int value) {
battleType_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType getBattleType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType result = POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType.valueOf(battleType_);
return result == null ? POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public Builder setBattleType(POGOProtos.Data.Battle.BattleTypeOuterClass.BattleType value) {
if (value == null) {
throw new NullPointerException();
}
battleType_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Battle.BattleType battle_type = 2;
*/
public Builder clearBattleType() {
battleType_ = 0;
onChanged();
return this;
}
private long serverMs_ ;
/**
* int64 server_ms = 3;
*/
public long getServerMs() {
return serverMs_;
}
/**
* int64 server_ms = 3;
*/
public Builder setServerMs(long value) {
serverMs_ = value;
onChanged();
return this;
}
/**
* int64 server_ms = 3;
*/
public Builder clearServerMs() {
serverMs_ = 0L;
onChanged();
return this;
}
private java.util.List battleActions_ =
java.util.Collections.emptyList();
private void ensureBattleActionsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
battleActions_ = new java.util.ArrayList(battleActions_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder, POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder> battleActionsBuilder_;
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public java.util.List getBattleActionsList() {
if (battleActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(battleActions_);
} else {
return battleActionsBuilder_.getMessageList();
}
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public int getBattleActionsCount() {
if (battleActionsBuilder_ == null) {
return battleActions_.size();
} else {
return battleActionsBuilder_.getCount();
}
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction getBattleActions(int index) {
if (battleActionsBuilder_ == null) {
return battleActions_.get(index);
} else {
return battleActionsBuilder_.getMessage(index);
}
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder setBattleActions(
int index, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction value) {
if (battleActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBattleActionsIsMutable();
battleActions_.set(index, value);
onChanged();
} else {
battleActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder setBattleActions(
int index, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder builderForValue) {
if (battleActionsBuilder_ == null) {
ensureBattleActionsIsMutable();
battleActions_.set(index, builderForValue.build());
onChanged();
} else {
battleActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder addBattleActions(POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction value) {
if (battleActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBattleActionsIsMutable();
battleActions_.add(value);
onChanged();
} else {
battleActionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder addBattleActions(
int index, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction value) {
if (battleActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBattleActionsIsMutable();
battleActions_.add(index, value);
onChanged();
} else {
battleActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder addBattleActions(
POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder builderForValue) {
if (battleActionsBuilder_ == null) {
ensureBattleActionsIsMutable();
battleActions_.add(builderForValue.build());
onChanged();
} else {
battleActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder addBattleActions(
int index, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder builderForValue) {
if (battleActionsBuilder_ == null) {
ensureBattleActionsIsMutable();
battleActions_.add(index, builderForValue.build());
onChanged();
} else {
battleActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder addAllBattleActions(
java.lang.Iterable extends POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction> values) {
if (battleActionsBuilder_ == null) {
ensureBattleActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, battleActions_);
onChanged();
} else {
battleActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder clearBattleActions() {
if (battleActionsBuilder_ == null) {
battleActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
battleActionsBuilder_.clear();
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public Builder removeBattleActions(int index) {
if (battleActionsBuilder_ == null) {
ensureBattleActionsIsMutable();
battleActions_.remove(index);
onChanged();
} else {
battleActionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder getBattleActionsBuilder(
int index) {
return getBattleActionsFieldBuilder().getBuilder(index);
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder getBattleActionsOrBuilder(
int index) {
if (battleActionsBuilder_ == null) {
return battleActions_.get(index); } else {
return battleActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public java.util.List extends POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder>
getBattleActionsOrBuilderList() {
if (battleActionsBuilder_ != null) {
return battleActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(battleActions_);
}
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder addBattleActionsBuilder() {
return getBattleActionsFieldBuilder().addBuilder(
POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder addBattleActionsBuilder(
int index) {
return getBattleActionsFieldBuilder().addBuilder(
index, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Battle.BattleAction battle_actions = 4;
*/
public java.util.List
getBattleActionsBuilderList() {
return getBattleActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder, POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder>
getBattleActionsFieldBuilder() {
if (battleActionsBuilder_ == null) {
battleActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction, POGOProtos.Data.Battle.BattleActionOuterClass.BattleAction.Builder, POGOProtos.Data.Battle.BattleActionOuterClass.BattleActionOrBuilder>(
battleActions_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
battleActions_ = null;
}
return battleActionsBuilder_;
}
private long battleStartTimestampMs_ ;
/**
* int64 battle_start_timestamp_ms = 5;
*/
public long getBattleStartTimestampMs() {
return battleStartTimestampMs_;
}
/**
* int64 battle_start_timestamp_ms = 5;
*/
public Builder setBattleStartTimestampMs(long value) {
battleStartTimestampMs_ = value;
onChanged();
return this;
}
/**
* int64 battle_start_timestamp_ms = 5;
*/
public Builder clearBattleStartTimestampMs() {
battleStartTimestampMs_ = 0L;
onChanged();
return this;
}
private long battleEndTimestampMs_ ;
/**
* int64 battle_end_timestamp_ms = 6;
*/
public long getBattleEndTimestampMs() {
return battleEndTimestampMs_;
}
/**
* int64 battle_end_timestamp_ms = 6;
*/
public Builder setBattleEndTimestampMs(long value) {
battleEndTimestampMs_ = value;
onChanged();
return this;
}
/**
* int64 battle_end_timestamp_ms = 6;
*/
public Builder clearBattleEndTimestampMs() {
battleEndTimestampMs_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Data.Battle.BattleLog)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Battle.BattleLog)
private static final POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog();
}
public static POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BattleLog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattleLog(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public POGOProtos.Data.Battle.BattleLogOuterClass.BattleLog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Battle_BattleLog_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Battle_BattleLog_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&POGOProtos/Data/Battle/BattleLog.proto" +
"\022\026POGOProtos.Data.Battle\032(POGOProtos/Dat" +
"a/Battle/BattleState.proto\032\'POGOProtos/D" +
"ata/Battle/BattleType.proto\032)POGOProtos/" +
"Data/Battle/BattleAction.proto\"\215\002\n\tBattl" +
"eLog\0222\n\005state\030\001 \001(\0162#.POGOProtos.Data.Ba" +
"ttle.BattleState\0227\n\013battle_type\030\002 \001(\0162\"." +
"POGOProtos.Data.Battle.BattleType\022\021\n\tser" +
"ver_ms\030\003 \001(\003\022<\n\016battle_actions\030\004 \003(\0132$.P" +
"OGOProtos.Data.Battle.BattleAction\022!\n\031ba" +
"ttle_start_timestamp_ms\030\005 \001(\003\022\037\n\027battle_" +
"end_timestamp_ms\030\006 \001(\003b\006proto3"
};
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[] {
POGOProtos.Data.Battle.BattleStateOuterClass.getDescriptor(),
POGOProtos.Data.Battle.BattleTypeOuterClass.getDescriptor(),
POGOProtos.Data.Battle.BattleActionOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Battle_BattleLog_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Battle_BattleLog_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Battle_BattleLog_descriptor,
new java.lang.String[] { "State", "BattleType", "ServerMs", "BattleActions", "BattleStartTimestampMs", "BattleEndTimestampMs", });
POGOProtos.Data.Battle.BattleStateOuterClass.getDescriptor();
POGOProtos.Data.Battle.BattleTypeOuterClass.getDescriptor();
POGOProtos.Data.Battle.BattleActionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy