POGOProtos.Inventory.EggIncubatorOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Inventory/EggIncubator.proto
package POGOProtos.Inventory;
public final class EggIncubatorOuterClass {
private EggIncubatorOuterClass() {}
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 EggIncubatorOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Inventory.EggIncubator)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
*/
java.lang.String getId();
/**
* string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
int getItemIdValue();
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getItemId();
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
int getIncubatorTypeValue();
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType getIncubatorType();
/**
* int32 uses_remaining = 4;
*/
int getUsesRemaining();
/**
*
* TODO: Check if is PokemonType
*
*
* uint64 pokemon_id = 5;
*/
long getPokemonId();
/**
* double start_km_walked = 6;
*/
double getStartKmWalked();
/**
* double target_km_walked = 7;
*/
double getTargetKmWalked();
}
/**
* Protobuf type {@code POGOProtos.Inventory.EggIncubator}
*/
public static final class EggIncubator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Inventory.EggIncubator)
EggIncubatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use EggIncubator.newBuilder() to construct.
private EggIncubator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EggIncubator() {
id_ = "";
itemId_ = 0;
incubatorType_ = 0;
usesRemaining_ = 0;
pokemonId_ = 0L;
startKmWalked_ = 0D;
targetKmWalked_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EggIncubator(
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();
id_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
itemId_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
incubatorType_ = rawValue;
break;
}
case 32: {
usesRemaining_ = input.readInt32();
break;
}
case 40: {
pokemonId_ = input.readUInt64();
break;
}
case 49: {
startKmWalked_ = input.readDouble();
break;
}
case 57: {
targetKmWalked_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Inventory.EggIncubatorOuterClass.internal_static_POGOProtos_Inventory_EggIncubator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Inventory.EggIncubatorOuterClass.internal_static_POGOProtos_Inventory_EggIncubator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.class, POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ITEM_ID_FIELD_NUMBER = 2;
private int itemId_;
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public int getItemIdValue() {
return itemId_;
}
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getItemId() {
@SuppressWarnings("deprecation")
POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId result = POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.valueOf(itemId_);
return result == null ? POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.UNRECOGNIZED : result;
}
public static final int INCUBATOR_TYPE_FIELD_NUMBER = 3;
private int incubatorType_;
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public int getIncubatorTypeValue() {
return incubatorType_;
}
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType getIncubatorType() {
@SuppressWarnings("deprecation")
POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType result = POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType.valueOf(incubatorType_);
return result == null ? POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType.UNRECOGNIZED : result;
}
public static final int USES_REMAINING_FIELD_NUMBER = 4;
private int usesRemaining_;
/**
* int32 uses_remaining = 4;
*/
public int getUsesRemaining() {
return usesRemaining_;
}
public static final int POKEMON_ID_FIELD_NUMBER = 5;
private long pokemonId_;
/**
*
* TODO: Check if is PokemonType
*
*
* uint64 pokemon_id = 5;
*/
public long getPokemonId() {
return pokemonId_;
}
public static final int START_KM_WALKED_FIELD_NUMBER = 6;
private double startKmWalked_;
/**
* double start_km_walked = 6;
*/
public double getStartKmWalked() {
return startKmWalked_;
}
public static final int TARGET_KM_WALKED_FIELD_NUMBER = 7;
private double targetKmWalked_;
/**
* double target_km_walked = 7;
*/
public double getTargetKmWalked() {
return targetKmWalked_;
}
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 (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (itemId_ != POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.ITEM_UNKNOWN.getNumber()) {
output.writeEnum(2, itemId_);
}
if (incubatorType_ != POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType.INCUBATOR_UNSET.getNumber()) {
output.writeEnum(3, incubatorType_);
}
if (usesRemaining_ != 0) {
output.writeInt32(4, usesRemaining_);
}
if (pokemonId_ != 0L) {
output.writeUInt64(5, pokemonId_);
}
if (startKmWalked_ != 0D) {
output.writeDouble(6, startKmWalked_);
}
if (targetKmWalked_ != 0D) {
output.writeDouble(7, targetKmWalked_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (itemId_ != POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.ITEM_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, itemId_);
}
if (incubatorType_ != POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType.INCUBATOR_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, incubatorType_);
}
if (usesRemaining_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, usesRemaining_);
}
if (pokemonId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, pokemonId_);
}
if (startKmWalked_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, startKmWalked_);
}
if (targetKmWalked_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, targetKmWalked_);
}
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.Inventory.EggIncubatorOuterClass.EggIncubator)) {
return super.equals(obj);
}
POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator other = (POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && itemId_ == other.itemId_;
result = result && incubatorType_ == other.incubatorType_;
result = result && (getUsesRemaining()
== other.getUsesRemaining());
result = result && (getPokemonId()
== other.getPokemonId());
result = result && (
java.lang.Double.doubleToLongBits(getStartKmWalked())
== java.lang.Double.doubleToLongBits(
other.getStartKmWalked()));
result = result && (
java.lang.Double.doubleToLongBits(getTargetKmWalked())
== java.lang.Double.doubleToLongBits(
other.getTargetKmWalked()));
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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + ITEM_ID_FIELD_NUMBER;
hash = (53 * hash) + itemId_;
hash = (37 * hash) + INCUBATOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + incubatorType_;
hash = (37 * hash) + USES_REMAINING_FIELD_NUMBER;
hash = (53 * hash) + getUsesRemaining();
hash = (37 * hash) + POKEMON_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPokemonId());
hash = (37 * hash) + START_KM_WALKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getStartKmWalked()));
hash = (37 * hash) + TARGET_KM_WALKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTargetKmWalked()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator 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.Inventory.EggIncubatorOuterClass.EggIncubator parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator 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.Inventory.EggIncubatorOuterClass.EggIncubator parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator 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.Inventory.EggIncubatorOuterClass.EggIncubator 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.Inventory.EggIncubator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Inventory.EggIncubator)
POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Inventory.EggIncubatorOuterClass.internal_static_POGOProtos_Inventory_EggIncubator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Inventory.EggIncubatorOuterClass.internal_static_POGOProtos_Inventory_EggIncubator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.class, POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.Builder.class);
}
// Construct using POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.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();
id_ = "";
itemId_ = 0;
incubatorType_ = 0;
usesRemaining_ = 0;
pokemonId_ = 0L;
startKmWalked_ = 0D;
targetKmWalked_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Inventory.EggIncubatorOuterClass.internal_static_POGOProtos_Inventory_EggIncubator_descriptor;
}
@java.lang.Override
public POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator getDefaultInstanceForType() {
return POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator build() {
POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator buildPartial() {
POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator result = new POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator(this);
result.id_ = id_;
result.itemId_ = itemId_;
result.incubatorType_ = incubatorType_;
result.usesRemaining_ = usesRemaining_;
result.pokemonId_ = pokemonId_;
result.startKmWalked_ = startKmWalked_;
result.targetKmWalked_ = targetKmWalked_;
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.Inventory.EggIncubatorOuterClass.EggIncubator) {
return mergeFrom((POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator other) {
if (other == POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.itemId_ != 0) {
setItemIdValue(other.getItemIdValue());
}
if (other.incubatorType_ != 0) {
setIncubatorTypeValue(other.getIncubatorTypeValue());
}
if (other.getUsesRemaining() != 0) {
setUsesRemaining(other.getUsesRemaining());
}
if (other.getPokemonId() != 0L) {
setPokemonId(other.getPokemonId());
}
if (other.getStartKmWalked() != 0D) {
setStartKmWalked(other.getStartKmWalked());
}
if (other.getTargetKmWalked() != 0D) {
setTargetKmWalked(other.getTargetKmWalked());
}
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.Inventory.EggIncubatorOuterClass.EggIncubator parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private int itemId_ = 0;
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public int getItemIdValue() {
return itemId_;
}
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public Builder setItemIdValue(int value) {
itemId_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getItemId() {
@SuppressWarnings("deprecation")
POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId result = POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.valueOf(itemId_);
return result == null ? POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public Builder setItemId(POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId value) {
if (value == null) {
throw new NullPointerException();
}
itemId_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Inventory.Item.ItemId item_id = 2;
*/
public Builder clearItemId() {
itemId_ = 0;
onChanged();
return this;
}
private int incubatorType_ = 0;
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public int getIncubatorTypeValue() {
return incubatorType_;
}
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public Builder setIncubatorTypeValue(int value) {
incubatorType_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType getIncubatorType() {
@SuppressWarnings("deprecation")
POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType result = POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType.valueOf(incubatorType_);
return result == null ? POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public Builder setIncubatorType(POGOProtos.Inventory.EggIncubatorTypeOuterClass.EggIncubatorType value) {
if (value == null) {
throw new NullPointerException();
}
incubatorType_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Inventory.EggIncubatorType incubator_type = 3;
*/
public Builder clearIncubatorType() {
incubatorType_ = 0;
onChanged();
return this;
}
private int usesRemaining_ ;
/**
* int32 uses_remaining = 4;
*/
public int getUsesRemaining() {
return usesRemaining_;
}
/**
* int32 uses_remaining = 4;
*/
public Builder setUsesRemaining(int value) {
usesRemaining_ = value;
onChanged();
return this;
}
/**
* int32 uses_remaining = 4;
*/
public Builder clearUsesRemaining() {
usesRemaining_ = 0;
onChanged();
return this;
}
private long pokemonId_ ;
/**
*
* TODO: Check if is PokemonType
*
*
* uint64 pokemon_id = 5;
*/
public long getPokemonId() {
return pokemonId_;
}
/**
*
* TODO: Check if is PokemonType
*
*
* uint64 pokemon_id = 5;
*/
public Builder setPokemonId(long value) {
pokemonId_ = value;
onChanged();
return this;
}
/**
*
* TODO: Check if is PokemonType
*
*
* uint64 pokemon_id = 5;
*/
public Builder clearPokemonId() {
pokemonId_ = 0L;
onChanged();
return this;
}
private double startKmWalked_ ;
/**
* double start_km_walked = 6;
*/
public double getStartKmWalked() {
return startKmWalked_;
}
/**
* double start_km_walked = 6;
*/
public Builder setStartKmWalked(double value) {
startKmWalked_ = value;
onChanged();
return this;
}
/**
* double start_km_walked = 6;
*/
public Builder clearStartKmWalked() {
startKmWalked_ = 0D;
onChanged();
return this;
}
private double targetKmWalked_ ;
/**
* double target_km_walked = 7;
*/
public double getTargetKmWalked() {
return targetKmWalked_;
}
/**
* double target_km_walked = 7;
*/
public Builder setTargetKmWalked(double value) {
targetKmWalked_ = value;
onChanged();
return this;
}
/**
* double target_km_walked = 7;
*/
public Builder clearTargetKmWalked() {
targetKmWalked_ = 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.Inventory.EggIncubator)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Inventory.EggIncubator)
private static final POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator();
}
public static POGOProtos.Inventory.EggIncubatorOuterClass.EggIncubator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EggIncubator parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EggIncubator(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.Inventory.EggIncubatorOuterClass.EggIncubator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Inventory_EggIncubator_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Inventory_EggIncubator_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/Inventory/EggIncubator.prot" +
"o\022\024POGOProtos.Inventory\032&POGOProtos/Inve" +
"ntory/Item/ItemId.proto\032+POGOProtos/Inve" +
"ntory/EggIncubatorType.proto\"\355\001\n\014EggIncu" +
"bator\022\n\n\002id\030\001 \001(\t\0222\n\007item_id\030\002 \001(\0162!.POG" +
"OProtos.Inventory.Item.ItemId\022>\n\016incubat" +
"or_type\030\003 \001(\0162&.POGOProtos.Inventory.Egg" +
"IncubatorType\022\026\n\016uses_remaining\030\004 \001(\005\022\022\n" +
"\npokemon_id\030\005 \001(\004\022\027\n\017start_km_walked\030\006 \001" +
"(\001\022\030\n\020target_km_walked\030\007 \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[] {
POGOProtos.Inventory.Item.ItemIdOuterClass.getDescriptor(),
POGOProtos.Inventory.EggIncubatorTypeOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Inventory_EggIncubator_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Inventory_EggIncubator_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Inventory_EggIncubator_descriptor,
new java.lang.String[] { "Id", "ItemId", "IncubatorType", "UsesRemaining", "PokemonId", "StartKmWalked", "TargetKmWalked", });
POGOProtos.Inventory.Item.ItemIdOuterClass.getDescriptor();
POGOProtos.Inventory.EggIncubatorTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy