grpc.cache_client._SetIfRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos-jvm Show documentation
Show all versions of client-protos-jvm Show documentation
Kotlin protobuf protocols for the JVM that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cacheclient.proto
package grpc.cache_client;
/**
* Protobuf type {@code cache_client._SetIfRequest}
*/
public final class _SetIfRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._SetIfRequest)
_SetIfRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use _SetIfRequest.newBuilder() to construct.
private _SetIfRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _SetIfRequest() {
cacheKey_ = com.google.protobuf.ByteString.EMPTY;
cacheBody_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _SetIfRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetIfRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetIfRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetIfRequest.class, grpc.cache_client._SetIfRequest.Builder.class);
}
private int conditionCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object condition_;
public enum ConditionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PRESENT(4),
PRESENT_AND_NOT_EQUAL(5),
ABSENT(6),
EQUAL(7),
ABSENT_OR_EQUAL(8),
NOT_EQUAL(9),
CONDITION_NOT_SET(0);
private final int value;
private ConditionCase(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 ConditionCase valueOf(int value) {
return forNumber(value);
}
public static ConditionCase forNumber(int value) {
switch (value) {
case 4: return PRESENT;
case 5: return PRESENT_AND_NOT_EQUAL;
case 6: return ABSENT;
case 7: return EQUAL;
case 8: return ABSENT_OR_EQUAL;
case 9: return NOT_EQUAL;
case 0: return CONDITION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConditionCase
getConditionCase() {
return ConditionCase.forNumber(
conditionCase_);
}
public static final int CACHE_KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString cacheKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes cache_key = 1;
* @return The cacheKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCacheKey() {
return cacheKey_;
}
public static final int CACHE_BODY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString cacheBody_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes cache_body = 2;
* @return The cacheBody.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCacheBody() {
return cacheBody_;
}
public static final int TTL_MILLISECONDS_FIELD_NUMBER = 3;
private long ttlMilliseconds_ = 0L;
/**
* uint64 ttl_milliseconds = 3;
* @return The ttlMilliseconds.
*/
@java.lang.Override
public long getTtlMilliseconds() {
return ttlMilliseconds_;
}
public static final int PRESENT_FIELD_NUMBER = 4;
/**
* .common.Present present = 4;
* @return Whether the present field is set.
*/
@java.lang.Override
public boolean hasPresent() {
return conditionCase_ == 4;
}
/**
* .common.Present present = 4;
* @return The present.
*/
@java.lang.Override
public grpc.common.Present getPresent() {
if (conditionCase_ == 4) {
return (grpc.common.Present) condition_;
}
return grpc.common.Present.getDefaultInstance();
}
/**
* .common.Present present = 4;
*/
@java.lang.Override
public grpc.common.PresentOrBuilder getPresentOrBuilder() {
if (conditionCase_ == 4) {
return (grpc.common.Present) condition_;
}
return grpc.common.Present.getDefaultInstance();
}
public static final int PRESENT_AND_NOT_EQUAL_FIELD_NUMBER = 5;
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
* @return Whether the presentAndNotEqual field is set.
*/
@java.lang.Override
public boolean hasPresentAndNotEqual() {
return conditionCase_ == 5;
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
* @return The presentAndNotEqual.
*/
@java.lang.Override
public grpc.common.PresentAndNotEqual getPresentAndNotEqual() {
if (conditionCase_ == 5) {
return (grpc.common.PresentAndNotEqual) condition_;
}
return grpc.common.PresentAndNotEqual.getDefaultInstance();
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
@java.lang.Override
public grpc.common.PresentAndNotEqualOrBuilder getPresentAndNotEqualOrBuilder() {
if (conditionCase_ == 5) {
return (grpc.common.PresentAndNotEqual) condition_;
}
return grpc.common.PresentAndNotEqual.getDefaultInstance();
}
public static final int ABSENT_FIELD_NUMBER = 6;
/**
* .common.Absent absent = 6;
* @return Whether the absent field is set.
*/
@java.lang.Override
public boolean hasAbsent() {
return conditionCase_ == 6;
}
/**
* .common.Absent absent = 6;
* @return The absent.
*/
@java.lang.Override
public grpc.common.Absent getAbsent() {
if (conditionCase_ == 6) {
return (grpc.common.Absent) condition_;
}
return grpc.common.Absent.getDefaultInstance();
}
/**
* .common.Absent absent = 6;
*/
@java.lang.Override
public grpc.common.AbsentOrBuilder getAbsentOrBuilder() {
if (conditionCase_ == 6) {
return (grpc.common.Absent) condition_;
}
return grpc.common.Absent.getDefaultInstance();
}
public static final int EQUAL_FIELD_NUMBER = 7;
/**
* .common.Equal equal = 7;
* @return Whether the equal field is set.
*/
@java.lang.Override
public boolean hasEqual() {
return conditionCase_ == 7;
}
/**
* .common.Equal equal = 7;
* @return The equal.
*/
@java.lang.Override
public grpc.common.Equal getEqual() {
if (conditionCase_ == 7) {
return (grpc.common.Equal) condition_;
}
return grpc.common.Equal.getDefaultInstance();
}
/**
* .common.Equal equal = 7;
*/
@java.lang.Override
public grpc.common.EqualOrBuilder getEqualOrBuilder() {
if (conditionCase_ == 7) {
return (grpc.common.Equal) condition_;
}
return grpc.common.Equal.getDefaultInstance();
}
public static final int ABSENT_OR_EQUAL_FIELD_NUMBER = 8;
/**
* .common.AbsentOrEqual absent_or_equal = 8;
* @return Whether the absentOrEqual field is set.
*/
@java.lang.Override
public boolean hasAbsentOrEqual() {
return conditionCase_ == 8;
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
* @return The absentOrEqual.
*/
@java.lang.Override
public grpc.common.AbsentOrEqual getAbsentOrEqual() {
if (conditionCase_ == 8) {
return (grpc.common.AbsentOrEqual) condition_;
}
return grpc.common.AbsentOrEqual.getDefaultInstance();
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
@java.lang.Override
public grpc.common.AbsentOrEqualOrBuilder getAbsentOrEqualOrBuilder() {
if (conditionCase_ == 8) {
return (grpc.common.AbsentOrEqual) condition_;
}
return grpc.common.AbsentOrEqual.getDefaultInstance();
}
public static final int NOT_EQUAL_FIELD_NUMBER = 9;
/**
* .common.NotEqual not_equal = 9;
* @return Whether the notEqual field is set.
*/
@java.lang.Override
public boolean hasNotEqual() {
return conditionCase_ == 9;
}
/**
* .common.NotEqual not_equal = 9;
* @return The notEqual.
*/
@java.lang.Override
public grpc.common.NotEqual getNotEqual() {
if (conditionCase_ == 9) {
return (grpc.common.NotEqual) condition_;
}
return grpc.common.NotEqual.getDefaultInstance();
}
/**
* .common.NotEqual not_equal = 9;
*/
@java.lang.Override
public grpc.common.NotEqualOrBuilder getNotEqualOrBuilder() {
if (conditionCase_ == 9) {
return (grpc.common.NotEqual) condition_;
}
return grpc.common.NotEqual.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 (!cacheKey_.isEmpty()) {
output.writeBytes(1, cacheKey_);
}
if (!cacheBody_.isEmpty()) {
output.writeBytes(2, cacheBody_);
}
if (ttlMilliseconds_ != 0L) {
output.writeUInt64(3, ttlMilliseconds_);
}
if (conditionCase_ == 4) {
output.writeMessage(4, (grpc.common.Present) condition_);
}
if (conditionCase_ == 5) {
output.writeMessage(5, (grpc.common.PresentAndNotEqual) condition_);
}
if (conditionCase_ == 6) {
output.writeMessage(6, (grpc.common.Absent) condition_);
}
if (conditionCase_ == 7) {
output.writeMessage(7, (grpc.common.Equal) condition_);
}
if (conditionCase_ == 8) {
output.writeMessage(8, (grpc.common.AbsentOrEqual) condition_);
}
if (conditionCase_ == 9) {
output.writeMessage(9, (grpc.common.NotEqual) condition_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!cacheKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, cacheKey_);
}
if (!cacheBody_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, cacheBody_);
}
if (ttlMilliseconds_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, ttlMilliseconds_);
}
if (conditionCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (grpc.common.Present) condition_);
}
if (conditionCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (grpc.common.PresentAndNotEqual) condition_);
}
if (conditionCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (grpc.common.Absent) condition_);
}
if (conditionCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (grpc.common.Equal) condition_);
}
if (conditionCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (grpc.common.AbsentOrEqual) condition_);
}
if (conditionCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (grpc.common.NotEqual) condition_);
}
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._SetIfRequest)) {
return super.equals(obj);
}
grpc.cache_client._SetIfRequest other = (grpc.cache_client._SetIfRequest) obj;
if (!getCacheKey()
.equals(other.getCacheKey())) return false;
if (!getCacheBody()
.equals(other.getCacheBody())) return false;
if (getTtlMilliseconds()
!= other.getTtlMilliseconds()) return false;
if (!getConditionCase().equals(other.getConditionCase())) return false;
switch (conditionCase_) {
case 4:
if (!getPresent()
.equals(other.getPresent())) return false;
break;
case 5:
if (!getPresentAndNotEqual()
.equals(other.getPresentAndNotEqual())) return false;
break;
case 6:
if (!getAbsent()
.equals(other.getAbsent())) return false;
break;
case 7:
if (!getEqual()
.equals(other.getEqual())) return false;
break;
case 8:
if (!getAbsentOrEqual()
.equals(other.getAbsentOrEqual())) return false;
break;
case 9:
if (!getNotEqual()
.equals(other.getNotEqual())) 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) + CACHE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getCacheKey().hashCode();
hash = (37 * hash) + CACHE_BODY_FIELD_NUMBER;
hash = (53 * hash) + getCacheBody().hashCode();
hash = (37 * hash) + TTL_MILLISECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTtlMilliseconds());
switch (conditionCase_) {
case 4:
hash = (37 * hash) + PRESENT_FIELD_NUMBER;
hash = (53 * hash) + getPresent().hashCode();
break;
case 5:
hash = (37 * hash) + PRESENT_AND_NOT_EQUAL_FIELD_NUMBER;
hash = (53 * hash) + getPresentAndNotEqual().hashCode();
break;
case 6:
hash = (37 * hash) + ABSENT_FIELD_NUMBER;
hash = (53 * hash) + getAbsent().hashCode();
break;
case 7:
hash = (37 * hash) + EQUAL_FIELD_NUMBER;
hash = (53 * hash) + getEqual().hashCode();
break;
case 8:
hash = (37 * hash) + ABSENT_OR_EQUAL_FIELD_NUMBER;
hash = (53 * hash) + getAbsentOrEqual().hashCode();
break;
case 9:
hash = (37 * hash) + NOT_EQUAL_FIELD_NUMBER;
hash = (53 * hash) + getNotEqual().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._SetIfRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetIfRequest 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._SetIfRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetIfRequest 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._SetIfRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._SetIfRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._SetIfRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetIfRequest 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._SetIfRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._SetIfRequest 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._SetIfRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._SetIfRequest 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._SetIfRequest 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._SetIfRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._SetIfRequest)
grpc.cache_client._SetIfRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetIfRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetIfRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._SetIfRequest.class, grpc.cache_client._SetIfRequest.Builder.class);
}
// Construct using grpc.cache_client._SetIfRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
cacheKey_ = com.google.protobuf.ByteString.EMPTY;
cacheBody_ = com.google.protobuf.ByteString.EMPTY;
ttlMilliseconds_ = 0L;
if (presentBuilder_ != null) {
presentBuilder_.clear();
}
if (presentAndNotEqualBuilder_ != null) {
presentAndNotEqualBuilder_.clear();
}
if (absentBuilder_ != null) {
absentBuilder_.clear();
}
if (equalBuilder_ != null) {
equalBuilder_.clear();
}
if (absentOrEqualBuilder_ != null) {
absentOrEqualBuilder_.clear();
}
if (notEqualBuilder_ != null) {
notEqualBuilder_.clear();
}
conditionCase_ = 0;
condition_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__SetIfRequest_descriptor;
}
@java.lang.Override
public grpc.cache_client._SetIfRequest getDefaultInstanceForType() {
return grpc.cache_client._SetIfRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._SetIfRequest build() {
grpc.cache_client._SetIfRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._SetIfRequest buildPartial() {
grpc.cache_client._SetIfRequest result = new grpc.cache_client._SetIfRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._SetIfRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.cacheKey_ = cacheKey_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.cacheBody_ = cacheBody_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ttlMilliseconds_ = ttlMilliseconds_;
}
}
private void buildPartialOneofs(grpc.cache_client._SetIfRequest result) {
result.conditionCase_ = conditionCase_;
result.condition_ = this.condition_;
if (conditionCase_ == 4 &&
presentBuilder_ != null) {
result.condition_ = presentBuilder_.build();
}
if (conditionCase_ == 5 &&
presentAndNotEqualBuilder_ != null) {
result.condition_ = presentAndNotEqualBuilder_.build();
}
if (conditionCase_ == 6 &&
absentBuilder_ != null) {
result.condition_ = absentBuilder_.build();
}
if (conditionCase_ == 7 &&
equalBuilder_ != null) {
result.condition_ = equalBuilder_.build();
}
if (conditionCase_ == 8 &&
absentOrEqualBuilder_ != null) {
result.condition_ = absentOrEqualBuilder_.build();
}
if (conditionCase_ == 9 &&
notEqualBuilder_ != null) {
result.condition_ = notEqualBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.cache_client._SetIfRequest) {
return mergeFrom((grpc.cache_client._SetIfRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._SetIfRequest other) {
if (other == grpc.cache_client._SetIfRequest.getDefaultInstance()) return this;
if (other.getCacheKey() != com.google.protobuf.ByteString.EMPTY) {
setCacheKey(other.getCacheKey());
}
if (other.getCacheBody() != com.google.protobuf.ByteString.EMPTY) {
setCacheBody(other.getCacheBody());
}
if (other.getTtlMilliseconds() != 0L) {
setTtlMilliseconds(other.getTtlMilliseconds());
}
switch (other.getConditionCase()) {
case PRESENT: {
mergePresent(other.getPresent());
break;
}
case PRESENT_AND_NOT_EQUAL: {
mergePresentAndNotEqual(other.getPresentAndNotEqual());
break;
}
case ABSENT: {
mergeAbsent(other.getAbsent());
break;
}
case EQUAL: {
mergeEqual(other.getEqual());
break;
}
case ABSENT_OR_EQUAL: {
mergeAbsentOrEqual(other.getAbsentOrEqual());
break;
}
case NOT_EQUAL: {
mergeNotEqual(other.getNotEqual());
break;
}
case CONDITION_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: {
cacheKey_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
cacheBody_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
ttlMilliseconds_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getPresentFieldBuilder().getBuilder(),
extensionRegistry);
conditionCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getPresentAndNotEqualFieldBuilder().getBuilder(),
extensionRegistry);
conditionCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getAbsentFieldBuilder().getBuilder(),
extensionRegistry);
conditionCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getEqualFieldBuilder().getBuilder(),
extensionRegistry);
conditionCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getAbsentOrEqualFieldBuilder().getBuilder(),
extensionRegistry);
conditionCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getNotEqualFieldBuilder().getBuilder(),
extensionRegistry);
conditionCase_ = 9;
break;
} // case 74
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 conditionCase_ = 0;
private java.lang.Object condition_;
public ConditionCase
getConditionCase() {
return ConditionCase.forNumber(
conditionCase_);
}
public Builder clearCondition() {
conditionCase_ = 0;
condition_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString cacheKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes cache_key = 1;
* @return The cacheKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCacheKey() {
return cacheKey_;
}
/**
* bytes cache_key = 1;
* @param value The cacheKey to set.
* @return This builder for chaining.
*/
public Builder setCacheKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
cacheKey_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes cache_key = 1;
* @return This builder for chaining.
*/
public Builder clearCacheKey() {
bitField0_ = (bitField0_ & ~0x00000001);
cacheKey_ = getDefaultInstance().getCacheKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString cacheBody_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes cache_body = 2;
* @return The cacheBody.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCacheBody() {
return cacheBody_;
}
/**
* bytes cache_body = 2;
* @param value The cacheBody to set.
* @return This builder for chaining.
*/
public Builder setCacheBody(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
cacheBody_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes cache_body = 2;
* @return This builder for chaining.
*/
public Builder clearCacheBody() {
bitField0_ = (bitField0_ & ~0x00000002);
cacheBody_ = getDefaultInstance().getCacheBody();
onChanged();
return this;
}
private long ttlMilliseconds_ ;
/**
* uint64 ttl_milliseconds = 3;
* @return The ttlMilliseconds.
*/
@java.lang.Override
public long getTtlMilliseconds() {
return ttlMilliseconds_;
}
/**
* uint64 ttl_milliseconds = 3;
* @param value The ttlMilliseconds to set.
* @return This builder for chaining.
*/
public Builder setTtlMilliseconds(long value) {
ttlMilliseconds_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint64 ttl_milliseconds = 3;
* @return This builder for chaining.
*/
public Builder clearTtlMilliseconds() {
bitField0_ = (bitField0_ & ~0x00000004);
ttlMilliseconds_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Present, grpc.common.Present.Builder, grpc.common.PresentOrBuilder> presentBuilder_;
/**
* .common.Present present = 4;
* @return Whether the present field is set.
*/
@java.lang.Override
public boolean hasPresent() {
return conditionCase_ == 4;
}
/**
* .common.Present present = 4;
* @return The present.
*/
@java.lang.Override
public grpc.common.Present getPresent() {
if (presentBuilder_ == null) {
if (conditionCase_ == 4) {
return (grpc.common.Present) condition_;
}
return grpc.common.Present.getDefaultInstance();
} else {
if (conditionCase_ == 4) {
return presentBuilder_.getMessage();
}
return grpc.common.Present.getDefaultInstance();
}
}
/**
* .common.Present present = 4;
*/
public Builder setPresent(grpc.common.Present value) {
if (presentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
onChanged();
} else {
presentBuilder_.setMessage(value);
}
conditionCase_ = 4;
return this;
}
/**
* .common.Present present = 4;
*/
public Builder setPresent(
grpc.common.Present.Builder builderForValue) {
if (presentBuilder_ == null) {
condition_ = builderForValue.build();
onChanged();
} else {
presentBuilder_.setMessage(builderForValue.build());
}
conditionCase_ = 4;
return this;
}
/**
* .common.Present present = 4;
*/
public Builder mergePresent(grpc.common.Present value) {
if (presentBuilder_ == null) {
if (conditionCase_ == 4 &&
condition_ != grpc.common.Present.getDefaultInstance()) {
condition_ = grpc.common.Present.newBuilder((grpc.common.Present) condition_)
.mergeFrom(value).buildPartial();
} else {
condition_ = value;
}
onChanged();
} else {
if (conditionCase_ == 4) {
presentBuilder_.mergeFrom(value);
} else {
presentBuilder_.setMessage(value);
}
}
conditionCase_ = 4;
return this;
}
/**
* .common.Present present = 4;
*/
public Builder clearPresent() {
if (presentBuilder_ == null) {
if (conditionCase_ == 4) {
conditionCase_ = 0;
condition_ = null;
onChanged();
}
} else {
if (conditionCase_ == 4) {
conditionCase_ = 0;
condition_ = null;
}
presentBuilder_.clear();
}
return this;
}
/**
* .common.Present present = 4;
*/
public grpc.common.Present.Builder getPresentBuilder() {
return getPresentFieldBuilder().getBuilder();
}
/**
* .common.Present present = 4;
*/
@java.lang.Override
public grpc.common.PresentOrBuilder getPresentOrBuilder() {
if ((conditionCase_ == 4) && (presentBuilder_ != null)) {
return presentBuilder_.getMessageOrBuilder();
} else {
if (conditionCase_ == 4) {
return (grpc.common.Present) condition_;
}
return grpc.common.Present.getDefaultInstance();
}
}
/**
* .common.Present present = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Present, grpc.common.Present.Builder, grpc.common.PresentOrBuilder>
getPresentFieldBuilder() {
if (presentBuilder_ == null) {
if (!(conditionCase_ == 4)) {
condition_ = grpc.common.Present.getDefaultInstance();
}
presentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Present, grpc.common.Present.Builder, grpc.common.PresentOrBuilder>(
(grpc.common.Present) condition_,
getParentForChildren(),
isClean());
condition_ = null;
}
conditionCase_ = 4;
onChanged();
return presentBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.PresentAndNotEqual, grpc.common.PresentAndNotEqual.Builder, grpc.common.PresentAndNotEqualOrBuilder> presentAndNotEqualBuilder_;
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
* @return Whether the presentAndNotEqual field is set.
*/
@java.lang.Override
public boolean hasPresentAndNotEqual() {
return conditionCase_ == 5;
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
* @return The presentAndNotEqual.
*/
@java.lang.Override
public grpc.common.PresentAndNotEqual getPresentAndNotEqual() {
if (presentAndNotEqualBuilder_ == null) {
if (conditionCase_ == 5) {
return (grpc.common.PresentAndNotEqual) condition_;
}
return grpc.common.PresentAndNotEqual.getDefaultInstance();
} else {
if (conditionCase_ == 5) {
return presentAndNotEqualBuilder_.getMessage();
}
return grpc.common.PresentAndNotEqual.getDefaultInstance();
}
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
public Builder setPresentAndNotEqual(grpc.common.PresentAndNotEqual value) {
if (presentAndNotEqualBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
onChanged();
} else {
presentAndNotEqualBuilder_.setMessage(value);
}
conditionCase_ = 5;
return this;
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
public Builder setPresentAndNotEqual(
grpc.common.PresentAndNotEqual.Builder builderForValue) {
if (presentAndNotEqualBuilder_ == null) {
condition_ = builderForValue.build();
onChanged();
} else {
presentAndNotEqualBuilder_.setMessage(builderForValue.build());
}
conditionCase_ = 5;
return this;
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
public Builder mergePresentAndNotEqual(grpc.common.PresentAndNotEqual value) {
if (presentAndNotEqualBuilder_ == null) {
if (conditionCase_ == 5 &&
condition_ != grpc.common.PresentAndNotEqual.getDefaultInstance()) {
condition_ = grpc.common.PresentAndNotEqual.newBuilder((grpc.common.PresentAndNotEqual) condition_)
.mergeFrom(value).buildPartial();
} else {
condition_ = value;
}
onChanged();
} else {
if (conditionCase_ == 5) {
presentAndNotEqualBuilder_.mergeFrom(value);
} else {
presentAndNotEqualBuilder_.setMessage(value);
}
}
conditionCase_ = 5;
return this;
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
public Builder clearPresentAndNotEqual() {
if (presentAndNotEqualBuilder_ == null) {
if (conditionCase_ == 5) {
conditionCase_ = 0;
condition_ = null;
onChanged();
}
} else {
if (conditionCase_ == 5) {
conditionCase_ = 0;
condition_ = null;
}
presentAndNotEqualBuilder_.clear();
}
return this;
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
public grpc.common.PresentAndNotEqual.Builder getPresentAndNotEqualBuilder() {
return getPresentAndNotEqualFieldBuilder().getBuilder();
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
@java.lang.Override
public grpc.common.PresentAndNotEqualOrBuilder getPresentAndNotEqualOrBuilder() {
if ((conditionCase_ == 5) && (presentAndNotEqualBuilder_ != null)) {
return presentAndNotEqualBuilder_.getMessageOrBuilder();
} else {
if (conditionCase_ == 5) {
return (grpc.common.PresentAndNotEqual) condition_;
}
return grpc.common.PresentAndNotEqual.getDefaultInstance();
}
}
/**
* .common.PresentAndNotEqual present_and_not_equal = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.PresentAndNotEqual, grpc.common.PresentAndNotEqual.Builder, grpc.common.PresentAndNotEqualOrBuilder>
getPresentAndNotEqualFieldBuilder() {
if (presentAndNotEqualBuilder_ == null) {
if (!(conditionCase_ == 5)) {
condition_ = grpc.common.PresentAndNotEqual.getDefaultInstance();
}
presentAndNotEqualBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.common.PresentAndNotEqual, grpc.common.PresentAndNotEqual.Builder, grpc.common.PresentAndNotEqualOrBuilder>(
(grpc.common.PresentAndNotEqual) condition_,
getParentForChildren(),
isClean());
condition_ = null;
}
conditionCase_ = 5;
onChanged();
return presentAndNotEqualBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Absent, grpc.common.Absent.Builder, grpc.common.AbsentOrBuilder> absentBuilder_;
/**
* .common.Absent absent = 6;
* @return Whether the absent field is set.
*/
@java.lang.Override
public boolean hasAbsent() {
return conditionCase_ == 6;
}
/**
* .common.Absent absent = 6;
* @return The absent.
*/
@java.lang.Override
public grpc.common.Absent getAbsent() {
if (absentBuilder_ == null) {
if (conditionCase_ == 6) {
return (grpc.common.Absent) condition_;
}
return grpc.common.Absent.getDefaultInstance();
} else {
if (conditionCase_ == 6) {
return absentBuilder_.getMessage();
}
return grpc.common.Absent.getDefaultInstance();
}
}
/**
* .common.Absent absent = 6;
*/
public Builder setAbsent(grpc.common.Absent value) {
if (absentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
onChanged();
} else {
absentBuilder_.setMessage(value);
}
conditionCase_ = 6;
return this;
}
/**
* .common.Absent absent = 6;
*/
public Builder setAbsent(
grpc.common.Absent.Builder builderForValue) {
if (absentBuilder_ == null) {
condition_ = builderForValue.build();
onChanged();
} else {
absentBuilder_.setMessage(builderForValue.build());
}
conditionCase_ = 6;
return this;
}
/**
* .common.Absent absent = 6;
*/
public Builder mergeAbsent(grpc.common.Absent value) {
if (absentBuilder_ == null) {
if (conditionCase_ == 6 &&
condition_ != grpc.common.Absent.getDefaultInstance()) {
condition_ = grpc.common.Absent.newBuilder((grpc.common.Absent) condition_)
.mergeFrom(value).buildPartial();
} else {
condition_ = value;
}
onChanged();
} else {
if (conditionCase_ == 6) {
absentBuilder_.mergeFrom(value);
} else {
absentBuilder_.setMessage(value);
}
}
conditionCase_ = 6;
return this;
}
/**
* .common.Absent absent = 6;
*/
public Builder clearAbsent() {
if (absentBuilder_ == null) {
if (conditionCase_ == 6) {
conditionCase_ = 0;
condition_ = null;
onChanged();
}
} else {
if (conditionCase_ == 6) {
conditionCase_ = 0;
condition_ = null;
}
absentBuilder_.clear();
}
return this;
}
/**
* .common.Absent absent = 6;
*/
public grpc.common.Absent.Builder getAbsentBuilder() {
return getAbsentFieldBuilder().getBuilder();
}
/**
* .common.Absent absent = 6;
*/
@java.lang.Override
public grpc.common.AbsentOrBuilder getAbsentOrBuilder() {
if ((conditionCase_ == 6) && (absentBuilder_ != null)) {
return absentBuilder_.getMessageOrBuilder();
} else {
if (conditionCase_ == 6) {
return (grpc.common.Absent) condition_;
}
return grpc.common.Absent.getDefaultInstance();
}
}
/**
* .common.Absent absent = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Absent, grpc.common.Absent.Builder, grpc.common.AbsentOrBuilder>
getAbsentFieldBuilder() {
if (absentBuilder_ == null) {
if (!(conditionCase_ == 6)) {
condition_ = grpc.common.Absent.getDefaultInstance();
}
absentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Absent, grpc.common.Absent.Builder, grpc.common.AbsentOrBuilder>(
(grpc.common.Absent) condition_,
getParentForChildren(),
isClean());
condition_ = null;
}
conditionCase_ = 6;
onChanged();
return absentBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Equal, grpc.common.Equal.Builder, grpc.common.EqualOrBuilder> equalBuilder_;
/**
* .common.Equal equal = 7;
* @return Whether the equal field is set.
*/
@java.lang.Override
public boolean hasEqual() {
return conditionCase_ == 7;
}
/**
* .common.Equal equal = 7;
* @return The equal.
*/
@java.lang.Override
public grpc.common.Equal getEqual() {
if (equalBuilder_ == null) {
if (conditionCase_ == 7) {
return (grpc.common.Equal) condition_;
}
return grpc.common.Equal.getDefaultInstance();
} else {
if (conditionCase_ == 7) {
return equalBuilder_.getMessage();
}
return grpc.common.Equal.getDefaultInstance();
}
}
/**
* .common.Equal equal = 7;
*/
public Builder setEqual(grpc.common.Equal value) {
if (equalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
onChanged();
} else {
equalBuilder_.setMessage(value);
}
conditionCase_ = 7;
return this;
}
/**
* .common.Equal equal = 7;
*/
public Builder setEqual(
grpc.common.Equal.Builder builderForValue) {
if (equalBuilder_ == null) {
condition_ = builderForValue.build();
onChanged();
} else {
equalBuilder_.setMessage(builderForValue.build());
}
conditionCase_ = 7;
return this;
}
/**
* .common.Equal equal = 7;
*/
public Builder mergeEqual(grpc.common.Equal value) {
if (equalBuilder_ == null) {
if (conditionCase_ == 7 &&
condition_ != grpc.common.Equal.getDefaultInstance()) {
condition_ = grpc.common.Equal.newBuilder((grpc.common.Equal) condition_)
.mergeFrom(value).buildPartial();
} else {
condition_ = value;
}
onChanged();
} else {
if (conditionCase_ == 7) {
equalBuilder_.mergeFrom(value);
} else {
equalBuilder_.setMessage(value);
}
}
conditionCase_ = 7;
return this;
}
/**
* .common.Equal equal = 7;
*/
public Builder clearEqual() {
if (equalBuilder_ == null) {
if (conditionCase_ == 7) {
conditionCase_ = 0;
condition_ = null;
onChanged();
}
} else {
if (conditionCase_ == 7) {
conditionCase_ = 0;
condition_ = null;
}
equalBuilder_.clear();
}
return this;
}
/**
* .common.Equal equal = 7;
*/
public grpc.common.Equal.Builder getEqualBuilder() {
return getEqualFieldBuilder().getBuilder();
}
/**
* .common.Equal equal = 7;
*/
@java.lang.Override
public grpc.common.EqualOrBuilder getEqualOrBuilder() {
if ((conditionCase_ == 7) && (equalBuilder_ != null)) {
return equalBuilder_.getMessageOrBuilder();
} else {
if (conditionCase_ == 7) {
return (grpc.common.Equal) condition_;
}
return grpc.common.Equal.getDefaultInstance();
}
}
/**
* .common.Equal equal = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Equal, grpc.common.Equal.Builder, grpc.common.EqualOrBuilder>
getEqualFieldBuilder() {
if (equalBuilder_ == null) {
if (!(conditionCase_ == 7)) {
condition_ = grpc.common.Equal.getDefaultInstance();
}
equalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.common.Equal, grpc.common.Equal.Builder, grpc.common.EqualOrBuilder>(
(grpc.common.Equal) condition_,
getParentForChildren(),
isClean());
condition_ = null;
}
conditionCase_ = 7;
onChanged();
return equalBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.AbsentOrEqual, grpc.common.AbsentOrEqual.Builder, grpc.common.AbsentOrEqualOrBuilder> absentOrEqualBuilder_;
/**
* .common.AbsentOrEqual absent_or_equal = 8;
* @return Whether the absentOrEqual field is set.
*/
@java.lang.Override
public boolean hasAbsentOrEqual() {
return conditionCase_ == 8;
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
* @return The absentOrEqual.
*/
@java.lang.Override
public grpc.common.AbsentOrEqual getAbsentOrEqual() {
if (absentOrEqualBuilder_ == null) {
if (conditionCase_ == 8) {
return (grpc.common.AbsentOrEqual) condition_;
}
return grpc.common.AbsentOrEqual.getDefaultInstance();
} else {
if (conditionCase_ == 8) {
return absentOrEqualBuilder_.getMessage();
}
return grpc.common.AbsentOrEqual.getDefaultInstance();
}
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
public Builder setAbsentOrEqual(grpc.common.AbsentOrEqual value) {
if (absentOrEqualBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
onChanged();
} else {
absentOrEqualBuilder_.setMessage(value);
}
conditionCase_ = 8;
return this;
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
public Builder setAbsentOrEqual(
grpc.common.AbsentOrEqual.Builder builderForValue) {
if (absentOrEqualBuilder_ == null) {
condition_ = builderForValue.build();
onChanged();
} else {
absentOrEqualBuilder_.setMessage(builderForValue.build());
}
conditionCase_ = 8;
return this;
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
public Builder mergeAbsentOrEqual(grpc.common.AbsentOrEqual value) {
if (absentOrEqualBuilder_ == null) {
if (conditionCase_ == 8 &&
condition_ != grpc.common.AbsentOrEqual.getDefaultInstance()) {
condition_ = grpc.common.AbsentOrEqual.newBuilder((grpc.common.AbsentOrEqual) condition_)
.mergeFrom(value).buildPartial();
} else {
condition_ = value;
}
onChanged();
} else {
if (conditionCase_ == 8) {
absentOrEqualBuilder_.mergeFrom(value);
} else {
absentOrEqualBuilder_.setMessage(value);
}
}
conditionCase_ = 8;
return this;
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
public Builder clearAbsentOrEqual() {
if (absentOrEqualBuilder_ == null) {
if (conditionCase_ == 8) {
conditionCase_ = 0;
condition_ = null;
onChanged();
}
} else {
if (conditionCase_ == 8) {
conditionCase_ = 0;
condition_ = null;
}
absentOrEqualBuilder_.clear();
}
return this;
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
public grpc.common.AbsentOrEqual.Builder getAbsentOrEqualBuilder() {
return getAbsentOrEqualFieldBuilder().getBuilder();
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
@java.lang.Override
public grpc.common.AbsentOrEqualOrBuilder getAbsentOrEqualOrBuilder() {
if ((conditionCase_ == 8) && (absentOrEqualBuilder_ != null)) {
return absentOrEqualBuilder_.getMessageOrBuilder();
} else {
if (conditionCase_ == 8) {
return (grpc.common.AbsentOrEqual) condition_;
}
return grpc.common.AbsentOrEqual.getDefaultInstance();
}
}
/**
* .common.AbsentOrEqual absent_or_equal = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.AbsentOrEqual, grpc.common.AbsentOrEqual.Builder, grpc.common.AbsentOrEqualOrBuilder>
getAbsentOrEqualFieldBuilder() {
if (absentOrEqualBuilder_ == null) {
if (!(conditionCase_ == 8)) {
condition_ = grpc.common.AbsentOrEqual.getDefaultInstance();
}
absentOrEqualBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.common.AbsentOrEqual, grpc.common.AbsentOrEqual.Builder, grpc.common.AbsentOrEqualOrBuilder>(
(grpc.common.AbsentOrEqual) condition_,
getParentForChildren(),
isClean());
condition_ = null;
}
conditionCase_ = 8;
onChanged();
return absentOrEqualBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.NotEqual, grpc.common.NotEqual.Builder, grpc.common.NotEqualOrBuilder> notEqualBuilder_;
/**
* .common.NotEqual not_equal = 9;
* @return Whether the notEqual field is set.
*/
@java.lang.Override
public boolean hasNotEqual() {
return conditionCase_ == 9;
}
/**
* .common.NotEqual not_equal = 9;
* @return The notEqual.
*/
@java.lang.Override
public grpc.common.NotEqual getNotEqual() {
if (notEqualBuilder_ == null) {
if (conditionCase_ == 9) {
return (grpc.common.NotEqual) condition_;
}
return grpc.common.NotEqual.getDefaultInstance();
} else {
if (conditionCase_ == 9) {
return notEqualBuilder_.getMessage();
}
return grpc.common.NotEqual.getDefaultInstance();
}
}
/**
* .common.NotEqual not_equal = 9;
*/
public Builder setNotEqual(grpc.common.NotEqual value) {
if (notEqualBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
onChanged();
} else {
notEqualBuilder_.setMessage(value);
}
conditionCase_ = 9;
return this;
}
/**
* .common.NotEqual not_equal = 9;
*/
public Builder setNotEqual(
grpc.common.NotEqual.Builder builderForValue) {
if (notEqualBuilder_ == null) {
condition_ = builderForValue.build();
onChanged();
} else {
notEqualBuilder_.setMessage(builderForValue.build());
}
conditionCase_ = 9;
return this;
}
/**
* .common.NotEqual not_equal = 9;
*/
public Builder mergeNotEqual(grpc.common.NotEqual value) {
if (notEqualBuilder_ == null) {
if (conditionCase_ == 9 &&
condition_ != grpc.common.NotEqual.getDefaultInstance()) {
condition_ = grpc.common.NotEqual.newBuilder((grpc.common.NotEqual) condition_)
.mergeFrom(value).buildPartial();
} else {
condition_ = value;
}
onChanged();
} else {
if (conditionCase_ == 9) {
notEqualBuilder_.mergeFrom(value);
} else {
notEqualBuilder_.setMessage(value);
}
}
conditionCase_ = 9;
return this;
}
/**
* .common.NotEqual not_equal = 9;
*/
public Builder clearNotEqual() {
if (notEqualBuilder_ == null) {
if (conditionCase_ == 9) {
conditionCase_ = 0;
condition_ = null;
onChanged();
}
} else {
if (conditionCase_ == 9) {
conditionCase_ = 0;
condition_ = null;
}
notEqualBuilder_.clear();
}
return this;
}
/**
* .common.NotEqual not_equal = 9;
*/
public grpc.common.NotEqual.Builder getNotEqualBuilder() {
return getNotEqualFieldBuilder().getBuilder();
}
/**
* .common.NotEqual not_equal = 9;
*/
@java.lang.Override
public grpc.common.NotEqualOrBuilder getNotEqualOrBuilder() {
if ((conditionCase_ == 9) && (notEqualBuilder_ != null)) {
return notEqualBuilder_.getMessageOrBuilder();
} else {
if (conditionCase_ == 9) {
return (grpc.common.NotEqual) condition_;
}
return grpc.common.NotEqual.getDefaultInstance();
}
}
/**
* .common.NotEqual not_equal = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.common.NotEqual, grpc.common.NotEqual.Builder, grpc.common.NotEqualOrBuilder>
getNotEqualFieldBuilder() {
if (notEqualBuilder_ == null) {
if (!(conditionCase_ == 9)) {
condition_ = grpc.common.NotEqual.getDefaultInstance();
}
notEqualBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.common.NotEqual, grpc.common.NotEqual.Builder, grpc.common.NotEqualOrBuilder>(
(grpc.common.NotEqual) condition_,
getParentForChildren(),
isClean());
condition_ = null;
}
conditionCase_ = 9;
onChanged();
return notEqualBuilder_;
}
@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._SetIfRequest)
}
// @@protoc_insertion_point(class_scope:cache_client._SetIfRequest)
private static final grpc.cache_client._SetIfRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._SetIfRequest();
}
public static grpc.cache_client._SetIfRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_SetIfRequest>
PARSER = new com.google.protobuf.AbstractParser<_SetIfRequest>() {
@java.lang.Override
public _SetIfRequest 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<_SetIfRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_SetIfRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._SetIfRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}