All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grpc.leaderboard._ScoreRange Maven / Gradle / Ivy

There is a newer version: 0.119.4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: leaderboard.proto

package grpc.leaderboard;

/**
 * 
 * Query APIs using ScoreRange may match more than the limit of 8192 elements. These apis will
 * include an offset and limit parameter pair, which can be used to page through score ranges
 * matching many elements.
 *
 * ScoreRange models half-open ranges: 0..4 refers to scores 0, 1.1234, 2.5 and 3.999.
 * 
* * Protobuf type {@code leaderboard._ScoreRange} */ public final class _ScoreRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:leaderboard._ScoreRange) _ScoreRangeOrBuilder { private static final long serialVersionUID = 0L; // Use _ScoreRange.newBuilder() to construct. private _ScoreRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _ScoreRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _ScoreRange(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__ScoreRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__ScoreRange_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.leaderboard._ScoreRange.class, grpc.leaderboard._ScoreRange.Builder.class); } private int minCase_ = 0; @SuppressWarnings("serial") private java.lang.Object min_; public enum MinCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNBOUNDED_MIN(1), MIN_INCLUSIVE(5), MIN_NOT_SET(0); private final int value; private MinCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MinCase valueOf(int value) { return forNumber(value); } public static MinCase forNumber(int value) { switch (value) { case 1: return UNBOUNDED_MIN; case 5: return MIN_INCLUSIVE; case 0: return MIN_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MinCase getMinCase() { return MinCase.forNumber( minCase_); } private int maxCase_ = 0; @SuppressWarnings("serial") private java.lang.Object max_; public enum MaxCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNBOUNDED_MAX(3), MAX_EXCLUSIVE(6), MAX_NOT_SET(0); private final int value; private MaxCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MaxCase valueOf(int value) { return forNumber(value); } public static MaxCase forNumber(int value) { switch (value) { case 3: return UNBOUNDED_MAX; case 6: return MAX_EXCLUSIVE; case 0: return MAX_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MaxCase getMaxCase() { return MaxCase.forNumber( maxCase_); } public static final int UNBOUNDED_MIN_FIELD_NUMBER = 1; /** * .common._Unbounded unbounded_min = 1; * @return Whether the unboundedMin field is set. */ @java.lang.Override public boolean hasUnboundedMin() { return minCase_ == 1; } /** * .common._Unbounded unbounded_min = 1; * @return The unboundedMin. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMin() { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } /** * .common._Unbounded unbounded_min = 1; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMinOrBuilder() { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } public static final int MIN_INCLUSIVE_FIELD_NUMBER = 5; /** *
   * IEEE 754 single precision 64 bit floating point number.
   * Momento does not support NaN or Inf in leaderboards.
   * 
* * double min_inclusive = 5; * @return Whether the minInclusive field is set. */ @java.lang.Override public boolean hasMinInclusive() { return minCase_ == 5; } /** *
   * IEEE 754 single precision 64 bit floating point number.
   * Momento does not support NaN or Inf in leaderboards.
   * 
* * double min_inclusive = 5; * @return The minInclusive. */ @java.lang.Override public double getMinInclusive() { if (minCase_ == 5) { return (java.lang.Double) min_; } return 0D; } public static final int UNBOUNDED_MAX_FIELD_NUMBER = 3; /** * .common._Unbounded unbounded_max = 3; * @return Whether the unboundedMax field is set. */ @java.lang.Override public boolean hasUnboundedMax() { return maxCase_ == 3; } /** * .common._Unbounded unbounded_max = 3; * @return The unboundedMax. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMax() { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } /** * .common._Unbounded unbounded_max = 3; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMaxOrBuilder() { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } public static final int MAX_EXCLUSIVE_FIELD_NUMBER = 6; /** *
   * IEEE 754 single precision 64 bit floating point number.
   * Momento does not support NaN or Inf in leaderboards.
   * 
* * double max_exclusive = 6; * @return Whether the maxExclusive field is set. */ @java.lang.Override public boolean hasMaxExclusive() { return maxCase_ == 6; } /** *
   * IEEE 754 single precision 64 bit floating point number.
   * Momento does not support NaN or Inf in leaderboards.
   * 
* * double max_exclusive = 6; * @return The maxExclusive. */ @java.lang.Override public double getMaxExclusive() { if (maxCase_ == 6) { return (java.lang.Double) max_; } return 0D; } 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 (minCase_ == 1) { output.writeMessage(1, (grpc.common._Unbounded) min_); } if (maxCase_ == 3) { output.writeMessage(3, (grpc.common._Unbounded) max_); } if (minCase_ == 5) { output.writeDouble( 5, (double)((java.lang.Double) min_)); } if (maxCase_ == 6) { output.writeDouble( 6, (double)((java.lang.Double) max_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (grpc.common._Unbounded) min_); } if (maxCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (grpc.common._Unbounded) max_); } if (minCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 5, (double)((java.lang.Double) min_)); } if (maxCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 6, (double)((java.lang.Double) max_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.leaderboard._ScoreRange)) { return super.equals(obj); } grpc.leaderboard._ScoreRange other = (grpc.leaderboard._ScoreRange) obj; if (!getMinCase().equals(other.getMinCase())) return false; switch (minCase_) { case 1: if (!getUnboundedMin() .equals(other.getUnboundedMin())) return false; break; case 5: if (java.lang.Double.doubleToLongBits(getMinInclusive()) != java.lang.Double.doubleToLongBits( other.getMinInclusive())) return false; break; case 0: default: } if (!getMaxCase().equals(other.getMaxCase())) return false; switch (maxCase_) { case 3: if (!getUnboundedMax() .equals(other.getUnboundedMax())) return false; break; case 6: if (java.lang.Double.doubleToLongBits(getMaxExclusive()) != java.lang.Double.doubleToLongBits( other.getMaxExclusive())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (minCase_) { case 1: hash = (37 * hash) + UNBOUNDED_MIN_FIELD_NUMBER; hash = (53 * hash) + getUnboundedMin().hashCode(); break; case 5: hash = (37 * hash) + MIN_INCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMinInclusive())); break; case 0: default: } switch (maxCase_) { case 3: hash = (37 * hash) + UNBOUNDED_MAX_FIELD_NUMBER; hash = (53 * hash) + getUnboundedMax().hashCode(); break; case 6: hash = (37 * hash) + MAX_EXCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxExclusive())); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.leaderboard._ScoreRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.leaderboard._ScoreRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.leaderboard._ScoreRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.leaderboard._ScoreRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.leaderboard._ScoreRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.leaderboard._ScoreRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.leaderboard._ScoreRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.leaderboard._ScoreRange 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 grpc.leaderboard._ScoreRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.leaderboard._ScoreRange 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 grpc.leaderboard._ScoreRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.leaderboard._ScoreRange 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(grpc.leaderboard._ScoreRange 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; } /** *
   * Query APIs using ScoreRange may match more than the limit of 8192 elements. These apis will
   * include an offset and limit parameter pair, which can be used to page through score ranges
   * matching many elements.
   *
   * ScoreRange models half-open ranges: 0..4 refers to scores 0, 1.1234, 2.5 and 3.999.
   * 
* * Protobuf type {@code leaderboard._ScoreRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:leaderboard._ScoreRange) grpc.leaderboard._ScoreRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__ScoreRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__ScoreRange_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.leaderboard._ScoreRange.class, grpc.leaderboard._ScoreRange.Builder.class); } // Construct using grpc.leaderboard._ScoreRange.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (unboundedMinBuilder_ != null) { unboundedMinBuilder_.clear(); } if (unboundedMaxBuilder_ != null) { unboundedMaxBuilder_.clear(); } minCase_ = 0; min_ = null; maxCase_ = 0; max_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__ScoreRange_descriptor; } @java.lang.Override public grpc.leaderboard._ScoreRange getDefaultInstanceForType() { return grpc.leaderboard._ScoreRange.getDefaultInstance(); } @java.lang.Override public grpc.leaderboard._ScoreRange build() { grpc.leaderboard._ScoreRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.leaderboard._ScoreRange buildPartial() { grpc.leaderboard._ScoreRange result = new grpc.leaderboard._ScoreRange(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(grpc.leaderboard._ScoreRange result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(grpc.leaderboard._ScoreRange result) { result.minCase_ = minCase_; result.min_ = this.min_; if (minCase_ == 1 && unboundedMinBuilder_ != null) { result.min_ = unboundedMinBuilder_.build(); } result.maxCase_ = maxCase_; result.max_ = this.max_; if (maxCase_ == 3 && unboundedMaxBuilder_ != null) { result.max_ = unboundedMaxBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.leaderboard._ScoreRange) { return mergeFrom((grpc.leaderboard._ScoreRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.leaderboard._ScoreRange other) { if (other == grpc.leaderboard._ScoreRange.getDefaultInstance()) return this; switch (other.getMinCase()) { case UNBOUNDED_MIN: { mergeUnboundedMin(other.getUnboundedMin()); break; } case MIN_INCLUSIVE: { setMinInclusive(other.getMinInclusive()); break; } case MIN_NOT_SET: { break; } } switch (other.getMaxCase()) { case UNBOUNDED_MAX: { mergeUnboundedMax(other.getUnboundedMax()); break; } case MAX_EXCLUSIVE: { setMaxExclusive(other.getMaxExclusive()); break; } case MAX_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getUnboundedMinFieldBuilder().getBuilder(), extensionRegistry); minCase_ = 1; break; } // case 10 case 26: { input.readMessage( getUnboundedMaxFieldBuilder().getBuilder(), extensionRegistry); maxCase_ = 3; break; } // case 26 case 41: { min_ = input.readDouble(); minCase_ = 5; break; } // case 41 case 49: { max_ = input.readDouble(); maxCase_ = 6; break; } // case 49 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int minCase_ = 0; private java.lang.Object min_; public MinCase getMinCase() { return MinCase.forNumber( minCase_); } public Builder clearMin() { minCase_ = 0; min_ = null; onChanged(); return this; } private int maxCase_ = 0; private java.lang.Object max_; public MaxCase getMaxCase() { return MaxCase.forNumber( maxCase_); } public Builder clearMax() { maxCase_ = 0; max_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedMinBuilder_; /** * .common._Unbounded unbounded_min = 1; * @return Whether the unboundedMin field is set. */ @java.lang.Override public boolean hasUnboundedMin() { return minCase_ == 1; } /** * .common._Unbounded unbounded_min = 1; * @return The unboundedMin. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMin() { if (unboundedMinBuilder_ == null) { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } else { if (minCase_ == 1) { return unboundedMinBuilder_.getMessage(); } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_min = 1; */ public Builder setUnboundedMin(grpc.common._Unbounded value) { if (unboundedMinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } min_ = value; onChanged(); } else { unboundedMinBuilder_.setMessage(value); } minCase_ = 1; return this; } /** * .common._Unbounded unbounded_min = 1; */ public Builder setUnboundedMin( grpc.common._Unbounded.Builder builderForValue) { if (unboundedMinBuilder_ == null) { min_ = builderForValue.build(); onChanged(); } else { unboundedMinBuilder_.setMessage(builderForValue.build()); } minCase_ = 1; return this; } /** * .common._Unbounded unbounded_min = 1; */ public Builder mergeUnboundedMin(grpc.common._Unbounded value) { if (unboundedMinBuilder_ == null) { if (minCase_ == 1 && min_ != grpc.common._Unbounded.getDefaultInstance()) { min_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) min_) .mergeFrom(value).buildPartial(); } else { min_ = value; } onChanged(); } else { if (minCase_ == 1) { unboundedMinBuilder_.mergeFrom(value); } else { unboundedMinBuilder_.setMessage(value); } } minCase_ = 1; return this; } /** * .common._Unbounded unbounded_min = 1; */ public Builder clearUnboundedMin() { if (unboundedMinBuilder_ == null) { if (minCase_ == 1) { minCase_ = 0; min_ = null; onChanged(); } } else { if (minCase_ == 1) { minCase_ = 0; min_ = null; } unboundedMinBuilder_.clear(); } return this; } /** * .common._Unbounded unbounded_min = 1; */ public grpc.common._Unbounded.Builder getUnboundedMinBuilder() { return getUnboundedMinFieldBuilder().getBuilder(); } /** * .common._Unbounded unbounded_min = 1; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMinOrBuilder() { if ((minCase_ == 1) && (unboundedMinBuilder_ != null)) { return unboundedMinBuilder_.getMessageOrBuilder(); } else { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_min = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> getUnboundedMinFieldBuilder() { if (unboundedMinBuilder_ == null) { if (!(minCase_ == 1)) { min_ = grpc.common._Unbounded.getDefaultInstance(); } unboundedMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>( (grpc.common._Unbounded) min_, getParentForChildren(), isClean()); min_ = null; } minCase_ = 1; onChanged(); return unboundedMinBuilder_; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double min_inclusive = 5; * @return Whether the minInclusive field is set. */ public boolean hasMinInclusive() { return minCase_ == 5; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double min_inclusive = 5; * @return The minInclusive. */ public double getMinInclusive() { if (minCase_ == 5) { return (java.lang.Double) min_; } return 0D; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double min_inclusive = 5; * @param value The minInclusive to set. * @return This builder for chaining. */ public Builder setMinInclusive(double value) { minCase_ = 5; min_ = value; onChanged(); return this; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double min_inclusive = 5; * @return This builder for chaining. */ public Builder clearMinInclusive() { if (minCase_ == 5) { minCase_ = 0; min_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedMaxBuilder_; /** * .common._Unbounded unbounded_max = 3; * @return Whether the unboundedMax field is set. */ @java.lang.Override public boolean hasUnboundedMax() { return maxCase_ == 3; } /** * .common._Unbounded unbounded_max = 3; * @return The unboundedMax. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMax() { if (unboundedMaxBuilder_ == null) { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } else { if (maxCase_ == 3) { return unboundedMaxBuilder_.getMessage(); } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_max = 3; */ public Builder setUnboundedMax(grpc.common._Unbounded value) { if (unboundedMaxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } max_ = value; onChanged(); } else { unboundedMaxBuilder_.setMessage(value); } maxCase_ = 3; return this; } /** * .common._Unbounded unbounded_max = 3; */ public Builder setUnboundedMax( grpc.common._Unbounded.Builder builderForValue) { if (unboundedMaxBuilder_ == null) { max_ = builderForValue.build(); onChanged(); } else { unboundedMaxBuilder_.setMessage(builderForValue.build()); } maxCase_ = 3; return this; } /** * .common._Unbounded unbounded_max = 3; */ public Builder mergeUnboundedMax(grpc.common._Unbounded value) { if (unboundedMaxBuilder_ == null) { if (maxCase_ == 3 && max_ != grpc.common._Unbounded.getDefaultInstance()) { max_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) max_) .mergeFrom(value).buildPartial(); } else { max_ = value; } onChanged(); } else { if (maxCase_ == 3) { unboundedMaxBuilder_.mergeFrom(value); } else { unboundedMaxBuilder_.setMessage(value); } } maxCase_ = 3; return this; } /** * .common._Unbounded unbounded_max = 3; */ public Builder clearUnboundedMax() { if (unboundedMaxBuilder_ == null) { if (maxCase_ == 3) { maxCase_ = 0; max_ = null; onChanged(); } } else { if (maxCase_ == 3) { maxCase_ = 0; max_ = null; } unboundedMaxBuilder_.clear(); } return this; } /** * .common._Unbounded unbounded_max = 3; */ public grpc.common._Unbounded.Builder getUnboundedMaxBuilder() { return getUnboundedMaxFieldBuilder().getBuilder(); } /** * .common._Unbounded unbounded_max = 3; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMaxOrBuilder() { if ((maxCase_ == 3) && (unboundedMaxBuilder_ != null)) { return unboundedMaxBuilder_.getMessageOrBuilder(); } else { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_max = 3; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> getUnboundedMaxFieldBuilder() { if (unboundedMaxBuilder_ == null) { if (!(maxCase_ == 3)) { max_ = grpc.common._Unbounded.getDefaultInstance(); } unboundedMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>( (grpc.common._Unbounded) max_, getParentForChildren(), isClean()); max_ = null; } maxCase_ = 3; onChanged(); return unboundedMaxBuilder_; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double max_exclusive = 6; * @return Whether the maxExclusive field is set. */ public boolean hasMaxExclusive() { return maxCase_ == 6; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double max_exclusive = 6; * @return The maxExclusive. */ public double getMaxExclusive() { if (maxCase_ == 6) { return (java.lang.Double) max_; } return 0D; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double max_exclusive = 6; * @param value The maxExclusive to set. * @return This builder for chaining. */ public Builder setMaxExclusive(double value) { maxCase_ = 6; max_ = value; onChanged(); return this; } /** *
     * IEEE 754 single precision 64 bit floating point number.
     * Momento does not support NaN or Inf in leaderboards.
     * 
* * double max_exclusive = 6; * @return This builder for chaining. */ public Builder clearMaxExclusive() { if (maxCase_ == 6) { maxCase_ = 0; max_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:leaderboard._ScoreRange) } // @@protoc_insertion_point(class_scope:leaderboard._ScoreRange) private static final grpc.leaderboard._ScoreRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.leaderboard._ScoreRange(); } public static grpc.leaderboard._ScoreRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_ScoreRange> PARSER = new com.google.protobuf.AbstractParser<_ScoreRange>() { @java.lang.Override public _ScoreRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<_ScoreRange> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_ScoreRange> getParserForType() { return PARSER; } @java.lang.Override public grpc.leaderboard._ScoreRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy