grpc.cache_client._UpdateTtlRequest 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._UpdateTtlRequest}
*/
public final class _UpdateTtlRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client._UpdateTtlRequest)
_UpdateTtlRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use _UpdateTtlRequest.newBuilder() to construct.
private _UpdateTtlRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _UpdateTtlRequest() {
cacheKey_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _UpdateTtlRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__UpdateTtlRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__UpdateTtlRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._UpdateTtlRequest.class, grpc.cache_client._UpdateTtlRequest.Builder.class);
}
private int updateTtlCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object updateTtl_;
public enum UpdateTtlCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INCREASE_TO_MILLISECONDS(2),
DECREASE_TO_MILLISECONDS(3),
OVERWRITE_TO_MILLISECONDS(4),
UPDATETTL_NOT_SET(0);
private final int value;
private UpdateTtlCase(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 UpdateTtlCase valueOf(int value) {
return forNumber(value);
}
public static UpdateTtlCase forNumber(int value) {
switch (value) {
case 2: return INCREASE_TO_MILLISECONDS;
case 3: return DECREASE_TO_MILLISECONDS;
case 4: return OVERWRITE_TO_MILLISECONDS;
case 0: return UPDATETTL_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public UpdateTtlCase
getUpdateTtlCase() {
return UpdateTtlCase.forNumber(
updateTtlCase_);
}
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 INCREASE_TO_MILLISECONDS_FIELD_NUMBER = 2;
/**
*
* Sets the ttl to this value only if it is an increase compared to the existing ttl
*
*
* uint64 increase_to_milliseconds = 2;
* @return Whether the increaseToMilliseconds field is set.
*/
@java.lang.Override
public boolean hasIncreaseToMilliseconds() {
return updateTtlCase_ == 2;
}
/**
*
* Sets the ttl to this value only if it is an increase compared to the existing ttl
*
*
* uint64 increase_to_milliseconds = 2;
* @return The increaseToMilliseconds.
*/
@java.lang.Override
public long getIncreaseToMilliseconds() {
if (updateTtlCase_ == 2) {
return (java.lang.Long) updateTtl_;
}
return 0L;
}
public static final int DECREASE_TO_MILLISECONDS_FIELD_NUMBER = 3;
/**
*
* Sets the ttl to this value only if it is a decrease compared to the existing ttl
*
*
* uint64 decrease_to_milliseconds = 3;
* @return Whether the decreaseToMilliseconds field is set.
*/
@java.lang.Override
public boolean hasDecreaseToMilliseconds() {
return updateTtlCase_ == 3;
}
/**
*
* Sets the ttl to this value only if it is a decrease compared to the existing ttl
*
*
* uint64 decrease_to_milliseconds = 3;
* @return The decreaseToMilliseconds.
*/
@java.lang.Override
public long getDecreaseToMilliseconds() {
if (updateTtlCase_ == 3) {
return (java.lang.Long) updateTtl_;
}
return 0L;
}
public static final int OVERWRITE_TO_MILLISECONDS_FIELD_NUMBER = 4;
/**
*
* Sets the ttl to this value unconditionally
*
*
* uint64 overwrite_to_milliseconds = 4;
* @return Whether the overwriteToMilliseconds field is set.
*/
@java.lang.Override
public boolean hasOverwriteToMilliseconds() {
return updateTtlCase_ == 4;
}
/**
*
* Sets the ttl to this value unconditionally
*
*
* uint64 overwrite_to_milliseconds = 4;
* @return The overwriteToMilliseconds.
*/
@java.lang.Override
public long getOverwriteToMilliseconds() {
if (updateTtlCase_ == 4) {
return (java.lang.Long) updateTtl_;
}
return 0L;
}
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 (updateTtlCase_ == 2) {
output.writeUInt64(
2, (long)((java.lang.Long) updateTtl_));
}
if (updateTtlCase_ == 3) {
output.writeUInt64(
3, (long)((java.lang.Long) updateTtl_));
}
if (updateTtlCase_ == 4) {
output.writeUInt64(
4, (long)((java.lang.Long) updateTtl_));
}
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 (updateTtlCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
2, (long)((java.lang.Long) updateTtl_));
}
if (updateTtlCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
3, (long)((java.lang.Long) updateTtl_));
}
if (updateTtlCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
4, (long)((java.lang.Long) updateTtl_));
}
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._UpdateTtlRequest)) {
return super.equals(obj);
}
grpc.cache_client._UpdateTtlRequest other = (grpc.cache_client._UpdateTtlRequest) obj;
if (!getCacheKey()
.equals(other.getCacheKey())) return false;
if (!getUpdateTtlCase().equals(other.getUpdateTtlCase())) return false;
switch (updateTtlCase_) {
case 2:
if (getIncreaseToMilliseconds()
!= other.getIncreaseToMilliseconds()) return false;
break;
case 3:
if (getDecreaseToMilliseconds()
!= other.getDecreaseToMilliseconds()) return false;
break;
case 4:
if (getOverwriteToMilliseconds()
!= other.getOverwriteToMilliseconds()) 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();
switch (updateTtlCase_) {
case 2:
hash = (37 * hash) + INCREASE_TO_MILLISECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIncreaseToMilliseconds());
break;
case 3:
hash = (37 * hash) + DECREASE_TO_MILLISECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDecreaseToMilliseconds());
break;
case 4:
hash = (37 * hash) + OVERWRITE_TO_MILLISECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOverwriteToMilliseconds());
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client._UpdateTtlRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._UpdateTtlRequest 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._UpdateTtlRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._UpdateTtlRequest 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._UpdateTtlRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client._UpdateTtlRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client._UpdateTtlRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._UpdateTtlRequest 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._UpdateTtlRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client._UpdateTtlRequest 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._UpdateTtlRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client._UpdateTtlRequest 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._UpdateTtlRequest 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._UpdateTtlRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client._UpdateTtlRequest)
grpc.cache_client._UpdateTtlRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__UpdateTtlRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__UpdateTtlRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client._UpdateTtlRequest.class, grpc.cache_client._UpdateTtlRequest.Builder.class);
}
// Construct using grpc.cache_client._UpdateTtlRequest.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;
updateTtlCase_ = 0;
updateTtl_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.Cacheclient.internal_static_cache_client__UpdateTtlRequest_descriptor;
}
@java.lang.Override
public grpc.cache_client._UpdateTtlRequest getDefaultInstanceForType() {
return grpc.cache_client._UpdateTtlRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client._UpdateTtlRequest build() {
grpc.cache_client._UpdateTtlRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client._UpdateTtlRequest buildPartial() {
grpc.cache_client._UpdateTtlRequest result = new grpc.cache_client._UpdateTtlRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client._UpdateTtlRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.cacheKey_ = cacheKey_;
}
}
private void buildPartialOneofs(grpc.cache_client._UpdateTtlRequest result) {
result.updateTtlCase_ = updateTtlCase_;
result.updateTtl_ = this.updateTtl_;
}
@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._UpdateTtlRequest) {
return mergeFrom((grpc.cache_client._UpdateTtlRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client._UpdateTtlRequest other) {
if (other == grpc.cache_client._UpdateTtlRequest.getDefaultInstance()) return this;
if (other.getCacheKey() != com.google.protobuf.ByteString.EMPTY) {
setCacheKey(other.getCacheKey());
}
switch (other.getUpdateTtlCase()) {
case INCREASE_TO_MILLISECONDS: {
setIncreaseToMilliseconds(other.getIncreaseToMilliseconds());
break;
}
case DECREASE_TO_MILLISECONDS: {
setDecreaseToMilliseconds(other.getDecreaseToMilliseconds());
break;
}
case OVERWRITE_TO_MILLISECONDS: {
setOverwriteToMilliseconds(other.getOverwriteToMilliseconds());
break;
}
case UPDATETTL_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 16: {
updateTtl_ = input.readUInt64();
updateTtlCase_ = 2;
break;
} // case 16
case 24: {
updateTtl_ = input.readUInt64();
updateTtlCase_ = 3;
break;
} // case 24
case 32: {
updateTtl_ = input.readUInt64();
updateTtlCase_ = 4;
break;
} // case 32
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 updateTtlCase_ = 0;
private java.lang.Object updateTtl_;
public UpdateTtlCase
getUpdateTtlCase() {
return UpdateTtlCase.forNumber(
updateTtlCase_);
}
public Builder clearUpdateTtl() {
updateTtlCase_ = 0;
updateTtl_ = 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;
}
/**
*
* Sets the ttl to this value only if it is an increase compared to the existing ttl
*
*
* uint64 increase_to_milliseconds = 2;
* @return Whether the increaseToMilliseconds field is set.
*/
public boolean hasIncreaseToMilliseconds() {
return updateTtlCase_ == 2;
}
/**
*
* Sets the ttl to this value only if it is an increase compared to the existing ttl
*
*
* uint64 increase_to_milliseconds = 2;
* @return The increaseToMilliseconds.
*/
public long getIncreaseToMilliseconds() {
if (updateTtlCase_ == 2) {
return (java.lang.Long) updateTtl_;
}
return 0L;
}
/**
*
* Sets the ttl to this value only if it is an increase compared to the existing ttl
*
*
* uint64 increase_to_milliseconds = 2;
* @param value The increaseToMilliseconds to set.
* @return This builder for chaining.
*/
public Builder setIncreaseToMilliseconds(long value) {
updateTtlCase_ = 2;
updateTtl_ = value;
onChanged();
return this;
}
/**
*
* Sets the ttl to this value only if it is an increase compared to the existing ttl
*
*
* uint64 increase_to_milliseconds = 2;
* @return This builder for chaining.
*/
public Builder clearIncreaseToMilliseconds() {
if (updateTtlCase_ == 2) {
updateTtlCase_ = 0;
updateTtl_ = null;
onChanged();
}
return this;
}
/**
*
* Sets the ttl to this value only if it is a decrease compared to the existing ttl
*
*
* uint64 decrease_to_milliseconds = 3;
* @return Whether the decreaseToMilliseconds field is set.
*/
public boolean hasDecreaseToMilliseconds() {
return updateTtlCase_ == 3;
}
/**
*
* Sets the ttl to this value only if it is a decrease compared to the existing ttl
*
*
* uint64 decrease_to_milliseconds = 3;
* @return The decreaseToMilliseconds.
*/
public long getDecreaseToMilliseconds() {
if (updateTtlCase_ == 3) {
return (java.lang.Long) updateTtl_;
}
return 0L;
}
/**
*
* Sets the ttl to this value only if it is a decrease compared to the existing ttl
*
*
* uint64 decrease_to_milliseconds = 3;
* @param value The decreaseToMilliseconds to set.
* @return This builder for chaining.
*/
public Builder setDecreaseToMilliseconds(long value) {
updateTtlCase_ = 3;
updateTtl_ = value;
onChanged();
return this;
}
/**
*
* Sets the ttl to this value only if it is a decrease compared to the existing ttl
*
*
* uint64 decrease_to_milliseconds = 3;
* @return This builder for chaining.
*/
public Builder clearDecreaseToMilliseconds() {
if (updateTtlCase_ == 3) {
updateTtlCase_ = 0;
updateTtl_ = null;
onChanged();
}
return this;
}
/**
*
* Sets the ttl to this value unconditionally
*
*
* uint64 overwrite_to_milliseconds = 4;
* @return Whether the overwriteToMilliseconds field is set.
*/
public boolean hasOverwriteToMilliseconds() {
return updateTtlCase_ == 4;
}
/**
*
* Sets the ttl to this value unconditionally
*
*
* uint64 overwrite_to_milliseconds = 4;
* @return The overwriteToMilliseconds.
*/
public long getOverwriteToMilliseconds() {
if (updateTtlCase_ == 4) {
return (java.lang.Long) updateTtl_;
}
return 0L;
}
/**
*
* Sets the ttl to this value unconditionally
*
*
* uint64 overwrite_to_milliseconds = 4;
* @param value The overwriteToMilliseconds to set.
* @return This builder for chaining.
*/
public Builder setOverwriteToMilliseconds(long value) {
updateTtlCase_ = 4;
updateTtl_ = value;
onChanged();
return this;
}
/**
*
* Sets the ttl to this value unconditionally
*
*
* uint64 overwrite_to_milliseconds = 4;
* @return This builder for chaining.
*/
public Builder clearOverwriteToMilliseconds() {
if (updateTtlCase_ == 4) {
updateTtlCase_ = 0;
updateTtl_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cache_client._UpdateTtlRequest)
}
// @@protoc_insertion_point(class_scope:cache_client._UpdateTtlRequest)
private static final grpc.cache_client._UpdateTtlRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client._UpdateTtlRequest();
}
public static grpc.cache_client._UpdateTtlRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_UpdateTtlRequest>
PARSER = new com.google.protobuf.AbstractParser<_UpdateTtlRequest>() {
@java.lang.Override
public _UpdateTtlRequest 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<_UpdateTtlRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_UpdateTtlRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client._UpdateTtlRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}