POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Networking/Requests/Messages/StartGymBattleMessage.proto
package POGOProtos.Networking.Requests.Messages;
public final class StartGymBattleMessageOuterClass {
private StartGymBattleMessageOuterClass() {}
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 StartGymBattleMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Networking.Requests.Messages.StartGymBattleMessage)
com.google.protobuf.MessageOrBuilder {
/**
* string gym_id = 1;
*/
java.lang.String getGymId();
/**
* string gym_id = 1;
*/
com.google.protobuf.ByteString
getGymIdBytes();
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
java.util.List getAttackingPokemonIdsList();
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
int getAttackingPokemonIdsCount();
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
long getAttackingPokemonIds(int index);
/**
*
* needs to be fixed64, tested by Grover
*
*
* fixed64 defending_pokemon_id = 3;
*/
long getDefendingPokemonId();
/**
* double player_latitude = 4;
*/
double getPlayerLatitude();
/**
* double player_longitude = 5;
*/
double getPlayerLongitude();
}
/**
* Protobuf type {@code POGOProtos.Networking.Requests.Messages.StartGymBattleMessage}
*/
public static final class StartGymBattleMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Networking.Requests.Messages.StartGymBattleMessage)
StartGymBattleMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartGymBattleMessage.newBuilder() to construct.
private StartGymBattleMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartGymBattleMessage() {
gymId_ = "";
attackingPokemonIds_ = java.util.Collections.emptyList();
defendingPokemonId_ = 0L;
playerLatitude_ = 0D;
playerLongitude_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartGymBattleMessage(
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();
gymId_ = s;
break;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
attackingPokemonIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
attackingPokemonIds_.add(input.readFixed64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
attackingPokemonIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
attackingPokemonIds_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
case 25: {
defendingPokemonId_ = input.readFixed64();
break;
}
case 33: {
playerLatitude_ = input.readDouble();
break;
}
case 41: {
playerLongitude_ = input.readDouble();
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_ & 0x00000002) == 0x00000002)) {
attackingPokemonIds_ = java.util.Collections.unmodifiableList(attackingPokemonIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.class, POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.Builder.class);
}
private int bitField0_;
public static final int GYM_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object gymId_;
/**
* string gym_id = 1;
*/
public java.lang.String getGymId() {
java.lang.Object ref = gymId_;
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();
gymId_ = s;
return s;
}
}
/**
* string gym_id = 1;
*/
public com.google.protobuf.ByteString
getGymIdBytes() {
java.lang.Object ref = gymId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gymId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTACKING_POKEMON_IDS_FIELD_NUMBER = 2;
private java.util.List attackingPokemonIds_;
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public java.util.List
getAttackingPokemonIdsList() {
return attackingPokemonIds_;
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public int getAttackingPokemonIdsCount() {
return attackingPokemonIds_.size();
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public long getAttackingPokemonIds(int index) {
return attackingPokemonIds_.get(index);
}
private int attackingPokemonIdsMemoizedSerializedSize = -1;
public static final int DEFENDING_POKEMON_ID_FIELD_NUMBER = 3;
private long defendingPokemonId_;
/**
*
* needs to be fixed64, tested by Grover
*
*
* fixed64 defending_pokemon_id = 3;
*/
public long getDefendingPokemonId() {
return defendingPokemonId_;
}
public static final int PLAYER_LATITUDE_FIELD_NUMBER = 4;
private double playerLatitude_;
/**
* double player_latitude = 4;
*/
public double getPlayerLatitude() {
return playerLatitude_;
}
public static final int PLAYER_LONGITUDE_FIELD_NUMBER = 5;
private double playerLongitude_;
/**
* double player_longitude = 5;
*/
public double getPlayerLongitude() {
return playerLongitude_;
}
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 (!getGymIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gymId_);
}
if (getAttackingPokemonIdsList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(attackingPokemonIdsMemoizedSerializedSize);
}
for (int i = 0; i < attackingPokemonIds_.size(); i++) {
output.writeFixed64NoTag(attackingPokemonIds_.get(i));
}
if (defendingPokemonId_ != 0L) {
output.writeFixed64(3, defendingPokemonId_);
}
if (playerLatitude_ != 0D) {
output.writeDouble(4, playerLatitude_);
}
if (playerLongitude_ != 0D) {
output.writeDouble(5, playerLongitude_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getGymIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gymId_);
}
{
int dataSize = 0;
dataSize = 8 * getAttackingPokemonIdsList().size();
size += dataSize;
if (!getAttackingPokemonIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
attackingPokemonIdsMemoizedSerializedSize = dataSize;
}
if (defendingPokemonId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, defendingPokemonId_);
}
if (playerLatitude_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, playerLatitude_);
}
if (playerLongitude_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, playerLongitude_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage)) {
return super.equals(obj);
}
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage other = (POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage) obj;
boolean result = true;
result = result && getGymId()
.equals(other.getGymId());
result = result && getAttackingPokemonIdsList()
.equals(other.getAttackingPokemonIdsList());
result = result && (getDefendingPokemonId()
== other.getDefendingPokemonId());
result = result && (
java.lang.Double.doubleToLongBits(getPlayerLatitude())
== java.lang.Double.doubleToLongBits(
other.getPlayerLatitude()));
result = result && (
java.lang.Double.doubleToLongBits(getPlayerLongitude())
== java.lang.Double.doubleToLongBits(
other.getPlayerLongitude()));
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) + GYM_ID_FIELD_NUMBER;
hash = (53 * hash) + getGymId().hashCode();
if (getAttackingPokemonIdsCount() > 0) {
hash = (37 * hash) + ATTACKING_POKEMON_IDS_FIELD_NUMBER;
hash = (53 * hash) + getAttackingPokemonIdsList().hashCode();
}
hash = (37 * hash) + DEFENDING_POKEMON_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefendingPokemonId());
hash = (37 * hash) + PLAYER_LATITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPlayerLatitude()));
hash = (37 * hash) + PLAYER_LONGITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPlayerLongitude()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code POGOProtos.Networking.Requests.Messages.StartGymBattleMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Networking.Requests.Messages.StartGymBattleMessage)
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.class, POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.Builder.class);
}
// Construct using POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
gymId_ = "";
attackingPokemonIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
defendingPokemonId_ = 0L;
playerLatitude_ = 0D;
playerLongitude_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_descriptor;
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage getDefaultInstanceForType() {
return POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage build() {
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage buildPartial() {
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage result = new POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.gymId_ = gymId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
attackingPokemonIds_ = java.util.Collections.unmodifiableList(attackingPokemonIds_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.attackingPokemonIds_ = attackingPokemonIds_;
result.defendingPokemonId_ = defendingPokemonId_;
result.playerLatitude_ = playerLatitude_;
result.playerLongitude_ = playerLongitude_;
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.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage) {
return mergeFrom((POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage other) {
if (other == POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage.getDefaultInstance()) return this;
if (!other.getGymId().isEmpty()) {
gymId_ = other.gymId_;
onChanged();
}
if (!other.attackingPokemonIds_.isEmpty()) {
if (attackingPokemonIds_.isEmpty()) {
attackingPokemonIds_ = other.attackingPokemonIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAttackingPokemonIdsIsMutable();
attackingPokemonIds_.addAll(other.attackingPokemonIds_);
}
onChanged();
}
if (other.getDefendingPokemonId() != 0L) {
setDefendingPokemonId(other.getDefendingPokemonId());
}
if (other.getPlayerLatitude() != 0D) {
setPlayerLatitude(other.getPlayerLatitude());
}
if (other.getPlayerLongitude() != 0D) {
setPlayerLongitude(other.getPlayerLongitude());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object gymId_ = "";
/**
* string gym_id = 1;
*/
public java.lang.String getGymId() {
java.lang.Object ref = gymId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gymId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string gym_id = 1;
*/
public com.google.protobuf.ByteString
getGymIdBytes() {
java.lang.Object ref = gymId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gymId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string gym_id = 1;
*/
public Builder setGymId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
gymId_ = value;
onChanged();
return this;
}
/**
* string gym_id = 1;
*/
public Builder clearGymId() {
gymId_ = getDefaultInstance().getGymId();
onChanged();
return this;
}
/**
* string gym_id = 1;
*/
public Builder setGymIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
gymId_ = value;
onChanged();
return this;
}
private java.util.List attackingPokemonIds_ = java.util.Collections.emptyList();
private void ensureAttackingPokemonIdsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
attackingPokemonIds_ = new java.util.ArrayList(attackingPokemonIds_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public java.util.List
getAttackingPokemonIdsList() {
return java.util.Collections.unmodifiableList(attackingPokemonIds_);
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public int getAttackingPokemonIdsCount() {
return attackingPokemonIds_.size();
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public long getAttackingPokemonIds(int index) {
return attackingPokemonIds_.get(index);
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public Builder setAttackingPokemonIds(
int index, long value) {
ensureAttackingPokemonIdsIsMutable();
attackingPokemonIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public Builder addAttackingPokemonIds(long value) {
ensureAttackingPokemonIdsIsMutable();
attackingPokemonIds_.add(value);
onChanged();
return this;
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public Builder addAllAttackingPokemonIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureAttackingPokemonIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attackingPokemonIds_);
onChanged();
return this;
}
/**
* repeated fixed64 attacking_pokemon_ids = 2;
*/
public Builder clearAttackingPokemonIds() {
attackingPokemonIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private long defendingPokemonId_ ;
/**
*
* needs to be fixed64, tested by Grover
*
*
* fixed64 defending_pokemon_id = 3;
*/
public long getDefendingPokemonId() {
return defendingPokemonId_;
}
/**
*
* needs to be fixed64, tested by Grover
*
*
* fixed64 defending_pokemon_id = 3;
*/
public Builder setDefendingPokemonId(long value) {
defendingPokemonId_ = value;
onChanged();
return this;
}
/**
*
* needs to be fixed64, tested by Grover
*
*
* fixed64 defending_pokemon_id = 3;
*/
public Builder clearDefendingPokemonId() {
defendingPokemonId_ = 0L;
onChanged();
return this;
}
private double playerLatitude_ ;
/**
* double player_latitude = 4;
*/
public double getPlayerLatitude() {
return playerLatitude_;
}
/**
* double player_latitude = 4;
*/
public Builder setPlayerLatitude(double value) {
playerLatitude_ = value;
onChanged();
return this;
}
/**
* double player_latitude = 4;
*/
public Builder clearPlayerLatitude() {
playerLatitude_ = 0D;
onChanged();
return this;
}
private double playerLongitude_ ;
/**
* double player_longitude = 5;
*/
public double getPlayerLongitude() {
return playerLongitude_;
}
/**
* double player_longitude = 5;
*/
public Builder setPlayerLongitude(double value) {
playerLongitude_ = value;
onChanged();
return this;
}
/**
* double player_longitude = 5;
*/
public Builder clearPlayerLongitude() {
playerLongitude_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Networking.Requests.Messages.StartGymBattleMessage)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Networking.Requests.Messages.StartGymBattleMessage)
private static final POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage();
}
public static POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartGymBattleMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartGymBattleMessage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.StartGymBattleMessageOuterClass.StartGymBattleMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\nCPOGOProtos/Networking/Requests/Message" +
"s/StartGymBattleMessage.proto\022\'POGOProto" +
"s.Networking.Requests.Messages\"\227\001\n\025Start" +
"GymBattleMessage\022\016\n\006gym_id\030\001 \001(\t\022\035\n\025atta" +
"cking_pokemon_ids\030\002 \003(\006\022\034\n\024defending_pok" +
"emon_id\030\003 \001(\006\022\027\n\017player_latitude\030\004 \001(\001\022\030" +
"\n\020player_longitude\030\005 \001(\001b\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[] {
}, assigner);
internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Networking_Requests_Messages_StartGymBattleMessage_descriptor,
new java.lang.String[] { "GymId", "AttackingPokemonIds", "DefendingPokemonId", "PlayerLatitude", "PlayerLongitude", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy