POGOProtos.Settings.Master.CombatLeagueOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Settings/Master/CombatLeague.proto
package POGOProtos.Settings.Master;
public final class CombatLeagueOuterClass {
private CombatLeagueOuterClass() {}
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 CombatLeagueOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Settings.Master.CombatLeague)
com.google.protobuf.MessageOrBuilder {
/**
* string title = 1;
*/
java.lang.String getTitle();
/**
* string title = 1;
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
* bool enabled = 2;
*/
boolean getEnabled();
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
java.util.List
getUnlockConditionList();
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition getUnlockCondition(int index);
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
int getUnlockConditionCount();
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
java.util.List extends POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder>
getUnlockConditionOrBuilderList();
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder getUnlockConditionOrBuilder(
int index);
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
java.util.List
getPokemonConditionList();
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition getPokemonCondition(int index);
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
int getPokemonConditionCount();
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
java.util.List extends POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder>
getPokemonConditionOrBuilderList();
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder getPokemonConditionOrBuilder(
int index);
/**
* string icon_url = 5;
*/
java.lang.String getIconUrl();
/**
* string icon_url = 5;
*/
com.google.protobuf.ByteString
getIconUrlBytes();
/**
* int32 pokemon_count = 6;
*/
int getPokemonCount();
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
java.util.List getBannedPokemonList();
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
int getBannedPokemonCount();
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
POGOProtos.Enums.PokemonIdOuterClass.PokemonId getBannedPokemon(int index);
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
java.util.List
getBannedPokemonValueList();
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
int getBannedPokemonValue(int index);
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
int getBadgeTypeValue();
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
POGOProtos.Enums.BadgeTypeOuterClass.BadgeType getBadgeType();
/**
* int32 minigame_defense_chance_limit = 9;
*/
int getMinigameDefenseChanceLimit();
}
/**
* Protobuf type {@code POGOProtos.Settings.Master.CombatLeague}
*/
public static final class CombatLeague extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Settings.Master.CombatLeague)
CombatLeagueOrBuilder {
private static final long serialVersionUID = 0L;
// Use CombatLeague.newBuilder() to construct.
private CombatLeague(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CombatLeague() {
title_ = "";
enabled_ = false;
unlockCondition_ = java.util.Collections.emptyList();
pokemonCondition_ = java.util.Collections.emptyList();
iconUrl_ = "";
pokemonCount_ = 0;
bannedPokemon_ = java.util.Collections.emptyList();
badgeType_ = 0;
minigameDefenseChanceLimit_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CombatLeague(
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: {
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 16: {
enabled_ = input.readBool();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
unlockCondition_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
unlockCondition_.add(
input.readMessage(POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
pokemonCondition_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
pokemonCondition_.add(
input.readMessage(POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.parser(), extensionRegistry));
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
iconUrl_ = s;
break;
}
case 48: {
pokemonCount_ = input.readInt32();
break;
}
case 56: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
bannedPokemon_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
bannedPokemon_.add(rawValue);
break;
}
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
bannedPokemon_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
bannedPokemon_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 64: {
int rawValue = input.readEnum();
badgeType_ = rawValue;
break;
}
case 72: {
minigameDefenseChanceLimit_ = input.readInt32();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
unlockCondition_ = java.util.Collections.unmodifiableList(unlockCondition_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
pokemonCondition_ = java.util.Collections.unmodifiableList(pokemonCondition_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
bannedPokemon_ = java.util.Collections.unmodifiableList(bannedPokemon_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Settings.Master.CombatLeagueOuterClass.internal_static_POGOProtos_Settings_Master_CombatLeague_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Settings.Master.CombatLeagueOuterClass.internal_static_POGOProtos_Settings_Master_CombatLeague_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.class, POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.Builder.class);
}
private int bitField0_;
public static final int TITLE_FIELD_NUMBER = 1;
private volatile java.lang.Object title_;
/**
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
}
}
/**
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENABLED_FIELD_NUMBER = 2;
private boolean enabled_;
/**
* bool enabled = 2;
*/
public boolean getEnabled() {
return enabled_;
}
public static final int UNLOCK_CONDITION_FIELD_NUMBER = 3;
private java.util.List unlockCondition_;
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public java.util.List getUnlockConditionList() {
return unlockCondition_;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public java.util.List extends POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder>
getUnlockConditionOrBuilderList() {
return unlockCondition_;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public int getUnlockConditionCount() {
return unlockCondition_.size();
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition getUnlockCondition(int index) {
return unlockCondition_.get(index);
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder getUnlockConditionOrBuilder(
int index) {
return unlockCondition_.get(index);
}
public static final int POKEMON_CONDITION_FIELD_NUMBER = 4;
private java.util.List pokemonCondition_;
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public java.util.List getPokemonConditionList() {
return pokemonCondition_;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public java.util.List extends POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder>
getPokemonConditionOrBuilderList() {
return pokemonCondition_;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public int getPokemonConditionCount() {
return pokemonCondition_.size();
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition getPokemonCondition(int index) {
return pokemonCondition_.get(index);
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder getPokemonConditionOrBuilder(
int index) {
return pokemonCondition_.get(index);
}
public static final int ICON_URL_FIELD_NUMBER = 5;
private volatile java.lang.Object iconUrl_;
/**
* string icon_url = 5;
*/
public java.lang.String getIconUrl() {
java.lang.Object ref = iconUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
iconUrl_ = s;
return s;
}
}
/**
* string icon_url = 5;
*/
public com.google.protobuf.ByteString
getIconUrlBytes() {
java.lang.Object ref = iconUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
iconUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POKEMON_COUNT_FIELD_NUMBER = 6;
private int pokemonCount_;
/**
* int32 pokemon_count = 6;
*/
public int getPokemonCount() {
return pokemonCount_;
}
public static final int BANNED_POKEMON_FIELD_NUMBER = 7;
private java.util.List bannedPokemon_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, POGOProtos.Enums.PokemonIdOuterClass.PokemonId> bannedPokemon_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, POGOProtos.Enums.PokemonIdOuterClass.PokemonId>() {
public POGOProtos.Enums.PokemonIdOuterClass.PokemonId convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
POGOProtos.Enums.PokemonIdOuterClass.PokemonId result = POGOProtos.Enums.PokemonIdOuterClass.PokemonId.valueOf(from);
return result == null ? POGOProtos.Enums.PokemonIdOuterClass.PokemonId.UNRECOGNIZED : result;
}
};
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public java.util.List getBannedPokemonList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, POGOProtos.Enums.PokemonIdOuterClass.PokemonId>(bannedPokemon_, bannedPokemon_converter_);
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public int getBannedPokemonCount() {
return bannedPokemon_.size();
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public POGOProtos.Enums.PokemonIdOuterClass.PokemonId getBannedPokemon(int index) {
return bannedPokemon_converter_.convert(bannedPokemon_.get(index));
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public java.util.List
getBannedPokemonValueList() {
return bannedPokemon_;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public int getBannedPokemonValue(int index) {
return bannedPokemon_.get(index);
}
private int bannedPokemonMemoizedSerializedSize;
public static final int BADGE_TYPE_FIELD_NUMBER = 8;
private int badgeType_;
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public int getBadgeTypeValue() {
return badgeType_;
}
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public POGOProtos.Enums.BadgeTypeOuterClass.BadgeType getBadgeType() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.BadgeTypeOuterClass.BadgeType result = POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.valueOf(badgeType_);
return result == null ? POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.UNRECOGNIZED : result;
}
public static final int MINIGAME_DEFENSE_CHANCE_LIMIT_FIELD_NUMBER = 9;
private int minigameDefenseChanceLimit_;
/**
* int32 minigame_defense_chance_limit = 9;
*/
public int getMinigameDefenseChanceLimit() {
return minigameDefenseChanceLimit_;
}
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 {
getSerializedSize();
if (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (enabled_ != false) {
output.writeBool(2, enabled_);
}
for (int i = 0; i < unlockCondition_.size(); i++) {
output.writeMessage(3, unlockCondition_.get(i));
}
for (int i = 0; i < pokemonCondition_.size(); i++) {
output.writeMessage(4, pokemonCondition_.get(i));
}
if (!getIconUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, iconUrl_);
}
if (pokemonCount_ != 0) {
output.writeInt32(6, pokemonCount_);
}
if (getBannedPokemonList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(bannedPokemonMemoizedSerializedSize);
}
for (int i = 0; i < bannedPokemon_.size(); i++) {
output.writeEnumNoTag(bannedPokemon_.get(i));
}
if (badgeType_ != POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.BADGE_UNSET.getNumber()) {
output.writeEnum(8, badgeType_);
}
if (minigameDefenseChanceLimit_ != 0) {
output.writeInt32(9, minigameDefenseChanceLimit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, enabled_);
}
for (int i = 0; i < unlockCondition_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, unlockCondition_.get(i));
}
for (int i = 0; i < pokemonCondition_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, pokemonCondition_.get(i));
}
if (!getIconUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, iconUrl_);
}
if (pokemonCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, pokemonCount_);
}
{
int dataSize = 0;
for (int i = 0; i < bannedPokemon_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(bannedPokemon_.get(i));
}
size += dataSize;
if (!getBannedPokemonList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}bannedPokemonMemoizedSerializedSize = dataSize;
}
if (badgeType_ != POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.BADGE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, badgeType_);
}
if (minigameDefenseChanceLimit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, minigameDefenseChanceLimit_);
}
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.Settings.Master.CombatLeagueOuterClass.CombatLeague)) {
return super.equals(obj);
}
POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague other = (POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague) obj;
boolean result = true;
result = result && getTitle()
.equals(other.getTitle());
result = result && (getEnabled()
== other.getEnabled());
result = result && getUnlockConditionList()
.equals(other.getUnlockConditionList());
result = result && getPokemonConditionList()
.equals(other.getPokemonConditionList());
result = result && getIconUrl()
.equals(other.getIconUrl());
result = result && (getPokemonCount()
== other.getPokemonCount());
result = result && bannedPokemon_.equals(other.bannedPokemon_);
result = result && badgeType_ == other.badgeType_;
result = result && (getMinigameDefenseChanceLimit()
== other.getMinigameDefenseChanceLimit());
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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
if (getUnlockConditionCount() > 0) {
hash = (37 * hash) + UNLOCK_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getUnlockConditionList().hashCode();
}
if (getPokemonConditionCount() > 0) {
hash = (37 * hash) + POKEMON_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getPokemonConditionList().hashCode();
}
hash = (37 * hash) + ICON_URL_FIELD_NUMBER;
hash = (53 * hash) + getIconUrl().hashCode();
hash = (37 * hash) + POKEMON_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getPokemonCount();
if (getBannedPokemonCount() > 0) {
hash = (37 * hash) + BANNED_POKEMON_FIELD_NUMBER;
hash = (53 * hash) + bannedPokemon_.hashCode();
}
hash = (37 * hash) + BADGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + badgeType_;
hash = (37 * hash) + MINIGAME_DEFENSE_CHANCE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getMinigameDefenseChanceLimit();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague 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.Settings.Master.CombatLeagueOuterClass.CombatLeague parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague 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.Settings.Master.CombatLeagueOuterClass.CombatLeague parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague 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.Settings.Master.CombatLeagueOuterClass.CombatLeague 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.Settings.Master.CombatLeague}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Settings.Master.CombatLeague)
POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeagueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Settings.Master.CombatLeagueOuterClass.internal_static_POGOProtos_Settings_Master_CombatLeague_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Settings.Master.CombatLeagueOuterClass.internal_static_POGOProtos_Settings_Master_CombatLeague_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.class, POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.Builder.class);
}
// Construct using POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUnlockConditionFieldBuilder();
getPokemonConditionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
title_ = "";
enabled_ = false;
if (unlockConditionBuilder_ == null) {
unlockCondition_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
unlockConditionBuilder_.clear();
}
if (pokemonConditionBuilder_ == null) {
pokemonCondition_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
pokemonConditionBuilder_.clear();
}
iconUrl_ = "";
pokemonCount_ = 0;
bannedPokemon_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
badgeType_ = 0;
minigameDefenseChanceLimit_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Settings.Master.CombatLeagueOuterClass.internal_static_POGOProtos_Settings_Master_CombatLeague_descriptor;
}
@java.lang.Override
public POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague getDefaultInstanceForType() {
return POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague build() {
POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague buildPartial() {
POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague result = new POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.title_ = title_;
result.enabled_ = enabled_;
if (unlockConditionBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
unlockCondition_ = java.util.Collections.unmodifiableList(unlockCondition_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.unlockCondition_ = unlockCondition_;
} else {
result.unlockCondition_ = unlockConditionBuilder_.build();
}
if (pokemonConditionBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
pokemonCondition_ = java.util.Collections.unmodifiableList(pokemonCondition_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.pokemonCondition_ = pokemonCondition_;
} else {
result.pokemonCondition_ = pokemonConditionBuilder_.build();
}
result.iconUrl_ = iconUrl_;
result.pokemonCount_ = pokemonCount_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
bannedPokemon_ = java.util.Collections.unmodifiableList(bannedPokemon_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.bannedPokemon_ = bannedPokemon_;
result.badgeType_ = badgeType_;
result.minigameDefenseChanceLimit_ = minigameDefenseChanceLimit_;
result.bitField0_ = to_bitField0_;
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.Settings.Master.CombatLeagueOuterClass.CombatLeague) {
return mergeFrom((POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague other) {
if (other == POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (unlockConditionBuilder_ == null) {
if (!other.unlockCondition_.isEmpty()) {
if (unlockCondition_.isEmpty()) {
unlockCondition_ = other.unlockCondition_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUnlockConditionIsMutable();
unlockCondition_.addAll(other.unlockCondition_);
}
onChanged();
}
} else {
if (!other.unlockCondition_.isEmpty()) {
if (unlockConditionBuilder_.isEmpty()) {
unlockConditionBuilder_.dispose();
unlockConditionBuilder_ = null;
unlockCondition_ = other.unlockCondition_;
bitField0_ = (bitField0_ & ~0x00000004);
unlockConditionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnlockConditionFieldBuilder() : null;
} else {
unlockConditionBuilder_.addAllMessages(other.unlockCondition_);
}
}
}
if (pokemonConditionBuilder_ == null) {
if (!other.pokemonCondition_.isEmpty()) {
if (pokemonCondition_.isEmpty()) {
pokemonCondition_ = other.pokemonCondition_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePokemonConditionIsMutable();
pokemonCondition_.addAll(other.pokemonCondition_);
}
onChanged();
}
} else {
if (!other.pokemonCondition_.isEmpty()) {
if (pokemonConditionBuilder_.isEmpty()) {
pokemonConditionBuilder_.dispose();
pokemonConditionBuilder_ = null;
pokemonCondition_ = other.pokemonCondition_;
bitField0_ = (bitField0_ & ~0x00000008);
pokemonConditionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPokemonConditionFieldBuilder() : null;
} else {
pokemonConditionBuilder_.addAllMessages(other.pokemonCondition_);
}
}
}
if (!other.getIconUrl().isEmpty()) {
iconUrl_ = other.iconUrl_;
onChanged();
}
if (other.getPokemonCount() != 0) {
setPokemonCount(other.getPokemonCount());
}
if (!other.bannedPokemon_.isEmpty()) {
if (bannedPokemon_.isEmpty()) {
bannedPokemon_ = other.bannedPokemon_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureBannedPokemonIsMutable();
bannedPokemon_.addAll(other.bannedPokemon_);
}
onChanged();
}
if (other.badgeType_ != 0) {
setBadgeTypeValue(other.getBadgeTypeValue());
}
if (other.getMinigameDefenseChanceLimit() != 0) {
setMinigameDefenseChanceLimit(other.getMinigameDefenseChanceLimit());
}
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.Settings.Master.CombatLeagueOuterClass.CombatLeague parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object title_ = "";
/**
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string title = 1;
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
* string title = 1;
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
* string title = 1;
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 2;
*/
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 2;
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 2;
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private java.util.List unlockCondition_ =
java.util.Collections.emptyList();
private void ensureUnlockConditionIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
unlockCondition_ = new java.util.ArrayList(unlockCondition_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder> unlockConditionBuilder_;
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public java.util.List getUnlockConditionList() {
if (unlockConditionBuilder_ == null) {
return java.util.Collections.unmodifiableList(unlockCondition_);
} else {
return unlockConditionBuilder_.getMessageList();
}
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public int getUnlockConditionCount() {
if (unlockConditionBuilder_ == null) {
return unlockCondition_.size();
} else {
return unlockConditionBuilder_.getCount();
}
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition getUnlockCondition(int index) {
if (unlockConditionBuilder_ == null) {
return unlockCondition_.get(index);
} else {
return unlockConditionBuilder_.getMessage(index);
}
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder setUnlockCondition(
int index, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition value) {
if (unlockConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnlockConditionIsMutable();
unlockCondition_.set(index, value);
onChanged();
} else {
unlockConditionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder setUnlockCondition(
int index, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder builderForValue) {
if (unlockConditionBuilder_ == null) {
ensureUnlockConditionIsMutable();
unlockCondition_.set(index, builderForValue.build());
onChanged();
} else {
unlockConditionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder addUnlockCondition(POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition value) {
if (unlockConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnlockConditionIsMutable();
unlockCondition_.add(value);
onChanged();
} else {
unlockConditionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder addUnlockCondition(
int index, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition value) {
if (unlockConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnlockConditionIsMutable();
unlockCondition_.add(index, value);
onChanged();
} else {
unlockConditionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder addUnlockCondition(
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder builderForValue) {
if (unlockConditionBuilder_ == null) {
ensureUnlockConditionIsMutable();
unlockCondition_.add(builderForValue.build());
onChanged();
} else {
unlockConditionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder addUnlockCondition(
int index, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder builderForValue) {
if (unlockConditionBuilder_ == null) {
ensureUnlockConditionIsMutable();
unlockCondition_.add(index, builderForValue.build());
onChanged();
} else {
unlockConditionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder addAllUnlockCondition(
java.lang.Iterable extends POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition> values) {
if (unlockConditionBuilder_ == null) {
ensureUnlockConditionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unlockCondition_);
onChanged();
} else {
unlockConditionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder clearUnlockCondition() {
if (unlockConditionBuilder_ == null) {
unlockCondition_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
unlockConditionBuilder_.clear();
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public Builder removeUnlockCondition(int index) {
if (unlockConditionBuilder_ == null) {
ensureUnlockConditionIsMutable();
unlockCondition_.remove(index);
onChanged();
} else {
unlockConditionBuilder_.remove(index);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder getUnlockConditionBuilder(
int index) {
return getUnlockConditionFieldBuilder().getBuilder(index);
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder getUnlockConditionOrBuilder(
int index) {
if (unlockConditionBuilder_ == null) {
return unlockCondition_.get(index); } else {
return unlockConditionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public java.util.List extends POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder>
getUnlockConditionOrBuilderList() {
if (unlockConditionBuilder_ != null) {
return unlockConditionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unlockCondition_);
}
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder addUnlockConditionBuilder() {
return getUnlockConditionFieldBuilder().addBuilder(
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder addUnlockConditionBuilder(
int index) {
return getUnlockConditionFieldBuilder().addBuilder(
index, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Combat.UnlockCondition unlock_condition = 3;
*/
public java.util.List
getUnlockConditionBuilderList() {
return getUnlockConditionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder>
getUnlockConditionFieldBuilder() {
if (unlockConditionBuilder_ == null) {
unlockConditionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockCondition.Builder, POGOProtos.Data.Combat.UnlockConditionOuterClass.UnlockConditionOrBuilder>(
unlockCondition_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
unlockCondition_ = null;
}
return unlockConditionBuilder_;
}
private java.util.List pokemonCondition_ =
java.util.Collections.emptyList();
private void ensurePokemonConditionIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
pokemonCondition_ = new java.util.ArrayList(pokemonCondition_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder> pokemonConditionBuilder_;
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public java.util.List getPokemonConditionList() {
if (pokemonConditionBuilder_ == null) {
return java.util.Collections.unmodifiableList(pokemonCondition_);
} else {
return pokemonConditionBuilder_.getMessageList();
}
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public int getPokemonConditionCount() {
if (pokemonConditionBuilder_ == null) {
return pokemonCondition_.size();
} else {
return pokemonConditionBuilder_.getCount();
}
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition getPokemonCondition(int index) {
if (pokemonConditionBuilder_ == null) {
return pokemonCondition_.get(index);
} else {
return pokemonConditionBuilder_.getMessage(index);
}
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder setPokemonCondition(
int index, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition value) {
if (pokemonConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePokemonConditionIsMutable();
pokemonCondition_.set(index, value);
onChanged();
} else {
pokemonConditionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder setPokemonCondition(
int index, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder builderForValue) {
if (pokemonConditionBuilder_ == null) {
ensurePokemonConditionIsMutable();
pokemonCondition_.set(index, builderForValue.build());
onChanged();
} else {
pokemonConditionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder addPokemonCondition(POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition value) {
if (pokemonConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePokemonConditionIsMutable();
pokemonCondition_.add(value);
onChanged();
} else {
pokemonConditionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder addPokemonCondition(
int index, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition value) {
if (pokemonConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePokemonConditionIsMutable();
pokemonCondition_.add(index, value);
onChanged();
} else {
pokemonConditionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder addPokemonCondition(
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder builderForValue) {
if (pokemonConditionBuilder_ == null) {
ensurePokemonConditionIsMutable();
pokemonCondition_.add(builderForValue.build());
onChanged();
} else {
pokemonConditionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder addPokemonCondition(
int index, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder builderForValue) {
if (pokemonConditionBuilder_ == null) {
ensurePokemonConditionIsMutable();
pokemonCondition_.add(index, builderForValue.build());
onChanged();
} else {
pokemonConditionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder addAllPokemonCondition(
java.lang.Iterable extends POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition> values) {
if (pokemonConditionBuilder_ == null) {
ensurePokemonConditionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pokemonCondition_);
onChanged();
} else {
pokemonConditionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder clearPokemonCondition() {
if (pokemonConditionBuilder_ == null) {
pokemonCondition_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
pokemonConditionBuilder_.clear();
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public Builder removePokemonCondition(int index) {
if (pokemonConditionBuilder_ == null) {
ensurePokemonConditionIsMutable();
pokemonCondition_.remove(index);
onChanged();
} else {
pokemonConditionBuilder_.remove(index);
}
return this;
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder getPokemonConditionBuilder(
int index) {
return getPokemonConditionFieldBuilder().getBuilder(index);
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder getPokemonConditionOrBuilder(
int index) {
if (pokemonConditionBuilder_ == null) {
return pokemonCondition_.get(index); } else {
return pokemonConditionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public java.util.List extends POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder>
getPokemonConditionOrBuilderList() {
if (pokemonConditionBuilder_ != null) {
return pokemonConditionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pokemonCondition_);
}
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder addPokemonConditionBuilder() {
return getPokemonConditionFieldBuilder().addBuilder(
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder addPokemonConditionBuilder(
int index) {
return getPokemonConditionFieldBuilder().addBuilder(
index, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Combat.PokemonCondition pokemon_condition = 4;
*/
public java.util.List
getPokemonConditionBuilderList() {
return getPokemonConditionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder>
getPokemonConditionFieldBuilder() {
if (pokemonConditionBuilder_ == null) {
pokemonConditionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonCondition.Builder, POGOProtos.Data.Combat.PokemonConditionOuterClass.PokemonConditionOrBuilder>(
pokemonCondition_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
pokemonCondition_ = null;
}
return pokemonConditionBuilder_;
}
private java.lang.Object iconUrl_ = "";
/**
* string icon_url = 5;
*/
public java.lang.String getIconUrl() {
java.lang.Object ref = iconUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
iconUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string icon_url = 5;
*/
public com.google.protobuf.ByteString
getIconUrlBytes() {
java.lang.Object ref = iconUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
iconUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string icon_url = 5;
*/
public Builder setIconUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
iconUrl_ = value;
onChanged();
return this;
}
/**
* string icon_url = 5;
*/
public Builder clearIconUrl() {
iconUrl_ = getDefaultInstance().getIconUrl();
onChanged();
return this;
}
/**
* string icon_url = 5;
*/
public Builder setIconUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
iconUrl_ = value;
onChanged();
return this;
}
private int pokemonCount_ ;
/**
* int32 pokemon_count = 6;
*/
public int getPokemonCount() {
return pokemonCount_;
}
/**
* int32 pokemon_count = 6;
*/
public Builder setPokemonCount(int value) {
pokemonCount_ = value;
onChanged();
return this;
}
/**
* int32 pokemon_count = 6;
*/
public Builder clearPokemonCount() {
pokemonCount_ = 0;
onChanged();
return this;
}
private java.util.List bannedPokemon_ =
java.util.Collections.emptyList();
private void ensureBannedPokemonIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
bannedPokemon_ = new java.util.ArrayList(bannedPokemon_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public java.util.List getBannedPokemonList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, POGOProtos.Enums.PokemonIdOuterClass.PokemonId>(bannedPokemon_, bannedPokemon_converter_);
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public int getBannedPokemonCount() {
return bannedPokemon_.size();
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public POGOProtos.Enums.PokemonIdOuterClass.PokemonId getBannedPokemon(int index) {
return bannedPokemon_converter_.convert(bannedPokemon_.get(index));
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder setBannedPokemon(
int index, POGOProtos.Enums.PokemonIdOuterClass.PokemonId value) {
if (value == null) {
throw new NullPointerException();
}
ensureBannedPokemonIsMutable();
bannedPokemon_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder addBannedPokemon(POGOProtos.Enums.PokemonIdOuterClass.PokemonId value) {
if (value == null) {
throw new NullPointerException();
}
ensureBannedPokemonIsMutable();
bannedPokemon_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder addAllBannedPokemon(
java.lang.Iterable extends POGOProtos.Enums.PokemonIdOuterClass.PokemonId> values) {
ensureBannedPokemonIsMutable();
for (POGOProtos.Enums.PokemonIdOuterClass.PokemonId value : values) {
bannedPokemon_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder clearBannedPokemon() {
bannedPokemon_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public java.util.List
getBannedPokemonValueList() {
return java.util.Collections.unmodifiableList(bannedPokemon_);
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public int getBannedPokemonValue(int index) {
return bannedPokemon_.get(index);
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder setBannedPokemonValue(
int index, int value) {
ensureBannedPokemonIsMutable();
bannedPokemon_.set(index, value);
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder addBannedPokemonValue(int value) {
ensureBannedPokemonIsMutable();
bannedPokemon_.add(value);
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.PokemonId banned_pokemon = 7;
*/
public Builder addAllBannedPokemonValue(
java.lang.Iterable values) {
ensureBannedPokemonIsMutable();
for (int value : values) {
bannedPokemon_.add(value);
}
onChanged();
return this;
}
private int badgeType_ = 0;
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public int getBadgeTypeValue() {
return badgeType_;
}
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public Builder setBadgeTypeValue(int value) {
badgeType_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public POGOProtos.Enums.BadgeTypeOuterClass.BadgeType getBadgeType() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.BadgeTypeOuterClass.BadgeType result = POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.valueOf(badgeType_);
return result == null ? POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public Builder setBadgeType(POGOProtos.Enums.BadgeTypeOuterClass.BadgeType value) {
if (value == null) {
throw new NullPointerException();
}
badgeType_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Enums.BadgeType badge_type = 8;
*/
public Builder clearBadgeType() {
badgeType_ = 0;
onChanged();
return this;
}
private int minigameDefenseChanceLimit_ ;
/**
* int32 minigame_defense_chance_limit = 9;
*/
public int getMinigameDefenseChanceLimit() {
return minigameDefenseChanceLimit_;
}
/**
* int32 minigame_defense_chance_limit = 9;
*/
public Builder setMinigameDefenseChanceLimit(int value) {
minigameDefenseChanceLimit_ = value;
onChanged();
return this;
}
/**
* int32 minigame_defense_chance_limit = 9;
*/
public Builder clearMinigameDefenseChanceLimit() {
minigameDefenseChanceLimit_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Settings.Master.CombatLeague)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Settings.Master.CombatLeague)
private static final POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague();
}
public static POGOProtos.Settings.Master.CombatLeagueOuterClass.CombatLeague getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CombatLeague parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CombatLeague(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.Settings.Master.CombatLeagueOuterClass.CombatLeague getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Settings_Master_CombatLeague_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Settings_Master_CombatLeague_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/Settings/Master/CombatLeagu" +
"e.proto\022\032POGOProtos.Settings.Master\032 POG" +
"OProtos/Enums/PokemonId.proto\032 POGOProto" +
"s/Enums/BadgeType.proto\032,POGOProtos/Data" +
"/Combat/UnlockCondition.proto\032-POGOProto" +
"s/Data/Combat/PokemonCondition.proto\"\354\002\n" +
"\014CombatLeague\022\r\n\005title\030\001 \001(\t\022\017\n\007enabled\030" +
"\002 \001(\010\022A\n\020unlock_condition\030\003 \003(\0132\'.POGOPr" +
"otos.Data.Combat.UnlockCondition\022C\n\021poke" +
"mon_condition\030\004 \003(\0132(.POGOProtos.Data.Co" +
"mbat.PokemonCondition\022\020\n\010icon_url\030\005 \001(\t\022" +
"\025\n\rpokemon_count\030\006 \001(\005\0223\n\016banned_pokemon" +
"\030\007 \003(\0162\033.POGOProtos.Enums.PokemonId\022/\n\nb" +
"adge_type\030\010 \001(\0162\033.POGOProtos.Enums.Badge" +
"Type\022%\n\035minigame_defense_chance_limit\030\t " +
"\001(\005b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
POGOProtos.Enums.PokemonIdOuterClass.getDescriptor(),
POGOProtos.Enums.BadgeTypeOuterClass.getDescriptor(),
POGOProtos.Data.Combat.UnlockConditionOuterClass.getDescriptor(),
POGOProtos.Data.Combat.PokemonConditionOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Settings_Master_CombatLeague_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Settings_Master_CombatLeague_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Settings_Master_CombatLeague_descriptor,
new java.lang.String[] { "Title", "Enabled", "UnlockCondition", "PokemonCondition", "IconUrl", "PokemonCount", "BannedPokemon", "BadgeType", "MinigameDefenseChanceLimit", });
POGOProtos.Enums.PokemonIdOuterClass.getDescriptor();
POGOProtos.Enums.BadgeTypeOuterClass.getDescriptor();
POGOProtos.Data.Combat.UnlockConditionOuterClass.getDescriptor();
POGOProtos.Data.Combat.PokemonConditionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy