POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Sfida/SfidaMetricsUpdate.proto
package POGOProtos.Data.Sfida;
public final class SfidaMetricsUpdateOuterClass {
private SfidaMetricsUpdateOuterClass() {}
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 SfidaMetricsUpdateOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Sfida.SfidaMetricsUpdate)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
int getUpdateTypeValue();
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType getUpdateType();
/**
* int64 timestamp_ms = 2;
*/
long getTimestampMs();
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
boolean hasMetrics();
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics getMetrics();
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetricsOrBuilder getMetricsOrBuilder();
}
/**
* Protobuf type {@code POGOProtos.Data.Sfida.SfidaMetricsUpdate}
*/
public static final class SfidaMetricsUpdate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Sfida.SfidaMetricsUpdate)
SfidaMetricsUpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use SfidaMetricsUpdate.newBuilder() to construct.
private SfidaMetricsUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SfidaMetricsUpdate() {
updateType_ = 0;
timestampMs_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SfidaMetricsUpdate(
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();
updateType_ = rawValue;
break;
}
case 16: {
timestampMs_ = input.readInt64();
break;
}
case 26: {
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.Builder subBuilder = null;
if (metrics_ != null) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = 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.Data.Sfida.SfidaMetricsUpdateOuterClass.internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.class, POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType}
*/
public enum UpdateType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSET = 0;
*/
UNSET(0),
/**
* INITIALIZATION = 1;
*/
INITIALIZATION(1),
/**
* ACCUMULATION = 2;
*/
ACCUMULATION(2),
UNRECOGNIZED(-1),
;
/**
* UNSET = 0;
*/
public static final int UNSET_VALUE = 0;
/**
* INITIALIZATION = 1;
*/
public static final int INITIALIZATION_VALUE = 1;
/**
* ACCUMULATION = 2;
*/
public static final int ACCUMULATION_VALUE = 2;
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 UpdateType valueOf(int value) {
return forNumber(value);
}
public static UpdateType forNumber(int value) {
switch (value) {
case 0: return UNSET;
case 1: return INITIALIZATION;
case 2: return ACCUMULATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UpdateType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UpdateType findValueByNumber(int number) {
return UpdateType.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.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.getDescriptor().getEnumTypes().get(0);
}
private static final UpdateType[] VALUES = values();
public static UpdateType 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 UpdateType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType)
}
public static final int UPDATE_TYPE_FIELD_NUMBER = 1;
private int updateType_;
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public int getUpdateTypeValue() {
return updateType_;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType getUpdateType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType result = POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType.valueOf(updateType_);
return result == null ? POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType.UNRECOGNIZED : result;
}
public static final int TIMESTAMP_MS_FIELD_NUMBER = 2;
private long timestampMs_;
/**
* int64 timestamp_ms = 2;
*/
public long getTimestampMs() {
return timestampMs_;
}
public static final int METRICS_FIELD_NUMBER = 3;
private POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics metrics_;
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public boolean hasMetrics() {
return metrics_ != null;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics getMetrics() {
return metrics_ == null ? POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.getDefaultInstance() : metrics_;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetricsOrBuilder getMetricsOrBuilder() {
return getMetrics();
}
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 (updateType_ != POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType.UNSET.getNumber()) {
output.writeEnum(1, updateType_);
}
if (timestampMs_ != 0L) {
output.writeInt64(2, timestampMs_);
}
if (metrics_ != null) {
output.writeMessage(3, getMetrics());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (updateType_ != POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType.UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, updateType_);
}
if (timestampMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, timestampMs_);
}
if (metrics_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetrics());
}
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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate)) {
return super.equals(obj);
}
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate other = (POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate) obj;
boolean result = true;
result = result && updateType_ == other.updateType_;
result = result && (getTimestampMs()
== other.getTimestampMs());
result = result && (hasMetrics() == other.hasMetrics());
if (hasMetrics()) {
result = result && getMetrics()
.equals(other.getMetrics());
}
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) + UPDATE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + updateType_;
hash = (37 * hash) + TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestampMs());
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate 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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate 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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate 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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate 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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate 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.Sfida.SfidaMetricsUpdate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Sfida.SfidaMetricsUpdate)
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.class, POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.Builder.class);
}
// Construct using POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.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();
updateType_ = 0;
timestampMs_ = 0L;
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate getDefaultInstanceForType() {
return POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate build() {
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate buildPartial() {
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate result = new POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate(this);
result.updateType_ = updateType_;
result.timestampMs_ = timestampMs_;
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.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.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate) {
return mergeFrom((POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate other) {
if (other == POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.getDefaultInstance()) return this;
if (other.updateType_ != 0) {
setUpdateTypeValue(other.getUpdateTypeValue());
}
if (other.getTimestampMs() != 0L) {
setTimestampMs(other.getTimestampMs());
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int updateType_ = 0;
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public int getUpdateTypeValue() {
return updateType_;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public Builder setUpdateTypeValue(int value) {
updateType_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType getUpdateType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType result = POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType.valueOf(updateType_);
return result == null ? POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public Builder setUpdateType(POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate.UpdateType value) {
if (value == null) {
throw new NullPointerException();
}
updateType_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetricsUpdate.UpdateType update_type = 1;
*/
public Builder clearUpdateType() {
updateType_ = 0;
onChanged();
return this;
}
private long timestampMs_ ;
/**
* int64 timestamp_ms = 2;
*/
public long getTimestampMs() {
return timestampMs_;
}
/**
* int64 timestamp_ms = 2;
*/
public Builder setTimestampMs(long value) {
timestampMs_ = value;
onChanged();
return this;
}
/**
* int64 timestamp_ms = 2;
*/
public Builder clearTimestampMs() {
timestampMs_ = 0L;
onChanged();
return this;
}
private POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics metrics_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics, POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.Builder, POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetricsOrBuilder> metricsBuilder_;
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public boolean hasMetrics() {
return metricsBuilder_ != null || metrics_ != null;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public Builder setMetrics(POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
return this;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public Builder setMetrics(
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public Builder mergeMetrics(POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics value) {
if (metricsBuilder_ == null) {
if (metrics_ != null) {
metrics_ =
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this;
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.Builder getMetricsBuilder() {
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
public POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.getDefaultInstance() : metrics_;
}
}
/**
* .POGOProtos.Data.Sfida.SfidaMetrics metrics = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics, POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.Builder, POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics, POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetrics.Builder, POGOProtos.Data.Sfida.SfidaMetricsOuterClass.SfidaMetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
@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.Sfida.SfidaMetricsUpdate)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Sfida.SfidaMetricsUpdate)
private static final POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate();
}
public static POGOProtos.Data.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SfidaMetricsUpdate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SfidaMetricsUpdate(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.Sfida.SfidaMetricsUpdateOuterClass.SfidaMetricsUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_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/Sfida/SfidaMetricsUpda" +
"te.proto\022\025POGOProtos.Data.Sfida\032(POGOPro" +
"tos/Data/Sfida/SfidaMetrics.proto\"\352\001\n\022Sf" +
"idaMetricsUpdate\022I\n\013update_type\030\001 \001(\01624." +
"POGOProtos.Data.Sfida.SfidaMetricsUpdate" +
".UpdateType\022\024\n\014timestamp_ms\030\002 \001(\003\0224\n\007met" +
"rics\030\003 \001(\0132#.POGOProtos.Data.Sfida.Sfida" +
"Metrics\"=\n\nUpdateType\022\t\n\005UNSET\020\000\022\022\n\016INIT" +
"IALIZATION\020\001\022\020\n\014ACCUMULATION\020\002b\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.Sfida.SfidaMetricsOuterClass.getDescriptor(),
}, assigner);
internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Sfida_SfidaMetricsUpdate_descriptor,
new java.lang.String[] { "UpdateType", "TimestampMs", "Metrics", });
POGOProtos.Data.Sfida.SfidaMetricsOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy