POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Networking/Requests/Messages/OpenCombatChallengeMessage.proto
package POGOProtos.Networking.Requests.Messages;
public final class OpenCombatChallengeMessageOuterClass {
private OpenCombatChallengeMessageOuterClass() {}
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 OpenCombatChallengeMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessage)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
int getTypeValue();
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
POGOProtos.Enums.CombatTypeOuterClass.CombatType getType();
/**
* string challenge_id = 2;
*/
java.lang.String getChallengeId();
/**
* string challenge_id = 2;
*/
com.google.protobuf.ByteString
getChallengeIdBytes();
/**
* string combat_league_template_id = 3;
*/
java.lang.String getCombatLeagueTemplateId();
/**
* string combat_league_template_id = 3;
*/
com.google.protobuf.ByteString
getCombatLeagueTemplateIdBytes();
/**
* string opponent_player_id = 4;
*/
java.lang.String getOpponentPlayerId();
/**
* string opponent_player_id = 4;
*/
com.google.protobuf.ByteString
getOpponentPlayerIdBytes();
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
java.util.List getAttackingPokemonIdList();
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
int getAttackingPokemonIdCount();
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
long getAttackingPokemonId(int index);
}
/**
* Protobuf type {@code POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessage}
*/
public static final class OpenCombatChallengeMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessage)
OpenCombatChallengeMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpenCombatChallengeMessage.newBuilder() to construct.
private OpenCombatChallengeMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpenCombatChallengeMessage() {
type_ = 0;
challengeId_ = "";
combatLeagueTemplateId_ = "";
opponentPlayerId_ = "";
attackingPokemonId_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenCombatChallengeMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
challengeId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
combatLeagueTemplateId_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
opponentPlayerId_ = s;
break;
}
case 41: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
attackingPokemonId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
attackingPokemonId_.add(input.readFixed64());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
attackingPokemonId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
attackingPokemonId_.add(input.readFixed64());
}
input.popLimit(limit);
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_ & 0x00000010) == 0x00000010)) {
attackingPokemonId_ = java.util.Collections.unmodifiableList(attackingPokemonId_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.class, POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public POGOProtos.Enums.CombatTypeOuterClass.CombatType getType() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.CombatTypeOuterClass.CombatType result = POGOProtos.Enums.CombatTypeOuterClass.CombatType.valueOf(type_);
return result == null ? POGOProtos.Enums.CombatTypeOuterClass.CombatType.UNRECOGNIZED : result;
}
public static final int CHALLENGE_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object challengeId_;
/**
* string challenge_id = 2;
*/
public java.lang.String getChallengeId() {
java.lang.Object ref = challengeId_;
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();
challengeId_ = s;
return s;
}
}
/**
* string challenge_id = 2;
*/
public com.google.protobuf.ByteString
getChallengeIdBytes() {
java.lang.Object ref = challengeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
challengeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMBAT_LEAGUE_TEMPLATE_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object combatLeagueTemplateId_;
/**
* string combat_league_template_id = 3;
*/
public java.lang.String getCombatLeagueTemplateId() {
java.lang.Object ref = combatLeagueTemplateId_;
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();
combatLeagueTemplateId_ = s;
return s;
}
}
/**
* string combat_league_template_id = 3;
*/
public com.google.protobuf.ByteString
getCombatLeagueTemplateIdBytes() {
java.lang.Object ref = combatLeagueTemplateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
combatLeagueTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPPONENT_PLAYER_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object opponentPlayerId_;
/**
* string opponent_player_id = 4;
*/
public java.lang.String getOpponentPlayerId() {
java.lang.Object ref = opponentPlayerId_;
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();
opponentPlayerId_ = s;
return s;
}
}
/**
* string opponent_player_id = 4;
*/
public com.google.protobuf.ByteString
getOpponentPlayerIdBytes() {
java.lang.Object ref = opponentPlayerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opponentPlayerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTACKING_POKEMON_ID_FIELD_NUMBER = 5;
private java.util.List attackingPokemonId_;
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public java.util.List
getAttackingPokemonIdList() {
return attackingPokemonId_;
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public int getAttackingPokemonIdCount() {
return attackingPokemonId_.size();
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public long getAttackingPokemonId(int index) {
return attackingPokemonId_.get(index);
}
private int attackingPokemonIdMemoizedSerializedSize = -1;
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 (type_ != POGOProtos.Enums.CombatTypeOuterClass.CombatType.COMBAT_TYPE_UNSET.getNumber()) {
output.writeEnum(1, type_);
}
if (!getChallengeIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, challengeId_);
}
if (!getCombatLeagueTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, combatLeagueTemplateId_);
}
if (!getOpponentPlayerIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, opponentPlayerId_);
}
if (getAttackingPokemonIdList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(attackingPokemonIdMemoizedSerializedSize);
}
for (int i = 0; i < attackingPokemonId_.size(); i++) {
output.writeFixed64NoTag(attackingPokemonId_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != POGOProtos.Enums.CombatTypeOuterClass.CombatType.COMBAT_TYPE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!getChallengeIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, challengeId_);
}
if (!getCombatLeagueTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, combatLeagueTemplateId_);
}
if (!getOpponentPlayerIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, opponentPlayerId_);
}
{
int dataSize = 0;
dataSize = 8 * getAttackingPokemonIdList().size();
size += dataSize;
if (!getAttackingPokemonIdList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
attackingPokemonIdMemoizedSerializedSize = dataSize;
}
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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage)) {
return super.equals(obj);
}
POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage other = (POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getChallengeId()
.equals(other.getChallengeId());
result = result && getCombatLeagueTemplateId()
.equals(other.getCombatLeagueTemplateId());
result = result && getOpponentPlayerId()
.equals(other.getOpponentPlayerId());
result = result && getAttackingPokemonIdList()
.equals(other.getAttackingPokemonIdList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + CHALLENGE_ID_FIELD_NUMBER;
hash = (53 * hash) + getChallengeId().hashCode();
hash = (37 * hash) + COMBAT_LEAGUE_TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCombatLeagueTemplateId().hashCode();
hash = (37 * hash) + OPPONENT_PLAYER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOpponentPlayerId().hashCode();
if (getAttackingPokemonIdCount() > 0) {
hash = (37 * hash) + ATTACKING_POKEMON_ID_FIELD_NUMBER;
hash = (53 * hash) + getAttackingPokemonIdList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage 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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage 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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage 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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage 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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage 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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage 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.OpenCombatChallengeMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessage)
POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.class, POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.Builder.class);
}
// Construct using POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
challengeId_ = "";
combatLeagueTemplateId_ = "";
opponentPlayerId_ = "";
attackingPokemonId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_descriptor;
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage getDefaultInstanceForType() {
return POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage build() {
POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage buildPartial() {
POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage result = new POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.type_ = type_;
result.challengeId_ = challengeId_;
result.combatLeagueTemplateId_ = combatLeagueTemplateId_;
result.opponentPlayerId_ = opponentPlayerId_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
attackingPokemonId_ = java.util.Collections.unmodifiableList(attackingPokemonId_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.attackingPokemonId_ = attackingPokemonId_;
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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage) {
return mergeFrom((POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage other) {
if (other == POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getChallengeId().isEmpty()) {
challengeId_ = other.challengeId_;
onChanged();
}
if (!other.getCombatLeagueTemplateId().isEmpty()) {
combatLeagueTemplateId_ = other.combatLeagueTemplateId_;
onChanged();
}
if (!other.getOpponentPlayerId().isEmpty()) {
opponentPlayerId_ = other.opponentPlayerId_;
onChanged();
}
if (!other.attackingPokemonId_.isEmpty()) {
if (attackingPokemonId_.isEmpty()) {
attackingPokemonId_ = other.attackingPokemonId_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAttackingPokemonIdIsMutable();
attackingPokemonId_.addAll(other.attackingPokemonId_);
}
onChanged();
}
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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 0;
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public POGOProtos.Enums.CombatTypeOuterClass.CombatType getType() {
@SuppressWarnings("deprecation")
POGOProtos.Enums.CombatTypeOuterClass.CombatType result = POGOProtos.Enums.CombatTypeOuterClass.CombatType.valueOf(type_);
return result == null ? POGOProtos.Enums.CombatTypeOuterClass.CombatType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public Builder setType(POGOProtos.Enums.CombatTypeOuterClass.CombatType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Enums.CombatType type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object challengeId_ = "";
/**
* string challenge_id = 2;
*/
public java.lang.String getChallengeId() {
java.lang.Object ref = challengeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
challengeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string challenge_id = 2;
*/
public com.google.protobuf.ByteString
getChallengeIdBytes() {
java.lang.Object ref = challengeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
challengeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string challenge_id = 2;
*/
public Builder setChallengeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
challengeId_ = value;
onChanged();
return this;
}
/**
* string challenge_id = 2;
*/
public Builder clearChallengeId() {
challengeId_ = getDefaultInstance().getChallengeId();
onChanged();
return this;
}
/**
* string challenge_id = 2;
*/
public Builder setChallengeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
challengeId_ = value;
onChanged();
return this;
}
private java.lang.Object combatLeagueTemplateId_ = "";
/**
* string combat_league_template_id = 3;
*/
public java.lang.String getCombatLeagueTemplateId() {
java.lang.Object ref = combatLeagueTemplateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
combatLeagueTemplateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string combat_league_template_id = 3;
*/
public com.google.protobuf.ByteString
getCombatLeagueTemplateIdBytes() {
java.lang.Object ref = combatLeagueTemplateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
combatLeagueTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string combat_league_template_id = 3;
*/
public Builder setCombatLeagueTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
combatLeagueTemplateId_ = value;
onChanged();
return this;
}
/**
* string combat_league_template_id = 3;
*/
public Builder clearCombatLeagueTemplateId() {
combatLeagueTemplateId_ = getDefaultInstance().getCombatLeagueTemplateId();
onChanged();
return this;
}
/**
* string combat_league_template_id = 3;
*/
public Builder setCombatLeagueTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
combatLeagueTemplateId_ = value;
onChanged();
return this;
}
private java.lang.Object opponentPlayerId_ = "";
/**
* string opponent_player_id = 4;
*/
public java.lang.String getOpponentPlayerId() {
java.lang.Object ref = opponentPlayerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
opponentPlayerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string opponent_player_id = 4;
*/
public com.google.protobuf.ByteString
getOpponentPlayerIdBytes() {
java.lang.Object ref = opponentPlayerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opponentPlayerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string opponent_player_id = 4;
*/
public Builder setOpponentPlayerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
opponentPlayerId_ = value;
onChanged();
return this;
}
/**
* string opponent_player_id = 4;
*/
public Builder clearOpponentPlayerId() {
opponentPlayerId_ = getDefaultInstance().getOpponentPlayerId();
onChanged();
return this;
}
/**
* string opponent_player_id = 4;
*/
public Builder setOpponentPlayerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
opponentPlayerId_ = value;
onChanged();
return this;
}
private java.util.List attackingPokemonId_ = java.util.Collections.emptyList();
private void ensureAttackingPokemonIdIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
attackingPokemonId_ = new java.util.ArrayList(attackingPokemonId_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public java.util.List
getAttackingPokemonIdList() {
return java.util.Collections.unmodifiableList(attackingPokemonId_);
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public int getAttackingPokemonIdCount() {
return attackingPokemonId_.size();
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public long getAttackingPokemonId(int index) {
return attackingPokemonId_.get(index);
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public Builder setAttackingPokemonId(
int index, long value) {
ensureAttackingPokemonIdIsMutable();
attackingPokemonId_.set(index, value);
onChanged();
return this;
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public Builder addAttackingPokemonId(long value) {
ensureAttackingPokemonIdIsMutable();
attackingPokemonId_.add(value);
onChanged();
return this;
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public Builder addAllAttackingPokemonId(
java.lang.Iterable extends java.lang.Long> values) {
ensureAttackingPokemonIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attackingPokemonId_);
onChanged();
return this;
}
/**
* repeated fixed64 attacking_pokemon_id = 5;
*/
public Builder clearAttackingPokemonId() {
attackingPokemonId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
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.OpenCombatChallengeMessage)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessage)
private static final POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage();
}
public static POGOProtos.Networking.Requests.Messages.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OpenCombatChallengeMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenCombatChallengeMessage(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.OpenCombatChallengeMessageOuterClass.OpenCombatChallengeMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\nHPOGOProtos/Networking/Requests/Message" +
"s/OpenCombatChallengeMessage.proto\022\'POGO" +
"Protos.Networking.Requests.Messages\032!POG" +
"OProtos/Enums/CombatType.proto\"\273\001\n\032OpenC" +
"ombatChallengeMessage\022*\n\004type\030\001 \001(\0162\034.PO" +
"GOProtos.Enums.CombatType\022\024\n\014challenge_i" +
"d\030\002 \001(\t\022!\n\031combat_league_template_id\030\003 \001" +
"(\t\022\032\n\022opponent_player_id\030\004 \001(\t\022\034\n\024attack" +
"ing_pokemon_id\030\005 \003(\006b\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.CombatTypeOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Networking_Requests_Messages_OpenCombatChallengeMessage_descriptor,
new java.lang.String[] { "Type", "ChallengeId", "CombatLeagueTemplateId", "OpponentPlayerId", "AttackingPokemonId", });
POGOProtos.Enums.CombatTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy