POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Networking/Responses/EncounterPhotobombResponse.proto
package POGOProtos.Networking.Responses;
public final class EncounterPhotobombResponseOuterClass {
private EncounterPhotobombResponseOuterClass() {}
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 EncounterPhotobombResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Networking.Responses.EncounterPhotobombResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
int getResultValue();
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result getResult();
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
boolean hasPokemon();
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
POGOProtos.Data.PokemonDataOuterClass.PokemonData getPokemon();
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder getPokemonOrBuilder();
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
boolean hasCaptureProbability();
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getCaptureProbability();
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder getCaptureProbabilityOrBuilder();
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
int getActiveItemValue();
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getActiveItem();
/**
* int32 arplus_attempts_until_flee = 5;
*/
int getArplusAttemptsUntilFlee();
}
/**
* Protobuf type {@code POGOProtos.Networking.Responses.EncounterPhotobombResponse}
*/
public static final class EncounterPhotobombResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Networking.Responses.EncounterPhotobombResponse)
EncounterPhotobombResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use EncounterPhotobombResponse.newBuilder() to construct.
private EncounterPhotobombResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EncounterPhotobombResponse() {
result_ = 0;
activeItem_ = 0;
arplusAttemptsUntilFlee_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EncounterPhotobombResponse(
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 18: {
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 26: {
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder subBuilder = null;
if (captureProbability_ != null) {
subBuilder = captureProbability_.toBuilder();
}
captureProbability_ = input.readMessage(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(captureProbability_);
captureProbability_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
activeItem_ = rawValue;
break;
}
case 40: {
arplusAttemptsUntilFlee_ = input.readInt32();
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.Networking.Responses.EncounterPhotobombResponseOuterClass.internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.class, POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSET = 0;
*/
UNSET(0),
/**
* SUCCESS = 1;
*/
SUCCESS(1),
/**
* NO_ENCOUNTER_AVAILABLE = 2;
*/
NO_ENCOUNTER_AVAILABLE(2),
/**
* POKEMON_INVENTORY_FULL = 3;
*/
POKEMON_INVENTORY_FULL(3),
/**
* ERROR_UNKNOWN = 4;
*/
ERROR_UNKNOWN(4),
UNRECOGNIZED(-1),
;
/**
* UNSET = 0;
*/
public static final int UNSET_VALUE = 0;
/**
* SUCCESS = 1;
*/
public static final int SUCCESS_VALUE = 1;
/**
* NO_ENCOUNTER_AVAILABLE = 2;
*/
public static final int NO_ENCOUNTER_AVAILABLE_VALUE = 2;
/**
* POKEMON_INVENTORY_FULL = 3;
*/
public static final int POKEMON_INVENTORY_FULL_VALUE = 3;
/**
* ERROR_UNKNOWN = 4;
*/
public static final int ERROR_UNKNOWN_VALUE = 4;
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 SUCCESS;
case 2: return NO_ENCOUNTER_AVAILABLE;
case 3: return POKEMON_INVENTORY_FULL;
case 4: return ERROR_UNKNOWN;
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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.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.Networking.Responses.EncounterPhotobombResponse.Result)
}
public static final int RESULT_FIELD_NUMBER = 1;
private int result_;
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public int getResultValue() {
return result_;
}
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result getResult() {
@SuppressWarnings("deprecation")
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result result = POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result.valueOf(result_);
return result == null ? POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result.UNRECOGNIZED : result;
}
public static final int POKEMON_FIELD_NUMBER = 2;
private POGOProtos.Data.PokemonDataOuterClass.PokemonData pokemon_;
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
public boolean hasPokemon() {
return pokemon_ != null;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonData getPokemon() {
return pokemon_ == null ? POGOProtos.Data.PokemonDataOuterClass.PokemonData.getDefaultInstance() : pokemon_;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonDataOrBuilder getPokemonOrBuilder() {
return getPokemon();
}
public static final int CAPTURE_PROBABILITY_FIELD_NUMBER = 3;
private POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability captureProbability_;
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public boolean hasCaptureProbability() {
return captureProbability_ != null;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getCaptureProbability() {
return captureProbability_ == null ? POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance() : captureProbability_;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder getCaptureProbabilityOrBuilder() {
return getCaptureProbability();
}
public static final int ACTIVE_ITEM_FIELD_NUMBER = 4;
private int activeItem_;
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public int getActiveItemValue() {
return activeItem_;
}
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getActiveItem() {
@SuppressWarnings("deprecation")
POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId result = POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.valueOf(activeItem_);
return result == null ? POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.UNRECOGNIZED : result;
}
public static final int ARPLUS_ATTEMPTS_UNTIL_FLEE_FIELD_NUMBER = 5;
private int arplusAttemptsUntilFlee_;
/**
* int32 arplus_attempts_until_flee = 5;
*/
public int getArplusAttemptsUntilFlee() {
return arplusAttemptsUntilFlee_;
}
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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result.UNSET.getNumber()) {
output.writeEnum(1, result_);
}
if (pokemon_ != null) {
output.writeMessage(2, getPokemon());
}
if (captureProbability_ != null) {
output.writeMessage(3, getCaptureProbability());
}
if (activeItem_ != POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.ITEM_UNKNOWN.getNumber()) {
output.writeEnum(4, activeItem_);
}
if (arplusAttemptsUntilFlee_ != 0) {
output.writeInt32(5, arplusAttemptsUntilFlee_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result.UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, result_);
}
if (pokemon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPokemon());
}
if (captureProbability_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCaptureProbability());
}
if (activeItem_ != POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.ITEM_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, activeItem_);
}
if (arplusAttemptsUntilFlee_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, arplusAttemptsUntilFlee_);
}
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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse)) {
return super.equals(obj);
}
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse other = (POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse) obj;
boolean result = true;
result = result && result_ == other.result_;
result = result && (hasPokemon() == other.hasPokemon());
if (hasPokemon()) {
result = result && getPokemon()
.equals(other.getPokemon());
}
result = result && (hasCaptureProbability() == other.hasCaptureProbability());
if (hasCaptureProbability()) {
result = result && getCaptureProbability()
.equals(other.getCaptureProbability());
}
result = result && activeItem_ == other.activeItem_;
result = result && (getArplusAttemptsUntilFlee()
== other.getArplusAttemptsUntilFlee());
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_;
if (hasPokemon()) {
hash = (37 * hash) + POKEMON_FIELD_NUMBER;
hash = (53 * hash) + getPokemon().hashCode();
}
if (hasCaptureProbability()) {
hash = (37 * hash) + CAPTURE_PROBABILITY_FIELD_NUMBER;
hash = (53 * hash) + getCaptureProbability().hashCode();
}
hash = (37 * hash) + ACTIVE_ITEM_FIELD_NUMBER;
hash = (53 * hash) + activeItem_;
hash = (37 * hash) + ARPLUS_ATTEMPTS_UNTIL_FLEE_FIELD_NUMBER;
hash = (53 * hash) + getArplusAttemptsUntilFlee();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse 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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse 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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse 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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse 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.Networking.Responses.EncounterPhotobombResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Networking.Responses.EncounterPhotobombResponse)
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.class, POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Builder.class);
}
// Construct using POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.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;
if (pokemonBuilder_ == null) {
pokemon_ = null;
} else {
pokemon_ = null;
pokemonBuilder_ = null;
}
if (captureProbabilityBuilder_ == null) {
captureProbability_ = null;
} else {
captureProbability_ = null;
captureProbabilityBuilder_ = null;
}
activeItem_ = 0;
arplusAttemptsUntilFlee_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_descriptor;
}
@java.lang.Override
public POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse getDefaultInstanceForType() {
return POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse build() {
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse buildPartial() {
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse result = new POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse(this);
result.result_ = result_;
if (pokemonBuilder_ == null) {
result.pokemon_ = pokemon_;
} else {
result.pokemon_ = pokemonBuilder_.build();
}
if (captureProbabilityBuilder_ == null) {
result.captureProbability_ = captureProbability_;
} else {
result.captureProbability_ = captureProbabilityBuilder_.build();
}
result.activeItem_ = activeItem_;
result.arplusAttemptsUntilFlee_ = arplusAttemptsUntilFlee_;
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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse) {
return mergeFrom((POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse other) {
if (other == POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.getDefaultInstance()) return this;
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.hasPokemon()) {
mergePokemon(other.getPokemon());
}
if (other.hasCaptureProbability()) {
mergeCaptureProbability(other.getCaptureProbability());
}
if (other.activeItem_ != 0) {
setActiveItemValue(other.getActiveItemValue());
}
if (other.getArplusAttemptsUntilFlee() != 0) {
setArplusAttemptsUntilFlee(other.getArplusAttemptsUntilFlee());
}
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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int result_ = 0;
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public int getResultValue() {
return result_;
}
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result getResult() {
@SuppressWarnings("deprecation")
POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result result = POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result.valueOf(result_);
return result == null ? POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public Builder setResult(POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse.Result value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Networking.Responses.EncounterPhotobombResponse.Result result = 1;
*/
public Builder clearResult() {
result_ = 0;
onChanged();
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 = 2;
*/
public boolean hasPokemon() {
return pokemonBuilder_ != null || pokemon_ != null;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder clearPokemon() {
if (pokemonBuilder_ == null) {
pokemon_ = null;
onChanged();
} else {
pokemon_ = null;
pokemonBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
public POGOProtos.Data.PokemonDataOuterClass.PokemonData.Builder getPokemonBuilder() {
onChanged();
return getPokemonFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.PokemonData pokemon = 2;
*/
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 = 2;
*/
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 POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability captureProbability_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder> captureProbabilityBuilder_;
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public boolean hasCaptureProbability() {
return captureProbabilityBuilder_ != null || captureProbability_ != null;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getCaptureProbability() {
if (captureProbabilityBuilder_ == null) {
return captureProbability_ == null ? POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance() : captureProbability_;
} else {
return captureProbabilityBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public Builder setCaptureProbability(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability value) {
if (captureProbabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
captureProbability_ = value;
onChanged();
} else {
captureProbabilityBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public Builder setCaptureProbability(
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder builderForValue) {
if (captureProbabilityBuilder_ == null) {
captureProbability_ = builderForValue.build();
onChanged();
} else {
captureProbabilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public Builder mergeCaptureProbability(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability value) {
if (captureProbabilityBuilder_ == null) {
if (captureProbability_ != null) {
captureProbability_ =
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.newBuilder(captureProbability_).mergeFrom(value).buildPartial();
} else {
captureProbability_ = value;
}
onChanged();
} else {
captureProbabilityBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public Builder clearCaptureProbability() {
if (captureProbabilityBuilder_ == null) {
captureProbability_ = null;
onChanged();
} else {
captureProbability_ = null;
captureProbabilityBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder getCaptureProbabilityBuilder() {
onChanged();
return getCaptureProbabilityFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder getCaptureProbabilityOrBuilder() {
if (captureProbabilityBuilder_ != null) {
return captureProbabilityBuilder_.getMessageOrBuilder();
} else {
return captureProbability_ == null ?
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance() : captureProbability_;
}
}
/**
* .POGOProtos.Data.Capture.CaptureProbability capture_probability = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder>
getCaptureProbabilityFieldBuilder() {
if (captureProbabilityBuilder_ == null) {
captureProbabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbabilityOrBuilder>(
getCaptureProbability(),
getParentForChildren(),
isClean());
captureProbability_ = null;
}
return captureProbabilityBuilder_;
}
private int activeItem_ = 0;
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public int getActiveItemValue() {
return activeItem_;
}
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public Builder setActiveItemValue(int value) {
activeItem_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getActiveItem() {
@SuppressWarnings("deprecation")
POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId result = POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.valueOf(activeItem_);
return result == null ? POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public Builder setActiveItem(POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId value) {
if (value == null) {
throw new NullPointerException();
}
activeItem_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Inventory.Item.ItemId active_item = 4;
*/
public Builder clearActiveItem() {
activeItem_ = 0;
onChanged();
return this;
}
private int arplusAttemptsUntilFlee_ ;
/**
* int32 arplus_attempts_until_flee = 5;
*/
public int getArplusAttemptsUntilFlee() {
return arplusAttemptsUntilFlee_;
}
/**
* int32 arplus_attempts_until_flee = 5;
*/
public Builder setArplusAttemptsUntilFlee(int value) {
arplusAttemptsUntilFlee_ = value;
onChanged();
return this;
}
/**
* int32 arplus_attempts_until_flee = 5;
*/
public Builder clearArplusAttemptsUntilFlee() {
arplusAttemptsUntilFlee_ = 0;
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.Networking.Responses.EncounterPhotobombResponse)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Networking.Responses.EncounterPhotobombResponse)
private static final POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse();
}
public static POGOProtos.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EncounterPhotobombResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EncounterPhotobombResponse(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.Networking.Responses.EncounterPhotobombResponseOuterClass.EncounterPhotobombResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_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/Networking/Responses/Encoun" +
"terPhotobombResponse.proto\022\037POGOProtos.N" +
"etworking.Responses\0320POGOProtos/Data/Cap" +
"ture/CaptureProbability.proto\032!POGOProto" +
"s/Data/PokemonData.proto\032&POGOProtos/Inv" +
"entory/Item/ItemId.proto\"\262\003\n\032EncounterPh" +
"otobombResponse\022R\n\006result\030\001 \001(\0162B.POGOPr" +
"otos.Networking.Responses.EncounterPhoto" +
"bombResponse.Result\022-\n\007pokemon\030\002 \001(\0132\034.P" +
"OGOProtos.Data.PokemonData\022H\n\023capture_pr" +
"obability\030\003 \001(\0132+.POGOProtos.Data.Captur" +
"e.CaptureProbability\0226\n\013active_item\030\004 \001(" +
"\0162!.POGOProtos.Inventory.Item.ItemId\022\"\n\032" +
"arplus_attempts_until_flee\030\005 \001(\005\"k\n\006Resu" +
"lt\022\t\n\005UNSET\020\000\022\013\n\007SUCCESS\020\001\022\032\n\026NO_ENCOUNT" +
"ER_AVAILABLE\020\002\022\032\n\026POKEMON_INVENTORY_FULL" +
"\020\003\022\021\n\rERROR_UNKNOWN\020\004b\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.Capture.CaptureProbabilityOuterClass.getDescriptor(),
POGOProtos.Data.PokemonDataOuterClass.getDescriptor(),
POGOProtos.Inventory.Item.ItemIdOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Networking_Responses_EncounterPhotobombResponse_descriptor,
new java.lang.String[] { "Result", "Pokemon", "CaptureProbability", "ActiveItem", "ArplusAttemptsUntilFlee", });
POGOProtos.Data.Capture.CaptureProbabilityOuterClass.getDescriptor();
POGOProtos.Data.PokemonDataOuterClass.getDescriptor();
POGOProtos.Inventory.Item.ItemIdOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy