POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Logs/CatchPokemonLogEntry.proto
package POGOProtos.Data.Logs;
public final class CatchPokemonLogEntryOuterClass {
private CatchPokemonLogEntryOuterClass() {}
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 CatchPokemonLogEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Logs.CatchPokemonLogEntry)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
int getResultValue();
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result getResult();
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
int getPokemonIdValue();
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
POGOProtos.Enums.PokemonIdOuterClass.PokemonId getPokemonId();
/**
* int32 combat_points = 3;
*/
int getCombatPoints();
/**
* fixed64 pokemon_data_id = 4;
*/
long getPokemonDataId();
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
boolean hasPokemonDisplay();
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay getPokemonDisplay();
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder getPokemonDisplayOrBuilder();
}
/**
* Protobuf type {@code POGOProtos.Data.Logs.CatchPokemonLogEntry}
*/
public static final class CatchPokemonLogEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Logs.CatchPokemonLogEntry)
CatchPokemonLogEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use CatchPokemonLogEntry.newBuilder() to construct.
private CatchPokemonLogEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CatchPokemonLogEntry() {
result_ = 0;
pokemonId_ = 0;
combatPoints_ = 0;
pokemonDataId_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CatchPokemonLogEntry(
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();
result_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
pokemonId_ = rawValue;
break;
}
case 24: {
combatPoints_ = input.readInt32();
break;
}
case 33: {
pokemonDataId_ = input.readFixed64();
break;
}
case 42: {
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder subBuilder = null;
if (pokemonDisplay_ != null) {
subBuilder = pokemonDisplay_.toBuilder();
}
pokemonDisplay_ = input.readMessage(POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pokemonDisplay_);
pokemonDisplay_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.class, POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Data.Logs.CatchPokemonLogEntry.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSET = 0;
*/
UNSET(0),
/**
* POKEMON_CAPTURED = 1;
*/
POKEMON_CAPTURED(1),
/**
* POKEMON_FLED = 2;
*/
POKEMON_FLED(2),
/**
* POKEMON_HATCHED = 3;
*/
POKEMON_HATCHED(3),
UNRECOGNIZED(-1),
;
/**
* UNSET = 0;
*/
public static final int UNSET_VALUE = 0;
/**
* POKEMON_CAPTURED = 1;
*/
public static final int POKEMON_CAPTURED_VALUE = 1;
/**
* POKEMON_FLED = 2;
*/
public static final int POKEMON_FLED_VALUE = 2;
/**
* POKEMON_HATCHED = 3;
*/
public static final int POKEMON_HATCHED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Result valueOf(int value) {
return forNumber(value);
}
public static Result forNumber(int value) {
switch (value) {
case 0: return UNSET;
case 1: return POKEMON_CAPTURED;
case 2: return POKEMON_FLED;
case 3: return POKEMON_HATCHED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Result> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Result findValueByNumber(int number) {
return Result.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.getDescriptor().getEnumTypes().get(0);
}
private static final Result[] VALUES = values();
public static Result valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Result(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Logs.CatchPokemonLogEntry.Result)
}
public static final int RESULT_FIELD_NUMBER = 1;
private int result_;
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public int getResultValue() {
return result_;
}
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result getResult() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result result = POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result.valueOf(result_);
return result == null ? POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result.UNRECOGNIZED : result;
}
public static final int POKEMON_ID_FIELD_NUMBER = 2;
private int pokemonId_;
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public int getPokemonIdValue() {
return pokemonId_;
}
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public POGOProtos.Enums.PokemonIdOuterClass.PokemonId getPokemonId() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.PokemonIdOuterClass.PokemonId result = POGOProtos.Enums.PokemonIdOuterClass.PokemonId.valueOf(pokemonId_);
return result == null ? POGOProtos.Enums.PokemonIdOuterClass.PokemonId.UNRECOGNIZED : result;
}
public static final int COMBAT_POINTS_FIELD_NUMBER = 3;
private int combatPoints_;
/**
* int32 combat_points = 3;
*/
public int getCombatPoints() {
return combatPoints_;
}
public static final int POKEMON_DATA_ID_FIELD_NUMBER = 4;
private long pokemonDataId_;
/**
* fixed64 pokemon_data_id = 4;
*/
public long getPokemonDataId() {
return pokemonDataId_;
}
public static final int POKEMON_DISPLAY_FIELD_NUMBER = 5;
private POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay pokemonDisplay_;
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public boolean hasPokemonDisplay() {
return pokemonDisplay_ != null;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay getPokemonDisplay() {
return pokemonDisplay_ == null ? POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.getDefaultInstance() : pokemonDisplay_;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder getPokemonDisplayOrBuilder() {
return getPokemonDisplay();
}
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 (result_ != POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result.UNSET.getNumber()) {
output.writeEnum(1, result_);
}
if (pokemonId_ != POGOProtos.Enums.PokemonIdOuterClass.PokemonId.MISSINGNO.getNumber()) {
output.writeEnum(2, pokemonId_);
}
if (combatPoints_ != 0) {
output.writeInt32(3, combatPoints_);
}
if (pokemonDataId_ != 0L) {
output.writeFixed64(4, pokemonDataId_);
}
if (pokemonDisplay_ != null) {
output.writeMessage(5, getPokemonDisplay());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result.UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, result_);
}
if (pokemonId_ != POGOProtos.Enums.PokemonIdOuterClass.PokemonId.MISSINGNO.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, pokemonId_);
}
if (combatPoints_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, combatPoints_);
}
if (pokemonDataId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, pokemonDataId_);
}
if (pokemonDisplay_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPokemonDisplay());
}
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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry)) {
return super.equals(obj);
}
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry other = (POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry) obj;
boolean result = true;
result = result && result_ == other.result_;
result = result && pokemonId_ == other.pokemonId_;
result = result && (getCombatPoints()
== other.getCombatPoints());
result = result && (getPokemonDataId()
== other.getPokemonDataId());
result = result && (hasPokemonDisplay() == other.hasPokemonDisplay());
if (hasPokemonDisplay()) {
result = result && getPokemonDisplay()
.equals(other.getPokemonDisplay());
}
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) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (37 * hash) + POKEMON_ID_FIELD_NUMBER;
hash = (53 * hash) + pokemonId_;
hash = (37 * hash) + COMBAT_POINTS_FIELD_NUMBER;
hash = (53 * hash) + getCombatPoints();
hash = (37 * hash) + POKEMON_DATA_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPokemonDataId());
if (hasPokemonDisplay()) {
hash = (37 * hash) + POKEMON_DISPLAY_FIELD_NUMBER;
hash = (53 * hash) + getPokemonDisplay().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry 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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry 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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry 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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry 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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry 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.Logs.CatchPokemonLogEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Logs.CatchPokemonLogEntry)
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.class, POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Builder.class);
}
// Construct using POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
result_ = 0;
pokemonId_ = 0;
combatPoints_ = 0;
pokemonDataId_ = 0L;
if (pokemonDisplayBuilder_ == null) {
pokemonDisplay_ = null;
} else {
pokemonDisplay_ = null;
pokemonDisplayBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry getDefaultInstanceForType() {
return POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry build() {
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry buildPartial() {
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry result = new POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry(this);
result.result_ = result_;
result.pokemonId_ = pokemonId_;
result.combatPoints_ = combatPoints_;
result.pokemonDataId_ = pokemonDataId_;
if (pokemonDisplayBuilder_ == null) {
result.pokemonDisplay_ = pokemonDisplay_;
} else {
result.pokemonDisplay_ = pokemonDisplayBuilder_.build();
}
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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry) {
return mergeFrom((POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry other) {
if (other == POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.getDefaultInstance()) return this;
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.pokemonId_ != 0) {
setPokemonIdValue(other.getPokemonIdValue());
}
if (other.getCombatPoints() != 0) {
setCombatPoints(other.getCombatPoints());
}
if (other.getPokemonDataId() != 0L) {
setPokemonDataId(other.getPokemonDataId());
}
if (other.hasPokemonDisplay()) {
mergePokemonDisplay(other.getPokemonDisplay());
}
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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int result_ = 0;
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public int getResultValue() {
return result_;
}
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result getResult() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result result = POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result.valueOf(result_);
return result == null ? POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public Builder setResult(POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry.Result value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Logs.CatchPokemonLogEntry.Result result = 1;
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private int pokemonId_ = 0;
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public int getPokemonIdValue() {
return pokemonId_;
}
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public Builder setPokemonIdValue(int value) {
pokemonId_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public POGOProtos.Enums.PokemonIdOuterClass.PokemonId getPokemonId() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.PokemonIdOuterClass.PokemonId result = POGOProtos.Enums.PokemonIdOuterClass.PokemonId.valueOf(pokemonId_);
return result == null ? POGOProtos.Enums.PokemonIdOuterClass.PokemonId.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public Builder setPokemonId(POGOProtos.Enums.PokemonIdOuterClass.PokemonId value) {
if (value == null) {
throw new NullPointerException();
}
pokemonId_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Enums.PokemonId pokemon_id = 2;
*/
public Builder clearPokemonId() {
pokemonId_ = 0;
onChanged();
return this;
}
private int combatPoints_ ;
/**
* int32 combat_points = 3;
*/
public int getCombatPoints() {
return combatPoints_;
}
/**
* int32 combat_points = 3;
*/
public Builder setCombatPoints(int value) {
combatPoints_ = value;
onChanged();
return this;
}
/**
* int32 combat_points = 3;
*/
public Builder clearCombatPoints() {
combatPoints_ = 0;
onChanged();
return this;
}
private long pokemonDataId_ ;
/**
* fixed64 pokemon_data_id = 4;
*/
public long getPokemonDataId() {
return pokemonDataId_;
}
/**
* fixed64 pokemon_data_id = 4;
*/
public Builder setPokemonDataId(long value) {
pokemonDataId_ = value;
onChanged();
return this;
}
/**
* fixed64 pokemon_data_id = 4;
*/
public Builder clearPokemonDataId() {
pokemonDataId_ = 0L;
onChanged();
return this;
}
private POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay pokemonDisplay_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder> pokemonDisplayBuilder_;
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public boolean hasPokemonDisplay() {
return pokemonDisplayBuilder_ != null || pokemonDisplay_ != null;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay getPokemonDisplay() {
if (pokemonDisplayBuilder_ == null) {
return pokemonDisplay_ == null ? POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.getDefaultInstance() : pokemonDisplay_;
} else {
return pokemonDisplayBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public Builder setPokemonDisplay(POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay value) {
if (pokemonDisplayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pokemonDisplay_ = value;
onChanged();
} else {
pokemonDisplayBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public Builder setPokemonDisplay(
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder builderForValue) {
if (pokemonDisplayBuilder_ == null) {
pokemonDisplay_ = builderForValue.build();
onChanged();
} else {
pokemonDisplayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public Builder mergePokemonDisplay(POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay value) {
if (pokemonDisplayBuilder_ == null) {
if (pokemonDisplay_ != null) {
pokemonDisplay_ =
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.newBuilder(pokemonDisplay_).mergeFrom(value).buildPartial();
} else {
pokemonDisplay_ = value;
}
onChanged();
} else {
pokemonDisplayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public Builder clearPokemonDisplay() {
if (pokemonDisplayBuilder_ == null) {
pokemonDisplay_ = null;
onChanged();
} else {
pokemonDisplay_ = null;
pokemonDisplayBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder getPokemonDisplayBuilder() {
onChanged();
return getPokemonDisplayFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder getPokemonDisplayOrBuilder() {
if (pokemonDisplayBuilder_ != null) {
return pokemonDisplayBuilder_.getMessageOrBuilder();
} else {
return pokemonDisplay_ == null ?
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.getDefaultInstance() : pokemonDisplay_;
}
}
/**
* .POGOProtos.Data.PokemonDisplay pokemon_display = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder>
getPokemonDisplayFieldBuilder() {
if (pokemonDisplayBuilder_ == null) {
pokemonDisplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder>(
getPokemonDisplay(),
getParentForChildren(),
isClean());
pokemonDisplay_ = null;
}
return pokemonDisplayBuilder_;
}
@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.Logs.CatchPokemonLogEntry)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Logs.CatchPokemonLogEntry)
private static final POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry();
}
public static POGOProtos.Data.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CatchPokemonLogEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CatchPokemonLogEntry(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.Logs.CatchPokemonLogEntryOuterClass.CatchPokemonLogEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_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/Logs/CatchPokemonLogEn" +
"try.proto\022\024POGOProtos.Data.Logs\032 POGOPro" +
"tos/Enums/PokemonId.proto\032$POGOProtos/Da" +
"ta/PokemonDisplay.proto\"\306\002\n\024CatchPokemon" +
"LogEntry\022A\n\006result\030\001 \001(\01621.POGOProtos.Da" +
"ta.Logs.CatchPokemonLogEntry.Result\022/\n\np" +
"okemon_id\030\002 \001(\0162\033.POGOProtos.Enums.Pokem" +
"onId\022\025\n\rcombat_points\030\003 \001(\005\022\027\n\017pokemon_d" +
"ata_id\030\004 \001(\006\0228\n\017pokemon_display\030\005 \001(\0132\037." +
"POGOProtos.Data.PokemonDisplay\"P\n\006Result" +
"\022\t\n\005UNSET\020\000\022\024\n\020POKEMON_CAPTURED\020\001\022\020\n\014POK" +
"EMON_FLED\020\002\022\023\n\017POKEMON_HATCHED\020\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.Enums.PokemonIdOuterClass.getDescriptor(),
POGOProtos.Data.PokemonDisplayOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Logs_CatchPokemonLogEntry_descriptor,
new java.lang.String[] { "Result", "PokemonId", "CombatPoints", "PokemonDataId", "PokemonDisplay", });
POGOProtos.Enums.PokemonIdOuterClass.getDescriptor();
POGOProtos.Data.PokemonDisplayOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy