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

io.bloombox.schema.services.devices.v1beta1.DeviceRole Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: devices/v1beta1/DevicesService_Beta1.proto

package io.bloombox.schema.services.devices.v1beta1;

/**
 * 
 * Specifies the role of a device, and therefore how it should behave.
 * 
* * Protobuf enum {@code bloombox.services.devices.v1beta1.DeviceRole} */ public enum DeviceRole implements com.google.protobuf.ProtocolMessageEnum { /** *
   * The device does not currently have an assigned role.
   * 
* * UNASSIGNED = 0; */ UNASSIGNED(0), /** *
   * The device should display a menu.
   * 
* * MENU = 1; */ MENU(1), /** *
   * The device should act as a checkin station.
   * 
* * CHECKIN = 2; */ CHECKIN(2), /** *
   * The device should act as a passive BLE (Bluetooth Low Energy) beacon.
   * 
* * BEACON = 3; */ BEACON(3), /** *
   * The device should act as a point-of-sale unit.
   * 
* * POS = 4; */ POS(4), /** *
   * The device should act as an edge compute device.
   * 
* * EDGE = 5; */ EDGE(5), /** *
   * The device should act as an RFID reader or controller device.
   * 
* * RFID = 6; */ RFID(6), UNRECOGNIZED(-1), ; /** *
   * The device does not currently have an assigned role.
   * 
* * UNASSIGNED = 0; */ public static final int UNASSIGNED_VALUE = 0; /** *
   * The device should display a menu.
   * 
* * MENU = 1; */ public static final int MENU_VALUE = 1; /** *
   * The device should act as a checkin station.
   * 
* * CHECKIN = 2; */ public static final int CHECKIN_VALUE = 2; /** *
   * The device should act as a passive BLE (Bluetooth Low Energy) beacon.
   * 
* * BEACON = 3; */ public static final int BEACON_VALUE = 3; /** *
   * The device should act as a point-of-sale unit.
   * 
* * POS = 4; */ public static final int POS_VALUE = 4; /** *
   * The device should act as an edge compute device.
   * 
* * EDGE = 5; */ public static final int EDGE_VALUE = 5; /** *
   * The device should act as an RFID reader or controller device.
   * 
* * RFID = 6; */ public static final int RFID_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DeviceRole valueOf(int value) { return forNumber(value); } public static DeviceRole forNumber(int value) { switch (value) { case 0: return UNASSIGNED; case 1: return MENU; case 2: return CHECKIN; case 3: return BEACON; case 4: return POS; case 5: return EDGE; case 6: return RFID; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DeviceRole> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DeviceRole findValueByNumber(int number) { return DeviceRole.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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 io.bloombox.schema.services.devices.v1beta1.DevicesServiceBeta1.getDescriptor().getEnumTypes().get(1); } private static final DeviceRole[] VALUES = values(); public static DeviceRole 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 DeviceRole(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.services.devices.v1beta1.DeviceRole) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy