grpc.cache_client._SetDifferenceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos Show documentation
Show all versions of client-protos Show documentation
Java protobuf protocols 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._SetDifferenceRequest}
*/
public final class _SetDifferenceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SetDifferenceRequest)
_SetDifferenceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use _SetDifferenceRequest.newBuilder() to construct.
private _SetDifferenceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _SetDifferenceRequest() {
setName_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _SetDifferenceRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest.class, grpc.cache_client._SetDifferenceRequest.Builder.class);
}
public interface _MinuendOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SetDifferenceRequest._Minuend)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bytes elements = 1;
* @return A list containing the elements.
*/
java.util.List getElementsList();
/**
* repeated bytes elements = 1;
* @return The count of elements.
*/
int getElementsCount();
/**
* repeated bytes elements = 1;
* @param index The index of the element to return.
* @return The elements at the given index.
*/
com.google.protobuf.ByteString getElements(int index);
}
/**
*
* cache = request - stored
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Minuend}
*/
public static final class _Minuend extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SetDifferenceRequest._Minuend)
_MinuendOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Minuend.newBuilder() to construct.
private _Minuend(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Minuend() {
elements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Minuend();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Minuend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Minuend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Minuend.class, grpc.cache_client._SetDifferenceRequest._Minuend.Builder.class);
}
public static final int ELEMENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List elements_;
/**
* repeated bytes elements = 1;
* @return A list containing the elements.
*/
@java.lang.Override
public java.util.List
getElementsList() {
return elements_;
}
/**
* repeated bytes elements = 1;
* @return The count of elements.
*/
public int getElementsCount() {
return elements_.size();
}
/**
* repeated bytes elements = 1;
* @param index The index of the element to return.
* @return The elements at the given index.
*/
public com.google.protobuf.ByteString getElements(int index) {
return elements_.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 < elements_.size(); i++) {
output.writeBytes(1, elements_.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 < elements_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(elements_.get(i));
}
size += dataSize;
size += 1 * getElementsList().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._SetDifferenceRequest._Minuend)) {
return super.equals(obj);
}
grpc.cache_client._SetDifferenceRequest._Minuend other = (grpc.cache_client._SetDifferenceRequest._Minuend) obj;
if (!getElementsList()
.equals(other.getElementsList())) 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 (getElementsCount() > 0) {
hash = (37 * hash) + ELEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getElementsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SetDifferenceRequest._Minuend parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend 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._SetDifferenceRequest._Minuend parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend 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._SetDifferenceRequest._Minuend parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend 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._SetDifferenceRequest._Minuend parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend 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._SetDifferenceRequest._Minuend parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Minuend 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._SetDifferenceRequest._Minuend 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;
}
/**
*
* cache = request - stored
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Minuend}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SetDifferenceRequest._Minuend)
grpc.cache_client._SetDifferenceRequest._MinuendOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Minuend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Minuend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Minuend.class, grpc.cache_client._SetDifferenceRequest._Minuend.Builder.class);
}
// Construct using grpc.cache_client._SetDifferenceRequest._Minuend.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
elements_ = java.util.Collections.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Minuend_descriptor;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Minuend getDefaultInstanceForType() {
return grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Minuend build() {
grpc.cache_client._SetDifferenceRequest._Minuend result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Minuend buildPartial() {
grpc.cache_client._SetDifferenceRequest._Minuend result = new grpc.cache_client._SetDifferenceRequest._Minuend(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(grpc.cache_client._SetDifferenceRequest._Minuend result) {
if (((bitField0_ & 0x00000001) != 0)) {
elements_ = java.util.Collections.unmodifiableList(elements_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.elements_ = elements_;
}
private void buildPartial0(grpc.cache_client._SetDifferenceRequest._Minuend result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SetDifferenceRequest._Minuend) {
return mergeFrom((grpc.cache_client._SetDifferenceRequest._Minuend)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SetDifferenceRequest._Minuend other) {
if (other == grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance()) return this;
if (!other.elements_.isEmpty()) {
if (elements_.isEmpty()) {
elements_ = other.elements_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureElementsIsMutable();
elements_.addAll(other.elements_);
}
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();
ensureElementsIsMutable();
elements_.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 java.util.List elements_ = java.util.Collections.emptyList();
private void ensureElementsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
elements_ = new java.util.ArrayList(elements_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes elements = 1;
* @return A list containing the elements.
*/
public java.util.List
getElementsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(elements_) : elements_;
}
/**
* repeated bytes elements = 1;
* @return The count of elements.
*/
public int getElementsCount() {
return elements_.size();
}
/**
* repeated bytes elements = 1;
* @param index The index of the element to return.
* @return The elements at the given index.
*/
public com.google.protobuf.ByteString getElements(int index) {
return elements_.get(index);
}
/**
* repeated bytes elements = 1;
* @param index The index to set the value at.
* @param value The elements to set.
* @return This builder for chaining.
*/
public Builder setElements(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureElementsIsMutable();
elements_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes elements = 1;
* @param value The elements to add.
* @return This builder for chaining.
*/
public Builder addElements(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureElementsIsMutable();
elements_.add(value);
onChanged();
return this;
}
/**
* repeated bytes elements = 1;
* @param values The elements to add.
* @return This builder for chaining.
*/
public Builder addAllElements(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elements_);
onChanged();
return this;
}
/**
* repeated bytes elements = 1;
* @return This builder for chaining.
*/
public Builder clearElements() {
elements_ = java.util.Collections.emptyList();
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._SetDifferenceRequest._Minuend)
}
// @@protoc_insertion_point(class_scope:cache_client._SetDifferenceRequest._Minuend)
private static final grpc.cache_client._SetDifferenceRequest._Minuend DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SetDifferenceRequest._Minuend();
}
public static grpc.cache_client._SetDifferenceRequest._Minuend getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Minuend>
PARSER = new com.google.protobuf.AbstractParser<_Minuend>() {
@java.lang.Override
public _Minuend 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<_Minuend> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Minuend> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Minuend getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface _SubtrahendOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SetDifferenceRequest._Subtrahend)
com.google.protobuf.MessageOrBuilder {
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
* @return Whether the set field is set.
*/
boolean hasSet();
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
* @return The set.
*/
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set getSet();
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder getSetOrBuilder();
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
* @return Whether the identity field is set.
*/
boolean hasIdentity();
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
* @return The identity.
*/
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity getIdentity();
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder getIdentityOrBuilder();
grpc.cache_client._SetDifferenceRequest._Subtrahend.SubtrahendSetCase getSubtrahendSetCase();
}
/**
*
* cache = stored - request
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Subtrahend}
*/
public static final class _Subtrahend extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SetDifferenceRequest._Subtrahend)
_SubtrahendOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Subtrahend.newBuilder() to construct.
private _Subtrahend(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Subtrahend() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Subtrahend();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Subtrahend.class, grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder.class);
}
public interface _SetOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SetDifferenceRequest._Subtrahend._Set)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bytes elements = 1;
* @return A list containing the elements.
*/
java.util.List getElementsList();
/**
* repeated bytes elements = 1;
* @return The count of elements.
*/
int getElementsCount();
/**
* repeated bytes elements = 1;
* @param index The index of the element to return.
* @return The elements at the given index.
*/
com.google.protobuf.ByteString getElements(int index);
}
/**
*
* Subtract a set of elements
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Subtrahend._Set}
*/
public static final class _Set extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SetDifferenceRequest._Subtrahend._Set)
_SetOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Set.newBuilder() to construct.
private _Set(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Set() {
elements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Set();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Set_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Set_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.class, grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder.class);
}
public static final int ELEMENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List elements_;
/**
* repeated bytes elements = 1;
* @return A list containing the elements.
*/
@java.lang.Override
public java.util.List
getElementsList() {
return elements_;
}
/**
* repeated bytes elements = 1;
* @return The count of elements.
*/
public int getElementsCount() {
return elements_.size();
}
/**
* repeated bytes elements = 1;
* @param index The index of the element to return.
* @return The elements at the given index.
*/
public com.google.protobuf.ByteString getElements(int index) {
return elements_.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 < elements_.size(); i++) {
output.writeBytes(1, elements_.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 < elements_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(elements_.get(i));
}
size += dataSize;
size += 1 * getElementsList().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._SetDifferenceRequest._Subtrahend._Set)) {
return super.equals(obj);
}
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set other = (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) obj;
if (!getElementsList()
.equals(other.getElementsList())) 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 (getElementsCount() > 0) {
hash = (37 * hash) + ELEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getElementsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set 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._SetDifferenceRequest._Subtrahend._Set parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set 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._SetDifferenceRequest._Subtrahend._Set parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set 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._SetDifferenceRequest._Subtrahend._Set parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set 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._SetDifferenceRequest._Subtrahend._Set parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set 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._SetDifferenceRequest._Subtrahend._Set 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;
}
/**
*
* Subtract a set of elements
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Subtrahend._Set}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SetDifferenceRequest._Subtrahend._Set)
grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Set_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Set_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.class, grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder.class);
}
// Construct using grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
elements_ = java.util.Collections.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Set_descriptor;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set getDefaultInstanceForType() {
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set build() {
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set buildPartial() {
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set result = new grpc.cache_client._SetDifferenceRequest._Subtrahend._Set(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(grpc.cache_client._SetDifferenceRequest._Subtrahend._Set result) {
if (((bitField0_ & 0x00000001) != 0)) {
elements_ = java.util.Collections.unmodifiableList(elements_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.elements_ = elements_;
}
private void buildPartial0(grpc.cache_client._SetDifferenceRequest._Subtrahend._Set result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) {
return mergeFrom((grpc.cache_client._SetDifferenceRequest._Subtrahend._Set)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SetDifferenceRequest._Subtrahend._Set other) {
if (other == grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance()) return this;
if (!other.elements_.isEmpty()) {
if (elements_.isEmpty()) {
elements_ = other.elements_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureElementsIsMutable();
elements_.addAll(other.elements_);
}
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();
ensureElementsIsMutable();
elements_.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 java.util.List elements_ = java.util.Collections.emptyList();
private void ensureElementsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
elements_ = new java.util.ArrayList(elements_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes elements = 1;
* @return A list containing the elements.
*/
public java.util.List
getElementsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(elements_) : elements_;
}
/**
* repeated bytes elements = 1;
* @return The count of elements.
*/
public int getElementsCount() {
return elements_.size();
}
/**
* repeated bytes elements = 1;
* @param index The index of the element to return.
* @return The elements at the given index.
*/
public com.google.protobuf.ByteString getElements(int index) {
return elements_.get(index);
}
/**
* repeated bytes elements = 1;
* @param index The index to set the value at.
* @param value The elements to set.
* @return This builder for chaining.
*/
public Builder setElements(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureElementsIsMutable();
elements_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes elements = 1;
* @param value The elements to add.
* @return This builder for chaining.
*/
public Builder addElements(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureElementsIsMutable();
elements_.add(value);
onChanged();
return this;
}
/**
* repeated bytes elements = 1;
* @param values The elements to add.
* @return This builder for chaining.
*/
public Builder addAllElements(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elements_);
onChanged();
return this;
}
/**
* repeated bytes elements = 1;
* @return This builder for chaining.
*/
public Builder clearElements() {
elements_ = java.util.Collections.emptyList();
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._SetDifferenceRequest._Subtrahend._Set)
}
// @@protoc_insertion_point(class_scope:cache_client._SetDifferenceRequest._Subtrahend._Set)
private static final grpc.cache_client._SetDifferenceRequest._Subtrahend._Set DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SetDifferenceRequest._Subtrahend._Set();
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Set getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Set>
PARSER = new com.google.protobuf.AbstractParser<_Set>() {
@java.lang.Override
public _Set 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<_Set> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Set> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface _IdentityOrBuilder extends
// @@protoc_insertion_point(interface_extends:cache_client._SetDifferenceRequest._Subtrahend._Identity)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Subtract the set's identity (itself) from itself - which deletes it.
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Subtrahend._Identity}
*/
public static final class _Identity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SetDifferenceRequest._Subtrahend._Identity)
_IdentityOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Identity.newBuilder() to construct.
private _Identity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Identity() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Identity();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Identity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Identity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.class, grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.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._SetDifferenceRequest._Subtrahend._Identity)) {
return super.equals(obj);
}
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity other = (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) 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._SetDifferenceRequest._Subtrahend._Identity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity 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._SetDifferenceRequest._Subtrahend._Identity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity 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._SetDifferenceRequest._Subtrahend._Identity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity 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._SetDifferenceRequest._Subtrahend._Identity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity 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._SetDifferenceRequest._Subtrahend._Identity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity 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._SetDifferenceRequest._Subtrahend._Identity 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;
}
/**
*
* Subtract the set's identity (itself) from itself - which deletes it.
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Subtrahend._Identity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SetDifferenceRequest._Subtrahend._Identity)
grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Identity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend__Identity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.class, grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.Builder.class);
}
// Construct using grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.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__SetDifferenceRequest__Subtrahend__Identity_descriptor;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity getDefaultInstanceForType() {
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity build() {
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity buildPartial() {
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity result = new grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) {
return mergeFrom((grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity other) {
if (other == grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.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._SetDifferenceRequest._Subtrahend._Identity)
}
// @@protoc_insertion_point(class_scope:cache_client._SetDifferenceRequest._Subtrahend._Identity)
private static final grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity();
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Identity>
PARSER = new com.google.protobuf.AbstractParser<_Identity>() {
@java.lang.Override
public _Identity 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<_Identity> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Identity> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int subtrahendSetCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object subtrahendSet_;
public enum SubtrahendSetCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SET(1),
IDENTITY(2),
SUBTRAHENDSET_NOT_SET(0);
private final int value;
private SubtrahendSetCase(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 SubtrahendSetCase valueOf(int value) {
return forNumber(value);
}
public static SubtrahendSetCase forNumber(int value) {
switch (value) {
case 1: return SET;
case 2: return IDENTITY;
case 0: return SUBTRAHENDSET_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SubtrahendSetCase
getSubtrahendSetCase() {
return SubtrahendSetCase.forNumber(
subtrahendSetCase_);
}
public static final int SET_FIELD_NUMBER = 1;
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return subtrahendSetCase_ == 1;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
* @return The set.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set getSet() {
if (subtrahendSetCase_ == 1) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder getSetOrBuilder() {
if (subtrahendSetCase_ == 1) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
}
public static final int IDENTITY_FIELD_NUMBER = 2;
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
* @return Whether the identity field is set.
*/
@java.lang.Override
public boolean hasIdentity() {
return subtrahendSetCase_ == 2;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
* @return The identity.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity getIdentity() {
if (subtrahendSetCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance();
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder getIdentityOrBuilder() {
if (subtrahendSetCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.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 (subtrahendSetCase_ == 1) {
output.writeMessage(1, (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_);
}
if (subtrahendSetCase_ == 2) {
output.writeMessage(2, (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (subtrahendSetCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_);
}
if (subtrahendSetCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_);
}
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._SetDifferenceRequest._Subtrahend)) {
return super.equals(obj);
}
grpc.cache_client._SetDifferenceRequest._Subtrahend other = (grpc.cache_client._SetDifferenceRequest._Subtrahend) obj;
if (!getSubtrahendSetCase().equals(other.getSubtrahendSetCase())) return false;
switch (subtrahendSetCase_) {
case 1:
if (!getSet()
.equals(other.getSet())) return false;
break;
case 2:
if (!getIdentity()
.equals(other.getIdentity())) 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 (subtrahendSetCase_) {
case 1:
hash = (37 * hash) + SET_FIELD_NUMBER;
hash = (53 * hash) + getSet().hashCode();
break;
case 2:
hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getIdentity().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend 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._SetDifferenceRequest._Subtrahend parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend 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._SetDifferenceRequest._Subtrahend parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend 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._SetDifferenceRequest._Subtrahend parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend 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._SetDifferenceRequest._Subtrahend parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend 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._SetDifferenceRequest._Subtrahend 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;
}
/**
*
* cache = stored - request
*
*
* Protobuf type {@code cache_client._SetDifferenceRequest._Subtrahend}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SetDifferenceRequest._Subtrahend)
grpc.cache_client._SetDifferenceRequest._SubtrahendOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest._Subtrahend.class, grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder.class);
}
// Construct using grpc.cache_client._SetDifferenceRequest._Subtrahend.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (setBuilder_ != null) {
setBuilder_.clear();
}
if (identityBuilder_ != null) {
identityBuilder_.clear();
}
subtrahendSetCase_ = 0;
subtrahendSet_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest__Subtrahend_descriptor;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend getDefaultInstanceForType() {
return grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend build() {
grpc.cache_client._SetDifferenceRequest._Subtrahend result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend buildPartial() {
grpc.cache_client._SetDifferenceRequest._Subtrahend result = new grpc.cache_client._SetDifferenceRequest._Subtrahend(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SetDifferenceRequest._Subtrahend result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(grpc.cache_client._SetDifferenceRequest._Subtrahend result) {
result.subtrahendSetCase_ = subtrahendSetCase_;
result.subtrahendSet_ = this.subtrahendSet_;
if (subtrahendSetCase_ == 1 &&
setBuilder_ != null) {
result.subtrahendSet_ = setBuilder_.build();
}
if (subtrahendSetCase_ == 2 &&
identityBuilder_ != null) {
result.subtrahendSet_ = identityBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SetDifferenceRequest._Subtrahend) {
return mergeFrom((grpc.cache_client._SetDifferenceRequest._Subtrahend)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SetDifferenceRequest._Subtrahend other) {
if (other == grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance()) return this;
switch (other.getSubtrahendSetCase()) {
case SET: {
mergeSet(other.getSet());
break;
}
case IDENTITY: {
mergeIdentity(other.getIdentity());
break;
}
case SUBTRAHENDSET_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(
getSetFieldBuilder().getBuilder(),
extensionRegistry);
subtrahendSetCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getIdentityFieldBuilder().getBuilder(),
extensionRegistry);
subtrahendSetCase_ = 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 subtrahendSetCase_ = 0;
private java.lang.Object subtrahendSet_;
public SubtrahendSetCase
getSubtrahendSetCase() {
return SubtrahendSetCase.forNumber(
subtrahendSetCase_);
}
public Builder clearSubtrahendSet() {
subtrahendSetCase_ = 0;
subtrahendSet_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set, grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder, grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder> setBuilder_;
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return subtrahendSetCase_ == 1;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
* @return The set.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set getSet() {
if (setBuilder_ == null) {
if (subtrahendSetCase_ == 1) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
} else {
if (subtrahendSetCase_ == 1) {
return setBuilder_.getMessage();
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
public Builder setSet(grpc.cache_client._SetDifferenceRequest._Subtrahend._Set value) {
if (setBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subtrahendSet_ = value;
onChanged();
} else {
setBuilder_.setMessage(value);
}
subtrahendSetCase_ = 1;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
public Builder setSet(
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder builderForValue) {
if (setBuilder_ == null) {
subtrahendSet_ = builderForValue.build();
onChanged();
} else {
setBuilder_.setMessage(builderForValue.build());
}
subtrahendSetCase_ = 1;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
public Builder mergeSet(grpc.cache_client._SetDifferenceRequest._Subtrahend._Set value) {
if (setBuilder_ == null) {
if (subtrahendSetCase_ == 1 &&
subtrahendSet_ != grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance()) {
subtrahendSet_ = grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.newBuilder((grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_)
.mergeFrom(value).buildPartial();
} else {
subtrahendSet_ = value;
}
onChanged();
} else {
if (subtrahendSetCase_ == 1) {
setBuilder_.mergeFrom(value);
} else {
setBuilder_.setMessage(value);
}
}
subtrahendSetCase_ = 1;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
public Builder clearSet() {
if (setBuilder_ == null) {
if (subtrahendSetCase_ == 1) {
subtrahendSetCase_ = 0;
subtrahendSet_ = null;
onChanged();
}
} else {
if (subtrahendSetCase_ == 1) {
subtrahendSetCase_ = 0;
subtrahendSet_ = null;
}
setBuilder_.clear();
}
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder getSetBuilder() {
return getSetFieldBuilder().getBuilder();
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder getSetOrBuilder() {
if ((subtrahendSetCase_ == 1) && (setBuilder_ != null)) {
return setBuilder_.getMessageOrBuilder();
} else {
if (subtrahendSetCase_ == 1) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Set set = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set, grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder, grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder>
getSetFieldBuilder() {
if (setBuilder_ == null) {
if (!(subtrahendSetCase_ == 1)) {
subtrahendSet_ = grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.getDefaultInstance();
}
setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend._Set, grpc.cache_client._SetDifferenceRequest._Subtrahend._Set.Builder, grpc.cache_client._SetDifferenceRequest._Subtrahend._SetOrBuilder>(
(grpc.cache_client._SetDifferenceRequest._Subtrahend._Set) subtrahendSet_,
getParentForChildren(),
isClean());
subtrahendSet_ = null;
}
subtrahendSetCase_ = 1;
onChanged();
return setBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity, grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.Builder, grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder> identityBuilder_;
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
* @return Whether the identity field is set.
*/
@java.lang.Override
public boolean hasIdentity() {
return subtrahendSetCase_ == 2;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
* @return The identity.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity getIdentity() {
if (identityBuilder_ == null) {
if (subtrahendSetCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance();
} else {
if (subtrahendSetCase_ == 2) {
return identityBuilder_.getMessage();
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
public Builder setIdentity(grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity value) {
if (identityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subtrahendSet_ = value;
onChanged();
} else {
identityBuilder_.setMessage(value);
}
subtrahendSetCase_ = 2;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
public Builder setIdentity(
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.Builder builderForValue) {
if (identityBuilder_ == null) {
subtrahendSet_ = builderForValue.build();
onChanged();
} else {
identityBuilder_.setMessage(builderForValue.build());
}
subtrahendSetCase_ = 2;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
public Builder mergeIdentity(grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity value) {
if (identityBuilder_ == null) {
if (subtrahendSetCase_ == 2 &&
subtrahendSet_ != grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance()) {
subtrahendSet_ = grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.newBuilder((grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_)
.mergeFrom(value).buildPartial();
} else {
subtrahendSet_ = value;
}
onChanged();
} else {
if (subtrahendSetCase_ == 2) {
identityBuilder_.mergeFrom(value);
} else {
identityBuilder_.setMessage(value);
}
}
subtrahendSetCase_ = 2;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
public Builder clearIdentity() {
if (identityBuilder_ == null) {
if (subtrahendSetCase_ == 2) {
subtrahendSetCase_ = 0;
subtrahendSet_ = null;
onChanged();
}
} else {
if (subtrahendSetCase_ == 2) {
subtrahendSetCase_ = 0;
subtrahendSet_ = null;
}
identityBuilder_.clear();
}
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
public grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.Builder getIdentityBuilder() {
return getIdentityFieldBuilder().getBuilder();
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder getIdentityOrBuilder() {
if ((subtrahendSetCase_ == 2) && (identityBuilder_ != null)) {
return identityBuilder_.getMessageOrBuilder();
} else {
if (subtrahendSetCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend._Identity identity = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity, grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.Builder, grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder>
getIdentityFieldBuilder() {
if (identityBuilder_ == null) {
if (!(subtrahendSetCase_ == 2)) {
subtrahendSet_ = grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.getDefaultInstance();
}
identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity, grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity.Builder, grpc.cache_client._SetDifferenceRequest._Subtrahend._IdentityOrBuilder>(
(grpc.cache_client._SetDifferenceRequest._Subtrahend._Identity) subtrahendSet_,
getParentForChildren(),
isClean());
subtrahendSet_ = null;
}
subtrahendSetCase_ = 2;
onChanged();
return identityBuilder_;
}
@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._SetDifferenceRequest._Subtrahend)
}
// @@protoc_insertion_point(class_scope:cache_client._SetDifferenceRequest._Subtrahend)
private static final grpc.cache_client._SetDifferenceRequest._Subtrahend DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SetDifferenceRequest._Subtrahend();
}
public static grpc.cache_client._SetDifferenceRequest._Subtrahend getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Subtrahend>
PARSER = new com.google.protobuf.AbstractParser<_Subtrahend>() {
@java.lang.Override
public _Subtrahend 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<_Subtrahend> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Subtrahend> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int differenceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object difference_;
public enum DifferenceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
MINUEND(2),
SUBTRAHEND(3),
DIFFERENCE_NOT_SET(0);
private final int value;
private DifferenceCase(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 DifferenceCase valueOf(int value) {
return forNumber(value);
}
public static DifferenceCase forNumber(int value) {
switch (value) {
case 2: return MINUEND;
case 3: return SUBTRAHEND;
case 0: return DIFFERENCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DifferenceCase
getDifferenceCase() {
return DifferenceCase.forNumber(
differenceCase_);
}
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 MINUEND_FIELD_NUMBER = 2;
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
* @return Whether the minuend field is set.
*/
@java.lang.Override
public boolean hasMinuend() {
return differenceCase_ == 2;
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
* @return The minuend.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Minuend getMinuend() {
if (differenceCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Minuend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._MinuendOrBuilder getMinuendOrBuilder() {
if (differenceCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Minuend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
}
public static final int SUBTRAHEND_FIELD_NUMBER = 3;
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
* @return Whether the subtrahend field is set.
*/
@java.lang.Override
public boolean hasSubtrahend() {
return differenceCase_ == 3;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
* @return The subtrahend.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend getSubtrahend() {
if (differenceCase_ == 3) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance();
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._SubtrahendOrBuilder getSubtrahendOrBuilder() {
if (differenceCase_ == 3) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend.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 (differenceCase_ == 2) {
output.writeMessage(2, (grpc.cache_client._SetDifferenceRequest._Minuend) difference_);
}
if (differenceCase_ == 3) {
output.writeMessage(3, (grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_);
}
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 (differenceCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (grpc.cache_client._SetDifferenceRequest._Minuend) difference_);
}
if (differenceCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_);
}
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._SetDifferenceRequest)) {
return super.equals(obj);
}
grpc.cache_client._SetDifferenceRequest other = (grpc.cache_client._SetDifferenceRequest) obj;
if (!getSetName()
.equals(other.getSetName())) return false;
if (!getDifferenceCase().equals(other.getDifferenceCase())) return false;
switch (differenceCase_) {
case 2:
if (!getMinuend()
.equals(other.getMinuend())) return false;
break;
case 3:
if (!getSubtrahend()
.equals(other.getSubtrahend())) 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 (differenceCase_) {
case 2:
hash = (37 * hash) + MINUEND_FIELD_NUMBER;
hash = (53 * hash) + getMinuend().hashCode();
break;
case 3:
hash = (37 * hash) + SUBTRAHEND_FIELD_NUMBER;
hash = (53 * hash) + getSubtrahend().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SetDifferenceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest 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._SetDifferenceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest 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._SetDifferenceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetDifferenceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SetDifferenceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest 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._SetDifferenceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest 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._SetDifferenceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetDifferenceRequest 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._SetDifferenceRequest 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._SetDifferenceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SetDifferenceRequest)
grpc.cache_client._SetDifferenceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetDifferenceRequest.class, grpc.cache_client._SetDifferenceRequest.Builder.class);
}
// Construct using grpc.cache_client._SetDifferenceRequest.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 (minuendBuilder_ != null) {
minuendBuilder_.clear();
}
if (subtrahendBuilder_ != null) {
subtrahendBuilder_.clear();
}
differenceCase_ = 0;
difference_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetDifferenceRequest_descriptor;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest getDefaultInstanceForType() {
return grpc.cache_client._SetDifferenceRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest build() {
grpc.cache_client._SetDifferenceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest buildPartial() {
grpc.cache_client._SetDifferenceRequest result = new grpc.cache_client._SetDifferenceRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SetDifferenceRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.setName_ = setName_;
}
}
private void buildPartialOneofs(grpc.cache_client._SetDifferenceRequest result) {
result.differenceCase_ = differenceCase_;
result.difference_ = this.difference_;
if (differenceCase_ == 2 &&
minuendBuilder_ != null) {
result.difference_ = minuendBuilder_.build();
}
if (differenceCase_ == 3 &&
subtrahendBuilder_ != null) {
result.difference_ = subtrahendBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SetDifferenceRequest) {
return mergeFrom((grpc.cache_client._SetDifferenceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SetDifferenceRequest other) {
if (other == grpc.cache_client._SetDifferenceRequest.getDefaultInstance()) return this;
if (other.getSetName() != com.google.protobuf.ByteString.EMPTY) {
setSetName(other.getSetName());
}
switch (other.getDifferenceCase()) {
case MINUEND: {
mergeMinuend(other.getMinuend());
break;
}
case SUBTRAHEND: {
mergeSubtrahend(other.getSubtrahend());
break;
}
case DIFFERENCE_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(
getMinuendFieldBuilder().getBuilder(),
extensionRegistry);
differenceCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getSubtrahendFieldBuilder().getBuilder(),
extensionRegistry);
differenceCase_ = 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 differenceCase_ = 0;
private java.lang.Object difference_;
public DifferenceCase
getDifferenceCase() {
return DifferenceCase.forNumber(
differenceCase_);
}
public Builder clearDifference() {
differenceCase_ = 0;
difference_ = 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._SetDifferenceRequest._Minuend, grpc.cache_client._SetDifferenceRequest._Minuend.Builder, grpc.cache_client._SetDifferenceRequest._MinuendOrBuilder> minuendBuilder_;
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
* @return Whether the minuend field is set.
*/
@java.lang.Override
public boolean hasMinuend() {
return differenceCase_ == 2;
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
* @return The minuend.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Minuend getMinuend() {
if (minuendBuilder_ == null) {
if (differenceCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Minuend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
} else {
if (differenceCase_ == 2) {
return minuendBuilder_.getMessage();
}
return grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
public Builder setMinuend(grpc.cache_client._SetDifferenceRequest._Minuend value) {
if (minuendBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
difference_ = value;
onChanged();
} else {
minuendBuilder_.setMessage(value);
}
differenceCase_ = 2;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
public Builder setMinuend(
grpc.cache_client._SetDifferenceRequest._Minuend.Builder builderForValue) {
if (minuendBuilder_ == null) {
difference_ = builderForValue.build();
onChanged();
} else {
minuendBuilder_.setMessage(builderForValue.build());
}
differenceCase_ = 2;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
public Builder mergeMinuend(grpc.cache_client._SetDifferenceRequest._Minuend value) {
if (minuendBuilder_ == null) {
if (differenceCase_ == 2 &&
difference_ != grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance()) {
difference_ = grpc.cache_client._SetDifferenceRequest._Minuend.newBuilder((grpc.cache_client._SetDifferenceRequest._Minuend) difference_)
.mergeFrom(value).buildPartial();
} else {
difference_ = value;
}
onChanged();
} else {
if (differenceCase_ == 2) {
minuendBuilder_.mergeFrom(value);
} else {
minuendBuilder_.setMessage(value);
}
}
differenceCase_ = 2;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
public Builder clearMinuend() {
if (minuendBuilder_ == null) {
if (differenceCase_ == 2) {
differenceCase_ = 0;
difference_ = null;
onChanged();
}
} else {
if (differenceCase_ == 2) {
differenceCase_ = 0;
difference_ = null;
}
minuendBuilder_.clear();
}
return this;
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
public grpc.cache_client._SetDifferenceRequest._Minuend.Builder getMinuendBuilder() {
return getMinuendFieldBuilder().getBuilder();
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._MinuendOrBuilder getMinuendOrBuilder() {
if ((differenceCase_ == 2) && (minuendBuilder_ != null)) {
return minuendBuilder_.getMessageOrBuilder();
} else {
if (differenceCase_ == 2) {
return (grpc.cache_client._SetDifferenceRequest._Minuend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Minuend minuend = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Minuend, grpc.cache_client._SetDifferenceRequest._Minuend.Builder, grpc.cache_client._SetDifferenceRequest._MinuendOrBuilder>
getMinuendFieldBuilder() {
if (minuendBuilder_ == null) {
if (!(differenceCase_ == 2)) {
difference_ = grpc.cache_client._SetDifferenceRequest._Minuend.getDefaultInstance();
}
minuendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Minuend, grpc.cache_client._SetDifferenceRequest._Minuend.Builder, grpc.cache_client._SetDifferenceRequest._MinuendOrBuilder>(
(grpc.cache_client._SetDifferenceRequest._Minuend) difference_,
getParentForChildren(),
isClean());
difference_ = null;
}
differenceCase_ = 2;
onChanged();
return minuendBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend, grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder, grpc.cache_client._SetDifferenceRequest._SubtrahendOrBuilder> subtrahendBuilder_;
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
* @return Whether the subtrahend field is set.
*/
@java.lang.Override
public boolean hasSubtrahend() {
return differenceCase_ == 3;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
* @return The subtrahend.
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._Subtrahend getSubtrahend() {
if (subtrahendBuilder_ == null) {
if (differenceCase_ == 3) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance();
} else {
if (differenceCase_ == 3) {
return subtrahendBuilder_.getMessage();
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
public Builder setSubtrahend(grpc.cache_client._SetDifferenceRequest._Subtrahend value) {
if (subtrahendBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
difference_ = value;
onChanged();
} else {
subtrahendBuilder_.setMessage(value);
}
differenceCase_ = 3;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
public Builder setSubtrahend(
grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder builderForValue) {
if (subtrahendBuilder_ == null) {
difference_ = builderForValue.build();
onChanged();
} else {
subtrahendBuilder_.setMessage(builderForValue.build());
}
differenceCase_ = 3;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
public Builder mergeSubtrahend(grpc.cache_client._SetDifferenceRequest._Subtrahend value) {
if (subtrahendBuilder_ == null) {
if (differenceCase_ == 3 &&
difference_ != grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance()) {
difference_ = grpc.cache_client._SetDifferenceRequest._Subtrahend.newBuilder((grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_)
.mergeFrom(value).buildPartial();
} else {
difference_ = value;
}
onChanged();
} else {
if (differenceCase_ == 3) {
subtrahendBuilder_.mergeFrom(value);
} else {
subtrahendBuilder_.setMessage(value);
}
}
differenceCase_ = 3;
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
public Builder clearSubtrahend() {
if (subtrahendBuilder_ == null) {
if (differenceCase_ == 3) {
differenceCase_ = 0;
difference_ = null;
onChanged();
}
} else {
if (differenceCase_ == 3) {
differenceCase_ = 0;
difference_ = null;
}
subtrahendBuilder_.clear();
}
return this;
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
public grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder getSubtrahendBuilder() {
return getSubtrahendFieldBuilder().getBuilder();
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest._SubtrahendOrBuilder getSubtrahendOrBuilder() {
if ((differenceCase_ == 3) && (subtrahendBuilder_ != null)) {
return subtrahendBuilder_.getMessageOrBuilder();
} else {
if (differenceCase_ == 3) {
return (grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_;
}
return grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance();
}
}
/**
* .cache_client._SetDifferenceRequest._Subtrahend subtrahend = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend, grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder, grpc.cache_client._SetDifferenceRequest._SubtrahendOrBuilder>
getSubtrahendFieldBuilder() {
if (subtrahendBuilder_ == null) {
if (!(differenceCase_ == 3)) {
difference_ = grpc.cache_client._SetDifferenceRequest._Subtrahend.getDefaultInstance();
}
subtrahendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client._SetDifferenceRequest._Subtrahend, grpc.cache_client._SetDifferenceRequest._Subtrahend.Builder, grpc.cache_client._SetDifferenceRequest._SubtrahendOrBuilder>(
(grpc.cache_client._SetDifferenceRequest._Subtrahend) difference_,
getParentForChildren(),
isClean());
difference_ = null;
}
differenceCase_ = 3;
onChanged();
return subtrahendBuilder_;
}
@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._SetDifferenceRequest)
}
// @@protoc_insertion_point(class_scope:cache_client._SetDifferenceRequest)
private static final grpc.cache_client._SetDifferenceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SetDifferenceRequest();
}
public static grpc.cache_client._SetDifferenceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_SetDifferenceRequest>
PARSER = new com.google.protobuf.AbstractParser<_SetDifferenceRequest>() {
@java.lang.Override
public _SetDifferenceRequest 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<_SetDifferenceRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_SetDifferenceRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SetDifferenceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}