POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Networking/Responses/SetBuddyPokemonResponse.proto
package POGOProtos.Networking.Responses;
public final class SetBuddyPokemonResponseOuterClass {
private SetBuddyPokemonResponseOuterClass() {}
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 SetBuddyPokemonResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Networking.Responses.SetBuddyPokemonResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
int getResultValue();
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result getResult();
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
boolean hasUpdatedBuddy();
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon getUpdatedBuddy();
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemonOrBuilder getUpdatedBuddyOrBuilder();
}
/**
* Protobuf type {@code POGOProtos.Networking.Responses.SetBuddyPokemonResponse}
*/
public static final class SetBuddyPokemonResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Networking.Responses.SetBuddyPokemonResponse)
SetBuddyPokemonResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetBuddyPokemonResponse.newBuilder() to construct.
private SetBuddyPokemonResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetBuddyPokemonResponse() {
result_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetBuddyPokemonResponse(
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();
result_ = rawValue;
break;
}
case 18: {
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.Builder subBuilder = null;
if (updatedBuddy_ != null) {
subBuilder = updatedBuddy_.toBuilder();
}
updatedBuddy_ = input.readMessage(POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updatedBuddy_);
updatedBuddy_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.class, POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNEST = 0;
*/
UNEST(0),
/**
* SUCCESS = 1;
*/
SUCCESS(1),
/**
* ERROR_POKEMON_DEPLOYED = 2;
*/
ERROR_POKEMON_DEPLOYED(2),
/**
* ERROR_POKEMON_NOT_OWNED = 3;
*/
ERROR_POKEMON_NOT_OWNED(3),
/**
* ERROR_POKEMON_IS_EGG = 4;
*/
ERROR_POKEMON_IS_EGG(4),
/**
* ERROR_INVALID_POKEMON = 5;
*/
ERROR_INVALID_POKEMON(5),
UNRECOGNIZED(-1),
;
/**
* UNEST = 0;
*/
public static final int UNEST_VALUE = 0;
/**
* SUCCESS = 1;
*/
public static final int SUCCESS_VALUE = 1;
/**
* ERROR_POKEMON_DEPLOYED = 2;
*/
public static final int ERROR_POKEMON_DEPLOYED_VALUE = 2;
/**
* ERROR_POKEMON_NOT_OWNED = 3;
*/
public static final int ERROR_POKEMON_NOT_OWNED_VALUE = 3;
/**
* ERROR_POKEMON_IS_EGG = 4;
*/
public static final int ERROR_POKEMON_IS_EGG_VALUE = 4;
/**
* ERROR_INVALID_POKEMON = 5;
*/
public static final int ERROR_INVALID_POKEMON_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Result valueOf(int value) {
return forNumber(value);
}
public static Result forNumber(int value) {
switch (value) {
case 0: return UNEST;
case 1: return SUCCESS;
case 2: return ERROR_POKEMON_DEPLOYED;
case 3: return ERROR_POKEMON_NOT_OWNED;
case 4: return ERROR_POKEMON_IS_EGG;
case 5: return ERROR_INVALID_POKEMON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Result> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Result findValueByNumber(int number) {
return Result.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.getDescriptor().getEnumTypes().get(0);
}
private static final Result[] VALUES = values();
public static Result valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Result(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result)
}
public static final int RESULT_FIELD_NUMBER = 1;
private int result_;
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public int getResultValue() {
return result_;
}
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result getResult() {
@SuppressWarnings("deprecation")
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result result = POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result.valueOf(result_);
return result == null ? POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result.UNRECOGNIZED : result;
}
public static final int UPDATED_BUDDY_FIELD_NUMBER = 2;
private POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon updatedBuddy_;
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public boolean hasUpdatedBuddy() {
return updatedBuddy_ != null;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon getUpdatedBuddy() {
return updatedBuddy_ == null ? POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.getDefaultInstance() : updatedBuddy_;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemonOrBuilder getUpdatedBuddyOrBuilder() {
return getUpdatedBuddy();
}
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 (result_ != POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result.UNEST.getNumber()) {
output.writeEnum(1, result_);
}
if (updatedBuddy_ != null) {
output.writeMessage(2, getUpdatedBuddy());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result.UNEST.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, result_);
}
if (updatedBuddy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdatedBuddy());
}
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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse)) {
return super.equals(obj);
}
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse other = (POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse) obj;
boolean result = true;
result = result && result_ == other.result_;
result = result && (hasUpdatedBuddy() == other.hasUpdatedBuddy());
if (hasUpdatedBuddy()) {
result = result && getUpdatedBuddy()
.equals(other.getUpdatedBuddy());
}
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) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
if (hasUpdatedBuddy()) {
hash = (37 * hash) + UPDATED_BUDDY_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedBuddy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse 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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse 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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse 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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse 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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse 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.Responses.SetBuddyPokemonResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Networking.Responses.SetBuddyPokemonResponse)
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.class, POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Builder.class);
}
// Construct using POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.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();
result_ = 0;
if (updatedBuddyBuilder_ == null) {
updatedBuddy_ = null;
} else {
updatedBuddy_ = null;
updatedBuddyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_descriptor;
}
@java.lang.Override
public POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse getDefaultInstanceForType() {
return POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse build() {
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse buildPartial() {
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse result = new POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse(this);
result.result_ = result_;
if (updatedBuddyBuilder_ == null) {
result.updatedBuddy_ = updatedBuddy_;
} else {
result.updatedBuddy_ = updatedBuddyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse) {
return mergeFrom((POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse other) {
if (other == POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.getDefaultInstance()) return this;
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.hasUpdatedBuddy()) {
mergeUpdatedBuddy(other.getUpdatedBuddy());
}
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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int result_ = 0;
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public int getResultValue() {
return result_;
}
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result getResult() {
@SuppressWarnings("deprecation")
POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result result = POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result.valueOf(result_);
return result == null ? POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public Builder setResult(POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse.Result value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Networking.Responses.SetBuddyPokemonResponse.Result result = 1;
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon updatedBuddy_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon, POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.Builder, POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemonOrBuilder> updatedBuddyBuilder_;
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public boolean hasUpdatedBuddy() {
return updatedBuddyBuilder_ != null || updatedBuddy_ != null;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon getUpdatedBuddy() {
if (updatedBuddyBuilder_ == null) {
return updatedBuddy_ == null ? POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.getDefaultInstance() : updatedBuddy_;
} else {
return updatedBuddyBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public Builder setUpdatedBuddy(POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon value) {
if (updatedBuddyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedBuddy_ = value;
onChanged();
} else {
updatedBuddyBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public Builder setUpdatedBuddy(
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.Builder builderForValue) {
if (updatedBuddyBuilder_ == null) {
updatedBuddy_ = builderForValue.build();
onChanged();
} else {
updatedBuddyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public Builder mergeUpdatedBuddy(POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon value) {
if (updatedBuddyBuilder_ == null) {
if (updatedBuddy_ != null) {
updatedBuddy_ =
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.newBuilder(updatedBuddy_).mergeFrom(value).buildPartial();
} else {
updatedBuddy_ = value;
}
onChanged();
} else {
updatedBuddyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public Builder clearUpdatedBuddy() {
if (updatedBuddyBuilder_ == null) {
updatedBuddy_ = null;
onChanged();
} else {
updatedBuddy_ = null;
updatedBuddyBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.Builder getUpdatedBuddyBuilder() {
onChanged();
return getUpdatedBuddyFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
public POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemonOrBuilder getUpdatedBuddyOrBuilder() {
if (updatedBuddyBuilder_ != null) {
return updatedBuddyBuilder_.getMessageOrBuilder();
} else {
return updatedBuddy_ == null ?
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.getDefaultInstance() : updatedBuddy_;
}
}
/**
* .POGOProtos.Data.BuddyPokemon updated_buddy = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon, POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.Builder, POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemonOrBuilder>
getUpdatedBuddyFieldBuilder() {
if (updatedBuddyBuilder_ == null) {
updatedBuddyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon, POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemon.Builder, POGOProtos.Data.BuddyPokemonOuterClass.BuddyPokemonOrBuilder>(
getUpdatedBuddy(),
getParentForChildren(),
isClean());
updatedBuddy_ = null;
}
return updatedBuddyBuilder_;
}
@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.Responses.SetBuddyPokemonResponse)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Networking.Responses.SetBuddyPokemonResponse)
private static final POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse();
}
public static POGOProtos.Networking.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetBuddyPokemonResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetBuddyPokemonResponse(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.Responses.SetBuddyPokemonResponseOuterClass.SetBuddyPokemonResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_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/Networking/Responses/SetBud" +
"dyPokemonResponse.proto\022\037POGOProtos.Netw" +
"orking.Responses\032\"POGOProtos/Data/BuddyP" +
"okemon.proto\"\261\002\n\027SetBuddyPokemonResponse" +
"\022O\n\006result\030\001 \001(\0162?.POGOProtos.Networking" +
".Responses.SetBuddyPokemonResponse.Resul" +
"t\0224\n\rupdated_buddy\030\002 \001(\0132\035.POGOProtos.Da" +
"ta.BuddyPokemon\"\216\001\n\006Result\022\t\n\005UNEST\020\000\022\013\n" +
"\007SUCCESS\020\001\022\032\n\026ERROR_POKEMON_DEPLOYED\020\002\022\033" +
"\n\027ERROR_POKEMON_NOT_OWNED\020\003\022\030\n\024ERROR_POK" +
"EMON_IS_EGG\020\004\022\031\n\025ERROR_INVALID_POKEMON\020\005" +
"b\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.Data.BuddyPokemonOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Networking_Responses_SetBuddyPokemonResponse_descriptor,
new java.lang.String[] { "Result", "UpdatedBuddy", });
POGOProtos.Data.BuddyPokemonOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy