com.zepben.protobuf.cim.iec61968.customers.CustomerKind 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/cim/iec61968/customers/CustomerKind.proto
package com.zepben.protobuf.cim.iec61968.customers;
/**
*
**
* Kind of customer.
*
*
* Protobuf enum {@code zepben.protobuf.cim.iec61968.customers.CustomerKind}
*/
public enum CustomerKind
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Default
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
**
* Commercial industrial customer.
*
*
* commercialIndustrial = 1;
*/
commercialIndustrial(1),
/**
*
**
* Customer as energy service scheduler.
*
*
* energyServiceScheduler = 2;
*/
energyServiceScheduler(2),
/**
*
**
* Customer as energy service supplier.
*
*
* energyServiceSupplier = 3;
*/
energyServiceSupplier(3),
/**
*
**
* --- Missing form CIM ---
*
*
* enterprise = 4;
*/
enterprise(4),
/**
*
**
* Internal use customer.
*
*
* internalUse = 5;
*/
internalUse(5),
/**
*
**
* Other kind of customer.
*
*
* other = 6;
*/
other(6),
/**
*
**
* Pumping load customer.
*
*
* pumpingLoad = 7;
*/
pumpingLoad(7),
/**
*
**
* --- Missing form CIM ---
*
*
* regionalOperator = 8;
*/
regionalOperator(8),
/**
*
**
* Residential customer.
*
*
* residential = 9;
*/
residential(9),
/**
*
**
* Residential and commercial customer.
*
*
* residentialAndCommercial = 10;
*/
residentialAndCommercial(10),
/**
*
**
* Residential and streetlight customer.
*
*
* residentialAndStreetlight = 11;
*/
residentialAndStreetlight(11),
/**
*
**
* Residential farm service customer.
*
*
* residentialFarmService = 12;
*/
residentialFarmService(12),
/**
*
**
* Residential streetlight or other related customer.
*
*
* residentialStreetlightOthers = 13;
*/
residentialStreetlightOthers(13),
/**
*
**
* --- Missing form CIM ---
*
*
* subsidiary = 14;
*/
subsidiary(14),
/**
*
**
* Wind machine customer.
*
*
* windMachine = 15;
*/
windMachine(15),
UNRECOGNIZED(-1),
;
/**
*
* Default
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
**
* Commercial industrial customer.
*
*
* commercialIndustrial = 1;
*/
public static final int commercialIndustrial_VALUE = 1;
/**
*
**
* Customer as energy service scheduler.
*
*
* energyServiceScheduler = 2;
*/
public static final int energyServiceScheduler_VALUE = 2;
/**
*
**
* Customer as energy service supplier.
*
*
* energyServiceSupplier = 3;
*/
public static final int energyServiceSupplier_VALUE = 3;
/**
*
**
* --- Missing form CIM ---
*
*
* enterprise = 4;
*/
public static final int enterprise_VALUE = 4;
/**
*
**
* Internal use customer.
*
*
* internalUse = 5;
*/
public static final int internalUse_VALUE = 5;
/**
*
**
* Other kind of customer.
*
*
* other = 6;
*/
public static final int other_VALUE = 6;
/**
*
**
* Pumping load customer.
*
*
* pumpingLoad = 7;
*/
public static final int pumpingLoad_VALUE = 7;
/**
*
**
* --- Missing form CIM ---
*
*
* regionalOperator = 8;
*/
public static final int regionalOperator_VALUE = 8;
/**
*
**
* Residential customer.
*
*
* residential = 9;
*/
public static final int residential_VALUE = 9;
/**
*
**
* Residential and commercial customer.
*
*
* residentialAndCommercial = 10;
*/
public static final int residentialAndCommercial_VALUE = 10;
/**
*
**
* Residential and streetlight customer.
*
*
* residentialAndStreetlight = 11;
*/
public static final int residentialAndStreetlight_VALUE = 11;
/**
*
**
* Residential farm service customer.
*
*
* residentialFarmService = 12;
*/
public static final int residentialFarmService_VALUE = 12;
/**
*
**
* Residential streetlight or other related customer.
*
*
* residentialStreetlightOthers = 13;
*/
public static final int residentialStreetlightOthers_VALUE = 13;
/**
*
**
* --- Missing form CIM ---
*
*
* subsidiary = 14;
*/
public static final int subsidiary_VALUE = 14;
/**
*
**
* Wind machine customer.
*
*
* windMachine = 15;
*/
public static final int windMachine_VALUE = 15;
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 CustomerKind 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 CustomerKind forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return commercialIndustrial;
case 2: return energyServiceScheduler;
case 3: return energyServiceSupplier;
case 4: return enterprise;
case 5: return internalUse;
case 6: return other;
case 7: return pumpingLoad;
case 8: return regionalOperator;
case 9: return residential;
case 10: return residentialAndCommercial;
case 11: return residentialAndStreetlight;
case 12: return residentialFarmService;
case 13: return residentialStreetlightOthers;
case 14: return subsidiary;
case 15: return windMachine;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CustomerKind> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CustomerKind findValueByNumber(int number) {
return CustomerKind.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.cim.iec61968.customers.CustomerKindOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final CustomerKind[] VALUES = values();
public static CustomerKind 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 CustomerKind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:zepben.protobuf.cim.iec61968.customers.CustomerKind)
}