Enum Class RoomAccessLevel
- All Implemented Interfaces:
Serializable,Comparable<RoomAccessLevel>,Constable
Access levels accepted by the Meet API for the
access_level field of a room.
Mirrors the RoomAccessLevel schema of the Meet openapi.yaml. When the field is omitted from the creation request, the Meet server applies its
own secure default (TRUSTED).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAnyone with the room link can join directly, no authentication required.Only participants explicitly trusted by the owner bypass the lobby.Authenticated users join directly. -
Method Summary
Modifier and TypeMethodDescriptionstatic RoomAccessLevelResolve an access level from its API value.getValue()The wire value, as expected by the Meet API.All API values, in declaration order.static RoomAccessLevelReturns the enum constant of this class with the specified name.static RoomAccessLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PUBLIC
Anyone with the room link can join directly, no authentication required. -
TRUSTED
Authenticated users join directly. Unauthenticated users wait in the lobby for approval. -
RESTRICTED
Only participants explicitly trusted by the owner bypass the lobby. Everyone else waits for approval regardless of authentication.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
The wire value, as expected by the Meet API.- Returns:
- the lowercase API value
-
fromValue
Resolve an access level from its API value.- Parameters:
strValue- the API value, e.g."trusted"- Returns:
- the matching level, or
nullif the value isnullor unknown
-
getValues
All API values, in declaration order.- Returns:
- the list of supported access level values
-