com.zepben.protobuf.nc.IncludedEnergizedContainers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/nc/nc-requests.proto
package com.zepben.protobuf.nc;
/**
* Protobuf enum {@code zepben.protobuf.nc.IncludedEnergizedContainers}
*/
public enum IncludedEnergizedContainers
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXCLUDE_ENERGIZED_CONTAINERS = 0;
*/
EXCLUDE_ENERGIZED_CONTAINERS(0),
/**
* INCLUDE_ENERGIZED_FEEDERS = 1;
*/
INCLUDE_ENERGIZED_FEEDERS(1),
/**
* INCLUDE_ENERGIZED_LV_FEEDERS = 2;
*/
INCLUDE_ENERGIZED_LV_FEEDERS(2),
UNRECOGNIZED(-1),
;
/**
* EXCLUDE_ENERGIZED_CONTAINERS = 0;
*/
public static final int EXCLUDE_ENERGIZED_CONTAINERS_VALUE = 0;
/**
* INCLUDE_ENERGIZED_FEEDERS = 1;
*/
public static final int INCLUDE_ENERGIZED_FEEDERS_VALUE = 1;
/**
* INCLUDE_ENERGIZED_LV_FEEDERS = 2;
*/
public static final int INCLUDE_ENERGIZED_LV_FEEDERS_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IncludedEnergizedContainers valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static IncludedEnergizedContainers forNumber(int value) {
switch (value) {
case 0: return EXCLUDE_ENERGIZED_CONTAINERS;
case 1: return INCLUDE_ENERGIZED_FEEDERS;
case 2: return INCLUDE_ENERGIZED_LV_FEEDERS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IncludedEnergizedContainers> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IncludedEnergizedContainers findValueByNumber(int number) {
return IncludedEnergizedContainers.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 com.zepben.protobuf.nc.NcRequests.getDescriptor().getEnumTypes().get(1);
}
private static final IncludedEnergizedContainers[] VALUES = values();
public static IncludedEnergizedContainers 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 IncludedEnergizedContainers(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:zepben.protobuf.nc.IncludedEnergizedContainers)
}