io.opencannabis.schema.menu.section.Section Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas Co.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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: products/menu/Section.proto
package io.opencannabis.schema.menu.section;
/**
*
* Known sections, that are expected to be included with nearly every menu.
*
*
* Protobuf enum {@code opencannabis.products.menu.section.Section}
*/
public enum Section
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Unspecified or unknown section.
*
*
* UNSPECIFIED = 0;
*/
UNSPECIFIED(0),
/**
*
* Traditional "buds" or "flowers" section.
*
*
* FLOWERS = 1;
*/
FLOWERS(1),
/**
*
* Concentrated cannabis products such as oils, waxes and hashes.
*
*
* EXTRACTS = 2;
*/
EXTRACTS(2),
/**
*
* Edible cannabis products, such as brownies, candy bars, etc.
*
*
* EDIBLES = 3;
*/
EDIBLES(3),
/**
*
* Cartridge and pen battery products.
*
*
* CARTRIDGES = 4;
*/
CARTRIDGES(4),
/**
*
* Tinctures, teas, and other miscellaneous products.
*
*
* APOTHECARY = 5;
*/
APOTHECARY(5),
/**
*
* Pre-rolled flower-based joints, potentially fortified.
*
*
* PREROLLS = 6;
*/
PREROLLS(6),
/**
*
* Plant clones, seeds, and other cultivation products.
*
*
* PLANTS = 7;
*/
PLANTS(7),
/**
*
* General merchandise.
*
*
* MERCHANDISE = 8;
*/
MERCHANDISE(8),
UNRECOGNIZED(-1),
;
/**
*
* Unspecified or unknown section.
*
*
* UNSPECIFIED = 0;
*/
public static final int UNSPECIFIED_VALUE = 0;
/**
*
* Traditional "buds" or "flowers" section.
*
*
* FLOWERS = 1;
*/
public static final int FLOWERS_VALUE = 1;
/**
*
* Concentrated cannabis products such as oils, waxes and hashes.
*
*
* EXTRACTS = 2;
*/
public static final int EXTRACTS_VALUE = 2;
/**
*
* Edible cannabis products, such as brownies, candy bars, etc.
*
*
* EDIBLES = 3;
*/
public static final int EDIBLES_VALUE = 3;
/**
*
* Cartridge and pen battery products.
*
*
* CARTRIDGES = 4;
*/
public static final int CARTRIDGES_VALUE = 4;
/**
*
* Tinctures, teas, and other miscellaneous products.
*
*
* APOTHECARY = 5;
*/
public static final int APOTHECARY_VALUE = 5;
/**
*
* Pre-rolled flower-based joints, potentially fortified.
*
*
* PREROLLS = 6;
*/
public static final int PREROLLS_VALUE = 6;
/**
*
* Plant clones, seeds, and other cultivation products.
*
*
* PLANTS = 7;
*/
public static final int PLANTS_VALUE = 7;
/**
*
* General merchandise.
*
*
* MERCHANDISE = 8;
*/
public static final int MERCHANDISE_VALUE = 8;
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 Section valueOf(int value) {
return forNumber(value);
}
public static Section forNumber(int value) {
switch (value) {
case 0: return UNSPECIFIED;
case 1: return FLOWERS;
case 2: return EXTRACTS;
case 3: return EDIBLES;
case 4: return CARTRIDGES;
case 5: return APOTHECARY;
case 6: return PREROLLS;
case 7: return PLANTS;
case 8: return MERCHANDISE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Section> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Section findValueByNumber(int number) {
return Section.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.opencannabis.schema.menu.section.SectionOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final Section[] VALUES = values();
public static Section 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 Section(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencannabis.products.menu.section.Section)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy