grpc.cache_client._SortedSetRemoveRequest 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._SortedSetRemoveRequest}
*/
public final class _SortedSetRemoveRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SortedSetRemoveRequest)
_SortedSetRemoveRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use _SortedSetRemoveRequest.newBuilder() to construct.
private _SortedSetRemoveRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _SortedSetRemoveRequest() {
setName_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _SortedSetRemoveRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetRemoveRequest.class, grpc.cache_client._SortedSetRemoveRequest.Builder.class);
}
public interface _AllOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SortedSetRemoveRequest._All)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cache_client._SortedSetRemoveRequest._All}
*/
public static final class _All extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SortedSetRemoveRequest._All)
_AllOrBuilder {
private static final long serialVersionUID = 0L;
// Use _All.newBuilder() to construct.
private _All(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _All() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _All();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__All_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__All_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetRemoveRequest._All.class, grpc.cache_client._SortedSetRemoveRequest._All.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._SortedSetRemoveRequest._All)) {
return super.equals(obj);
}
grpc.cache_client._SortedSetRemoveRequest._All other = (grpc.cache_client._SortedSetRemoveRequest._All) 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._SortedSetRemoveRequest._All parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest._All 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._SortedSetRemoveRequest._All parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest._All 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._SortedSetRemoveRequest._All parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest._All parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetRemoveRequest._All parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest._All 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._SortedSetRemoveRequest._All parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest._All 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._SortedSetRemoveRequest._All parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest._All 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._SortedSetRemoveRequest._All 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._SortedSetRemoveRequest._All}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SortedSetRemoveRequest._All)
grpc.cache_client._SortedSetRemoveRequest._AllOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__All_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__All_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetRemoveRequest._All.class, grpc.cache_client._SortedSetRemoveRequest._All.Builder.class);
}
// Construct using grpc.cache_client._SortedSetRemoveRequest._All.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__SortedSetRemoveRequest__All_descriptor;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._All getDefaultInstanceForType() {
return grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._All build() {
grpc.cache_client._SortedSetRemoveRequest._All result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._All buildPartial() {
grpc.cache_client._SortedSetRemoveRequest._All result = new grpc.cache_client._SortedSetRemoveRequest._All(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._SortedSetRemoveRequest._All) {
return mergeFrom((grpc.cache_client._SortedSetRemoveRequest._All)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SortedSetRemoveRequest._All other) {
if (other == grpc.cache_client._SortedSetRemoveRequest._All.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._SortedSetRemoveRequest._All)
}
// @@protoc_insertion_point(class_scope:cache_client._SortedSetRemoveRequest._All)
private static final grpc.cache_client._SortedSetRemoveRequest._All DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SortedSetRemoveRequest._All();
}
public static grpc.cache_client._SortedSetRemoveRequest._All getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_All>
PARSER = new com.google.protobuf.AbstractParser<_All>() {
@java.lang.Override
public _All 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<_All> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_All> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._All getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface _SomeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SortedSetRemoveRequest._Some)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bytes values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
* repeated bytes values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated bytes values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
com.google.protobuf.ByteString getValues(int index);
}
/**
* Protobuf type {@code cache_client._SortedSetRemoveRequest._Some}
*/
public static final class _Some extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SortedSetRemoveRequest._Some)
_SomeOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Some.newBuilder() to construct.
private _Some(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Some() {
values_ = emptyList(com.google.protobuf.ByteString.class);
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Some();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__Some_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__Some_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetRemoveRequest._Some.class, grpc.cache_client._SortedSetRemoveRequest._Some.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList values_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated bytes values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated bytes values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public com.google.protobuf.ByteString getValues(int index) {
return values_.get(index);
}
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 {
for (int i = 0; i < values_.size(); i++) {
output.writeBytes(1, values_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(values_.get(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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._SortedSetRemoveRequest._Some)) {
return super.equals(obj);
}
grpc.cache_client._SortedSetRemoveRequest._Some other = (grpc.cache_client._SortedSetRemoveRequest._Some) obj;
if (!getValuesList()
.equals(other.getValuesList())) 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();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SortedSetRemoveRequest._Some parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some 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._SortedSetRemoveRequest._Some parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some 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._SortedSetRemoveRequest._Some parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some 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._SortedSetRemoveRequest._Some parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some 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._SortedSetRemoveRequest._Some parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest._Some 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._SortedSetRemoveRequest._Some 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._SortedSetRemoveRequest._Some}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SortedSetRemoveRequest._Some)
grpc.cache_client._SortedSetRemoveRequest._SomeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__Some_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__Some_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetRemoveRequest._Some.class, grpc.cache_client._SortedSetRemoveRequest._Some.Builder.class);
}
// Construct using grpc.cache_client._SortedSetRemoveRequest._Some.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
values_ = emptyList(com.google.protobuf.ByteString.class);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest__Some_descriptor;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._Some getDefaultInstanceForType() {
return grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._Some build() {
grpc.cache_client._SortedSetRemoveRequest._Some result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._Some buildPartial() {
grpc.cache_client._SortedSetRemoveRequest._Some result = new grpc.cache_client._SortedSetRemoveRequest._Some(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SortedSetRemoveRequest._Some result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
result.values_ = values_;
}
}
@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._SortedSetRemoveRequest._Some) {
return mergeFrom((grpc.cache_client._SortedSetRemoveRequest._Some)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SortedSetRemoveRequest._Some other) {
if (other == grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
values_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
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: {
com.google.protobuf.ByteString v = input.readBytes();
ensureValuesIsMutable();
values_.add(v);
break;
} // case 10
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 com.google.protobuf.Internal.ProtobufList values_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureValuesIsMutable() {
if (!values_.isModifiable()) {
values_ = makeMutableCopy(values_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated bytes values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
values_.makeImmutable();
return values_;
}
/**
* repeated bytes values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated bytes values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public com.google.protobuf.ByteString getValues(int index) {
return values_.get(index);
}
/**
* repeated bytes values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureValuesIsMutable();
values_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated bytes values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureValuesIsMutable();
values_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated bytes values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated bytes values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000001);
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._SortedSetRemoveRequest._Some)
}
// @@protoc_insertion_point(class_scope:cache_client._SortedSetRemoveRequest._Some)
private static final grpc.cache_client._SortedSetRemoveRequest._Some DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SortedSetRemoveRequest._Some();
}
public static grpc.cache_client._SortedSetRemoveRequest._Some getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Some>
PARSER = new com.google.protobuf.AbstractParser<_Some>() {
@java.lang.Override
public _Some 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<_Some> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Some> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._Some getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int removeElementsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object removeElements_;
public enum RemoveElementsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ALL(2),
SOME(3),
REMOVEELEMENTS_NOT_SET(0);
private final int value;
private RemoveElementsCase(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 RemoveElementsCase valueOf(int value) {
return forNumber(value);
}
public static RemoveElementsCase forNumber(int value) {
switch (value) {
case 2: return ALL;
case 3: return SOME;
case 0: return REMOVEELEMENTS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RemoveElementsCase
getRemoveElementsCase() {
return RemoveElementsCase.forNumber(
removeElementsCase_);
}
public static final int SET_NAME_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString setName_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes set_name = 1;
* @return The setName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSetName() {
return setName_;
}
public static final int ALL_FIELD_NUMBER = 2;
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
* @return Whether the all field is set.
*/
@java.lang.Override
public boolean hasAll() {
return removeElementsCase_ == 2;
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
* @return The all.
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._All getAll() {
if (removeElementsCase_ == 2) {
return (grpc.cache_client._SortedSetRemoveRequest._All) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._AllOrBuilder getAllOrBuilder() {
if (removeElementsCase_ == 2) {
return (grpc.cache_client._SortedSetRemoveRequest._All) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
}
public static final int SOME_FIELD_NUMBER = 3;
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
* @return Whether the some field is set.
*/
@java.lang.Override
public boolean hasSome() {
return removeElementsCase_ == 3;
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
* @return The some.
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._Some getSome() {
if (removeElementsCase_ == 3) {
return (grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance();
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._SomeOrBuilder getSomeOrBuilder() {
if (removeElementsCase_ == 3) {
return (grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._Some.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 (!setName_.isEmpty()) {
output.writeBytes(1, setName_);
}
if (removeElementsCase_ == 2) {
output.writeMessage(2, (grpc.cache_client._SortedSetRemoveRequest._All) removeElements_);
}
if (removeElementsCase_ == 3) {
output.writeMessage(3, (grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!setName_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, setName_);
}
if (removeElementsCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (grpc.cache_client._SortedSetRemoveRequest._All) removeElements_);
}
if (removeElementsCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_);
}
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._SortedSetRemoveRequest)) {
return super.equals(obj);
}
grpc.cache_client._SortedSetRemoveRequest other = (grpc.cache_client._SortedSetRemoveRequest) obj;
if (!getSetName()
.equals(other.getSetName())) return false;
if (!getRemoveElementsCase().equals(other.getRemoveElementsCase())) return false;
switch (removeElementsCase_) {
case 2:
if (!getAll()
.equals(other.getAll())) return false;
break;
case 3:
if (!getSome()
.equals(other.getSome())) 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();
hash = (37 * hash) + SET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSetName().hashCode();
switch (removeElementsCase_) {
case 2:
hash = (37 * hash) + ALL_FIELD_NUMBER;
hash = (53 * hash) + getAll().hashCode();
break;
case 3:
hash = (37 * hash) + SOME_FIELD_NUMBER;
hash = (53 * hash) + getSome().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SortedSetRemoveRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest 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._SortedSetRemoveRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest 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._SortedSetRemoveRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SortedSetRemoveRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SortedSetRemoveRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest 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._SortedSetRemoveRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest 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._SortedSetRemoveRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SortedSetRemoveRequest 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._SortedSetRemoveRequest 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._SortedSetRemoveRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SortedSetRemoveRequest)
grpc.cache_client._SortedSetRemoveRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SortedSetRemoveRequest.class, grpc.cache_client._SortedSetRemoveRequest.Builder.class);
}
// Construct using grpc.cache_client._SortedSetRemoveRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
setName_ = com.google.protobuf.ByteString.EMPTY;
if (allBuilder_ != null) {
allBuilder_.clear();
}
if (someBuilder_ != null) {
someBuilder_.clear();
}
removeElementsCase_ = 0;
removeElements_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetRemoveRequest_descriptor;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest getDefaultInstanceForType() {
return grpc.cache_client._SortedSetRemoveRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest build() {
grpc.cache_client._SortedSetRemoveRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest buildPartial() {
grpc.cache_client._SortedSetRemoveRequest result = new grpc.cache_client._SortedSetRemoveRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SortedSetRemoveRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.setName_ = setName_;
}
}
private void buildPartialOneofs(grpc.cache_client._SortedSetRemoveRequest result) {
result.removeElementsCase_ = removeElementsCase_;
result.removeElements_ = this.removeElements_;
if (removeElementsCase_ == 2 &&
allBuilder_ != null) {
result.removeElements_ = allBuilder_.build();
}
if (removeElementsCase_ == 3 &&
someBuilder_ != null) {
result.removeElements_ = someBuilder_.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._SortedSetRemoveRequest) {
return mergeFrom((grpc.cache_client._SortedSetRemoveRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SortedSetRemoveRequest other) {
if (other == grpc.cache_client._SortedSetRemoveRequest.getDefaultInstance()) return this;
if (other.getSetName() != com.google.protobuf.ByteString.EMPTY) {
setSetName(other.getSetName());
}
switch (other.getRemoveElementsCase()) {
case ALL: {
mergeAll(other.getAll());
break;
}
case SOME: {
mergeSome(other.getSome());
break;
}
case REMOVEELEMENTS_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: {
setName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getAllFieldBuilder().getBuilder(),
extensionRegistry);
removeElementsCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getSomeFieldBuilder().getBuilder(),
extensionRegistry);
removeElementsCase_ = 3;
break;
} // case 26
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 removeElementsCase_ = 0;
private java.lang.Object removeElements_;
public RemoveElementsCase
getRemoveElementsCase() {
return RemoveElementsCase.forNumber(
removeElementsCase_);
}
public Builder clearRemoveElements() {
removeElementsCase_ = 0;
removeElements_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString setName_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes set_name = 1;
* @return The setName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSetName() {
return setName_;
}
/**
* bytes set_name = 1;
* @param value The setName to set.
* @return This builder for chaining.
*/
public Builder setSetName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
setName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes set_name = 1;
* @return This builder for chaining.
*/
public Builder clearSetName() {
bitField0_ = (bitField0_ & ~0x00000001);
setName_ = getDefaultInstance().getSetName();
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetRemoveRequest._All, grpc.cache_client._SortedSetRemoveRequest._All.Builder, grpc.cache_client._SortedSetRemoveRequest._AllOrBuilder> allBuilder_;
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
* @return Whether the all field is set.
*/
@java.lang.Override
public boolean hasAll() {
return removeElementsCase_ == 2;
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
* @return The all.
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._All getAll() {
if (allBuilder_ == null) {
if (removeElementsCase_ == 2) {
return (grpc.cache_client._SortedSetRemoveRequest._All) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
} else {
if (removeElementsCase_ == 2) {
return allBuilder_.getMessage();
}
return grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
public Builder setAll(grpc.cache_client._SortedSetRemoveRequest._All value) {
if (allBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
removeElements_ = value;
onChanged();
} else {
allBuilder_.setMessage(value);
}
removeElementsCase_ = 2;
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
public Builder setAll(
grpc.cache_client._SortedSetRemoveRequest._All.Builder builderForValue) {
if (allBuilder_ == null) {
removeElements_ = builderForValue.build();
onChanged();
} else {
allBuilder_.setMessage(builderForValue.build());
}
removeElementsCase_ = 2;
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
public Builder mergeAll(grpc.cache_client._SortedSetRemoveRequest._All value) {
if (allBuilder_ == null) {
if (removeElementsCase_ == 2 &&
removeElements_ != grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance()) {
removeElements_ = grpc.cache_client._SortedSetRemoveRequest._All.newBuilder((grpc.cache_client._SortedSetRemoveRequest._All) removeElements_)
.mergeFrom(value).buildPartial();
} else {
removeElements_ = value;
}
onChanged();
} else {
if (removeElementsCase_ == 2) {
allBuilder_.mergeFrom(value);
} else {
allBuilder_.setMessage(value);
}
}
removeElementsCase_ = 2;
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
public Builder clearAll() {
if (allBuilder_ == null) {
if (removeElementsCase_ == 2) {
removeElementsCase_ = 0;
removeElements_ = null;
onChanged();
}
} else {
if (removeElementsCase_ == 2) {
removeElementsCase_ = 0;
removeElements_ = null;
}
allBuilder_.clear();
}
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
public grpc.cache_client._SortedSetRemoveRequest._All.Builder getAllBuilder() {
return getAllFieldBuilder().getBuilder();
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._AllOrBuilder getAllOrBuilder() {
if ((removeElementsCase_ == 2) && (allBuilder_ != null)) {
return allBuilder_.getMessageOrBuilder();
} else {
if (removeElementsCase_ == 2) {
return (grpc.cache_client._SortedSetRemoveRequest._All) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetRemoveRequest._All all = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetRemoveRequest._All, grpc.cache_client._SortedSetRemoveRequest._All.Builder, grpc.cache_client._SortedSetRemoveRequest._AllOrBuilder>
getAllFieldBuilder() {
if (allBuilder_ == null) {
if (!(removeElementsCase_ == 2)) {
removeElements_ = grpc.cache_client._SortedSetRemoveRequest._All.getDefaultInstance();
}
allBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetRemoveRequest._All, grpc.cache_client._SortedSetRemoveRequest._All.Builder, grpc.cache_client._SortedSetRemoveRequest._AllOrBuilder>(
(grpc.cache_client._SortedSetRemoveRequest._All) removeElements_,
getParentForChildren(),
isClean());
removeElements_ = null;
}
removeElementsCase_ = 2;
onChanged();
return allBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetRemoveRequest._Some, grpc.cache_client._SortedSetRemoveRequest._Some.Builder, grpc.cache_client._SortedSetRemoveRequest._SomeOrBuilder> someBuilder_;
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
* @return Whether the some field is set.
*/
@java.lang.Override
public boolean hasSome() {
return removeElementsCase_ == 3;
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
* @return The some.
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._Some getSome() {
if (someBuilder_ == null) {
if (removeElementsCase_ == 3) {
return (grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance();
} else {
if (removeElementsCase_ == 3) {
return someBuilder_.getMessage();
}
return grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
public Builder setSome(grpc.cache_client._SortedSetRemoveRequest._Some value) {
if (someBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
removeElements_ = value;
onChanged();
} else {
someBuilder_.setMessage(value);
}
removeElementsCase_ = 3;
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
public Builder setSome(
grpc.cache_client._SortedSetRemoveRequest._Some.Builder builderForValue) {
if (someBuilder_ == null) {
removeElements_ = builderForValue.build();
onChanged();
} else {
someBuilder_.setMessage(builderForValue.build());
}
removeElementsCase_ = 3;
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
public Builder mergeSome(grpc.cache_client._SortedSetRemoveRequest._Some value) {
if (someBuilder_ == null) {
if (removeElementsCase_ == 3 &&
removeElements_ != grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance()) {
removeElements_ = grpc.cache_client._SortedSetRemoveRequest._Some.newBuilder((grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_)
.mergeFrom(value).buildPartial();
} else {
removeElements_ = value;
}
onChanged();
} else {
if (removeElementsCase_ == 3) {
someBuilder_.mergeFrom(value);
} else {
someBuilder_.setMessage(value);
}
}
removeElementsCase_ = 3;
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
public Builder clearSome() {
if (someBuilder_ == null) {
if (removeElementsCase_ == 3) {
removeElementsCase_ = 0;
removeElements_ = null;
onChanged();
}
} else {
if (removeElementsCase_ == 3) {
removeElementsCase_ = 0;
removeElements_ = null;
}
someBuilder_.clear();
}
return this;
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
public grpc.cache_client._SortedSetRemoveRequest._Some.Builder getSomeBuilder() {
return getSomeFieldBuilder().getBuilder();
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest._SomeOrBuilder getSomeOrBuilder() {
if ((removeElementsCase_ == 3) && (someBuilder_ != null)) {
return someBuilder_.getMessageOrBuilder();
} else {
if (removeElementsCase_ == 3) {
return (grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_;
}
return grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance();
}
}
/**
* .cache_client._SortedSetRemoveRequest._Some some = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetRemoveRequest._Some, grpc.cache_client._SortedSetRemoveRequest._Some.Builder, grpc.cache_client._SortedSetRemoveRequest._SomeOrBuilder>
getSomeFieldBuilder() {
if (someBuilder_ == null) {
if (!(removeElementsCase_ == 3)) {
removeElements_ = grpc.cache_client._SortedSetRemoveRequest._Some.getDefaultInstance();
}
someBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SortedSetRemoveRequest._Some, grpc.cache_client._SortedSetRemoveRequest._Some.Builder, grpc.cache_client._SortedSetRemoveRequest._SomeOrBuilder>(
(grpc.cache_client._SortedSetRemoveRequest._Some) removeElements_,
getParentForChildren(),
isClean());
removeElements_ = null;
}
removeElementsCase_ = 3;
onChanged();
return someBuilder_;
}
@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._SortedSetRemoveRequest)
}
// @@protoc_insertion_point(class_scope:cache_client._SortedSetRemoveRequest)
private static final grpc.cache_client._SortedSetRemoveRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SortedSetRemoveRequest();
}
public static grpc.cache_client._SortedSetRemoveRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_SortedSetRemoveRequest>
PARSER = new com.google.protobuf.AbstractParser<_SortedSetRemoveRequest>() {
@java.lang.Override
public _SortedSetRemoveRequest 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<_SortedSetRemoveRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_SortedSetRemoveRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SortedSetRemoveRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}