POGOProtos.Data.Fitness.FitnessSampleOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Fitness/FitnessSample.proto
package POGOProtos.Data.Fitness;
public final class FitnessSampleOuterClass {
private FitnessSampleOuterClass() {}
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 FitnessSampleOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Fitness.FitnessSample)
com.google.protobuf.MessageOrBuilder {
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
int getSampleTypeValue();
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType getSampleType();
/**
* int64 sample_start_timestamp_ms = 2;
*/
long getSampleStartTimestampMs();
/**
* int64 sample_end_timestamp_ms = 3;
*/
long getSampleEndTimestampMs();
/**
* double value = 4;
*/
double getValue();
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
int getSourceTypeValue();
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType getSourceType();
}
/**
* Protobuf type {@code POGOProtos.Data.Fitness.FitnessSample}
*/
public static final class FitnessSample extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Fitness.FitnessSample)
FitnessSampleOrBuilder {
private static final long serialVersionUID = 0L;
// Use FitnessSample.newBuilder() to construct.
private FitnessSample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FitnessSample() {
sampleType_ = 0;
sampleStartTimestampMs_ = 0L;
sampleEndTimestampMs_ = 0L;
value_ = 0D;
sourceType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FitnessSample(
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();
sampleType_ = rawValue;
break;
}
case 16: {
sampleStartTimestampMs_ = input.readInt64();
break;
}
case 24: {
sampleEndTimestampMs_ = input.readInt64();
break;
}
case 33: {
value_ = input.readDouble();
break;
}
case 40: {
int rawValue = input.readEnum();
sourceType_ = rawValue;
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.Fitness.FitnessSampleOuterClass.internal_static_POGOProtos_Data_Fitness_FitnessSample_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Fitness.FitnessSampleOuterClass.internal_static_POGOProtos_Data_Fitness_FitnessSample_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.class, POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType}
*/
public enum FitnessSampleType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SAMPLE_UNSET = 0;
*/
SAMPLE_UNSET(0),
/**
* STEPS = 1;
*/
STEPS(1),
/**
* WALKING_DISTANCE_METERS = 2;
*/
WALKING_DISTANCE_METERS(2),
/**
* WHEELCHAIR_DISTANCE_METERS = 3;
*/
WHEELCHAIR_DISTANCE_METERS(3),
/**
* CALORIES_KCALS = 4;
*/
CALORIES_KCALS(4),
/**
* WHEELCHAIR_PUSH_COUNT = 5;
*/
WHEELCHAIR_PUSH_COUNT(5),
/**
* EXERCISE_TIME_MI = 6;
*/
EXERCISE_TIME_MI(6),
UNRECOGNIZED(-1),
;
/**
* SAMPLE_UNSET = 0;
*/
public static final int SAMPLE_UNSET_VALUE = 0;
/**
* STEPS = 1;
*/
public static final int STEPS_VALUE = 1;
/**
* WALKING_DISTANCE_METERS = 2;
*/
public static final int WALKING_DISTANCE_METERS_VALUE = 2;
/**
* WHEELCHAIR_DISTANCE_METERS = 3;
*/
public static final int WHEELCHAIR_DISTANCE_METERS_VALUE = 3;
/**
* CALORIES_KCALS = 4;
*/
public static final int CALORIES_KCALS_VALUE = 4;
/**
* WHEELCHAIR_PUSH_COUNT = 5;
*/
public static final int WHEELCHAIR_PUSH_COUNT_VALUE = 5;
/**
* EXERCISE_TIME_MI = 6;
*/
public static final int EXERCISE_TIME_MI_VALUE = 6;
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 FitnessSampleType valueOf(int value) {
return forNumber(value);
}
public static FitnessSampleType forNumber(int value) {
switch (value) {
case 0: return SAMPLE_UNSET;
case 1: return STEPS;
case 2: return WALKING_DISTANCE_METERS;
case 3: return WHEELCHAIR_DISTANCE_METERS;
case 4: return CALORIES_KCALS;
case 5: return WHEELCHAIR_PUSH_COUNT;
case 6: return EXERCISE_TIME_MI;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FitnessSampleType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FitnessSampleType findValueByNumber(int number) {
return FitnessSampleType.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.Fitness.FitnessSampleOuterClass.FitnessSample.getDescriptor().getEnumTypes().get(0);
}
private static final FitnessSampleType[] VALUES = values();
public static FitnessSampleType 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 FitnessSampleType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType)
}
/**
* Protobuf enum {@code POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType}
*/
public enum FitnessSourceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SOURCE_UNSET = 0;
*/
SOURCE_UNSET(0),
/**
* HEALTHKIT = 1;
*/
HEALTHKIT(1),
/**
* GOOGLE_FIT = 2;
*/
GOOGLE_FIT(2),
/**
* APPLE_WATCH = 3;
*/
APPLE_WATCH(3),
/**
* GPS = 4;
*/
GPS(4),
UNRECOGNIZED(-1),
;
/**
* SOURCE_UNSET = 0;
*/
public static final int SOURCE_UNSET_VALUE = 0;
/**
* HEALTHKIT = 1;
*/
public static final int HEALTHKIT_VALUE = 1;
/**
* GOOGLE_FIT = 2;
*/
public static final int GOOGLE_FIT_VALUE = 2;
/**
* APPLE_WATCH = 3;
*/
public static final int APPLE_WATCH_VALUE = 3;
/**
* GPS = 4;
*/
public static final int GPS_VALUE = 4;
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 FitnessSourceType valueOf(int value) {
return forNumber(value);
}
public static FitnessSourceType forNumber(int value) {
switch (value) {
case 0: return SOURCE_UNSET;
case 1: return HEALTHKIT;
case 2: return GOOGLE_FIT;
case 3: return APPLE_WATCH;
case 4: return GPS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FitnessSourceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FitnessSourceType findValueByNumber(int number) {
return FitnessSourceType.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.Fitness.FitnessSampleOuterClass.FitnessSample.getDescriptor().getEnumTypes().get(1);
}
private static final FitnessSourceType[] VALUES = values();
public static FitnessSourceType 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 FitnessSourceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType)
}
public static final int SAMPLE_TYPE_FIELD_NUMBER = 1;
private int sampleType_;
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public int getSampleTypeValue() {
return sampleType_;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType getSampleType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType result = POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType.valueOf(sampleType_);
return result == null ? POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType.UNRECOGNIZED : result;
}
public static final int SAMPLE_START_TIMESTAMP_MS_FIELD_NUMBER = 2;
private long sampleStartTimestampMs_;
/**
* int64 sample_start_timestamp_ms = 2;
*/
public long getSampleStartTimestampMs() {
return sampleStartTimestampMs_;
}
public static final int SAMPLE_END_TIMESTAMP_MS_FIELD_NUMBER = 3;
private long sampleEndTimestampMs_;
/**
* int64 sample_end_timestamp_ms = 3;
*/
public long getSampleEndTimestampMs() {
return sampleEndTimestampMs_;
}
public static final int VALUE_FIELD_NUMBER = 4;
private double value_;
/**
* double value = 4;
*/
public double getValue() {
return value_;
}
public static final int SOURCE_TYPE_FIELD_NUMBER = 5;
private int sourceType_;
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public int getSourceTypeValue() {
return sourceType_;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType getSourceType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType result = POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType.valueOf(sourceType_);
return result == null ? POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType.UNRECOGNIZED : result;
}
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 (sampleType_ != POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType.SAMPLE_UNSET.getNumber()) {
output.writeEnum(1, sampleType_);
}
if (sampleStartTimestampMs_ != 0L) {
output.writeInt64(2, sampleStartTimestampMs_);
}
if (sampleEndTimestampMs_ != 0L) {
output.writeInt64(3, sampleEndTimestampMs_);
}
if (value_ != 0D) {
output.writeDouble(4, value_);
}
if (sourceType_ != POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType.SOURCE_UNSET.getNumber()) {
output.writeEnum(5, sourceType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sampleType_ != POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType.SAMPLE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, sampleType_);
}
if (sampleStartTimestampMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, sampleStartTimestampMs_);
}
if (sampleEndTimestampMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, sampleEndTimestampMs_);
}
if (value_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, value_);
}
if (sourceType_ != POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType.SOURCE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, sourceType_);
}
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.Fitness.FitnessSampleOuterClass.FitnessSample)) {
return super.equals(obj);
}
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample other = (POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample) obj;
boolean result = true;
result = result && sampleType_ == other.sampleType_;
result = result && (getSampleStartTimestampMs()
== other.getSampleStartTimestampMs());
result = result && (getSampleEndTimestampMs()
== other.getSampleEndTimestampMs());
result = result && (
java.lang.Double.doubleToLongBits(getValue())
== java.lang.Double.doubleToLongBits(
other.getValue()));
result = result && sourceType_ == other.sourceType_;
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) + SAMPLE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + sampleType_;
hash = (37 * hash) + SAMPLE_START_TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSampleStartTimestampMs());
hash = (37 * hash) + SAMPLE_END_TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSampleEndTimestampMs());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + sourceType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample 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.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample 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.Fitness.FitnessSampleOuterClass.FitnessSample parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample 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.Fitness.FitnessSampleOuterClass.FitnessSample parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample 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.Fitness.FitnessSampleOuterClass.FitnessSample 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.Fitness.FitnessSample}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Fitness.FitnessSample)
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSampleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Fitness.FitnessSampleOuterClass.internal_static_POGOProtos_Data_Fitness_FitnessSample_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Fitness.FitnessSampleOuterClass.internal_static_POGOProtos_Data_Fitness_FitnessSample_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.class, POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.Builder.class);
}
// Construct using POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.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();
sampleType_ = 0;
sampleStartTimestampMs_ = 0L;
sampleEndTimestampMs_ = 0L;
value_ = 0D;
sourceType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Fitness.FitnessSampleOuterClass.internal_static_POGOProtos_Data_Fitness_FitnessSample_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample getDefaultInstanceForType() {
return POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample build() {
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample buildPartial() {
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample result = new POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample(this);
result.sampleType_ = sampleType_;
result.sampleStartTimestampMs_ = sampleStartTimestampMs_;
result.sampleEndTimestampMs_ = sampleEndTimestampMs_;
result.value_ = value_;
result.sourceType_ = sourceType_;
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.Fitness.FitnessSampleOuterClass.FitnessSample) {
return mergeFrom((POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample other) {
if (other == POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.getDefaultInstance()) return this;
if (other.sampleType_ != 0) {
setSampleTypeValue(other.getSampleTypeValue());
}
if (other.getSampleStartTimestampMs() != 0L) {
setSampleStartTimestampMs(other.getSampleStartTimestampMs());
}
if (other.getSampleEndTimestampMs() != 0L) {
setSampleEndTimestampMs(other.getSampleEndTimestampMs());
}
if (other.getValue() != 0D) {
setValue(other.getValue());
}
if (other.sourceType_ != 0) {
setSourceTypeValue(other.getSourceTypeValue());
}
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.Fitness.FitnessSampleOuterClass.FitnessSample parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sampleType_ = 0;
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public int getSampleTypeValue() {
return sampleType_;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public Builder setSampleTypeValue(int value) {
sampleType_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType getSampleType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType result = POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType.valueOf(sampleType_);
return result == null ? POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public Builder setSampleType(POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSampleType value) {
if (value == null) {
throw new NullPointerException();
}
sampleType_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSampleType sample_type = 1;
*/
public Builder clearSampleType() {
sampleType_ = 0;
onChanged();
return this;
}
private long sampleStartTimestampMs_ ;
/**
* int64 sample_start_timestamp_ms = 2;
*/
public long getSampleStartTimestampMs() {
return sampleStartTimestampMs_;
}
/**
* int64 sample_start_timestamp_ms = 2;
*/
public Builder setSampleStartTimestampMs(long value) {
sampleStartTimestampMs_ = value;
onChanged();
return this;
}
/**
* int64 sample_start_timestamp_ms = 2;
*/
public Builder clearSampleStartTimestampMs() {
sampleStartTimestampMs_ = 0L;
onChanged();
return this;
}
private long sampleEndTimestampMs_ ;
/**
* int64 sample_end_timestamp_ms = 3;
*/
public long getSampleEndTimestampMs() {
return sampleEndTimestampMs_;
}
/**
* int64 sample_end_timestamp_ms = 3;
*/
public Builder setSampleEndTimestampMs(long value) {
sampleEndTimestampMs_ = value;
onChanged();
return this;
}
/**
* int64 sample_end_timestamp_ms = 3;
*/
public Builder clearSampleEndTimestampMs() {
sampleEndTimestampMs_ = 0L;
onChanged();
return this;
}
private double value_ ;
/**
* double value = 4;
*/
public double getValue() {
return value_;
}
/**
* double value = 4;
*/
public Builder setValue(double value) {
value_ = value;
onChanged();
return this;
}
/**
* double value = 4;
*/
public Builder clearValue() {
value_ = 0D;
onChanged();
return this;
}
private int sourceType_ = 0;
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public int getSourceTypeValue() {
return sourceType_;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public Builder setSourceTypeValue(int value) {
sourceType_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType getSourceType() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType result = POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType.valueOf(sourceType_);
return result == null ? POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public Builder setSourceType(POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample.FitnessSourceType value) {
if (value == null) {
throw new NullPointerException();
}
sourceType_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Fitness.FitnessSample.FitnessSourceType source_type = 5;
*/
public Builder clearSourceType() {
sourceType_ = 0;
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.Fitness.FitnessSample)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Fitness.FitnessSample)
private static final POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample();
}
public static POGOProtos.Data.Fitness.FitnessSampleOuterClass.FitnessSample getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FitnessSample parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FitnessSample(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.Fitness.FitnessSampleOuterClass.FitnessSample getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Fitness_FitnessSample_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Fitness_FitnessSample_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/Fitness/FitnessSample." +
"proto\022\027POGOProtos.Data.Fitness\"\225\004\n\rFitne" +
"ssSample\022M\n\013sample_type\030\001 \001(\01628.POGOProt" +
"os.Data.Fitness.FitnessSample.FitnessSam" +
"pleType\022!\n\031sample_start_timestamp_ms\030\002 \001" +
"(\003\022\037\n\027sample_end_timestamp_ms\030\003 \001(\003\022\r\n\005v" +
"alue\030\004 \001(\001\022M\n\013source_type\030\005 \001(\01628.POGOPr" +
"otos.Data.Fitness.FitnessSample.FitnessS" +
"ourceType\"\262\001\n\021FitnessSampleType\022\020\n\014SAMPL" +
"E_UNSET\020\000\022\t\n\005STEPS\020\001\022\033\n\027WALKING_DISTANCE" +
"_METERS\020\002\022\036\n\032WHEELCHAIR_DISTANCE_METERS\020" +
"\003\022\022\n\016CALORIES_KCALS\020\004\022\031\n\025WHEELCHAIR_PUSH" +
"_COUNT\020\005\022\024\n\020EXERCISE_TIME_MI\020\006\"^\n\021Fitnes" +
"sSourceType\022\020\n\014SOURCE_UNSET\020\000\022\r\n\tHEALTHK" +
"IT\020\001\022\016\n\nGOOGLE_FIT\020\002\022\017\n\013APPLE_WATCH\020\003\022\007\n" +
"\003GPS\020\004b\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[] {
}, assigner);
internal_static_POGOProtos_Data_Fitness_FitnessSample_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Fitness_FitnessSample_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Fitness_FitnessSample_descriptor,
new java.lang.String[] { "SampleType", "SampleStartTimestampMs", "SampleEndTimestampMs", "Value", "SourceType", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy