POGOProtos.Data.Gym.GymDefenderOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Gym/GymDefender.proto
package POGOProtos.Data.Gym;
public final class GymDefenderOuterClass {
private GymDefenderOuterClass() {}
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 GymDefenderOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Gym.GymDefender)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
boolean hasMotivatedPokemon();
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon getMotivatedPokemon();
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemonOrBuilder getMotivatedPokemonOrBuilder();
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
boolean hasDeploymentTotals();
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals getDeploymentTotals();
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder getDeploymentTotalsOrBuilder();
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
boolean hasTrainerPublicProfile();
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile getTrainerPublicProfile();
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder getTrainerPublicProfileOrBuilder();
}
/**
* Protobuf type {@code POGOProtos.Data.Gym.GymDefender}
*/
public static final class GymDefender extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Gym.GymDefender)
GymDefenderOrBuilder {
private static final long serialVersionUID = 0L;
// Use GymDefender.newBuilder() to construct.
private GymDefender(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GymDefender() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GymDefender(
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.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.Builder subBuilder = null;
if (motivatedPokemon_ != null) {
subBuilder = motivatedPokemon_.toBuilder();
}
motivatedPokemon_ = input.readMessage(POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(motivatedPokemon_);
motivatedPokemon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder subBuilder = null;
if (deploymentTotals_ != null) {
subBuilder = deploymentTotals_.toBuilder();
}
deploymentTotals_ = input.readMessage(POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deploymentTotals_);
deploymentTotals_ = subBuilder.buildPartial();
}
break;
}
case 26: {
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder subBuilder = null;
if (trainerPublicProfile_ != null) {
subBuilder = trainerPublicProfile_.toBuilder();
}
trainerPublicProfile_ = input.readMessage(POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(trainerPublicProfile_);
trainerPublicProfile_ = 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.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.class, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.Builder.class);
}
public interface DeploymentTotalsOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Gym.GymDefender.DeploymentTotals)
com.google.protobuf.MessageOrBuilder {
/**
* int32 times_fed = 1;
*/
int getTimesFed();
/**
* int32 battles_won = 2;
*/
int getBattlesWon();
/**
* int32 battles_lost = 3;
*/
int getBattlesLost();
/**
* int64 deployment_duration_ms = 4;
*/
long getDeploymentDurationMs();
}
/**
* Protobuf type {@code POGOProtos.Data.Gym.GymDefender.DeploymentTotals}
*/
public static final class DeploymentTotals extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Gym.GymDefender.DeploymentTotals)
DeploymentTotalsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeploymentTotals.newBuilder() to construct.
private DeploymentTotals(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeploymentTotals() {
timesFed_ = 0;
battlesWon_ = 0;
battlesLost_ = 0;
deploymentDurationMs_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeploymentTotals(
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: {
timesFed_ = input.readInt32();
break;
}
case 16: {
battlesWon_ = input.readInt32();
break;
}
case 24: {
battlesLost_ = input.readInt32();
break;
}
case 32: {
deploymentDurationMs_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.class, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder.class);
}
public static final int TIMES_FED_FIELD_NUMBER = 1;
private int timesFed_;
/**
* int32 times_fed = 1;
*/
public int getTimesFed() {
return timesFed_;
}
public static final int BATTLES_WON_FIELD_NUMBER = 2;
private int battlesWon_;
/**
* int32 battles_won = 2;
*/
public int getBattlesWon() {
return battlesWon_;
}
public static final int BATTLES_LOST_FIELD_NUMBER = 3;
private int battlesLost_;
/**
* int32 battles_lost = 3;
*/
public int getBattlesLost() {
return battlesLost_;
}
public static final int DEPLOYMENT_DURATION_MS_FIELD_NUMBER = 4;
private long deploymentDurationMs_;
/**
* int64 deployment_duration_ms = 4;
*/
public long getDeploymentDurationMs() {
return deploymentDurationMs_;
}
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 (timesFed_ != 0) {
output.writeInt32(1, timesFed_);
}
if (battlesWon_ != 0) {
output.writeInt32(2, battlesWon_);
}
if (battlesLost_ != 0) {
output.writeInt32(3, battlesLost_);
}
if (deploymentDurationMs_ != 0L) {
output.writeInt64(4, deploymentDurationMs_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timesFed_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, timesFed_);
}
if (battlesWon_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, battlesWon_);
}
if (battlesLost_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, battlesLost_);
}
if (deploymentDurationMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, deploymentDurationMs_);
}
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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals)) {
return super.equals(obj);
}
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals other = (POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals) obj;
boolean result = true;
result = result && (getTimesFed()
== other.getTimesFed());
result = result && (getBattlesWon()
== other.getBattlesWon());
result = result && (getBattlesLost()
== other.getBattlesLost());
result = result && (getDeploymentDurationMs()
== other.getDeploymentDurationMs());
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) + TIMES_FED_FIELD_NUMBER;
hash = (53 * hash) + getTimesFed();
hash = (37 * hash) + BATTLES_WON_FIELD_NUMBER;
hash = (53 * hash) + getBattlesWon();
hash = (37 * hash) + BATTLES_LOST_FIELD_NUMBER;
hash = (53 * hash) + getBattlesLost();
hash = (37 * hash) + DEPLOYMENT_DURATION_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDeploymentDurationMs());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals 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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals 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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals 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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals 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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals 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.Gym.GymDefender.DeploymentTotals}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Gym.GymDefender.DeploymentTotals)
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.class, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder.class);
}
// Construct using POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.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();
timesFed_ = 0;
battlesWon_ = 0;
battlesLost_ = 0;
deploymentDurationMs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals getDefaultInstanceForType() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals build() {
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals buildPartial() {
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals result = new POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals(this);
result.timesFed_ = timesFed_;
result.battlesWon_ = battlesWon_;
result.battlesLost_ = battlesLost_;
result.deploymentDurationMs_ = deploymentDurationMs_;
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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals) {
return mergeFrom((POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals other) {
if (other == POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.getDefaultInstance()) return this;
if (other.getTimesFed() != 0) {
setTimesFed(other.getTimesFed());
}
if (other.getBattlesWon() != 0) {
setBattlesWon(other.getBattlesWon());
}
if (other.getBattlesLost() != 0) {
setBattlesLost(other.getBattlesLost());
}
if (other.getDeploymentDurationMs() != 0L) {
setDeploymentDurationMs(other.getDeploymentDurationMs());
}
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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int timesFed_ ;
/**
* int32 times_fed = 1;
*/
public int getTimesFed() {
return timesFed_;
}
/**
* int32 times_fed = 1;
*/
public Builder setTimesFed(int value) {
timesFed_ = value;
onChanged();
return this;
}
/**
* int32 times_fed = 1;
*/
public Builder clearTimesFed() {
timesFed_ = 0;
onChanged();
return this;
}
private int battlesWon_ ;
/**
* int32 battles_won = 2;
*/
public int getBattlesWon() {
return battlesWon_;
}
/**
* int32 battles_won = 2;
*/
public Builder setBattlesWon(int value) {
battlesWon_ = value;
onChanged();
return this;
}
/**
* int32 battles_won = 2;
*/
public Builder clearBattlesWon() {
battlesWon_ = 0;
onChanged();
return this;
}
private int battlesLost_ ;
/**
* int32 battles_lost = 3;
*/
public int getBattlesLost() {
return battlesLost_;
}
/**
* int32 battles_lost = 3;
*/
public Builder setBattlesLost(int value) {
battlesLost_ = value;
onChanged();
return this;
}
/**
* int32 battles_lost = 3;
*/
public Builder clearBattlesLost() {
battlesLost_ = 0;
onChanged();
return this;
}
private long deploymentDurationMs_ ;
/**
* int64 deployment_duration_ms = 4;
*/
public long getDeploymentDurationMs() {
return deploymentDurationMs_;
}
/**
* int64 deployment_duration_ms = 4;
*/
public Builder setDeploymentDurationMs(long value) {
deploymentDurationMs_ = value;
onChanged();
return this;
}
/**
* int64 deployment_duration_ms = 4;
*/
public Builder clearDeploymentDurationMs() {
deploymentDurationMs_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Data.Gym.GymDefender.DeploymentTotals)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Gym.GymDefender.DeploymentTotals)
private static final POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals();
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentTotals parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentTotals(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.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int MOTIVATED_POKEMON_FIELD_NUMBER = 1;
private POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon motivatedPokemon_;
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public boolean hasMotivatedPokemon() {
return motivatedPokemon_ != null;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon getMotivatedPokemon() {
return motivatedPokemon_ == null ? POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.getDefaultInstance() : motivatedPokemon_;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemonOrBuilder getMotivatedPokemonOrBuilder() {
return getMotivatedPokemon();
}
public static final int DEPLOYMENT_TOTALS_FIELD_NUMBER = 2;
private POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals deploymentTotals_;
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public boolean hasDeploymentTotals() {
return deploymentTotals_ != null;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals getDeploymentTotals() {
return deploymentTotals_ == null ? POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.getDefaultInstance() : deploymentTotals_;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder getDeploymentTotalsOrBuilder() {
return getDeploymentTotals();
}
public static final int TRAINER_PUBLIC_PROFILE_FIELD_NUMBER = 3;
private POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile trainerPublicProfile_;
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public boolean hasTrainerPublicProfile() {
return trainerPublicProfile_ != null;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile getTrainerPublicProfile() {
return trainerPublicProfile_ == null ? POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.getDefaultInstance() : trainerPublicProfile_;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder getTrainerPublicProfileOrBuilder() {
return getTrainerPublicProfile();
}
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 (motivatedPokemon_ != null) {
output.writeMessage(1, getMotivatedPokemon());
}
if (deploymentTotals_ != null) {
output.writeMessage(2, getDeploymentTotals());
}
if (trainerPublicProfile_ != null) {
output.writeMessage(3, getTrainerPublicProfile());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (motivatedPokemon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMotivatedPokemon());
}
if (deploymentTotals_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDeploymentTotals());
}
if (trainerPublicProfile_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTrainerPublicProfile());
}
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.Gym.GymDefenderOuterClass.GymDefender)) {
return super.equals(obj);
}
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender other = (POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender) obj;
boolean result = true;
result = result && (hasMotivatedPokemon() == other.hasMotivatedPokemon());
if (hasMotivatedPokemon()) {
result = result && getMotivatedPokemon()
.equals(other.getMotivatedPokemon());
}
result = result && (hasDeploymentTotals() == other.hasDeploymentTotals());
if (hasDeploymentTotals()) {
result = result && getDeploymentTotals()
.equals(other.getDeploymentTotals());
}
result = result && (hasTrainerPublicProfile() == other.hasTrainerPublicProfile());
if (hasTrainerPublicProfile()) {
result = result && getTrainerPublicProfile()
.equals(other.getTrainerPublicProfile());
}
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 (hasMotivatedPokemon()) {
hash = (37 * hash) + MOTIVATED_POKEMON_FIELD_NUMBER;
hash = (53 * hash) + getMotivatedPokemon().hashCode();
}
if (hasDeploymentTotals()) {
hash = (37 * hash) + DEPLOYMENT_TOTALS_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentTotals().hashCode();
}
if (hasTrainerPublicProfile()) {
hash = (37 * hash) + TRAINER_PUBLIC_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getTrainerPublicProfile().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender 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.Gym.GymDefenderOuterClass.GymDefender parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender 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.Gym.GymDefenderOuterClass.GymDefender parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender 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.Gym.GymDefenderOuterClass.GymDefender parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender 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.Gym.GymDefenderOuterClass.GymDefender 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.Gym.GymDefender}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Gym.GymDefender)
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefenderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.class, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.Builder.class);
}
// Construct using POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.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 (motivatedPokemonBuilder_ == null) {
motivatedPokemon_ = null;
} else {
motivatedPokemon_ = null;
motivatedPokemonBuilder_ = null;
}
if (deploymentTotalsBuilder_ == null) {
deploymentTotals_ = null;
} else {
deploymentTotals_ = null;
deploymentTotalsBuilder_ = null;
}
if (trainerPublicProfileBuilder_ == null) {
trainerPublicProfile_ = null;
} else {
trainerPublicProfile_ = null;
trainerPublicProfileBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.internal_static_POGOProtos_Data_Gym_GymDefender_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender getDefaultInstanceForType() {
return POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender build() {
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender buildPartial() {
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender result = new POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender(this);
if (motivatedPokemonBuilder_ == null) {
result.motivatedPokemon_ = motivatedPokemon_;
} else {
result.motivatedPokemon_ = motivatedPokemonBuilder_.build();
}
if (deploymentTotalsBuilder_ == null) {
result.deploymentTotals_ = deploymentTotals_;
} else {
result.deploymentTotals_ = deploymentTotalsBuilder_.build();
}
if (trainerPublicProfileBuilder_ == null) {
result.trainerPublicProfile_ = trainerPublicProfile_;
} else {
result.trainerPublicProfile_ = trainerPublicProfileBuilder_.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.Gym.GymDefenderOuterClass.GymDefender) {
return mergeFrom((POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender other) {
if (other == POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.getDefaultInstance()) return this;
if (other.hasMotivatedPokemon()) {
mergeMotivatedPokemon(other.getMotivatedPokemon());
}
if (other.hasDeploymentTotals()) {
mergeDeploymentTotals(other.getDeploymentTotals());
}
if (other.hasTrainerPublicProfile()) {
mergeTrainerPublicProfile(other.getTrainerPublicProfile());
}
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.Gym.GymDefenderOuterClass.GymDefender parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon motivatedPokemon_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon, POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.Builder, POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemonOrBuilder> motivatedPokemonBuilder_;
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public boolean hasMotivatedPokemon() {
return motivatedPokemonBuilder_ != null || motivatedPokemon_ != null;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon getMotivatedPokemon() {
if (motivatedPokemonBuilder_ == null) {
return motivatedPokemon_ == null ? POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.getDefaultInstance() : motivatedPokemon_;
} else {
return motivatedPokemonBuilder_.getMessage();
}
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public Builder setMotivatedPokemon(POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon value) {
if (motivatedPokemonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
motivatedPokemon_ = value;
onChanged();
} else {
motivatedPokemonBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public Builder setMotivatedPokemon(
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.Builder builderForValue) {
if (motivatedPokemonBuilder_ == null) {
motivatedPokemon_ = builderForValue.build();
onChanged();
} else {
motivatedPokemonBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public Builder mergeMotivatedPokemon(POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon value) {
if (motivatedPokemonBuilder_ == null) {
if (motivatedPokemon_ != null) {
motivatedPokemon_ =
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.newBuilder(motivatedPokemon_).mergeFrom(value).buildPartial();
} else {
motivatedPokemon_ = value;
}
onChanged();
} else {
motivatedPokemonBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public Builder clearMotivatedPokemon() {
if (motivatedPokemonBuilder_ == null) {
motivatedPokemon_ = null;
onChanged();
} else {
motivatedPokemon_ = null;
motivatedPokemonBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.Builder getMotivatedPokemonBuilder() {
onChanged();
return getMotivatedPokemonFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
public POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemonOrBuilder getMotivatedPokemonOrBuilder() {
if (motivatedPokemonBuilder_ != null) {
return motivatedPokemonBuilder_.getMessageOrBuilder();
} else {
return motivatedPokemon_ == null ?
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.getDefaultInstance() : motivatedPokemon_;
}
}
/**
* .POGOProtos.Map.Pokemon.MotivatedPokemon motivated_pokemon = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon, POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.Builder, POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemonOrBuilder>
getMotivatedPokemonFieldBuilder() {
if (motivatedPokemonBuilder_ == null) {
motivatedPokemonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon, POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemon.Builder, POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.MotivatedPokemonOrBuilder>(
getMotivatedPokemon(),
getParentForChildren(),
isClean());
motivatedPokemon_ = null;
}
return motivatedPokemonBuilder_;
}
private POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals deploymentTotals_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder> deploymentTotalsBuilder_;
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public boolean hasDeploymentTotals() {
return deploymentTotalsBuilder_ != null || deploymentTotals_ != null;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals getDeploymentTotals() {
if (deploymentTotalsBuilder_ == null) {
return deploymentTotals_ == null ? POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.getDefaultInstance() : deploymentTotals_;
} else {
return deploymentTotalsBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public Builder setDeploymentTotals(POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals value) {
if (deploymentTotalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deploymentTotals_ = value;
onChanged();
} else {
deploymentTotalsBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public Builder setDeploymentTotals(
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder builderForValue) {
if (deploymentTotalsBuilder_ == null) {
deploymentTotals_ = builderForValue.build();
onChanged();
} else {
deploymentTotalsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public Builder mergeDeploymentTotals(POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals value) {
if (deploymentTotalsBuilder_ == null) {
if (deploymentTotals_ != null) {
deploymentTotals_ =
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.newBuilder(deploymentTotals_).mergeFrom(value).buildPartial();
} else {
deploymentTotals_ = value;
}
onChanged();
} else {
deploymentTotalsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public Builder clearDeploymentTotals() {
if (deploymentTotalsBuilder_ == null) {
deploymentTotals_ = null;
onChanged();
} else {
deploymentTotals_ = null;
deploymentTotalsBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder getDeploymentTotalsBuilder() {
onChanged();
return getDeploymentTotalsFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
public POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder getDeploymentTotalsOrBuilder() {
if (deploymentTotalsBuilder_ != null) {
return deploymentTotalsBuilder_.getMessageOrBuilder();
} else {
return deploymentTotals_ == null ?
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.getDefaultInstance() : deploymentTotals_;
}
}
/**
* .POGOProtos.Data.Gym.GymDefender.DeploymentTotals deployment_totals = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder>
getDeploymentTotalsFieldBuilder() {
if (deploymentTotalsBuilder_ == null) {
deploymentTotalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotals.Builder, POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender.DeploymentTotalsOrBuilder>(
getDeploymentTotals(),
getParentForChildren(),
isClean());
deploymentTotals_ = null;
}
return deploymentTotalsBuilder_;
}
private POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile trainerPublicProfile_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder> trainerPublicProfileBuilder_;
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public boolean hasTrainerPublicProfile() {
return trainerPublicProfileBuilder_ != null || trainerPublicProfile_ != null;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile getTrainerPublicProfile() {
if (trainerPublicProfileBuilder_ == null) {
return trainerPublicProfile_ == null ? POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.getDefaultInstance() : trainerPublicProfile_;
} else {
return trainerPublicProfileBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public Builder setTrainerPublicProfile(POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile value) {
if (trainerPublicProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trainerPublicProfile_ = value;
onChanged();
} else {
trainerPublicProfileBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public Builder setTrainerPublicProfile(
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder builderForValue) {
if (trainerPublicProfileBuilder_ == null) {
trainerPublicProfile_ = builderForValue.build();
onChanged();
} else {
trainerPublicProfileBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public Builder mergeTrainerPublicProfile(POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile value) {
if (trainerPublicProfileBuilder_ == null) {
if (trainerPublicProfile_ != null) {
trainerPublicProfile_ =
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.newBuilder(trainerPublicProfile_).mergeFrom(value).buildPartial();
} else {
trainerPublicProfile_ = value;
}
onChanged();
} else {
trainerPublicProfileBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public Builder clearTrainerPublicProfile() {
if (trainerPublicProfileBuilder_ == null) {
trainerPublicProfile_ = null;
onChanged();
} else {
trainerPublicProfile_ = null;
trainerPublicProfileBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder getTrainerPublicProfileBuilder() {
onChanged();
return getTrainerPublicProfileFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder getTrainerPublicProfileOrBuilder() {
if (trainerPublicProfileBuilder_ != null) {
return trainerPublicProfileBuilder_.getMessageOrBuilder();
} else {
return trainerPublicProfile_ == null ?
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.getDefaultInstance() : trainerPublicProfile_;
}
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile trainer_public_profile = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder>
getTrainerPublicProfileFieldBuilder() {
if (trainerPublicProfileBuilder_ == null) {
trainerPublicProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder>(
getTrainerPublicProfile(),
getParentForChildren(),
isClean());
trainerPublicProfile_ = null;
}
return trainerPublicProfileBuilder_;
}
@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.Gym.GymDefender)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Gym.GymDefender)
private static final POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender();
}
public static POGOProtos.Data.Gym.GymDefenderOuterClass.GymDefender getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GymDefender parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GymDefender(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.Gym.GymDefenderOuterClass.GymDefender getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Gym_GymDefender_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Gym_GymDefender_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_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/Gym/GymDefender.proto\022" +
"\023POGOProtos.Data.Gym\032-POGOProtos/Map/Pok" +
"emon/MotivatedPokemon.proto\0320POGOProtos/" +
"Data/Player/PlayerPublicProfile.proto\"\337\002" +
"\n\013GymDefender\022C\n\021motivated_pokemon\030\001 \001(\013" +
"2(.POGOProtos.Map.Pokemon.MotivatedPokem" +
"on\022L\n\021deployment_totals\030\002 \001(\01321.POGOProt" +
"os.Data.Gym.GymDefender.DeploymentTotals" +
"\022K\n\026trainer_public_profile\030\003 \001(\0132+.POGOP" +
"rotos.Data.Player.PlayerPublicProfile\032p\n" +
"\020DeploymentTotals\022\021\n\ttimes_fed\030\001 \001(\005\022\023\n\013" +
"battles_won\030\002 \001(\005\022\024\n\014battles_lost\030\003 \001(\005\022" +
"\036\n\026deployment_duration_ms\030\004 \001(\003b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.getDescriptor(),
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Gym_GymDefender_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Gym_GymDefender_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Gym_GymDefender_descriptor,
new java.lang.String[] { "MotivatedPokemon", "DeploymentTotals", "TrainerPublicProfile", });
internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_descriptor =
internal_static_POGOProtos_Data_Gym_GymDefender_descriptor.getNestedTypes().get(0);
internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Gym_GymDefender_DeploymentTotals_descriptor,
new java.lang.String[] { "TimesFed", "BattlesWon", "BattlesLost", "DeploymentDurationMs", });
POGOProtos.Map.Pokemon.MotivatedPokemonOuterClass.getDescriptor();
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy