iscs v2
This commit is contained in:
parent
d1376b7ec2
commit
6632908b24
@ -0,0 +1,951 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: status/bas/pump/CoolWaterCirculatePumpState.proto
|
||||
|
||||
package club.joylink.rtss.iscs.proto.model.status.bas.pump;
|
||||
|
||||
public final class CoolWaterCirculatePumpStateProto {
|
||||
private CoolWaterCirculatePumpStateProto() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
public interface CoolWaterCirculatePumpStateOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:status.bas.pump.CoolWaterCirculatePumpState)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
* @return Whether the modelRef field is set.
|
||||
*/
|
||||
boolean hasModelRef();
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
* @return The modelRef.
|
||||
*/
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef();
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return The enum numeric value on the wire for state.
|
||||
*/
|
||||
int getStateValue();
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return The state.
|
||||
*/
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State getState();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*冷却水循环泵
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code status.bas.pump.CoolWaterCirculatePumpState}
|
||||
*/
|
||||
public static final class CoolWaterCirculatePumpState extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:status.bas.pump.CoolWaterCirculatePumpState)
|
||||
CoolWaterCirculatePumpStateOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use CoolWaterCirculatePumpState.newBuilder() to construct.
|
||||
private CoolWaterCirculatePumpState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private CoolWaterCirculatePumpState() {
|
||||
state_ = 0;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CoolWaterCirculatePumpState();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private CoolWaterCirculatePumpState(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null;
|
||||
if (modelRef_ != null) {
|
||||
subBuilder = modelRef_.toBuilder();
|
||||
}
|
||||
modelRef_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(modelRef_);
|
||||
modelRef_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
state_ = rawValue;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.internal_static_status_bas_pump_CoolWaterCirculatePumpState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.internal_static_status_bas_pump_CoolWaterCirculatePumpState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.class, club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.Builder.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Protobuf enum {@code status.bas.pump.CoolWaterCirculatePumpState.State}
|
||||
*/
|
||||
public enum State
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <pre>
|
||||
*停止
|
||||
* </pre>
|
||||
*
|
||||
* <code>STOP = 0;</code>
|
||||
*/
|
||||
STOP(0),
|
||||
/**
|
||||
* <pre>
|
||||
*运行
|
||||
* </pre>
|
||||
*
|
||||
* <code>RUNING = 1;</code>
|
||||
*/
|
||||
RUNING(1),
|
||||
/**
|
||||
* <pre>
|
||||
*故障
|
||||
* </pre>
|
||||
*
|
||||
* <code>FAULT = 2;</code>
|
||||
*/
|
||||
FAULT(2),
|
||||
/**
|
||||
* <pre>
|
||||
*通信中断
|
||||
* </pre>
|
||||
*
|
||||
* <code>OFFLINE = 3;</code>
|
||||
*/
|
||||
OFFLINE(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
*停止
|
||||
* </pre>
|
||||
*
|
||||
* <code>STOP = 0;</code>
|
||||
*/
|
||||
public static final int STOP_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
*运行
|
||||
* </pre>
|
||||
*
|
||||
* <code>RUNING = 1;</code>
|
||||
*/
|
||||
public static final int RUNING_VALUE = 1;
|
||||
/**
|
||||
* <pre>
|
||||
*故障
|
||||
* </pre>
|
||||
*
|
||||
* <code>FAULT = 2;</code>
|
||||
*/
|
||||
public static final int FAULT_VALUE = 2;
|
||||
/**
|
||||
* <pre>
|
||||
*通信中断
|
||||
* </pre>
|
||||
*
|
||||
* <code>OFFLINE = 3;</code>
|
||||
*/
|
||||
public static final int OFFLINE_VALUE = 3;
|
||||
|
||||
|
||||
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 State 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 State forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return STOP;
|
||||
case 1: return RUNING;
|
||||
case 2: return FAULT;
|
||||
case 3: return OFFLINE;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<State>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
State> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<State>() {
|
||||
public State findValueByNumber(int number) {
|
||||
return State.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 club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final State[] VALUES = values();
|
||||
|
||||
public static State 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 State(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:status.bas.pump.CoolWaterCirculatePumpState.State)
|
||||
}
|
||||
|
||||
public static final int MODELREF_FIELD_NUMBER = 1;
|
||||
private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_;
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
* @return Whether the modelRef field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasModelRef() {
|
||||
return modelRef_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
* @return The modelRef.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef() {
|
||||
return modelRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : modelRef_;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder() {
|
||||
return getModelRef();
|
||||
}
|
||||
|
||||
public static final int STATE_FIELD_NUMBER = 2;
|
||||
private int state_;
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return The enum numeric value on the wire for state.
|
||||
*/
|
||||
@java.lang.Override public int getStateValue() {
|
||||
return state_;
|
||||
}
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return The state.
|
||||
*/
|
||||
@java.lang.Override public club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State getState() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State result = club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State.valueOf(state_);
|
||||
return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (modelRef_ != null) {
|
||||
output.writeMessage(1, getModelRef());
|
||||
}
|
||||
if (state_ != club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State.STOP.getNumber()) {
|
||||
output.writeEnum(2, state_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (modelRef_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getModelRef());
|
||||
}
|
||||
if (state_ != club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State.STOP.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(2, state_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState other = (club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState) obj;
|
||||
|
||||
if (hasModelRef() != other.hasModelRef()) return false;
|
||||
if (hasModelRef()) {
|
||||
if (!getModelRef()
|
||||
.equals(other.getModelRef())) return false;
|
||||
}
|
||||
if (state_ != other.state_) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (hasModelRef()) {
|
||||
hash = (37 * hash) + MODELREF_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getModelRef().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + STATE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + state_;
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*冷却水循环泵
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code status.bas.pump.CoolWaterCirculatePumpState}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:status.bas.pump.CoolWaterCirculatePumpState)
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpStateOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.internal_static_status_bas_pump_CoolWaterCirculatePumpState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.internal_static_status_bas_pump_CoolWaterCirculatePumpState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.class, club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
if (modelRefBuilder_ == null) {
|
||||
modelRef_ = null;
|
||||
} else {
|
||||
modelRef_ = null;
|
||||
modelRefBuilder_ = null;
|
||||
}
|
||||
state_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.internal_static_status_bas_pump_CoolWaterCirculatePumpState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState build() {
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState buildPartial() {
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState result = new club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState(this);
|
||||
if (modelRefBuilder_ == null) {
|
||||
result.modelRef_ = modelRef_;
|
||||
} else {
|
||||
result.modelRef_ = modelRefBuilder_.build();
|
||||
}
|
||||
result.state_ = state_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState) {
|
||||
return mergeFrom((club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState other) {
|
||||
if (other == club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.getDefaultInstance()) return this;
|
||||
if (other.hasModelRef()) {
|
||||
mergeModelRef(other.getModelRef());
|
||||
}
|
||||
if (other.state_ != 0) {
|
||||
setStateValue(other.getStateValue());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder> modelRefBuilder_;
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
* @return Whether the modelRef field is set.
|
||||
*/
|
||||
public boolean hasModelRef() {
|
||||
return modelRefBuilder_ != null || modelRef_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
* @return The modelRef.
|
||||
*/
|
||||
public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef() {
|
||||
if (modelRefBuilder_ == null) {
|
||||
return modelRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : modelRef_;
|
||||
} else {
|
||||
return modelRefBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
public Builder setModelRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) {
|
||||
if (modelRefBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
modelRef_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
modelRefBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
public Builder setModelRef(
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) {
|
||||
if (modelRefBuilder_ == null) {
|
||||
modelRef_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
modelRefBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
public Builder mergeModelRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) {
|
||||
if (modelRefBuilder_ == null) {
|
||||
if (modelRef_ != null) {
|
||||
modelRef_ =
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(modelRef_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
modelRef_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
modelRefBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
public Builder clearModelRef() {
|
||||
if (modelRefBuilder_ == null) {
|
||||
modelRef_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
modelRef_ = null;
|
||||
modelRefBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getModelRefFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder() {
|
||||
if (modelRefBuilder_ != null) {
|
||||
return modelRefBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return modelRef_ == null ?
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : modelRef_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.model.ModelRef modelRef = 1;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder>
|
||||
getModelRefFieldBuilder() {
|
||||
if (modelRefBuilder_ == null) {
|
||||
modelRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder>(
|
||||
getModelRef(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
modelRef_ = null;
|
||||
}
|
||||
return modelRefBuilder_;
|
||||
}
|
||||
|
||||
private int state_ = 0;
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return The enum numeric value on the wire for state.
|
||||
*/
|
||||
@java.lang.Override public int getStateValue() {
|
||||
return state_;
|
||||
}
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @param value The enum numeric value on the wire for state to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStateValue(int value) {
|
||||
|
||||
state_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return The state.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State getState() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State result = club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State.valueOf(state_);
|
||||
return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @param value The state to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setState(club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState.State value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
state_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.status.bas.pump.CoolWaterCirculatePumpState.State state = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearState() {
|
||||
|
||||
state_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:status.bas.pump.CoolWaterCirculatePumpState)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:status.bas.pump.CoolWaterCirculatePumpState)
|
||||
private static final club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<CoolWaterCirculatePumpState>
|
||||
PARSER = new com.google.protobuf.AbstractParser<CoolWaterCirculatePumpState>() {
|
||||
@java.lang.Override
|
||||
public CoolWaterCirculatePumpState parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new CoolWaterCirculatePumpState(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<CoolWaterCirculatePumpState> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<CoolWaterCirculatePumpState> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.iscs.proto.model.status.bas.pump.CoolWaterCirculatePumpStateProto.CoolWaterCirculatePumpState getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_status_bas_pump_CoolWaterCirculatePumpState_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_status_bas_pump_CoolWaterCirculatePumpState_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n1status/bas/pump/CoolWaterCirculatePump" +
|
||||
"State.proto\022\017status.bas.pump\032\025model/Data" +
|
||||
"Model.proto\"\272\001\n\033CoolWaterCirculatePumpSt" +
|
||||
"ate\022!\n\010modelRef\030\001 \001(\0132\017.model.ModelRef\022A" +
|
||||
"\n\005state\030\002 \001(\01622.status.bas.pump.CoolWate" +
|
||||
"rCirculatePumpState.State\"5\n\005State\022\010\n\004ST" +
|
||||
"OP\020\000\022\n\n\006RUNING\020\001\022\t\n\005FAULT\020\002\022\013\n\007OFFLINE\020\003" +
|
||||
"BV\n2club.joylink.rtss.iscs.proto.model.s" +
|
||||
"tatus.bas.pumpB CoolWaterCirculatePumpSt" +
|
||||
"ateProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(),
|
||||
});
|
||||
internal_static_status_bas_pump_CoolWaterCirculatePumpState_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_status_bas_pump_CoolWaterCirculatePumpState_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_status_bas_pump_CoolWaterCirculatePumpState_descriptor,
|
||||
new java.lang.String[] { "ModelRef", "State", });
|
||||
club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
Loading…
Reference in New Issue
Block a user