io.opencannabis.schema.product.struct.testing.TasteNote 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: structs/labtesting/TestResults.proto
package io.opencannabis.schema.product.struct.testing;
/**
*
* Enumerates taste or aroma notes, either based on subjective product testing or quantitative/empirical terpene
* compound testing.
*
*
* Protobuf enum {@code opencannabis.structs.labtesting.TasteNote}
*/
public enum TasteNote
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* No particular taste or aroma preference or value.
*
*
* NO_TASTE_PREFERENCE = 0;
*/
NO_TASTE_PREFERENCE(0),
/**
*
* "Sweet" taste/aroma note.
*
*
* SWEET = 1;
*/
SWEET(1),
/**
*
* "Sour" taste/aroma note.
*
*
* SOUR = 2;
*/
SOUR(2),
/**
*
* "Spice" taste/aroma note.
*
*
* SPICE = 3;
*/
SPICE(3),
/**
*
* "Smooth" taste/aroma note.
*
*
* SMOOTH = 4;
*/
SMOOTH(4),
/**
*
* "Citrus" taste/aroma note.
*
*
* CITRUS = 5;
*/
CITRUS(5),
/**
*
* "Pine" taste/aroma note.
*
*
* PINE = 6;
*/
PINE(6),
/**
*
* "Fruit" taste/aroma note.
*
*
* FRUIT = 7;
*/
FRUIT(7),
/**
*
* "Tropics" taste/aroma note.
*
*
* TROPICS = 8;
*/
TROPICS(8),
/**
*
* "Floral" taste/aroma note.
*
*
* FLORAL = 9;
*/
FLORAL(9),
/**
*
* "Herbal" taste/aroma note.
*
*
* HERB = 10;
*/
HERB(10),
/**
*
* "Earthy" taste/aroma note.
*
*
* EARTH = 11;
*/
EARTH(11),
UNRECOGNIZED(-1),
;
/**
*
* No particular taste or aroma preference or value.
*
*
* NO_TASTE_PREFERENCE = 0;
*/
public static final int NO_TASTE_PREFERENCE_VALUE = 0;
/**
*
* "Sweet" taste/aroma note.
*
*
* SWEET = 1;
*/
public static final int SWEET_VALUE = 1;
/**
*
* "Sour" taste/aroma note.
*
*
* SOUR = 2;
*/
public static final int SOUR_VALUE = 2;
/**
*
* "Spice" taste/aroma note.
*
*
* SPICE = 3;
*/
public static final int SPICE_VALUE = 3;
/**
*
* "Smooth" taste/aroma note.
*
*
* SMOOTH = 4;
*/
public static final int SMOOTH_VALUE = 4;
/**
*
* "Citrus" taste/aroma note.
*
*
* CITRUS = 5;
*/
public static final int CITRUS_VALUE = 5;
/**
*
* "Pine" taste/aroma note.
*
*
* PINE = 6;
*/
public static final int PINE_VALUE = 6;
/**
*
* "Fruit" taste/aroma note.
*
*
* FRUIT = 7;
*/
public static final int FRUIT_VALUE = 7;
/**
*
* "Tropics" taste/aroma note.
*
*
* TROPICS = 8;
*/
public static final int TROPICS_VALUE = 8;
/**
*
* "Floral" taste/aroma note.
*
*
* FLORAL = 9;
*/
public static final int FLORAL_VALUE = 9;
/**
*
* "Herbal" taste/aroma note.
*
*
* HERB = 10;
*/
public static final int HERB_VALUE = 10;
/**
*
* "Earthy" taste/aroma note.
*
*
* EARTH = 11;
*/
public static final int EARTH_VALUE = 11;
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 TasteNote valueOf(int value) {
return forNumber(value);
}
public static TasteNote forNumber(int value) {
switch (value) {
case 0: return NO_TASTE_PREFERENCE;
case 1: return SWEET;
case 2: return SOUR;
case 3: return SPICE;
case 4: return SMOOTH;
case 5: return CITRUS;
case 6: return PINE;
case 7: return FRUIT;
case 8: return TROPICS;
case 9: return FLORAL;
case 10: return HERB;
case 11: return EARTH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TasteNote> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TasteNote findValueByNumber(int number) {
return TasteNote.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.product.struct.testing.LabTesting.getDescriptor().getEnumTypes().get(4);
}
private static final TasteNote[] VALUES = values();
public static TasteNote 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 TasteNote(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencannabis.structs.labtesting.TasteNote)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy