All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grpc.permission_messages.TopicRole Maven / Gradle / Ivy

There is a newer version: 0.119.5
Show newest version
// 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.TopicRole} */ public enum TopicRole implements com.google.protobuf.ProtocolMessageEnum { /** * TopicPermitNone = 0; */ TopicPermitNone(0), /** *
   * Restricts access to apis that read and write data from topics: No higher level resource description or modification.
   * 
* * TopicReadWrite = 1; */ TopicReadWrite(1), /** *
   * Restricts access to apis that read from topics: No higher level resource description or modification.
   * 
* * TopicReadOnly = 2; */ TopicReadOnly(2), /** *
   * Restricts access to apis that write from topics: No higher level resource description or modification.
   * 
* * TopicWriteOnly = 3; */ TopicWriteOnly(3), UNRECOGNIZED(-1), ; /** * TopicPermitNone = 0; */ public static final int TopicPermitNone_VALUE = 0; /** *
   * Restricts access to apis that read and write data from topics: No higher level resource description or modification.
   * 
* * TopicReadWrite = 1; */ public static final int TopicReadWrite_VALUE = 1; /** *
   * Restricts access to apis that read from topics: No higher level resource description or modification.
   * 
* * TopicReadOnly = 2; */ public static final int TopicReadOnly_VALUE = 2; /** *
   * Restricts access to apis that write from topics: No higher level resource description or modification.
   * 
* * TopicWriteOnly = 3; */ public static final int TopicWriteOnly_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 TopicRole 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 TopicRole forNumber(int value) { switch (value) { case 0: return TopicPermitNone; case 1: return TopicReadWrite; case 2: return TopicReadOnly; case 3: return TopicWriteOnly; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TopicRole> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TopicRole findValueByNumber(int number) { return TopicRole.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(1); } private static final TopicRole[] VALUES = values(); public static TopicRole 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 TopicRole(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:permission_messages.TopicRole) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy