
io.opencannabis.schema.product.struct.testing.Feeling Maven / Gradle / Ivy
/*
* Copyright 2018, 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: structs/labtesting/TestResults.proto
package io.opencannabis.schema.product.struct.testing;
/**
*
* Enumerates symptomatic/experiential feeling results from subjective product testing. Feeling states are not designed
* to be scientific or interpreted as medical advice.
*
*
* Protobuf enum {@code opencannabis.structs.labtesting.Feeling}
*/
public enum Feeling
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* No feeling preference or value.
*
*
* NO_FEELING_PREFERENCE = 0;
*/
NO_FEELING_PREFERENCE(0),
/**
*
* "Grounding" feeling.
*
*
* GROUNDING = 1;
*/
GROUNDING(1),
/**
*
* "Sleepy" feeling.
*
*
* SLEEP = 2;
*/
SLEEP(2),
/**
*
* "Calming" feeling.
*
*
* CALMING = 3;
*/
CALMING(3),
/**
*
* "Stimulating" feeling.
*
*
* STIMULATING = 4;
*/
STIMULATING(4),
/**
*
* "Funny" feeling.
*
*
* FUNNY = 5;
*/
FUNNY(5),
/**
*
* "Focus" feeling.
*
*
* FOCUS = 6;
*/
FOCUS(6),
/**
*
* "Passion" feeling.
*
*
* PASSION = 7;
*/
PASSION(7),
UNRECOGNIZED(-1),
;
/**
*
* No feeling preference or value.
*
*
* NO_FEELING_PREFERENCE = 0;
*/
public static final int NO_FEELING_PREFERENCE_VALUE = 0;
/**
*
* "Grounding" feeling.
*
*
* GROUNDING = 1;
*/
public static final int GROUNDING_VALUE = 1;
/**
*
* "Sleepy" feeling.
*
*
* SLEEP = 2;
*/
public static final int SLEEP_VALUE = 2;
/**
*
* "Calming" feeling.
*
*
* CALMING = 3;
*/
public static final int CALMING_VALUE = 3;
/**
*
* "Stimulating" feeling.
*
*
* STIMULATING = 4;
*/
public static final int STIMULATING_VALUE = 4;
/**
*
* "Funny" feeling.
*
*
* FUNNY = 5;
*/
public static final int FUNNY_VALUE = 5;
/**
*
* "Focus" feeling.
*
*
* FOCUS = 6;
*/
public static final int FOCUS_VALUE = 6;
/**
*
* "Passion" feeling.
*
*
* PASSION = 7;
*/
public static final int PASSION_VALUE = 7;
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 Feeling valueOf(int value) {
return forNumber(value);
}
public static Feeling forNumber(int value) {
switch (value) {
case 0: return NO_FEELING_PREFERENCE;
case 1: return GROUNDING;
case 2: return SLEEP;
case 3: return CALMING;
case 4: return STIMULATING;
case 5: return FUNNY;
case 6: return FOCUS;
case 7: return PASSION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Feeling> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Feeling findValueByNumber(int number) {
return Feeling.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(3);
}
private static final Feeling[] VALUES = values();
public static Feeling 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 Feeling(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencannabis.structs.labtesting.Feeling)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy