POGOProtos.Data.Raid.RaidEncounterOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Raid/RaidEncounter.proto
package POGOProtos.Data.Raid;
public final class RaidEncounterOuterClass {
private RaidEncounterOuterClass() {}
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 RaidEncounterOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Raid.RaidEncounter)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
boolean hasPokemon();
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
POGOProtos.Data.PokemonDataOuterClass.PokemonData getPokemon();
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder getPokemonOrBuilder();
/**
* int64 encounter_id = 2;
*/
long getEncounterId();
/**
* string spawnpoint_id = 3;
*/
java.lang.String getSpawnpointId();
/**
* string spawnpoint_id = 3;
*/
com.google.protobuf.ByteString
getSpawnpointIdBytes();
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
boolean hasCaptureProbabilities();
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getCaptureProbabilities();
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder getCaptureProbabilitiesOrBuilder();
/**
* int32 throws_remaining = 5;
*/
int getThrowsRemaining();
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
int getRaidLevelValue();
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
POGOProtos.Enums.RaidLevelOuterClass.RaidLevel getRaidLevel();
/**
* string fort_id = 7;
*/
java.lang.String getFortId();
/**
* string fort_id = 7;
*/
com.google.protobuf.ByteString
getFortIdBytes();
}
/**
* Protobuf type {@code POGOProtos.Data.Raid.RaidEncounter}
*/
public static final class RaidEncounter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Raid.RaidEncounter)
RaidEncounterOrBuilder {
private static final long serialVersionUID = 0L;
// Use RaidEncounter.newBuilder() to construct.
private RaidEncounter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RaidEncounter() {
encounterId_ = 0L;
spawnpointId_ = "";
throwsRemaining_ = 0;
raidLevel_ = 0;
fortId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RaidEncounter(
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 10: {
POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder subBuilder = null;
if (pokemon_ != null) {
subBuilder = pokemon_.toBuilder();
}
pokemon_ = input.readMessage(POGOProtos.Data.PokemonDataOuterClass.PokemonData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pokemon_);
pokemon_ = subBuilder.buildPartial();
}
break;
}
case 16: {
encounterId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
spawnpointId_ = s;
break;
}
case 34: {
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder subBuilder = null;
if (captureProbabilities_ != null) {
subBuilder = captureProbabilities_.toBuilder();
}
captureProbabilities_ = input.readMessage(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(captureProbabilities_);
captureProbabilities_ = subBuilder.buildPartial();
}
break;
}
case 40: {
throwsRemaining_ = input.readInt32();
break;
}
case 48: {
int rawValue = input.readEnum();
raidLevel_ = rawValue;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
fortId_ = s;
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.Raid.RaidEncounterOuterClass.internal_static_POGOProtos_Data_Raid_RaidEncounter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Raid.RaidEncounterOuterClass.internal_static_POGOProtos_Data_Raid_RaidEncounter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.class, POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.Builder.class);
}
public static final int POKEMON_FIELD_NUMBER = 1;
private POGOProtos.Data.PokemonDataOuterClass.PokemonData pokemon_;
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public boolean hasPokemon() {
return pokemon_ != null;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonData getPokemon() {
return pokemon_ == null ? POGOProtos.Data.PokemonDataOuterClass.PokemonData.getDefaultInstance() : pokemon_;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder getPokemonOrBuilder() {
return getPokemon();
}
public static final int ENCOUNTER_ID_FIELD_NUMBER = 2;
private long encounterId_;
/**
* int64 encounter_id = 2;
*/
public long getEncounterId() {
return encounterId_;
}
public static final int SPAWNPOINT_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object spawnpointId_;
/**
* string spawnpoint_id = 3;
*/
public java.lang.String getSpawnpointId() {
java.lang.Object ref = spawnpointId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
spawnpointId_ = s;
return s;
}
}
/**
* string spawnpoint_id = 3;
*/
public com.google.protobuf.ByteString
getSpawnpointIdBytes() {
java.lang.Object ref = spawnpointId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spawnpointId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAPTURE_PROBABILITIES_FIELD_NUMBER = 4;
private POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability captureProbabilities_;
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public boolean hasCaptureProbabilities() {
return captureProbabilities_ != null;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getCaptureProbabilities() {
return captureProbabilities_ == null ? POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance() : captureProbabilities_;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder getCaptureProbabilitiesOrBuilder() {
return getCaptureProbabilities();
}
public static final int THROWS_REMAINING_FIELD_NUMBER = 5;
private int throwsRemaining_;
/**
* int32 throws_remaining = 5;
*/
public int getThrowsRemaining() {
return throwsRemaining_;
}
public static final int RAID_LEVEL_FIELD_NUMBER = 6;
private int raidLevel_;
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public int getRaidLevelValue() {
return raidLevel_;
}
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public POGOProtos.Enums.RaidLevelOuterClass.RaidLevel getRaidLevel() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.RaidLevelOuterClass.RaidLevel result = POGOProtos.Enums.RaidLevelOuterClass.RaidLevel.valueOf(raidLevel_);
return result == null ? POGOProtos.Enums.RaidLevelOuterClass.RaidLevel.UNRECOGNIZED : result;
}
public static final int FORT_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object fortId_;
/**
* string fort_id = 7;
*/
public java.lang.String getFortId() {
java.lang.Object ref = fortId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fortId_ = s;
return s;
}
}
/**
* string fort_id = 7;
*/
public com.google.protobuf.ByteString
getFortIdBytes() {
java.lang.Object ref = fortId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fortId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (pokemon_ != null) {
output.writeMessage(1, getPokemon());
}
if (encounterId_ != 0L) {
output.writeInt64(2, encounterId_);
}
if (!getSpawnpointIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, spawnpointId_);
}
if (captureProbabilities_ != null) {
output.writeMessage(4, getCaptureProbabilities());
}
if (throwsRemaining_ != 0) {
output.writeInt32(5, throwsRemaining_);
}
if (raidLevel_ != POGOProtos.Enums.RaidLevelOuterClass.RaidLevel.RAID_LEVEL_UNSET.getNumber()) {
output.writeEnum(6, raidLevel_);
}
if (!getFortIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fortId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pokemon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPokemon());
}
if (encounterId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, encounterId_);
}
if (!getSpawnpointIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, spawnpointId_);
}
if (captureProbabilities_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCaptureProbabilities());
}
if (throwsRemaining_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, throwsRemaining_);
}
if (raidLevel_ != POGOProtos.Enums.RaidLevelOuterClass.RaidLevel.RAID_LEVEL_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, raidLevel_);
}
if (!getFortIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fortId_);
}
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.Raid.RaidEncounterOuterClass.RaidEncounter)) {
return super.equals(obj);
}
POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter other = (POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter) obj;
boolean result = true;
result = result && (hasPokemon() == other.hasPokemon());
if (hasPokemon()) {
result = result && getPokemon()
.equals(other.getPokemon());
}
result = result && (getEncounterId()
== other.getEncounterId());
result = result && getSpawnpointId()
.equals(other.getSpawnpointId());
result = result && (hasCaptureProbabilities() == other.hasCaptureProbabilities());
if (hasCaptureProbabilities()) {
result = result && getCaptureProbabilities()
.equals(other.getCaptureProbabilities());
}
result = result && (getThrowsRemaining()
== other.getThrowsRemaining());
result = result && raidLevel_ == other.raidLevel_;
result = result && getFortId()
.equals(other.getFortId());
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();
if (hasPokemon()) {
hash = (37 * hash) + POKEMON_FIELD_NUMBER;
hash = (53 * hash) + getPokemon().hashCode();
}
hash = (37 * hash) + ENCOUNTER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEncounterId());
hash = (37 * hash) + SPAWNPOINT_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpawnpointId().hashCode();
if (hasCaptureProbabilities()) {
hash = (37 * hash) + CAPTURE_PROBABILITIES_FIELD_NUMBER;
hash = (53 * hash) + getCaptureProbabilities().hashCode();
}
hash = (37 * hash) + THROWS_REMAINING_FIELD_NUMBER;
hash = (53 * hash) + getThrowsRemaining();
hash = (37 * hash) + RAID_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + raidLevel_;
hash = (37 * hash) + FORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getFortId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter 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.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter 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.Raid.RaidEncounterOuterClass.RaidEncounter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter 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.Raid.RaidEncounterOuterClass.RaidEncounter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter 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.Raid.RaidEncounterOuterClass.RaidEncounter 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.Raid.RaidEncounter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Raid.RaidEncounter)
POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Raid.RaidEncounterOuterClass.internal_static_POGOProtos_Data_Raid_RaidEncounter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Raid.RaidEncounterOuterClass.internal_static_POGOProtos_Data_Raid_RaidEncounter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.class, POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.Builder.class);
}
// Construct using POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.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();
if (pokemonBuilder_ == null) {
pokemon_ = null;
} else {
pokemon_ = null;
pokemonBuilder_ = null;
}
encounterId_ = 0L;
spawnpointId_ = "";
if (captureProbabilitiesBuilder_ == null) {
captureProbabilities_ = null;
} else {
captureProbabilities_ = null;
captureProbabilitiesBuilder_ = null;
}
throwsRemaining_ = 0;
raidLevel_ = 0;
fortId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Raid.RaidEncounterOuterClass.internal_static_POGOProtos_Data_Raid_RaidEncounter_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter getDefaultInstanceForType() {
return POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter build() {
POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter buildPartial() {
POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter result = new POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter(this);
if (pokemonBuilder_ == null) {
result.pokemon_ = pokemon_;
} else {
result.pokemon_ = pokemonBuilder_.build();
}
result.encounterId_ = encounterId_;
result.spawnpointId_ = spawnpointId_;
if (captureProbabilitiesBuilder_ == null) {
result.captureProbabilities_ = captureProbabilities_;
} else {
result.captureProbabilities_ = captureProbabilitiesBuilder_.build();
}
result.throwsRemaining_ = throwsRemaining_;
result.raidLevel_ = raidLevel_;
result.fortId_ = fortId_;
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.Raid.RaidEncounterOuterClass.RaidEncounter) {
return mergeFrom((POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter other) {
if (other == POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter.getDefaultInstance()) return this;
if (other.hasPokemon()) {
mergePokemon(other.getPokemon());
}
if (other.getEncounterId() != 0L) {
setEncounterId(other.getEncounterId());
}
if (!other.getSpawnpointId().isEmpty()) {
spawnpointId_ = other.spawnpointId_;
onChanged();
}
if (other.hasCaptureProbabilities()) {
mergeCaptureProbabilities(other.getCaptureProbabilities());
}
if (other.getThrowsRemaining() != 0) {
setThrowsRemaining(other.getThrowsRemaining());
}
if (other.raidLevel_ != 0) {
setRaidLevelValue(other.getRaidLevelValue());
}
if (!other.getFortId().isEmpty()) {
fortId_ = other.fortId_;
onChanged();
}
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.Raid.RaidEncounterOuterClass.RaidEncounter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private POGOProtos.Data.PokemonDataOuterClass.PokemonData pokemon_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.PokemonDataOuterClass.PokemonData, POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder, POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder> pokemonBuilder_;
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public boolean hasPokemon() {
return pokemonBuilder_ != null || pokemon_ != null;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonData getPokemon() {
if (pokemonBuilder_ == null) {
return pokemon_ == null ? POGOProtos.Data.PokemonDataOuterClass.PokemonData.getDefaultInstance() : pokemon_;
} else {
return pokemonBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public Builder setPokemon(POGOProtos.Data.PokemonDataOuterClass.PokemonData value) {
if (pokemonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pokemon_ = value;
onChanged();
} else {
pokemonBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public Builder setPokemon(
POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder builderForValue) {
if (pokemonBuilder_ == null) {
pokemon_ = builderForValue.build();
onChanged();
} else {
pokemonBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public Builder mergePokemon(POGOProtos.Data.PokemonDataOuterClass.PokemonData value) {
if (pokemonBuilder_ == null) {
if (pokemon_ != null) {
pokemon_ =
POGOProtos.Data.PokemonDataOuterClass.PokemonData.newBuilder(pokemon_).mergeFrom(value).buildPartial();
} else {
pokemon_ = value;
}
onChanged();
} else {
pokemonBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public Builder clearPokemon() {
if (pokemonBuilder_ == null) {
pokemon_ = null;
onChanged();
} else {
pokemon_ = null;
pokemonBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder getPokemonBuilder() {
onChanged();
return getPokemonFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder getPokemonOrBuilder() {
if (pokemonBuilder_ != null) {
return pokemonBuilder_.getMessageOrBuilder();
} else {
return pokemon_ == null ?
POGOProtos.Data.PokemonDataOuterClass.PokemonData.getDefaultInstance() : pokemon_;
}
}
/**
* .POGOProtos.Data.PokemonData pokemon = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.PokemonDataOuterClass.PokemonData, POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder, POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder>
getPokemonFieldBuilder() {
if (pokemonBuilder_ == null) {
pokemonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.PokemonDataOuterClass.PokemonData, POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder, POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder>(
getPokemon(),
getParentForChildren(),
isClean());
pokemon_ = null;
}
return pokemonBuilder_;
}
private long encounterId_ ;
/**
* int64 encounter_id = 2;
*/
public long getEncounterId() {
return encounterId_;
}
/**
* int64 encounter_id = 2;
*/
public Builder setEncounterId(long value) {
encounterId_ = value;
onChanged();
return this;
}
/**
* int64 encounter_id = 2;
*/
public Builder clearEncounterId() {
encounterId_ = 0L;
onChanged();
return this;
}
private java.lang.Object spawnpointId_ = "";
/**
* string spawnpoint_id = 3;
*/
public java.lang.String getSpawnpointId() {
java.lang.Object ref = spawnpointId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
spawnpointId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string spawnpoint_id = 3;
*/
public com.google.protobuf.ByteString
getSpawnpointIdBytes() {
java.lang.Object ref = spawnpointId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spawnpointId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string spawnpoint_id = 3;
*/
public Builder setSpawnpointId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
spawnpointId_ = value;
onChanged();
return this;
}
/**
* string spawnpoint_id = 3;
*/
public Builder clearSpawnpointId() {
spawnpointId_ = getDefaultInstance().getSpawnpointId();
onChanged();
return this;
}
/**
* string spawnpoint_id = 3;
*/
public Builder setSpawnpointIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
spawnpointId_ = value;
onChanged();
return this;
}
private POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability captureProbabilities_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder> captureProbabilitiesBuilder_;
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public boolean hasCaptureProbabilities() {
return captureProbabilitiesBuilder_ != null || captureProbabilities_ != null;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getCaptureProbabilities() {
if (captureProbabilitiesBuilder_ == null) {
return captureProbabilities_ == null ? POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance() : captureProbabilities_;
} else {
return captureProbabilitiesBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public Builder setCaptureProbabilities(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability value) {
if (captureProbabilitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
captureProbabilities_ = value;
onChanged();
} else {
captureProbabilitiesBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public Builder setCaptureProbabilities(
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder builderForValue) {
if (captureProbabilitiesBuilder_ == null) {
captureProbabilities_ = builderForValue.build();
onChanged();
} else {
captureProbabilitiesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public Builder mergeCaptureProbabilities(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability value) {
if (captureProbabilitiesBuilder_ == null) {
if (captureProbabilities_ != null) {
captureProbabilities_ =
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.newBuilder(captureProbabilities_).mergeFrom(value).buildPartial();
} else {
captureProbabilities_ = value;
}
onChanged();
} else {
captureProbabilitiesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public Builder clearCaptureProbabilities() {
if (captureProbabilitiesBuilder_ == null) {
captureProbabilities_ = null;
onChanged();
} else {
captureProbabilities_ = null;
captureProbabilitiesBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder getCaptureProbabilitiesBuilder() {
onChanged();
return getCaptureProbabilitiesFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder getCaptureProbabilitiesOrBuilder() {
if (captureProbabilitiesBuilder_ != null) {
return captureProbabilitiesBuilder_.getMessageOrBuilder();
} else {
return captureProbabilities_ == null ?
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance() : captureProbabilities_;
}
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probabilities = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder>
getCaptureProbabilitiesFieldBuilder() {
if (captureProbabilitiesBuilder_ == null) {
captureProbabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder>(
getCaptureProbabilities(),
getParentForChildren(),
isClean());
captureProbabilities_ = null;
}
return captureProbabilitiesBuilder_;
}
private int throwsRemaining_ ;
/**
* int32 throws_remaining = 5;
*/
public int getThrowsRemaining() {
return throwsRemaining_;
}
/**
* int32 throws_remaining = 5;
*/
public Builder setThrowsRemaining(int value) {
throwsRemaining_ = value;
onChanged();
return this;
}
/**
* int32 throws_remaining = 5;
*/
public Builder clearThrowsRemaining() {
throwsRemaining_ = 0;
onChanged();
return this;
}
private int raidLevel_ = 0;
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public int getRaidLevelValue() {
return raidLevel_;
}
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public Builder setRaidLevelValue(int value) {
raidLevel_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public POGOProtos.Enums.RaidLevelOuterClass.RaidLevel getRaidLevel() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.RaidLevelOuterClass.RaidLevel result = POGOProtos.Enums.RaidLevelOuterClass.RaidLevel.valueOf(raidLevel_);
return result == null ? POGOProtos.Enums.RaidLevelOuterClass.RaidLevel.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public Builder setRaidLevel(POGOProtos.Enums.RaidLevelOuterClass.RaidLevel value) {
if (value == null) {
throw new NullPointerException();
}
raidLevel_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Enums.RaidLevel raid_level = 6;
*/
public Builder clearRaidLevel() {
raidLevel_ = 0;
onChanged();
return this;
}
private java.lang.Object fortId_ = "";
/**
* string fort_id = 7;
*/
public java.lang.String getFortId() {
java.lang.Object ref = fortId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fortId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string fort_id = 7;
*/
public com.google.protobuf.ByteString
getFortIdBytes() {
java.lang.Object ref = fortId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fortId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string fort_id = 7;
*/
public Builder setFortId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fortId_ = value;
onChanged();
return this;
}
/**
* string fort_id = 7;
*/
public Builder clearFortId() {
fortId_ = getDefaultInstance().getFortId();
onChanged();
return this;
}
/**
* string fort_id = 7;
*/
public Builder setFortIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fortId_ = value;
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.Raid.RaidEncounter)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Raid.RaidEncounter)
private static final POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter();
}
public static POGOProtos.Data.Raid.RaidEncounterOuterClass.RaidEncounter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RaidEncounter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RaidEncounter(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.Raid.RaidEncounterOuterClass.RaidEncounter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Raid_RaidEncounter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Raid_RaidEncounter_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/Raid/RaidEncounter.pro" +
"to\022\024POGOProtos.Data.Raid\032!POGOProtos/Dat" +
"a/PokemonData.proto\0320POGOProtos/Data/Cap" +
"ture/CaptureProbability.proto\032 POGOProto" +
"s/Enums/RaidLevel.proto\"\223\002\n\rRaidEncounte" +
"r\022-\n\007pokemon\030\001 \001(\0132\034.POGOProtos.Data.Pok" +
"emonData\022\024\n\014encounter_id\030\002 \001(\003\022\025\n\rspawnp" +
"oint_id\030\003 \001(\t\022J\n\025capture_probabilities\030\004" +
" \001(\0132+.POGOProtos.Data.Capture.CapturePr" +
"obability\022\030\n\020throws_remaining\030\005 \001(\005\022/\n\nr" +
"aid_level\030\006 \001(\0162\033.POGOProtos.Enums.RaidL" +
"evel\022\017\n\007fort_id\030\007 \001(\tb\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.PokemonDataOuterClass.getDescriptor(),
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.getDescriptor(),
POGOProtos.Enums.RaidLevelOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Raid_RaidEncounter_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Raid_RaidEncounter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Raid_RaidEncounter_descriptor,
new java.lang.String[] { "Pokemon", "EncounterId", "SpawnpointId", "CaptureProbabilities", "ThrowsRemaining", "RaidLevel", "FortId", });
POGOProtos.Data.PokemonDataOuterClass.getDescriptor();
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.getDescriptor();
POGOProtos.Enums.RaidLevelOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy