POGOProtos.Data.Trading.TradingPlayerOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Trading/TradingPlayer.proto
package POGOProtos.Data.Trading;
public final class TradingPlayerOuterClass {
private TradingPlayerOuterClass() {}
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 TradingPlayerOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Trading.TradingPlayer)
com.google.protobuf.MessageOrBuilder {
/**
* string player_id = 1;
*/
java.lang.String getPlayerId();
/**
* string player_id = 1;
*/
com.google.protobuf.ByteString
getPlayerIdBytes();
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
boolean hasPublicProfile();
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile getPublicProfile();
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder getPublicProfileOrBuilder();
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
java.util.List
getExcludedPokemonList();
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon getExcludedPokemon(int index);
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
int getExcludedPokemonCount();
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
java.util.List extends POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder>
getExcludedPokemonOrBuilderList();
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder getExcludedPokemonOrBuilder(
int index);
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
boolean hasTradingPokemon();
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon getTradingPokemon();
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemonOrBuilder getTradingPokemonOrBuilder();
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
boolean hasBonus();
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
POGOProtos.Inventory.LootOuterClass.Loot getBonus();
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
POGOProtos.Inventory.LootOuterClass.LootOrBuilder getBonusOrBuilder();
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
boolean hasPrice();
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
POGOProtos.Inventory.LootOuterClass.Loot getPrice();
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
POGOProtos.Inventory.LootOuterClass.LootOrBuilder getPriceOrBuilder();
/**
* bool can_afford_trading = 7;
*/
boolean getCanAffordTrading();
/**
* bool has_confirmed = 8;
*/
boolean getHasConfirmed();
}
/**
* Protobuf type {@code POGOProtos.Data.Trading.TradingPlayer}
*/
public static final class TradingPlayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Trading.TradingPlayer)
TradingPlayerOrBuilder {
private static final long serialVersionUID = 0L;
// Use TradingPlayer.newBuilder() to construct.
private TradingPlayer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TradingPlayer() {
playerId_ = "";
excludedPokemon_ = java.util.Collections.emptyList();
canAffordTrading_ = false;
hasConfirmed_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TradingPlayer(
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();
playerId_ = s;
break;
}
case 18: {
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder subBuilder = null;
if (publicProfile_ != null) {
subBuilder = publicProfile_.toBuilder();
}
publicProfile_ = input.readMessage(POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(publicProfile_);
publicProfile_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
excludedPokemon_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
excludedPokemon_.add(
input.readMessage(POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.parser(), extensionRegistry));
break;
}
case 34: {
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.Builder subBuilder = null;
if (tradingPokemon_ != null) {
subBuilder = tradingPokemon_.toBuilder();
}
tradingPokemon_ = input.readMessage(POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tradingPokemon_);
tradingPokemon_ = subBuilder.buildPartial();
}
break;
}
case 42: {
POGOProtos.Inventory.LootOuterClass.Loot.Builder subBuilder = null;
if (bonus_ != null) {
subBuilder = bonus_.toBuilder();
}
bonus_ = input.readMessage(POGOProtos.Inventory.LootOuterClass.Loot.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bonus_);
bonus_ = subBuilder.buildPartial();
}
break;
}
case 50: {
POGOProtos.Inventory.LootOuterClass.Loot.Builder subBuilder = null;
if (price_ != null) {
subBuilder = price_.toBuilder();
}
price_ = input.readMessage(POGOProtos.Inventory.LootOuterClass.Loot.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(price_);
price_ = subBuilder.buildPartial();
}
break;
}
case 56: {
canAffordTrading_ = input.readBool();
break;
}
case 64: {
hasConfirmed_ = input.readBool();
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)) {
excludedPokemon_ = java.util.Collections.unmodifiableList(excludedPokemon_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Trading.TradingPlayerOuterClass.internal_static_POGOProtos_Data_Trading_TradingPlayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Trading.TradingPlayerOuterClass.internal_static_POGOProtos_Data_Trading_TradingPlayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.class, POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.Builder.class);
}
private int bitField0_;
public static final int PLAYER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object playerId_;
/**
* string player_id = 1;
*/
public java.lang.String getPlayerId() {
java.lang.Object ref = playerId_;
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();
playerId_ = s;
return s;
}
}
/**
* string player_id = 1;
*/
public com.google.protobuf.ByteString
getPlayerIdBytes() {
java.lang.Object ref = playerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
playerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUBLIC_PROFILE_FIELD_NUMBER = 2;
private POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile publicProfile_;
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public boolean hasPublicProfile() {
return publicProfile_ != null;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile getPublicProfile() {
return publicProfile_ == null ? POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.getDefaultInstance() : publicProfile_;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder getPublicProfileOrBuilder() {
return getPublicProfile();
}
public static final int EXCLUDED_POKEMON_FIELD_NUMBER = 3;
private java.util.List excludedPokemon_;
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public java.util.List getExcludedPokemonList() {
return excludedPokemon_;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public java.util.List extends POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder>
getExcludedPokemonOrBuilderList() {
return excludedPokemon_;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public int getExcludedPokemonCount() {
return excludedPokemon_.size();
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon getExcludedPokemon(int index) {
return excludedPokemon_.get(index);
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder getExcludedPokemonOrBuilder(
int index) {
return excludedPokemon_.get(index);
}
public static final int TRADING_POKEMON_FIELD_NUMBER = 4;
private POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon tradingPokemon_;
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public boolean hasTradingPokemon() {
return tradingPokemon_ != null;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon getTradingPokemon() {
return tradingPokemon_ == null ? POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.getDefaultInstance() : tradingPokemon_;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemonOrBuilder getTradingPokemonOrBuilder() {
return getTradingPokemon();
}
public static final int BONUS_FIELD_NUMBER = 5;
private POGOProtos.Inventory.LootOuterClass.Loot bonus_;
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public boolean hasBonus() {
return bonus_ != null;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public POGOProtos.Inventory.LootOuterClass.Loot getBonus() {
return bonus_ == null ? POGOProtos.Inventory.LootOuterClass.Loot.getDefaultInstance() : bonus_;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public POGOProtos.Inventory.LootOuterClass.LootOrBuilder getBonusOrBuilder() {
return getBonus();
}
public static final int PRICE_FIELD_NUMBER = 6;
private POGOProtos.Inventory.LootOuterClass.Loot price_;
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public boolean hasPrice() {
return price_ != null;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public POGOProtos.Inventory.LootOuterClass.Loot getPrice() {
return price_ == null ? POGOProtos.Inventory.LootOuterClass.Loot.getDefaultInstance() : price_;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public POGOProtos.Inventory.LootOuterClass.LootOrBuilder getPriceOrBuilder() {
return getPrice();
}
public static final int CAN_AFFORD_TRADING_FIELD_NUMBER = 7;
private boolean canAffordTrading_;
/**
* bool can_afford_trading = 7;
*/
public boolean getCanAffordTrading() {
return canAffordTrading_;
}
public static final int HAS_CONFIRMED_FIELD_NUMBER = 8;
private boolean hasConfirmed_;
/**
* bool has_confirmed = 8;
*/
public boolean getHasConfirmed() {
return hasConfirmed_;
}
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 (!getPlayerIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, playerId_);
}
if (publicProfile_ != null) {
output.writeMessage(2, getPublicProfile());
}
for (int i = 0; i < excludedPokemon_.size(); i++) {
output.writeMessage(3, excludedPokemon_.get(i));
}
if (tradingPokemon_ != null) {
output.writeMessage(4, getTradingPokemon());
}
if (bonus_ != null) {
output.writeMessage(5, getBonus());
}
if (price_ != null) {
output.writeMessage(6, getPrice());
}
if (canAffordTrading_ != false) {
output.writeBool(7, canAffordTrading_);
}
if (hasConfirmed_ != false) {
output.writeBool(8, hasConfirmed_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPlayerIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, playerId_);
}
if (publicProfile_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPublicProfile());
}
for (int i = 0; i < excludedPokemon_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, excludedPokemon_.get(i));
}
if (tradingPokemon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTradingPokemon());
}
if (bonus_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getBonus());
}
if (price_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPrice());
}
if (canAffordTrading_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, canAffordTrading_);
}
if (hasConfirmed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, hasConfirmed_);
}
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.Trading.TradingPlayerOuterClass.TradingPlayer)) {
return super.equals(obj);
}
POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer other = (POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer) obj;
boolean result = true;
result = result && getPlayerId()
.equals(other.getPlayerId());
result = result && (hasPublicProfile() == other.hasPublicProfile());
if (hasPublicProfile()) {
result = result && getPublicProfile()
.equals(other.getPublicProfile());
}
result = result && getExcludedPokemonList()
.equals(other.getExcludedPokemonList());
result = result && (hasTradingPokemon() == other.hasTradingPokemon());
if (hasTradingPokemon()) {
result = result && getTradingPokemon()
.equals(other.getTradingPokemon());
}
result = result && (hasBonus() == other.hasBonus());
if (hasBonus()) {
result = result && getBonus()
.equals(other.getBonus());
}
result = result && (hasPrice() == other.hasPrice());
if (hasPrice()) {
result = result && getPrice()
.equals(other.getPrice());
}
result = result && (getCanAffordTrading()
== other.getCanAffordTrading());
result = result && (getHasConfirmed()
== other.getHasConfirmed());
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) + PLAYER_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlayerId().hashCode();
if (hasPublicProfile()) {
hash = (37 * hash) + PUBLIC_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getPublicProfile().hashCode();
}
if (getExcludedPokemonCount() > 0) {
hash = (37 * hash) + EXCLUDED_POKEMON_FIELD_NUMBER;
hash = (53 * hash) + getExcludedPokemonList().hashCode();
}
if (hasTradingPokemon()) {
hash = (37 * hash) + TRADING_POKEMON_FIELD_NUMBER;
hash = (53 * hash) + getTradingPokemon().hashCode();
}
if (hasBonus()) {
hash = (37 * hash) + BONUS_FIELD_NUMBER;
hash = (53 * hash) + getBonus().hashCode();
}
if (hasPrice()) {
hash = (37 * hash) + PRICE_FIELD_NUMBER;
hash = (53 * hash) + getPrice().hashCode();
}
hash = (37 * hash) + CAN_AFFORD_TRADING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanAffordTrading());
hash = (37 * hash) + HAS_CONFIRMED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasConfirmed());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer 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.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer 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.Trading.TradingPlayerOuterClass.TradingPlayer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer 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.Trading.TradingPlayerOuterClass.TradingPlayer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer 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.Trading.TradingPlayerOuterClass.TradingPlayer 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.Trading.TradingPlayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Trading.TradingPlayer)
POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Trading.TradingPlayerOuterClass.internal_static_POGOProtos_Data_Trading_TradingPlayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Trading.TradingPlayerOuterClass.internal_static_POGOProtos_Data_Trading_TradingPlayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.class, POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.Builder.class);
}
// Construct using POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExcludedPokemonFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
playerId_ = "";
if (publicProfileBuilder_ == null) {
publicProfile_ = null;
} else {
publicProfile_ = null;
publicProfileBuilder_ = null;
}
if (excludedPokemonBuilder_ == null) {
excludedPokemon_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
excludedPokemonBuilder_.clear();
}
if (tradingPokemonBuilder_ == null) {
tradingPokemon_ = null;
} else {
tradingPokemon_ = null;
tradingPokemonBuilder_ = null;
}
if (bonusBuilder_ == null) {
bonus_ = null;
} else {
bonus_ = null;
bonusBuilder_ = null;
}
if (priceBuilder_ == null) {
price_ = null;
} else {
price_ = null;
priceBuilder_ = null;
}
canAffordTrading_ = false;
hasConfirmed_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Trading.TradingPlayerOuterClass.internal_static_POGOProtos_Data_Trading_TradingPlayer_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer getDefaultInstanceForType() {
return POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer build() {
POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer buildPartial() {
POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer result = new POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.playerId_ = playerId_;
if (publicProfileBuilder_ == null) {
result.publicProfile_ = publicProfile_;
} else {
result.publicProfile_ = publicProfileBuilder_.build();
}
if (excludedPokemonBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
excludedPokemon_ = java.util.Collections.unmodifiableList(excludedPokemon_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.excludedPokemon_ = excludedPokemon_;
} else {
result.excludedPokemon_ = excludedPokemonBuilder_.build();
}
if (tradingPokemonBuilder_ == null) {
result.tradingPokemon_ = tradingPokemon_;
} else {
result.tradingPokemon_ = tradingPokemonBuilder_.build();
}
if (bonusBuilder_ == null) {
result.bonus_ = bonus_;
} else {
result.bonus_ = bonusBuilder_.build();
}
if (priceBuilder_ == null) {
result.price_ = price_;
} else {
result.price_ = priceBuilder_.build();
}
result.canAffordTrading_ = canAffordTrading_;
result.hasConfirmed_ = hasConfirmed_;
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.Data.Trading.TradingPlayerOuterClass.TradingPlayer) {
return mergeFrom((POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer other) {
if (other == POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer.getDefaultInstance()) return this;
if (!other.getPlayerId().isEmpty()) {
playerId_ = other.playerId_;
onChanged();
}
if (other.hasPublicProfile()) {
mergePublicProfile(other.getPublicProfile());
}
if (excludedPokemonBuilder_ == null) {
if (!other.excludedPokemon_.isEmpty()) {
if (excludedPokemon_.isEmpty()) {
excludedPokemon_ = other.excludedPokemon_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureExcludedPokemonIsMutable();
excludedPokemon_.addAll(other.excludedPokemon_);
}
onChanged();
}
} else {
if (!other.excludedPokemon_.isEmpty()) {
if (excludedPokemonBuilder_.isEmpty()) {
excludedPokemonBuilder_.dispose();
excludedPokemonBuilder_ = null;
excludedPokemon_ = other.excludedPokemon_;
bitField0_ = (bitField0_ & ~0x00000004);
excludedPokemonBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExcludedPokemonFieldBuilder() : null;
} else {
excludedPokemonBuilder_.addAllMessages(other.excludedPokemon_);
}
}
}
if (other.hasTradingPokemon()) {
mergeTradingPokemon(other.getTradingPokemon());
}
if (other.hasBonus()) {
mergeBonus(other.getBonus());
}
if (other.hasPrice()) {
mergePrice(other.getPrice());
}
if (other.getCanAffordTrading() != false) {
setCanAffordTrading(other.getCanAffordTrading());
}
if (other.getHasConfirmed() != false) {
setHasConfirmed(other.getHasConfirmed());
}
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.Trading.TradingPlayerOuterClass.TradingPlayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object playerId_ = "";
/**
* string player_id = 1;
*/
public java.lang.String getPlayerId() {
java.lang.Object ref = playerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
playerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string player_id = 1;
*/
public com.google.protobuf.ByteString
getPlayerIdBytes() {
java.lang.Object ref = playerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
playerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string player_id = 1;
*/
public Builder setPlayerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
playerId_ = value;
onChanged();
return this;
}
/**
* string player_id = 1;
*/
public Builder clearPlayerId() {
playerId_ = getDefaultInstance().getPlayerId();
onChanged();
return this;
}
/**
* string player_id = 1;
*/
public Builder setPlayerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
playerId_ = value;
onChanged();
return this;
}
private POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile publicProfile_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder> publicProfileBuilder_;
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public boolean hasPublicProfile() {
return publicProfileBuilder_ != null || publicProfile_ != null;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile getPublicProfile() {
if (publicProfileBuilder_ == null) {
return publicProfile_ == null ? POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.getDefaultInstance() : publicProfile_;
} else {
return publicProfileBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public Builder setPublicProfile(POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile value) {
if (publicProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
publicProfile_ = value;
onChanged();
} else {
publicProfileBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public Builder setPublicProfile(
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder builderForValue) {
if (publicProfileBuilder_ == null) {
publicProfile_ = builderForValue.build();
onChanged();
} else {
publicProfileBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public Builder mergePublicProfile(POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile value) {
if (publicProfileBuilder_ == null) {
if (publicProfile_ != null) {
publicProfile_ =
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.newBuilder(publicProfile_).mergeFrom(value).buildPartial();
} else {
publicProfile_ = value;
}
onChanged();
} else {
publicProfileBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public Builder clearPublicProfile() {
if (publicProfileBuilder_ == null) {
publicProfile_ = null;
onChanged();
} else {
publicProfile_ = null;
publicProfileBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder getPublicProfileBuilder() {
onChanged();
return getPublicProfileFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
public POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder getPublicProfileOrBuilder() {
if (publicProfileBuilder_ != null) {
return publicProfileBuilder_.getMessageOrBuilder();
} else {
return publicProfile_ == null ?
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.getDefaultInstance() : publicProfile_;
}
}
/**
* .POGOProtos.Data.Player.PlayerPublicProfile public_profile = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder>
getPublicProfileFieldBuilder() {
if (publicProfileBuilder_ == null) {
publicProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfile.Builder, POGOProtos.Data.Player.PlayerPublicProfileOuterClass.PlayerPublicProfileOrBuilder>(
getPublicProfile(),
getParentForChildren(),
isClean());
publicProfile_ = null;
}
return publicProfileBuilder_;
}
private java.util.List excludedPokemon_ =
java.util.Collections.emptyList();
private void ensureExcludedPokemonIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
excludedPokemon_ = new java.util.ArrayList(excludedPokemon_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder> excludedPokemonBuilder_;
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public java.util.List getExcludedPokemonList() {
if (excludedPokemonBuilder_ == null) {
return java.util.Collections.unmodifiableList(excludedPokemon_);
} else {
return excludedPokemonBuilder_.getMessageList();
}
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public int getExcludedPokemonCount() {
if (excludedPokemonBuilder_ == null) {
return excludedPokemon_.size();
} else {
return excludedPokemonBuilder_.getCount();
}
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon getExcludedPokemon(int index) {
if (excludedPokemonBuilder_ == null) {
return excludedPokemon_.get(index);
} else {
return excludedPokemonBuilder_.getMessage(index);
}
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder setExcludedPokemon(
int index, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon value) {
if (excludedPokemonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludedPokemonIsMutable();
excludedPokemon_.set(index, value);
onChanged();
} else {
excludedPokemonBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder setExcludedPokemon(
int index, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder builderForValue) {
if (excludedPokemonBuilder_ == null) {
ensureExcludedPokemonIsMutable();
excludedPokemon_.set(index, builderForValue.build());
onChanged();
} else {
excludedPokemonBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder addExcludedPokemon(POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon value) {
if (excludedPokemonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludedPokemonIsMutable();
excludedPokemon_.add(value);
onChanged();
} else {
excludedPokemonBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder addExcludedPokemon(
int index, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon value) {
if (excludedPokemonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludedPokemonIsMutable();
excludedPokemon_.add(index, value);
onChanged();
} else {
excludedPokemonBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder addExcludedPokemon(
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder builderForValue) {
if (excludedPokemonBuilder_ == null) {
ensureExcludedPokemonIsMutable();
excludedPokemon_.add(builderForValue.build());
onChanged();
} else {
excludedPokemonBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder addExcludedPokemon(
int index, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder builderForValue) {
if (excludedPokemonBuilder_ == null) {
ensureExcludedPokemonIsMutable();
excludedPokemon_.add(index, builderForValue.build());
onChanged();
} else {
excludedPokemonBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder addAllExcludedPokemon(
java.lang.Iterable extends POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon> values) {
if (excludedPokemonBuilder_ == null) {
ensureExcludedPokemonIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludedPokemon_);
onChanged();
} else {
excludedPokemonBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder clearExcludedPokemon() {
if (excludedPokemonBuilder_ == null) {
excludedPokemon_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
excludedPokemonBuilder_.clear();
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public Builder removeExcludedPokemon(int index) {
if (excludedPokemonBuilder_ == null) {
ensureExcludedPokemonIsMutable();
excludedPokemon_.remove(index);
onChanged();
} else {
excludedPokemonBuilder_.remove(index);
}
return this;
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder getExcludedPokemonBuilder(
int index) {
return getExcludedPokemonFieldBuilder().getBuilder(index);
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder getExcludedPokemonOrBuilder(
int index) {
if (excludedPokemonBuilder_ == null) {
return excludedPokemon_.get(index); } else {
return excludedPokemonBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public java.util.List extends POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder>
getExcludedPokemonOrBuilderList() {
if (excludedPokemonBuilder_ != null) {
return excludedPokemonBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(excludedPokemon_);
}
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder addExcludedPokemonBuilder() {
return getExcludedPokemonFieldBuilder().addBuilder(
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder addExcludedPokemonBuilder(
int index) {
return getExcludedPokemonFieldBuilder().addBuilder(
index, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.getDefaultInstance());
}
/**
* repeated .POGOProtos.Data.Trading.ExcludedPokemon excluded_pokemon = 3;
*/
public java.util.List
getExcludedPokemonBuilderList() {
return getExcludedPokemonFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder>
getExcludedPokemonFieldBuilder() {
if (excludedPokemonBuilder_ == null) {
excludedPokemonBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemon.Builder, POGOProtos.Data.Trading.ExcludedPokemonOuterClass.ExcludedPokemonOrBuilder>(
excludedPokemon_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
excludedPokemon_ = null;
}
return excludedPokemonBuilder_;
}
private POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon tradingPokemon_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon, POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.Builder, POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemonOrBuilder> tradingPokemonBuilder_;
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public boolean hasTradingPokemon() {
return tradingPokemonBuilder_ != null || tradingPokemon_ != null;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon getTradingPokemon() {
if (tradingPokemonBuilder_ == null) {
return tradingPokemon_ == null ? POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.getDefaultInstance() : tradingPokemon_;
} else {
return tradingPokemonBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public Builder setTradingPokemon(POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon value) {
if (tradingPokemonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tradingPokemon_ = value;
onChanged();
} else {
tradingPokemonBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public Builder setTradingPokemon(
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.Builder builderForValue) {
if (tradingPokemonBuilder_ == null) {
tradingPokemon_ = builderForValue.build();
onChanged();
} else {
tradingPokemonBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public Builder mergeTradingPokemon(POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon value) {
if (tradingPokemonBuilder_ == null) {
if (tradingPokemon_ != null) {
tradingPokemon_ =
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.newBuilder(tradingPokemon_).mergeFrom(value).buildPartial();
} else {
tradingPokemon_ = value;
}
onChanged();
} else {
tradingPokemonBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public Builder clearTradingPokemon() {
if (tradingPokemonBuilder_ == null) {
tradingPokemon_ = null;
onChanged();
} else {
tradingPokemon_ = null;
tradingPokemonBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.Builder getTradingPokemonBuilder() {
onChanged();
return getTradingPokemonFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
public POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemonOrBuilder getTradingPokemonOrBuilder() {
if (tradingPokemonBuilder_ != null) {
return tradingPokemonBuilder_.getMessageOrBuilder();
} else {
return tradingPokemon_ == null ?
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.getDefaultInstance() : tradingPokemon_;
}
}
/**
* .POGOProtos.Data.Trading.TradingPokemon trading_pokemon = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon, POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.Builder, POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemonOrBuilder>
getTradingPokemonFieldBuilder() {
if (tradingPokemonBuilder_ == null) {
tradingPokemonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon, POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemon.Builder, POGOProtos.Data.Trading.TradingPokemonOuterClass.TradingPokemonOrBuilder>(
getTradingPokemon(),
getParentForChildren(),
isClean());
tradingPokemon_ = null;
}
return tradingPokemonBuilder_;
}
private POGOProtos.Inventory.LootOuterClass.Loot bonus_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Inventory.LootOuterClass.Loot, POGOProtos.Inventory.LootOuterClass.Loot.Builder, POGOProtos.Inventory.LootOuterClass.LootOrBuilder> bonusBuilder_;
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public boolean hasBonus() {
return bonusBuilder_ != null || bonus_ != null;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public POGOProtos.Inventory.LootOuterClass.Loot getBonus() {
if (bonusBuilder_ == null) {
return bonus_ == null ? POGOProtos.Inventory.LootOuterClass.Loot.getDefaultInstance() : bonus_;
} else {
return bonusBuilder_.getMessage();
}
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public Builder setBonus(POGOProtos.Inventory.LootOuterClass.Loot value) {
if (bonusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bonus_ = value;
onChanged();
} else {
bonusBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public Builder setBonus(
POGOProtos.Inventory.LootOuterClass.Loot.Builder builderForValue) {
if (bonusBuilder_ == null) {
bonus_ = builderForValue.build();
onChanged();
} else {
bonusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public Builder mergeBonus(POGOProtos.Inventory.LootOuterClass.Loot value) {
if (bonusBuilder_ == null) {
if (bonus_ != null) {
bonus_ =
POGOProtos.Inventory.LootOuterClass.Loot.newBuilder(bonus_).mergeFrom(value).buildPartial();
} else {
bonus_ = value;
}
onChanged();
} else {
bonusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public Builder clearBonus() {
if (bonusBuilder_ == null) {
bonus_ = null;
onChanged();
} else {
bonus_ = null;
bonusBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public POGOProtos.Inventory.LootOuterClass.Loot.Builder getBonusBuilder() {
onChanged();
return getBonusFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
public POGOProtos.Inventory.LootOuterClass.LootOrBuilder getBonusOrBuilder() {
if (bonusBuilder_ != null) {
return bonusBuilder_.getMessageOrBuilder();
} else {
return bonus_ == null ?
POGOProtos.Inventory.LootOuterClass.Loot.getDefaultInstance() : bonus_;
}
}
/**
* .POGOProtos.Inventory.Loot bonus = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Inventory.LootOuterClass.Loot, POGOProtos.Inventory.LootOuterClass.Loot.Builder, POGOProtos.Inventory.LootOuterClass.LootOrBuilder>
getBonusFieldBuilder() {
if (bonusBuilder_ == null) {
bonusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Inventory.LootOuterClass.Loot, POGOProtos.Inventory.LootOuterClass.Loot.Builder, POGOProtos.Inventory.LootOuterClass.LootOrBuilder>(
getBonus(),
getParentForChildren(),
isClean());
bonus_ = null;
}
return bonusBuilder_;
}
private POGOProtos.Inventory.LootOuterClass.Loot price_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Inventory.LootOuterClass.Loot, POGOProtos.Inventory.LootOuterClass.Loot.Builder, POGOProtos.Inventory.LootOuterClass.LootOrBuilder> priceBuilder_;
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public boolean hasPrice() {
return priceBuilder_ != null || price_ != null;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public POGOProtos.Inventory.LootOuterClass.Loot getPrice() {
if (priceBuilder_ == null) {
return price_ == null ? POGOProtos.Inventory.LootOuterClass.Loot.getDefaultInstance() : price_;
} else {
return priceBuilder_.getMessage();
}
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public Builder setPrice(POGOProtos.Inventory.LootOuterClass.Loot value) {
if (priceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
price_ = value;
onChanged();
} else {
priceBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public Builder setPrice(
POGOProtos.Inventory.LootOuterClass.Loot.Builder builderForValue) {
if (priceBuilder_ == null) {
price_ = builderForValue.build();
onChanged();
} else {
priceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public Builder mergePrice(POGOProtos.Inventory.LootOuterClass.Loot value) {
if (priceBuilder_ == null) {
if (price_ != null) {
price_ =
POGOProtos.Inventory.LootOuterClass.Loot.newBuilder(price_).mergeFrom(value).buildPartial();
} else {
price_ = value;
}
onChanged();
} else {
priceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public Builder clearPrice() {
if (priceBuilder_ == null) {
price_ = null;
onChanged();
} else {
price_ = null;
priceBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public POGOProtos.Inventory.LootOuterClass.Loot.Builder getPriceBuilder() {
onChanged();
return getPriceFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
public POGOProtos.Inventory.LootOuterClass.LootOrBuilder getPriceOrBuilder() {
if (priceBuilder_ != null) {
return priceBuilder_.getMessageOrBuilder();
} else {
return price_ == null ?
POGOProtos.Inventory.LootOuterClass.Loot.getDefaultInstance() : price_;
}
}
/**
* .POGOProtos.Inventory.Loot price = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Inventory.LootOuterClass.Loot, POGOProtos.Inventory.LootOuterClass.Loot.Builder, POGOProtos.Inventory.LootOuterClass.LootOrBuilder>
getPriceFieldBuilder() {
if (priceBuilder_ == null) {
priceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Inventory.LootOuterClass.Loot, POGOProtos.Inventory.LootOuterClass.Loot.Builder, POGOProtos.Inventory.LootOuterClass.LootOrBuilder>(
getPrice(),
getParentForChildren(),
isClean());
price_ = null;
}
return priceBuilder_;
}
private boolean canAffordTrading_ ;
/**
* bool can_afford_trading = 7;
*/
public boolean getCanAffordTrading() {
return canAffordTrading_;
}
/**
* bool can_afford_trading = 7;
*/
public Builder setCanAffordTrading(boolean value) {
canAffordTrading_ = value;
onChanged();
return this;
}
/**
* bool can_afford_trading = 7;
*/
public Builder clearCanAffordTrading() {
canAffordTrading_ = false;
onChanged();
return this;
}
private boolean hasConfirmed_ ;
/**
* bool has_confirmed = 8;
*/
public boolean getHasConfirmed() {
return hasConfirmed_;
}
/**
* bool has_confirmed = 8;
*/
public Builder setHasConfirmed(boolean value) {
hasConfirmed_ = value;
onChanged();
return this;
}
/**
* bool has_confirmed = 8;
*/
public Builder clearHasConfirmed() {
hasConfirmed_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Data.Trading.TradingPlayer)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Trading.TradingPlayer)
private static final POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer();
}
public static POGOProtos.Data.Trading.TradingPlayerOuterClass.TradingPlayer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TradingPlayer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TradingPlayer(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.Trading.TradingPlayerOuterClass.TradingPlayer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Trading_TradingPlayer_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Trading_TradingPlayer_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/Trading/TradingPlayer." +
"proto\022\027POGOProtos.Data.Trading\032\037POGOProt" +
"os/Inventory/Loot.proto\0320POGOProtos/Data" +
"/Player/PlayerPublicProfile.proto\032,POGOP" +
"rotos/Data/Trading/TradingPokemon.proto\032" +
"-POGOProtos/Data/Trading/ExcludedPokemon" +
".proto\"\366\002\n\rTradingPlayer\022\021\n\tplayer_id\030\001 " +
"\001(\t\022C\n\016public_profile\030\002 \001(\0132+.POGOProtos" +
".Data.Player.PlayerPublicProfile\022B\n\020excl" +
"uded_pokemon\030\003 \003(\0132(.POGOProtos.Data.Tra" +
"ding.ExcludedPokemon\022@\n\017trading_pokemon\030" +
"\004 \001(\0132\'.POGOProtos.Data.Trading.TradingP" +
"okemon\022)\n\005bonus\030\005 \001(\0132\032.POGOProtos.Inven" +
"tory.Loot\022)\n\005price\030\006 \001(\0132\032.POGOProtos.In" +
"ventory.Loot\022\032\n\022can_afford_trading\030\007 \001(\010" +
"\022\025\n\rhas_confirmed\030\010 \001(\010b\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.Inventory.LootOuterClass.getDescriptor(),
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.getDescriptor(),
POGOProtos.Data.Trading.TradingPokemonOuterClass.getDescriptor(),
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Trading_TradingPlayer_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Trading_TradingPlayer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Trading_TradingPlayer_descriptor,
new java.lang.String[] { "PlayerId", "PublicProfile", "ExcludedPokemon", "TradingPokemon", "Bonus", "Price", "CanAffordTrading", "HasConfirmed", });
POGOProtos.Inventory.LootOuterClass.getDescriptor();
POGOProtos.Data.Player.PlayerPublicProfileOuterClass.getDescriptor();
POGOProtos.Data.Trading.TradingPokemonOuterClass.getDescriptor();
POGOProtos.Data.Trading.ExcludedPokemonOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy