grpc.cache_client._SortedSetGetRankResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos-jvm Show documentation
Show all versions of client-protos-jvm Show documentation
Kotlin protobuf protocols for the JVM that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cacheclient.proto
package grpc.cache_client;
/**
* Protobuf type {@code cache_client._SortedSetGetRankResponse}
*/
public final class _SortedSetGetRankResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SortedSetGetRankResponse)
_SortedSetGetRankResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use _SortedSetGetRankResponse.newBuilder() to construct.
private _SortedSetGetRankResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _SortedSetGetRankResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _SortedSetGetRankResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetGetRankResponse.class, grpc.cache_client._SortedSetGetRankResponse.Builder.class);
}
public interface _RankResponsePartOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SortedSetGetRankResponse._RankResponsePart)
com.google.protobuf.MessageOrBuilder {
/**
* .cache_client.ECacheResult result = 1;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .cache_client.ECacheResult result = 1;
* @return The result.
*/
grpc.cache_client.ECacheResult getResult();
/**
*
* Rank is 0-based i.e. when sort order is descending the rank of the
* value with the highest score will be 0. Similarly for ascending order,
* value with the lowest score will have rank 0.
*
*
* uint64 rank = 2;
* @return The rank.
*/
long getRank();
}
/**
* Protobuf type {@code cache_client._SortedSetGetRankResponse._RankResponsePart}
*/
public static final class _RankResponsePart extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SortedSetGetRankResponse._RankResponsePart)
_RankResponsePartOrBuilder {
private static final long serialVersionUID = 0L;
// Use _RankResponsePart.newBuilder() to construct.
private _RankResponsePart(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _RankResponsePart() {
result_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _RankResponsePart();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__RankResponsePart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__RankResponsePart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.class, grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private int result_ = 0;
/**
* .cache_client.ECacheResult result = 1;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cache_client.ECacheResult result = 1;
* @return The result.
*/
@java.lang.Override public grpc.cache_client.ECacheResult getResult() {
grpc.cache_client.ECacheResult result = grpc.cache_client.ECacheResult.forNumber(result_);
return result == null ? grpc.cache_client.ECacheResult.UNRECOGNIZED : result;
}
public static final int RANK_FIELD_NUMBER = 2;
private long rank_ = 0L;
/**
*
* Rank is 0-based i.e. when sort order is descending the rank of the
* value with the highest score will be 0. Similarly for ascending order,
* value with the lowest score will have rank 0.
*
*
* uint64 rank = 2;
* @return The rank.
*/
@java.lang.Override
public long getRank() {
return rank_;
}
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 (result_ != grpc.cache_client.ECacheResult.Invalid.getNumber()) {
output.writeEnum(1, result_);
}
if (rank_ != 0L) {
output.writeUInt64(2, rank_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != grpc.cache_client.ECacheResult.Invalid.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, result_);
}
if (rank_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, rank_);
}
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.cache_client._SortedSetGetRankResponse._RankResponsePart)) {
return super.equals(obj);
}
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart other = (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) obj;
if (result_ != other.result_) return false;
if (getRank()
!= other.getRank()) return false;
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();
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (37 * hash) + RANK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRank());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart 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.cache_client._SortedSetGetRankResponse._RankResponsePart parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart 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.cache_client._SortedSetGetRankResponse._RankResponsePart parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart 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.cache_client._SortedSetGetRankResponse._RankResponsePart 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 cache_client._SortedSetGetRankResponse._RankResponsePart}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SortedSetGetRankResponse._RankResponsePart)
grpc.cache_client._SortedSetGetRankResponse._RankResponsePartOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__RankResponsePart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__RankResponsePart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.class, grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder.class);
}
// Construct using grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = 0;
rank_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__RankResponsePart_descriptor;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart getDefaultInstanceForType() {
return grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart build() {
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart buildPartial() {
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart result = new grpc.cache_client._SortedSetGetRankResponse._RankResponsePart(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SortedSetGetRankResponse._RankResponsePart result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = result_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rank_ = rank_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) {
return mergeFrom((grpc.cache_client._SortedSetGetRankResponse._RankResponsePart)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SortedSetGetRankResponse._RankResponsePart other) {
if (other == grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance()) return this;
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.getRank() != 0L) {
setRank(other.getRank());
}
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 8: {
result_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
rank_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
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 bitField0_;
private int result_ = 0;
/**
* .cache_client.ECacheResult result = 1;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cache_client.ECacheResult result = 1;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .cache_client.ECacheResult result = 1;
* @return The result.
*/
@java.lang.Override
public grpc.cache_client.ECacheResult getResult() {
grpc.cache_client.ECacheResult result = grpc.cache_client.ECacheResult.forNumber(result_);
return result == null ? grpc.cache_client.ECacheResult.UNRECOGNIZED : result;
}
/**
* .cache_client.ECacheResult result = 1;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(grpc.cache_client.ECacheResult value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .cache_client.ECacheResult result = 1;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000001);
result_ = 0;
onChanged();
return this;
}
private long rank_ ;
/**
*
* Rank is 0-based i.e. when sort order is descending the rank of the
* value with the highest score will be 0. Similarly for ascending order,
* value with the lowest score will have rank 0.
*
*
* uint64 rank = 2;
* @return The rank.
*/
@java.lang.Override
public long getRank() {
return rank_;
}
/**
*
* Rank is 0-based i.e. when sort order is descending the rank of the
* value with the highest score will be 0. Similarly for ascending order,
* value with the lowest score will have rank 0.
*
*
* uint64 rank = 2;
* @param value The rank to set.
* @return This builder for chaining.
*/
public Builder setRank(long value) {
rank_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Rank is 0-based i.e. when sort order is descending the rank of the
* value with the highest score will be 0. Similarly for ascending order,
* value with the lowest score will have rank 0.
*
*
* uint64 rank = 2;
* @return This builder for chaining.
*/
public Builder clearRank() {
bitField0_ = (bitField0_ & ~0x00000002);
rank_ = 0L;
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:cache_client._SortedSetGetRankResponse._RankResponsePart)
}
// @@protoc_insertion_point(class_scope:cache_client._SortedSetGetRankResponse._RankResponsePart)
private static final grpc.cache_client._SortedSetGetRankResponse._RankResponsePart DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SortedSetGetRankResponse._RankResponsePart();
}
public static grpc.cache_client._SortedSetGetRankResponse._RankResponsePart getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_RankResponsePart>
PARSER = new com.google.protobuf.AbstractParser<_RankResponsePart>() {
@java.lang.Override
public _RankResponsePart 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<_RankResponsePart> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_RankResponsePart> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface _SortedSetMissingOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SortedSetGetRankResponse._SortedSetMissing)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cache_client._SortedSetGetRankResponse._SortedSetMissing}
*/
public static final class _SortedSetMissing extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SortedSetGetRankResponse._SortedSetMissing)
_SortedSetMissingOrBuilder {
private static final long serialVersionUID = 0L;
// Use _SortedSetMissing.newBuilder() to construct.
private _SortedSetMissing(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _SortedSetMissing() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _SortedSetMissing();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__SortedSetMissing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__SortedSetMissing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.class, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.cache_client._SortedSetGetRankResponse._SortedSetMissing)) {
return super.equals(obj);
}
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing other = (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) obj;
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();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing 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.cache_client._SortedSetGetRankResponse._SortedSetMissing parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing 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.cache_client._SortedSetGetRankResponse._SortedSetMissing parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing 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.cache_client._SortedSetGetRankResponse._SortedSetMissing 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 cache_client._SortedSetGetRankResponse._SortedSetMissing}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SortedSetGetRankResponse._SortedSetMissing)
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__SortedSetMissing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__SortedSetMissing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.class, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder.class);
}
// Construct using grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse__SortedSetMissing_descriptor;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing getDefaultInstanceForType() {
return grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing build() {
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing buildPartial() {
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing result = new grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) {
return mergeFrom((grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing other) {
if (other == grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance()) return this;
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;
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;
}
@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:cache_client._SortedSetGetRankResponse._SortedSetMissing)
}
// @@protoc_insertion_point(class_scope:cache_client._SortedSetGetRankResponse._SortedSetMissing)
private static final grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing();
}
public static grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_SortedSetMissing>
PARSER = new com.google.protobuf.AbstractParser<_SortedSetMissing>() {
@java.lang.Override
public _SortedSetMissing 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<_SortedSetMissing> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_SortedSetMissing> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int rankCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object rank_;
public enum RankCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ELEMENT_RANK(1),
MISSING(2),
RANK_NOT_SET(0);
private final int value;
private RankCase(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 RankCase valueOf(int value) {
return forNumber(value);
}
public static RankCase forNumber(int value) {
switch (value) {
case 1: return ELEMENT_RANK;
case 2: return MISSING;
case 0: return RANK_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RankCase
getRankCase() {
return RankCase.forNumber(
rankCase_);
}
public static final int ELEMENT_RANK_FIELD_NUMBER = 1;
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
* @return Whether the elementRank field is set.
*/
@java.lang.Override
public boolean hasElementRank() {
return rankCase_ == 1;
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
* @return The elementRank.
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart getElementRank() {
if (rankCase_ == 1) {
return (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePartOrBuilder getElementRankOrBuilder() {
if (rankCase_ == 1) {
return (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
}
public static final int MISSING_FIELD_NUMBER = 2;
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
* @return Whether the missing field is set.
*/
@java.lang.Override
public boolean hasMissing() {
return rankCase_ == 2;
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
* @return The missing.
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing getMissing() {
if (rankCase_ == 2) {
return (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissingOrBuilder getMissingOrBuilder() {
if (rankCase_ == 2) {
return (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
}
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 (rankCase_ == 1) {
output.writeMessage(1, (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_);
}
if (rankCase_ == 2) {
output.writeMessage(2, (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rankCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_);
}
if (rankCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_);
}
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.cache_client._SortedSetGetRankResponse)) {
return super.equals(obj);
}
grpc.cache_client._SortedSetGetRankResponse other = (grpc.cache_client._SortedSetGetRankResponse) obj;
if (!getRankCase().equals(other.getRankCase())) return false;
switch (rankCase_) {
case 1:
if (!getElementRank()
.equals(other.getElementRank())) return false;
break;
case 2:
if (!getMissing()
.equals(other.getMissing())) 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 (rankCase_) {
case 1:
hash = (37 * hash) + ELEMENT_RANK_FIELD_NUMBER;
hash = (53 * hash) + getElementRank().hashCode();
break;
case 2:
hash = (37 * hash) + MISSING_FIELD_NUMBER;
hash = (53 * hash) + getMissing().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetGetRankResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse 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.cache_client._SortedSetGetRankResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse 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.cache_client._SortedSetGetRankResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetGetRankResponse 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.cache_client._SortedSetGetRankResponse 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 cache_client._SortedSetGetRankResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SortedSetGetRankResponse)
grpc.cache_client._SortedSetGetRankResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetGetRankResponse.class, grpc.cache_client._SortedSetGetRankResponse.Builder.class);
}
// Construct using grpc.cache_client._SortedSetGetRankResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (elementRankBuilder_ != null) {
elementRankBuilder_.clear();
}
if (missingBuilder_ != null) {
missingBuilder_.clear();
}
rankCase_ = 0;
rank_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetGetRankResponse_descriptor;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse getDefaultInstanceForType() {
return grpc.cache_client._SortedSetGetRankResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse build() {
grpc.cache_client._SortedSetGetRankResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse buildPartial() {
grpc.cache_client._SortedSetGetRankResponse result = new grpc.cache_client._SortedSetGetRankResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SortedSetGetRankResponse result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(grpc.cache_client._SortedSetGetRankResponse result) {
result.rankCase_ = rankCase_;
result.rank_ = this.rank_;
if (rankCase_ == 1 &&
elementRankBuilder_ != null) {
result.rank_ = elementRankBuilder_.build();
}
if (rankCase_ == 2 &&
missingBuilder_ != null) {
result.rank_ = missingBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SortedSetGetRankResponse) {
return mergeFrom((grpc.cache_client._SortedSetGetRankResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SortedSetGetRankResponse other) {
if (other == grpc.cache_client._SortedSetGetRankResponse.getDefaultInstance()) return this;
switch (other.getRankCase()) {
case ELEMENT_RANK: {
mergeElementRank(other.getElementRank());
break;
}
case MISSING: {
mergeMissing(other.getMissing());
break;
}
case RANK_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(
getElementRankFieldBuilder().getBuilder(),
extensionRegistry);
rankCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getMissingFieldBuilder().getBuilder(),
extensionRegistry);
rankCase_ = 2;
break;
} // case 18
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 rankCase_ = 0;
private java.lang.Object rank_;
public RankCase
getRankCase() {
return RankCase.forNumber(
rankCase_);
}
public Builder clearRank() {
rankCase_ = 0;
rank_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart, grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder, grpc.cache_client._SortedSetGetRankResponse._RankResponsePartOrBuilder> elementRankBuilder_;
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
* @return Whether the elementRank field is set.
*/
@java.lang.Override
public boolean hasElementRank() {
return rankCase_ == 1;
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
* @return The elementRank.
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart getElementRank() {
if (elementRankBuilder_ == null) {
if (rankCase_ == 1) {
return (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
} else {
if (rankCase_ == 1) {
return elementRankBuilder_.getMessage();
}
return grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
public Builder setElementRank(grpc.cache_client._SortedSetGetRankResponse._RankResponsePart value) {
if (elementRankBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rank_ = value;
onChanged();
} else {
elementRankBuilder_.setMessage(value);
}
rankCase_ = 1;
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
public Builder setElementRank(
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder builderForValue) {
if (elementRankBuilder_ == null) {
rank_ = builderForValue.build();
onChanged();
} else {
elementRankBuilder_.setMessage(builderForValue.build());
}
rankCase_ = 1;
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
public Builder mergeElementRank(grpc.cache_client._SortedSetGetRankResponse._RankResponsePart value) {
if (elementRankBuilder_ == null) {
if (rankCase_ == 1 &&
rank_ != grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance()) {
rank_ = grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.newBuilder((grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_)
.mergeFrom(value).buildPartial();
} else {
rank_ = value;
}
onChanged();
} else {
if (rankCase_ == 1) {
elementRankBuilder_.mergeFrom(value);
} else {
elementRankBuilder_.setMessage(value);
}
}
rankCase_ = 1;
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
public Builder clearElementRank() {
if (elementRankBuilder_ == null) {
if (rankCase_ == 1) {
rankCase_ = 0;
rank_ = null;
onChanged();
}
} else {
if (rankCase_ == 1) {
rankCase_ = 0;
rank_ = null;
}
elementRankBuilder_.clear();
}
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder getElementRankBuilder() {
return getElementRankFieldBuilder().getBuilder();
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._RankResponsePartOrBuilder getElementRankOrBuilder() {
if ((rankCase_ == 1) && (elementRankBuilder_ != null)) {
return elementRankBuilder_.getMessageOrBuilder();
} else {
if (rankCase_ == 1) {
return (grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetGetRankResponse._RankResponsePart element_rank = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart, grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder, grpc.cache_client._SortedSetGetRankResponse._RankResponsePartOrBuilder>
getElementRankFieldBuilder() {
if (elementRankBuilder_ == null) {
if (!(rankCase_ == 1)) {
rank_ = grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.getDefaultInstance();
}
elementRankBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetGetRankResponse._RankResponsePart, grpc.cache_client._SortedSetGetRankResponse._RankResponsePart.Builder, grpc.cache_client._SortedSetGetRankResponse._RankResponsePartOrBuilder>(
(grpc.cache_client._SortedSetGetRankResponse._RankResponsePart) rank_,
getParentForChildren(),
isClean());
rank_ = null;
}
rankCase_ = 1;
onChanged();
return elementRankBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissingOrBuilder> missingBuilder_;
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
* @return Whether the missing field is set.
*/
@java.lang.Override
public boolean hasMissing() {
return rankCase_ == 2;
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
* @return The missing.
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing getMissing() {
if (missingBuilder_ == null) {
if (rankCase_ == 2) {
return (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
} else {
if (rankCase_ == 2) {
return missingBuilder_.getMessage();
}
return grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
public Builder setMissing(grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing value) {
if (missingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rank_ = value;
onChanged();
} else {
missingBuilder_.setMessage(value);
}
rankCase_ = 2;
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
public Builder setMissing(
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder builderForValue) {
if (missingBuilder_ == null) {
rank_ = builderForValue.build();
onChanged();
} else {
missingBuilder_.setMessage(builderForValue.build());
}
rankCase_ = 2;
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
public Builder mergeMissing(grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing value) {
if (missingBuilder_ == null) {
if (rankCase_ == 2 &&
rank_ != grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance()) {
rank_ = grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.newBuilder((grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_)
.mergeFrom(value).buildPartial();
} else {
rank_ = value;
}
onChanged();
} else {
if (rankCase_ == 2) {
missingBuilder_.mergeFrom(value);
} else {
missingBuilder_.setMessage(value);
}
}
rankCase_ = 2;
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
public Builder clearMissing() {
if (missingBuilder_ == null) {
if (rankCase_ == 2) {
rankCase_ = 0;
rank_ = null;
onChanged();
}
} else {
if (rankCase_ == 2) {
rankCase_ = 0;
rank_ = null;
}
missingBuilder_.clear();
}
return this;
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder getMissingBuilder() {
return getMissingFieldBuilder().getBuilder();
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse._SortedSetMissingOrBuilder getMissingOrBuilder() {
if ((rankCase_ == 2) && (missingBuilder_ != null)) {
return missingBuilder_.getMessageOrBuilder();
} else {
if (rankCase_ == 2) {
return (grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_;
}
return grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetGetRankResponse._SortedSetMissing missing = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissingOrBuilder>
getMissingFieldBuilder() {
if (missingBuilder_ == null) {
if (!(rankCase_ == 2)) {
rank_ = grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.getDefaultInstance();
}
missingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing.Builder, grpc.cache_client._SortedSetGetRankResponse._SortedSetMissingOrBuilder>(
(grpc.cache_client._SortedSetGetRankResponse._SortedSetMissing) rank_,
getParentForChildren(),
isClean());
rank_ = null;
}
rankCase_ = 2;
onChanged();
return missingBuilder_;
}
@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:cache_client._SortedSetGetRankResponse)
}
// @@protoc_insertion_point(class_scope:cache_client._SortedSetGetRankResponse)
private static final grpc.cache_client._SortedSetGetRankResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SortedSetGetRankResponse();
}
public static grpc.cache_client._SortedSetGetRankResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_SortedSetGetRankResponse>
PARSER = new com.google.protobuf.AbstractParser<_SortedSetGetRankResponse>() {
@java.lang.Override
public _SortedSetGetRankResponse 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<_SortedSetGetRankResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_SortedSetGetRankResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SortedSetGetRankResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}