POGOProtos.Data.Combat.PokemonConditionOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Combat/PokemonCondition.proto
package POGOProtos.Data.Combat;
public final class PokemonConditionOuterClass {
private PokemonConditionOuterClass() {}
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 PokemonConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Combat.PokemonCondition)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
int getTypeValue();
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
POGOProtos.Enums.ConditionTypeOuterClass.ConditionType getType();
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
boolean hasWithPokemonCpLimit();
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit getWithPokemonCpLimit();
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimitOrBuilder getWithPokemonCpLimitOrBuilder();
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
boolean hasWithPokemonType();
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType getWithPokemonType();
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonTypeOrBuilder getWithPokemonTypeOrBuilder();
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
boolean hasWithPokemonCategory();
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory getWithPokemonCategory();
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategoryOrBuilder getWithPokemonCategoryOrBuilder();
}
/**
* Protobuf type {@code POGOProtos.Data.Combat.PokemonCondition}
*/
public static final class PokemonCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Combat.PokemonCondition)
PokemonConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use PokemonCondition.newBuilder() to construct.
private PokemonCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PokemonCondition() {
type_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PokemonCondition(
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();
type_ = rawValue;
break;
}
case 18: {
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.Builder subBuilder = null;
if (withPokemonCpLimit_ != null) {
subBuilder = withPokemonCpLimit_.toBuilder();
}
withPokemonCpLimit_ = input.readMessage(POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(withPokemonCpLimit_);
withPokemonCpLimit_ = subBuilder.buildPartial();
}
break;
}
case 26: {
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.Builder subBuilder = null;
if (withPokemonType_ != null) {
subBuilder = withPokemonType_.toBuilder();
}
withPokemonType_ = input.readMessage(POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(withPokemonType_);
withPokemonType_ = subBuilder.buildPartial();
}
break;
}
case 34: {
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.Builder subBuilder = null;
if (withPokemonCategory_ != null) {
subBuilder = withPokemonCategory_.toBuilder();
}
withPokemonCategory_ = input.readMessage(POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(withPokemonCategory_);
withPokemonCategory_ = 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.Combat.PokemonConditionOuterClass.internal_static_POGOProtos_Data_Combat_PokemonCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Combat.PokemonConditionOuterClass.internal_static_POGOProtos_Data_Combat_PokemonCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.class, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public POGOProtos.Enums.ConditionTypeOuterClass.ConditionType getType() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.ConditionTypeOuterClass.ConditionType result = POGOProtos.Enums.ConditionTypeOuterClass.ConditionType.valueOf(type_);
return result == null ? POGOProtos.Enums.ConditionTypeOuterClass.ConditionType.UNRECOGNIZED : result;
}
public static final int WITH_POKEMON_CP_LIMIT_FIELD_NUMBER = 2;
private POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit withPokemonCpLimit_;
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public boolean hasWithPokemonCpLimit() {
return withPokemonCpLimit_ != null;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit getWithPokemonCpLimit() {
return withPokemonCpLimit_ == null ? POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.getDefaultInstance() : withPokemonCpLimit_;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimitOrBuilder getWithPokemonCpLimitOrBuilder() {
return getWithPokemonCpLimit();
}
public static final int WITH_POKEMON_TYPE_FIELD_NUMBER = 3;
private POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType withPokemonType_;
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public boolean hasWithPokemonType() {
return withPokemonType_ != null;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType getWithPokemonType() {
return withPokemonType_ == null ? POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.getDefaultInstance() : withPokemonType_;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonTypeOrBuilder getWithPokemonTypeOrBuilder() {
return getWithPokemonType();
}
public static final int WITH_POKEMON_CATEGORY_FIELD_NUMBER = 4;
private POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory withPokemonCategory_;
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public boolean hasWithPokemonCategory() {
return withPokemonCategory_ != null;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory getWithPokemonCategory() {
return withPokemonCategory_ == null ? POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.getDefaultInstance() : withPokemonCategory_;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategoryOrBuilder getWithPokemonCategoryOrBuilder() {
return getWithPokemonCategory();
}
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 (type_ != POGOProtos.Enums.ConditionTypeOuterClass.ConditionType.UNSET_CONDITION.getNumber()) {
output.writeEnum(1, type_);
}
if (withPokemonCpLimit_ != null) {
output.writeMessage(2, getWithPokemonCpLimit());
}
if (withPokemonType_ != null) {
output.writeMessage(3, getWithPokemonType());
}
if (withPokemonCategory_ != null) {
output.writeMessage(4, getWithPokemonCategory());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != POGOProtos.Enums.ConditionTypeOuterClass.ConditionType.UNSET_CONDITION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (withPokemonCpLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getWithPokemonCpLimit());
}
if (withPokemonType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWithPokemonType());
}
if (withPokemonCategory_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWithPokemonCategory());
}
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.Combat.PokemonConditionOuterClass.PokemonCondition)) {
return super.equals(obj);
}
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition other = (POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && (hasWithPokemonCpLimit() == other.hasWithPokemonCpLimit());
if (hasWithPokemonCpLimit()) {
result = result && getWithPokemonCpLimit()
.equals(other.getWithPokemonCpLimit());
}
result = result && (hasWithPokemonType() == other.hasWithPokemonType());
if (hasWithPokemonType()) {
result = result && getWithPokemonType()
.equals(other.getWithPokemonType());
}
result = result && (hasWithPokemonCategory() == other.hasWithPokemonCategory());
if (hasWithPokemonCategory()) {
result = result && getWithPokemonCategory()
.equals(other.getWithPokemonCategory());
}
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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasWithPokemonCpLimit()) {
hash = (37 * hash) + WITH_POKEMON_CP_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getWithPokemonCpLimit().hashCode();
}
if (hasWithPokemonType()) {
hash = (37 * hash) + WITH_POKEMON_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getWithPokemonType().hashCode();
}
if (hasWithPokemonCategory()) {
hash = (37 * hash) + WITH_POKEMON_CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getWithPokemonCategory().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition 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.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition 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.Combat.PokemonConditionOuterClass.PokemonCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition 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.Combat.PokemonConditionOuterClass.PokemonCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition 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.Combat.PokemonConditionOuterClass.PokemonCondition 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.Combat.PokemonCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Combat.PokemonCondition)
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Combat.PokemonConditionOuterClass.internal_static_POGOProtos_Data_Combat_PokemonCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Combat.PokemonConditionOuterClass.internal_static_POGOProtos_Data_Combat_PokemonCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.class, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder.class);
}
// Construct using POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.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();
type_ = 0;
if (withPokemonCpLimitBuilder_ == null) {
withPokemonCpLimit_ = null;
} else {
withPokemonCpLimit_ = null;
withPokemonCpLimitBuilder_ = null;
}
if (withPokemonTypeBuilder_ == null) {
withPokemonType_ = null;
} else {
withPokemonType_ = null;
withPokemonTypeBuilder_ = null;
}
if (withPokemonCategoryBuilder_ == null) {
withPokemonCategory_ = null;
} else {
withPokemonCategory_ = null;
withPokemonCategoryBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Combat.PokemonConditionOuterClass.internal_static_POGOProtos_Data_Combat_PokemonCondition_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition getDefaultInstanceForType() {
return POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition build() {
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition buildPartial() {
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition result = new POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition(this);
result.type_ = type_;
if (withPokemonCpLimitBuilder_ == null) {
result.withPokemonCpLimit_ = withPokemonCpLimit_;
} else {
result.withPokemonCpLimit_ = withPokemonCpLimitBuilder_.build();
}
if (withPokemonTypeBuilder_ == null) {
result.withPokemonType_ = withPokemonType_;
} else {
result.withPokemonType_ = withPokemonTypeBuilder_.build();
}
if (withPokemonCategoryBuilder_ == null) {
result.withPokemonCategory_ = withPokemonCategory_;
} else {
result.withPokemonCategory_ = withPokemonCategoryBuilder_.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.Combat.PokemonConditionOuterClass.PokemonCondition) {
return mergeFrom((POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition other) {
if (other == POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasWithPokemonCpLimit()) {
mergeWithPokemonCpLimit(other.getWithPokemonCpLimit());
}
if (other.hasWithPokemonType()) {
mergeWithPokemonType(other.getWithPokemonType());
}
if (other.hasWithPokemonCategory()) {
mergeWithPokemonCategory(other.getWithPokemonCategory());
}
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.Combat.PokemonConditionOuterClass.PokemonCondition parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public POGOProtos.Enums.ConditionTypeOuterClass.ConditionType getType() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.ConditionTypeOuterClass.ConditionType result = POGOProtos.Enums.ConditionTypeOuterClass.ConditionType.valueOf(type_);
return result == null ? POGOProtos.Enums.ConditionTypeOuterClass.ConditionType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public Builder setType(POGOProtos.Enums.ConditionTypeOuterClass.ConditionType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Enums.ConditionType type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit withPokemonCpLimit_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit, POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.Builder, POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimitOrBuilder> withPokemonCpLimitBuilder_;
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public boolean hasWithPokemonCpLimit() {
return withPokemonCpLimitBuilder_ != null || withPokemonCpLimit_ != null;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit getWithPokemonCpLimit() {
if (withPokemonCpLimitBuilder_ == null) {
return withPokemonCpLimit_ == null ? POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.getDefaultInstance() : withPokemonCpLimit_;
} else {
return withPokemonCpLimitBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public Builder setWithPokemonCpLimit(POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit value) {
if (withPokemonCpLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
withPokemonCpLimit_ = value;
onChanged();
} else {
withPokemonCpLimitBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public Builder setWithPokemonCpLimit(
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.Builder builderForValue) {
if (withPokemonCpLimitBuilder_ == null) {
withPokemonCpLimit_ = builderForValue.build();
onChanged();
} else {
withPokemonCpLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public Builder mergeWithPokemonCpLimit(POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit value) {
if (withPokemonCpLimitBuilder_ == null) {
if (withPokemonCpLimit_ != null) {
withPokemonCpLimit_ =
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.newBuilder(withPokemonCpLimit_).mergeFrom(value).buildPartial();
} else {
withPokemonCpLimit_ = value;
}
onChanged();
} else {
withPokemonCpLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public Builder clearWithPokemonCpLimit() {
if (withPokemonCpLimitBuilder_ == null) {
withPokemonCpLimit_ = null;
onChanged();
} else {
withPokemonCpLimit_ = null;
withPokemonCpLimitBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.Builder getWithPokemonCpLimitBuilder() {
onChanged();
return getWithPokemonCpLimitFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
public POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimitOrBuilder getWithPokemonCpLimitOrBuilder() {
if (withPokemonCpLimitBuilder_ != null) {
return withPokemonCpLimitBuilder_.getMessageOrBuilder();
} else {
return withPokemonCpLimit_ == null ?
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.getDefaultInstance() : withPokemonCpLimit_;
}
}
/**
* .POGOProtos.Data.Combat.WithPokemonCpLimit with_pokemon_cp_limit = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit, POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.Builder, POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimitOrBuilder>
getWithPokemonCpLimitFieldBuilder() {
if (withPokemonCpLimitBuilder_ == null) {
withPokemonCpLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit, POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimit.Builder, POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.WithPokemonCpLimitOrBuilder>(
getWithPokemonCpLimit(),
getParentForChildren(),
isClean());
withPokemonCpLimit_ = null;
}
return withPokemonCpLimitBuilder_;
}
private POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType withPokemonType_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType, POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.Builder, POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonTypeOrBuilder> withPokemonTypeBuilder_;
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public boolean hasWithPokemonType() {
return withPokemonTypeBuilder_ != null || withPokemonType_ != null;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType getWithPokemonType() {
if (withPokemonTypeBuilder_ == null) {
return withPokemonType_ == null ? POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.getDefaultInstance() : withPokemonType_;
} else {
return withPokemonTypeBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public Builder setWithPokemonType(POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType value) {
if (withPokemonTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
withPokemonType_ = value;
onChanged();
} else {
withPokemonTypeBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public Builder setWithPokemonType(
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.Builder builderForValue) {
if (withPokemonTypeBuilder_ == null) {
withPokemonType_ = builderForValue.build();
onChanged();
} else {
withPokemonTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public Builder mergeWithPokemonType(POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType value) {
if (withPokemonTypeBuilder_ == null) {
if (withPokemonType_ != null) {
withPokemonType_ =
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.newBuilder(withPokemonType_).mergeFrom(value).buildPartial();
} else {
withPokemonType_ = value;
}
onChanged();
} else {
withPokemonTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public Builder clearWithPokemonType() {
if (withPokemonTypeBuilder_ == null) {
withPokemonType_ = null;
onChanged();
} else {
withPokemonType_ = null;
withPokemonTypeBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.Builder getWithPokemonTypeBuilder() {
onChanged();
return getWithPokemonTypeFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
public POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonTypeOrBuilder getWithPokemonTypeOrBuilder() {
if (withPokemonTypeBuilder_ != null) {
return withPokemonTypeBuilder_.getMessageOrBuilder();
} else {
return withPokemonType_ == null ?
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.getDefaultInstance() : withPokemonType_;
}
}
/**
* .POGOProtos.Data.Combat.WithPokemonType with_pokemon_type = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType, POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.Builder, POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonTypeOrBuilder>
getWithPokemonTypeFieldBuilder() {
if (withPokemonTypeBuilder_ == null) {
withPokemonTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType, POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonType.Builder, POGOProtos.Data.Combat.WithPokemonTypeOuterClass.WithPokemonTypeOrBuilder>(
getWithPokemonType(),
getParentForChildren(),
isClean());
withPokemonType_ = null;
}
return withPokemonTypeBuilder_;
}
private POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory withPokemonCategory_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory, POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.Builder, POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategoryOrBuilder> withPokemonCategoryBuilder_;
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public boolean hasWithPokemonCategory() {
return withPokemonCategoryBuilder_ != null || withPokemonCategory_ != null;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory getWithPokemonCategory() {
if (withPokemonCategoryBuilder_ == null) {
return withPokemonCategory_ == null ? POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.getDefaultInstance() : withPokemonCategory_;
} else {
return withPokemonCategoryBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public Builder setWithPokemonCategory(POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory value) {
if (withPokemonCategoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
withPokemonCategory_ = value;
onChanged();
} else {
withPokemonCategoryBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public Builder setWithPokemonCategory(
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.Builder builderForValue) {
if (withPokemonCategoryBuilder_ == null) {
withPokemonCategory_ = builderForValue.build();
onChanged();
} else {
withPokemonCategoryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public Builder mergeWithPokemonCategory(POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory value) {
if (withPokemonCategoryBuilder_ == null) {
if (withPokemonCategory_ != null) {
withPokemonCategory_ =
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.newBuilder(withPokemonCategory_).mergeFrom(value).buildPartial();
} else {
withPokemonCategory_ = value;
}
onChanged();
} else {
withPokemonCategoryBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public Builder clearWithPokemonCategory() {
if (withPokemonCategoryBuilder_ == null) {
withPokemonCategory_ = null;
onChanged();
} else {
withPokemonCategory_ = null;
withPokemonCategoryBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.Builder getWithPokemonCategoryBuilder() {
onChanged();
return getWithPokemonCategoryFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
public POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategoryOrBuilder getWithPokemonCategoryOrBuilder() {
if (withPokemonCategoryBuilder_ != null) {
return withPokemonCategoryBuilder_.getMessageOrBuilder();
} else {
return withPokemonCategory_ == null ?
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.getDefaultInstance() : withPokemonCategory_;
}
}
/**
* .POGOProtos.Data.Combat.WithPokemonCategory with_pokemon_category = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory, POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.Builder, POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategoryOrBuilder>
getWithPokemonCategoryFieldBuilder() {
if (withPokemonCategoryBuilder_ == null) {
withPokemonCategoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory, POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategory.Builder, POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.WithPokemonCategoryOrBuilder>(
getWithPokemonCategory(),
getParentForChildren(),
isClean());
withPokemonCategory_ = null;
}
return withPokemonCategoryBuilder_;
}
@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.Combat.PokemonCondition)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Combat.PokemonCondition)
private static final POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition();
}
public static POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PokemonCondition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PokemonCondition(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.Combat.PokemonConditionOuterClass.PokemonCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Combat_PokemonCondition_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Combat_PokemonCondition_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/Combat/PokemonConditio" +
"n.proto\022\026POGOProtos.Data.Combat\032$POGOPro" +
"tos/Enums/ConditionType.proto\032/POGOProto" +
"s/Data/Combat/WithPokemonCpLimit.proto\032," +
"POGOProtos/Data/Combat/WithPokemonType.p" +
"roto\0320POGOProtos/Data/Combat/WithPokemon" +
"Category.proto\"\234\002\n\020PokemonCondition\022-\n\004t" +
"ype\030\001 \001(\0162\037.POGOProtos.Enums.ConditionTy" +
"pe\022I\n\025with_pokemon_cp_limit\030\002 \001(\0132*.POGO" +
"Protos.Data.Combat.WithPokemonCpLimit\022B\n" +
"\021with_pokemon_type\030\003 \001(\0132\'.POGOProtos.Da" +
"ta.Combat.WithPokemonType\022J\n\025with_pokemo" +
"n_category\030\004 \001(\0132+.POGOProtos.Data.Comba" +
"t.WithPokemonCategoryb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
POGOProtos.Enums.ConditionTypeOuterClass.getDescriptor(),
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.getDescriptor(),
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.getDescriptor(),
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Combat_PokemonCondition_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Combat_PokemonCondition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Combat_PokemonCondition_descriptor,
new java.lang.String[] { "Type", "WithPokemonCpLimit", "WithPokemonType", "WithPokemonCategory", });
POGOProtos.Enums.ConditionTypeOuterClass.getDescriptor();
POGOProtos.Data.Combat.WithPokemonCpLimitOuterClass.getDescriptor();
POGOProtos.Data.Combat.WithPokemonTypeOuterClass.getDescriptor();
POGOProtos.Data.Combat.WithPokemonCategoryOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy