grpc.permission_messages.CacheRole 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: permissionmessages.proto
package grpc.permission_messages;
/**
*
* Aliases for categories of functionality.
*
*
* Protobuf enum {@code permission_messages.CacheRole}
*/
public enum CacheRole
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CachePermitNone = 0;
*/
CachePermitNone(0),
/**
*
* Restricts access to apis that read and write data from caches: No higher level resource description or modification.
*
*
* CacheReadWrite = 1;
*/
CacheReadWrite(1),
/**
*
* Restricts access to apis that read from caches: No higher level resource description or modification.
*
*
* CacheReadOnly = 2;
*/
CacheReadOnly(2),
/**
*
* Restricts access to apis that write from caches: No higher level resource description or modification.
* Doesn't allow conditional write APIs (SetIfNotExists, IncreaseTTL etc)
*
*
* CacheWriteOnly = 3;
*/
CacheWriteOnly(3),
UNRECOGNIZED(-1),
;
/**
* CachePermitNone = 0;
*/
public static final int CachePermitNone_VALUE = 0;
/**
*
* Restricts access to apis that read and write data from caches: No higher level resource description or modification.
*
*
* CacheReadWrite = 1;
*/
public static final int CacheReadWrite_VALUE = 1;
/**
*
* Restricts access to apis that read from caches: No higher level resource description or modification.
*
*
* CacheReadOnly = 2;
*/
public static final int CacheReadOnly_VALUE = 2;
/**
*
* Restricts access to apis that write from caches: No higher level resource description or modification.
* Doesn't allow conditional write APIs (SetIfNotExists, IncreaseTTL etc)
*
*
* CacheWriteOnly = 3;
*/
public static final int CacheWriteOnly_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CacheRole valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CacheRole forNumber(int value) {
switch (value) {
case 0: return CachePermitNone;
case 1: return CacheReadWrite;
case 2: return CacheReadOnly;
case 3: return CacheWriteOnly;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CacheRole> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CacheRole findValueByNumber(int number) {
return CacheRole.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return grpc.permission_messages.Permissionmessages.getDescriptor().getEnumTypes().get(0);
}
private static final CacheRole[] VALUES = values();
public static CacheRole valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CacheRole(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:permission_messages.CacheRole)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy