POGOProtos.Data.Capture.CaptureAwardOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Capture/CaptureAward.proto
package POGOProtos.Data.Capture;
public final class CaptureAwardOuterClass {
private CaptureAwardOuterClass() {}
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 CaptureAwardOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Capture.CaptureAward)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
java.util.List getActivityTypeList();
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
int getActivityTypeCount();
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
POGOProtos.Enums.ActivityTypeOuterClass.ActivityType getActivityType(int index);
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
java.util.List
getActivityTypeValueList();
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
int getActivityTypeValue(int index);
/**
* repeated int32 xp = 2 [packed = true];
*/
java.util.List getXpList();
/**
* repeated int32 xp = 2 [packed = true];
*/
int getXpCount();
/**
* repeated int32 xp = 2 [packed = true];
*/
int getXp(int index);
/**
* repeated int32 candy = 3 [packed = true];
*/
java.util.List getCandyList();
/**
* repeated int32 candy = 3 [packed = true];
*/
int getCandyCount();
/**
* repeated int32 candy = 3 [packed = true];
*/
int getCandy(int index);
/**
* repeated int32 stardust = 4 [packed = true];
*/
java.util.List getStardustList();
/**
* repeated int32 stardust = 4 [packed = true];
*/
int getStardustCount();
/**
* repeated int32 stardust = 4 [packed = true];
*/
int getStardust(int index);
}
/**
* Protobuf type {@code POGOProtos.Data.Capture.CaptureAward}
*/
public static final class CaptureAward extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Capture.CaptureAward)
CaptureAwardOrBuilder {
private static final long serialVersionUID = 0L;
// Use CaptureAward.newBuilder() to construct.
private CaptureAward(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CaptureAward() {
activityType_ = java.util.Collections.emptyList();
xp_ = java.util.Collections.emptyList();
candy_ = java.util.Collections.emptyList();
stardust_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CaptureAward(
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();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
activityType_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
activityType_.add(rawValue);
break;
}
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
activityType_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
activityType_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
xp_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
xp_.add(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
xp_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
xp_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
candy_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
candy_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
candy_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
candy_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
stardust_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
stardust_.add(input.readInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
stardust_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
stardust_.add(input.readInt32());
}
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_ & 0x00000001) == 0x00000001)) {
activityType_ = java.util.Collections.unmodifiableList(activityType_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
xp_ = java.util.Collections.unmodifiableList(xp_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
candy_ = java.util.Collections.unmodifiableList(candy_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
stardust_ = java.util.Collections.unmodifiableList(stardust_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Capture.CaptureAwardOuterClass.internal_static_POGOProtos_Data_Capture_CaptureAward_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Capture.CaptureAwardOuterClass.internal_static_POGOProtos_Data_Capture_CaptureAward_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.class, POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.Builder.class);
}
public static final int ACTIVITY_TYPE_FIELD_NUMBER = 1;
private java.util.List activityType_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, POGOProtos.Enums.ActivityTypeOuterClass.ActivityType> activityType_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, POGOProtos.Enums.ActivityTypeOuterClass.ActivityType>() {
public POGOProtos.Enums.ActivityTypeOuterClass.ActivityType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
POGOProtos.Enums.ActivityTypeOuterClass.ActivityType result = POGOProtos.Enums.ActivityTypeOuterClass.ActivityType.valueOf(from);
return result == null ? POGOProtos.Enums.ActivityTypeOuterClass.ActivityType.UNRECOGNIZED : result;
}
};
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public java.util.List getActivityTypeList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, POGOProtos.Enums.ActivityTypeOuterClass.ActivityType>(activityType_, activityType_converter_);
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public int getActivityTypeCount() {
return activityType_.size();
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public POGOProtos.Enums.ActivityTypeOuterClass.ActivityType getActivityType(int index) {
return activityType_converter_.convert(activityType_.get(index));
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public java.util.List
getActivityTypeValueList() {
return activityType_;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public int getActivityTypeValue(int index) {
return activityType_.get(index);
}
private int activityTypeMemoizedSerializedSize;
public static final int XP_FIELD_NUMBER = 2;
private java.util.List xp_;
/**
* repeated int32 xp = 2 [packed = true];
*/
public java.util.List
getXpList() {
return xp_;
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public int getXpCount() {
return xp_.size();
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public int getXp(int index) {
return xp_.get(index);
}
private int xpMemoizedSerializedSize = -1;
public static final int CANDY_FIELD_NUMBER = 3;
private java.util.List candy_;
/**
* repeated int32 candy = 3 [packed = true];
*/
public java.util.List
getCandyList() {
return candy_;
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public int getCandyCount() {
return candy_.size();
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public int getCandy(int index) {
return candy_.get(index);
}
private int candyMemoizedSerializedSize = -1;
public static final int STARDUST_FIELD_NUMBER = 4;
private java.util.List stardust_;
/**
* repeated int32 stardust = 4 [packed = true];
*/
public java.util.List
getStardustList() {
return stardust_;
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public int getStardustCount() {
return stardust_.size();
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public int getStardust(int index) {
return stardust_.get(index);
}
private int stardustMemoizedSerializedSize = -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 (getActivityTypeList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(activityTypeMemoizedSerializedSize);
}
for (int i = 0; i < activityType_.size(); i++) {
output.writeEnumNoTag(activityType_.get(i));
}
if (getXpList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(xpMemoizedSerializedSize);
}
for (int i = 0; i < xp_.size(); i++) {
output.writeInt32NoTag(xp_.get(i));
}
if (getCandyList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(candyMemoizedSerializedSize);
}
for (int i = 0; i < candy_.size(); i++) {
output.writeInt32NoTag(candy_.get(i));
}
if (getStardustList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(stardustMemoizedSerializedSize);
}
for (int i = 0; i < stardust_.size(); i++) {
output.writeInt32NoTag(stardust_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < activityType_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(activityType_.get(i));
}
size += dataSize;
if (!getActivityTypeList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}activityTypeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < xp_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(xp_.get(i));
}
size += dataSize;
if (!getXpList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
xpMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < candy_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(candy_.get(i));
}
size += dataSize;
if (!getCandyList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
candyMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < stardust_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(stardust_.get(i));
}
size += dataSize;
if (!getStardustList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
stardustMemoizedSerializedSize = 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.Data.Capture.CaptureAwardOuterClass.CaptureAward)) {
return super.equals(obj);
}
POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward other = (POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward) obj;
boolean result = true;
result = result && activityType_.equals(other.activityType_);
result = result && getXpList()
.equals(other.getXpList());
result = result && getCandyList()
.equals(other.getCandyList());
result = result && getStardustList()
.equals(other.getStardustList());
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();
if (getActivityTypeCount() > 0) {
hash = (37 * hash) + ACTIVITY_TYPE_FIELD_NUMBER;
hash = (53 * hash) + activityType_.hashCode();
}
if (getXpCount() > 0) {
hash = (37 * hash) + XP_FIELD_NUMBER;
hash = (53 * hash) + getXpList().hashCode();
}
if (getCandyCount() > 0) {
hash = (37 * hash) + CANDY_FIELD_NUMBER;
hash = (53 * hash) + getCandyList().hashCode();
}
if (getStardustCount() > 0) {
hash = (37 * hash) + STARDUST_FIELD_NUMBER;
hash = (53 * hash) + getStardustList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code POGOProtos.Data.Capture.CaptureAward}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Capture.CaptureAward)
POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAwardOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Capture.CaptureAwardOuterClass.internal_static_POGOProtos_Data_Capture_CaptureAward_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Capture.CaptureAwardOuterClass.internal_static_POGOProtos_Data_Capture_CaptureAward_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.class, POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.Builder.class);
}
// Construct using POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.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();
activityType_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
xp_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
candy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
stardust_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Capture.CaptureAwardOuterClass.internal_static_POGOProtos_Data_Capture_CaptureAward_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward getDefaultInstanceForType() {
return POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward build() {
POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward buildPartial() {
POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward result = new POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
activityType_ = java.util.Collections.unmodifiableList(activityType_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.activityType_ = activityType_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
xp_ = java.util.Collections.unmodifiableList(xp_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.xp_ = xp_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
candy_ = java.util.Collections.unmodifiableList(candy_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.candy_ = candy_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
stardust_ = java.util.Collections.unmodifiableList(stardust_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.stardust_ = stardust_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward) {
return mergeFrom((POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward other) {
if (other == POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward.getDefaultInstance()) return this;
if (!other.activityType_.isEmpty()) {
if (activityType_.isEmpty()) {
activityType_ = other.activityType_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActivityTypeIsMutable();
activityType_.addAll(other.activityType_);
}
onChanged();
}
if (!other.xp_.isEmpty()) {
if (xp_.isEmpty()) {
xp_ = other.xp_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureXpIsMutable();
xp_.addAll(other.xp_);
}
onChanged();
}
if (!other.candy_.isEmpty()) {
if (candy_.isEmpty()) {
candy_ = other.candy_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCandyIsMutable();
candy_.addAll(other.candy_);
}
onChanged();
}
if (!other.stardust_.isEmpty()) {
if (stardust_.isEmpty()) {
stardust_ = other.stardust_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureStardustIsMutable();
stardust_.addAll(other.stardust_);
}
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.Data.Capture.CaptureAwardOuterClass.CaptureAward parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List activityType_ =
java.util.Collections.emptyList();
private void ensureActivityTypeIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
activityType_ = new java.util.ArrayList(activityType_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public java.util.List getActivityTypeList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, POGOProtos.Enums.ActivityTypeOuterClass.ActivityType>(activityType_, activityType_converter_);
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public int getActivityTypeCount() {
return activityType_.size();
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public POGOProtos.Enums.ActivityTypeOuterClass.ActivityType getActivityType(int index) {
return activityType_converter_.convert(activityType_.get(index));
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder setActivityType(
int index, POGOProtos.Enums.ActivityTypeOuterClass.ActivityType value) {
if (value == null) {
throw new NullPointerException();
}
ensureActivityTypeIsMutable();
activityType_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder addActivityType(POGOProtos.Enums.ActivityTypeOuterClass.ActivityType value) {
if (value == null) {
throw new NullPointerException();
}
ensureActivityTypeIsMutable();
activityType_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder addAllActivityType(
java.lang.Iterable extends POGOProtos.Enums.ActivityTypeOuterClass.ActivityType> values) {
ensureActivityTypeIsMutable();
for (POGOProtos.Enums.ActivityTypeOuterClass.ActivityType value : values) {
activityType_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder clearActivityType() {
activityType_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public java.util.List
getActivityTypeValueList() {
return java.util.Collections.unmodifiableList(activityType_);
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public int getActivityTypeValue(int index) {
return activityType_.get(index);
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder setActivityTypeValue(
int index, int value) {
ensureActivityTypeIsMutable();
activityType_.set(index, value);
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder addActivityTypeValue(int value) {
ensureActivityTypeIsMutable();
activityType_.add(value);
onChanged();
return this;
}
/**
* repeated .POGOProtos.Enums.ActivityType activity_type = 1 [packed = true];
*/
public Builder addAllActivityTypeValue(
java.lang.Iterable values) {
ensureActivityTypeIsMutable();
for (int value : values) {
activityType_.add(value);
}
onChanged();
return this;
}
private java.util.List xp_ = java.util.Collections.emptyList();
private void ensureXpIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
xp_ = new java.util.ArrayList(xp_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public java.util.List
getXpList() {
return java.util.Collections.unmodifiableList(xp_);
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public int getXpCount() {
return xp_.size();
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public int getXp(int index) {
return xp_.get(index);
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public Builder setXp(
int index, int value) {
ensureXpIsMutable();
xp_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public Builder addXp(int value) {
ensureXpIsMutable();
xp_.add(value);
onChanged();
return this;
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public Builder addAllXp(
java.lang.Iterable extends java.lang.Integer> values) {
ensureXpIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, xp_);
onChanged();
return this;
}
/**
* repeated int32 xp = 2 [packed = true];
*/
public Builder clearXp() {
xp_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List candy_ = java.util.Collections.emptyList();
private void ensureCandyIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
candy_ = new java.util.ArrayList(candy_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public java.util.List
getCandyList() {
return java.util.Collections.unmodifiableList(candy_);
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public int getCandyCount() {
return candy_.size();
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public int getCandy(int index) {
return candy_.get(index);
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public Builder setCandy(
int index, int value) {
ensureCandyIsMutable();
candy_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public Builder addCandy(int value) {
ensureCandyIsMutable();
candy_.add(value);
onChanged();
return this;
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public Builder addAllCandy(
java.lang.Iterable extends java.lang.Integer> values) {
ensureCandyIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, candy_);
onChanged();
return this;
}
/**
* repeated int32 candy = 3 [packed = true];
*/
public Builder clearCandy() {
candy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private java.util.List stardust_ = java.util.Collections.emptyList();
private void ensureStardustIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
stardust_ = new java.util.ArrayList(stardust_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public java.util.List
getStardustList() {
return java.util.Collections.unmodifiableList(stardust_);
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public int getStardustCount() {
return stardust_.size();
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public int getStardust(int index) {
return stardust_.get(index);
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public Builder setStardust(
int index, int value) {
ensureStardustIsMutable();
stardust_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public Builder addStardust(int value) {
ensureStardustIsMutable();
stardust_.add(value);
onChanged();
return this;
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public Builder addAllStardust(
java.lang.Iterable extends java.lang.Integer> values) {
ensureStardustIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stardust_);
onChanged();
return this;
}
/**
* repeated int32 stardust = 4 [packed = true];
*/
public Builder clearStardust() {
stardust_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Data.Capture.CaptureAward)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Capture.CaptureAward)
private static final POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward();
}
public static POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CaptureAward parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CaptureAward(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public POGOProtos.Data.Capture.CaptureAwardOuterClass.CaptureAward getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Capture_CaptureAward_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Capture_CaptureAward_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n*POGOProtos/Data/Capture/CaptureAward.p" +
"roto\022\027POGOProtos.Data.Capture\032#POGOProto" +
"s/Enums/ActivityType.proto\"\202\001\n\014CaptureAw" +
"ard\0229\n\ractivity_type\030\001 \003(\0162\036.POGOProtos." +
"Enums.ActivityTypeB\002\020\001\022\016\n\002xp\030\002 \003(\005B\002\020\001\022\021" +
"\n\005candy\030\003 \003(\005B\002\020\001\022\024\n\010stardust\030\004 \003(\005B\002\020\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.Enums.ActivityTypeOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Capture_CaptureAward_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Capture_CaptureAward_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Capture_CaptureAward_descriptor,
new java.lang.String[] { "ActivityType", "Xp", "Candy", "Stardust", });
POGOProtos.Enums.ActivityTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy