com.zepben.protobuf.nc.IncludedEnergizingContainers 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.IncludedEnergizingContainers}
*/
public enum IncludedEnergizingContainers
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXCLUDE_ENERGIZING_CONTAINERS = 0;
*/
EXCLUDE_ENERGIZING_CONTAINERS(0),
/**
* INCLUDE_ENERGIZING_FEEDERS = 1;
*/
INCLUDE_ENERGIZING_FEEDERS(1),
/**
* INCLUDE_ENERGIZING_SUBSTATIONS = 2;
*/
INCLUDE_ENERGIZING_SUBSTATIONS(2),
UNRECOGNIZED(-1),
;
/**
* EXCLUDE_ENERGIZING_CONTAINERS = 0;
*/
public static final int EXCLUDE_ENERGIZING_CONTAINERS_VALUE = 0;
/**
* INCLUDE_ENERGIZING_FEEDERS = 1;
*/
public static final int INCLUDE_ENERGIZING_FEEDERS_VALUE = 1;
/**
* INCLUDE_ENERGIZING_SUBSTATIONS = 2;
*/
public static final int INCLUDE_ENERGIZING_SUBSTATIONS_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 IncludedEnergizingContainers 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 IncludedEnergizingContainers forNumber(int value) {
switch (value) {
case 0: return EXCLUDE_ENERGIZING_CONTAINERS;
case 1: return INCLUDE_ENERGIZING_FEEDERS;
case 2: return INCLUDE_ENERGIZING_SUBSTATIONS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IncludedEnergizingContainers> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IncludedEnergizingContainers findValueByNumber(int number) {
return IncludedEnergizingContainers.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(0);
}
private static final IncludedEnergizingContainers[] VALUES = values();
public static IncludedEnergizingContainers 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 IncludedEnergizingContainers(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:zepben.protobuf.nc.IncludedEnergizingContainers)
}