diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/cool/CoolTowerProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/cool/CoolTowerProto.java new file mode 100644 index 000000000..b27289c03 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/cool/CoolTowerProto.java @@ -0,0 +1,1299 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/cool/CoolTower.proto + +package club.joylink.rtss.iscs.proto.model.data.bas.cool; + +public final class CoolTowerProto { + private CoolTowerProto() {} + 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 CoolTowerOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.cool.CoolTower) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + boolean hasIdentity(); + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity(); + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder(); + + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + boolean hasHostRef(); + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef(); + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder(); + + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + boolean hasLocal(); + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal(); + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder(); + } + /** + *
+   *冷却塔
+   * 
+ * + * Protobuf type {@code model.bas.cool.CoolTower} + */ + public static final class CoolTower extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.cool.CoolTower) + CoolTowerOrBuilder { + private static final long serialVersionUID = 0L; + // Use CoolTower.newBuilder() to construct. + private CoolTower(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CoolTower() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CoolTower(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CoolTower( + 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.DataModel.Builder subBuilder = null; + if (identity_ != null) { + subBuilder = identity_.toBuilder(); + } + identity_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identity_); + identity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (hostRef_ != null) { + subBuilder = hostRef_.toBuilder(); + } + hostRef_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hostRef_); + hostRef_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (local_ != null) { + subBuilder = local_.toBuilder(); + } + local_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(local_); + local_ = subBuilder.buildPartial(); + } + + 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.data.bas.cool.CoolTowerProto.internal_static_model_bas_cool_CoolTower_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.internal_static_model_bas_cool_CoolTower_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.class, club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel identity_; + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + @java.lang.Override + public boolean hasIdentity() { + return identity_ != null; + } + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity() { + return identity_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder() { + return getIdentity(); + } + + public static final int HOSTREF_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef hostRef_; + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + @java.lang.Override + public boolean hasHostRef() { + return hostRef_ != null; + } + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef() { + return hostRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder() { + return getHostRef(); + } + + public static final int LOCAL_FIELD_NUMBER = 3; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef local_; + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + @java.lang.Override + public boolean hasLocal() { + return local_ != null; + } + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal() { + return local_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder() { + return getLocal(); + } + + 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 (identity_ != null) { + output.writeMessage(1, getIdentity()); + } + if (hostRef_ != null) { + output.writeMessage(2, getHostRef()); + } + if (local_ != null) { + output.writeMessage(3, getLocal()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (identity_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIdentity()); + } + if (hostRef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHostRef()); + } + if (local_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLocal()); + } + 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.data.bas.cool.CoolTowerProto.CoolTower)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower other = (club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasHostRef() != other.hasHostRef()) return false; + if (hasHostRef()) { + if (!getHostRef() + .equals(other.getHostRef())) return false; + } + if (hasLocal() != other.hasLocal()) return false; + if (hasLocal()) { + if (!getLocal() + .equals(other.getLocal())) 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 (hasIdentity()) { + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + } + if (hasHostRef()) { + hash = (37 * hash) + HOSTREF_FIELD_NUMBER; + hash = (53 * hash) + getHostRef().hashCode(); + } + if (hasLocal()) { + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + getLocal().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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.data.bas.cool.CoolTowerProto.CoolTower 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; + } + /** + *
+     *冷却塔
+     * 
+ * + * Protobuf type {@code model.bas.cool.CoolTower} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.cool.CoolTower) + club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTowerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.internal_static_model_bas_cool_CoolTower_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.internal_static_model_bas_cool_CoolTower_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.class, club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.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 (identityBuilder_ == null) { + identity_ = null; + } else { + identity_ = null; + identityBuilder_ = null; + } + if (hostRefBuilder_ == null) { + hostRef_ = null; + } else { + hostRef_ = null; + hostRefBuilder_ = null; + } + if (localBuilder_ == null) { + local_ = null; + } else { + local_ = null; + localBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.internal_static_model_bas_cool_CoolTower_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower build() { + club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower result = new club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (hostRefBuilder_ == null) { + result.hostRef_ = hostRef_; + } else { + result.hostRef_ = hostRefBuilder_.build(); + } + if (localBuilder_ == null) { + result.local_ = local_; + } else { + result.local_ = localBuilder_.build(); + } + 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.data.bas.cool.CoolTowerProto.CoolTower) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasHostRef()) { + mergeHostRef(other.getHostRef()); + } + if (other.hasLocal()) { + mergeLocal(other.getLocal()); + } + 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.data.bas.cool.CoolTowerProto.CoolTower parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel identity_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder> identityBuilder_; + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + public boolean hasIdentity() { + return identityBuilder_ != null || identity_ != null; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity() { + if (identityBuilder_ == null) { + return identity_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } else { + return identityBuilder_.getMessage(); + } + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder setIdentity(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel value) { + if (identityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identity_ = value; + onChanged(); + } else { + identityBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder setIdentity( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder builderForValue) { + if (identityBuilder_ == null) { + identity_ = builderForValue.build(); + onChanged(); + } else { + identityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder mergeIdentity(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel value) { + if (identityBuilder_ == null) { + if (identity_ != null) { + identity_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.newBuilder(identity_).mergeFrom(value).buildPartial(); + } else { + identity_ = value; + } + onChanged(); + } else { + identityBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder clearIdentity() { + if (identityBuilder_ == null) { + identity_ = null; + onChanged(); + } else { + identity_ = null; + identityBuilder_ = null; + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder getIdentityBuilder() { + + onChanged(); + return getIdentityFieldBuilder().getBuilder(); + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder() { + if (identityBuilder_ != null) { + return identityBuilder_.getMessageOrBuilder(); + } else { + return identity_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder> + getIdentityFieldBuilder() { + if (identityBuilder_ == null) { + identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder>( + getIdentity(), + getParentForChildren(), + isClean()); + identity_ = null; + } + return identityBuilder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef hostRef_; + 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> hostRefBuilder_; + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + public boolean hasHostRef() { + return hostRefBuilder_ != null || hostRef_ != null; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef() { + if (hostRefBuilder_ == null) { + return hostRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } else { + return hostRefBuilder_.getMessage(); + } + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder setHostRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (hostRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hostRef_ = value; + onChanged(); + } else { + hostRefBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder setHostRef( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (hostRefBuilder_ == null) { + hostRef_ = builderForValue.build(); + onChanged(); + } else { + hostRefBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder mergeHostRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (hostRefBuilder_ == null) { + if (hostRef_ != null) { + hostRef_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(hostRef_).mergeFrom(value).buildPartial(); + } else { + hostRef_ = value; + } + onChanged(); + } else { + hostRefBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder clearHostRef() { + if (hostRefBuilder_ == null) { + hostRef_ = null; + onChanged(); + } else { + hostRef_ = null; + hostRefBuilder_ = null; + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getHostRefBuilder() { + + onChanged(); + return getHostRefFieldBuilder().getBuilder(); + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder() { + if (hostRefBuilder_ != null) { + return hostRefBuilder_.getMessageOrBuilder(); + } else { + return hostRef_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + 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> + getHostRefFieldBuilder() { + if (hostRefBuilder_ == null) { + hostRefBuilder_ = 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>( + getHostRef(), + getParentForChildren(), + isClean()); + hostRef_ = null; + } + return hostRefBuilder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef local_; + 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> localBuilder_; + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + public boolean hasLocal() { + return localBuilder_ != null || local_ != null; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal() { + if (localBuilder_ == null) { + return local_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } else { + return localBuilder_.getMessage(); + } + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder setLocal(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (localBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + local_ = value; + onChanged(); + } else { + localBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder setLocal( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (localBuilder_ == null) { + local_ = builderForValue.build(); + onChanged(); + } else { + localBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder mergeLocal(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (localBuilder_ == null) { + if (local_ != null) { + local_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(local_).mergeFrom(value).buildPartial(); + } else { + local_ = value; + } + onChanged(); + } else { + localBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder clearLocal() { + if (localBuilder_ == null) { + local_ = null; + onChanged(); + } else { + local_ = null; + localBuilder_ = null; + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getLocalBuilder() { + + onChanged(); + return getLocalFieldBuilder().getBuilder(); + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder() { + if (localBuilder_ != null) { + return localBuilder_.getMessageOrBuilder(); + } else { + return local_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + 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> + getLocalFieldBuilder() { + if (localBuilder_ == null) { + localBuilder_ = 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>( + getLocal(), + getParentForChildren(), + isClean()); + local_ = null; + } + return localBuilder_; + } + @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:model.bas.cool.CoolTower) + } + + // @@protoc_insertion_point(class_scope:model.bas.cool.CoolTower) + private static final club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoolTower parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CoolTower(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.cool.CoolTowerProto.CoolTower getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_cool_CoolTower_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_cool_CoolTower_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036model/bas/cool/CoolTower.proto\022\016model." + + "bas.cool\032\025model/DataModel.proto\"q\n\tCoolT" + + "ower\022\"\n\010identity\030\001 \001(\0132\020.model.DataModel" + + "\022 \n\007hostRef\030\002 \001(\0132\017.model.ModelRef\022\036\n\005lo" + + "cal\030\003 \001(\0132\017.model.ModelRefBB\n0club.joyli" + + "nk.rtss.iscs.proto.model.data.bas.coolB\016" + + "CoolTowerProtob\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_model_bas_cool_CoolTower_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_cool_CoolTower_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_cool_CoolTower_descriptor, + new java.lang.String[] { "Identity", "HostRef", "Local", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/pump/CoolWaterCirculatePumpProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/pump/CoolWaterCirculatePumpProto.java new file mode 100644 index 000000000..5626229a6 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/pump/CoolWaterCirculatePumpProto.java @@ -0,0 +1,1300 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/pump/CoolWaterCirculatePump.proto + +package club.joylink.rtss.iscs.proto.model.data.bas.pump; + +public final class CoolWaterCirculatePumpProto { + private CoolWaterCirculatePumpProto() {} + 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 CoolWaterCirculatePumpOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.pump.CoolWaterCirculatePump) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + boolean hasIdentity(); + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity(); + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder(); + + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + boolean hasHostRef(); + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef(); + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder(); + + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + boolean hasLocal(); + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal(); + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder(); + } + /** + *
+   *冷却水循环泵
+   * 
+ * + * Protobuf type {@code model.bas.pump.CoolWaterCirculatePump} + */ + public static final class CoolWaterCirculatePump extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.pump.CoolWaterCirculatePump) + CoolWaterCirculatePumpOrBuilder { + private static final long serialVersionUID = 0L; + // Use CoolWaterCirculatePump.newBuilder() to construct. + private CoolWaterCirculatePump(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CoolWaterCirculatePump() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CoolWaterCirculatePump(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CoolWaterCirculatePump( + 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.DataModel.Builder subBuilder = null; + if (identity_ != null) { + subBuilder = identity_.toBuilder(); + } + identity_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identity_); + identity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (hostRef_ != null) { + subBuilder = hostRef_.toBuilder(); + } + hostRef_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hostRef_); + hostRef_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (local_ != null) { + subBuilder = local_.toBuilder(); + } + local_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(local_); + local_ = subBuilder.buildPartial(); + } + + 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.data.bas.pump.CoolWaterCirculatePumpProto.internal_static_model_bas_pump_CoolWaterCirculatePump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.internal_static_model_bas_pump_CoolWaterCirculatePump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.class, club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel identity_; + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + @java.lang.Override + public boolean hasIdentity() { + return identity_ != null; + } + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity() { + return identity_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder() { + return getIdentity(); + } + + public static final int HOSTREF_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef hostRef_; + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + @java.lang.Override + public boolean hasHostRef() { + return hostRef_ != null; + } + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef() { + return hostRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder() { + return getHostRef(); + } + + public static final int LOCAL_FIELD_NUMBER = 3; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef local_; + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + @java.lang.Override + public boolean hasLocal() { + return local_ != null; + } + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal() { + return local_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder() { + return getLocal(); + } + + 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 (identity_ != null) { + output.writeMessage(1, getIdentity()); + } + if (hostRef_ != null) { + output.writeMessage(2, getHostRef()); + } + if (local_ != null) { + output.writeMessage(3, getLocal()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (identity_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIdentity()); + } + if (hostRef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHostRef()); + } + if (local_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLocal()); + } + 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump other = (club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasHostRef() != other.hasHostRef()) return false; + if (hasHostRef()) { + if (!getHostRef() + .equals(other.getHostRef())) return false; + } + if (hasLocal() != other.hasLocal()) return false; + if (hasLocal()) { + if (!getLocal() + .equals(other.getLocal())) 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 (hasIdentity()) { + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + } + if (hasHostRef()) { + hash = (37 * hash) + HOSTREF_FIELD_NUMBER; + hash = (53 * hash) + getHostRef().hashCode(); + } + if (hasLocal()) { + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + getLocal().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump 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; + } + /** + *
+     *冷却水循环泵
+     * 
+ * + * Protobuf type {@code model.bas.pump.CoolWaterCirculatePump} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.pump.CoolWaterCirculatePump) + club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePumpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.internal_static_model_bas_pump_CoolWaterCirculatePump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.internal_static_model_bas_pump_CoolWaterCirculatePump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.class, club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.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 (identityBuilder_ == null) { + identity_ = null; + } else { + identity_ = null; + identityBuilder_ = null; + } + if (hostRefBuilder_ == null) { + hostRef_ = null; + } else { + hostRef_ = null; + hostRefBuilder_ = null; + } + if (localBuilder_ == null) { + local_ = null; + } else { + local_ = null; + localBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.internal_static_model_bas_pump_CoolWaterCirculatePump_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump build() { + club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump result = new club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (hostRefBuilder_ == null) { + result.hostRef_ = hostRef_; + } else { + result.hostRef_ = hostRefBuilder_.build(); + } + if (localBuilder_ == null) { + result.local_ = local_; + } else { + result.local_ = localBuilder_.build(); + } + 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasHostRef()) { + mergeHostRef(other.getHostRef()); + } + if (other.hasLocal()) { + mergeLocal(other.getLocal()); + } + 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.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel identity_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder> identityBuilder_; + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + public boolean hasIdentity() { + return identityBuilder_ != null || identity_ != null; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity() { + if (identityBuilder_ == null) { + return identity_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } else { + return identityBuilder_.getMessage(); + } + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder setIdentity(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel value) { + if (identityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identity_ = value; + onChanged(); + } else { + identityBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder setIdentity( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder builderForValue) { + if (identityBuilder_ == null) { + identity_ = builderForValue.build(); + onChanged(); + } else { + identityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder mergeIdentity(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel value) { + if (identityBuilder_ == null) { + if (identity_ != null) { + identity_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.newBuilder(identity_).mergeFrom(value).buildPartial(); + } else { + identity_ = value; + } + onChanged(); + } else { + identityBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder clearIdentity() { + if (identityBuilder_ == null) { + identity_ = null; + onChanged(); + } else { + identity_ = null; + identityBuilder_ = null; + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder getIdentityBuilder() { + + onChanged(); + return getIdentityFieldBuilder().getBuilder(); + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder() { + if (identityBuilder_ != null) { + return identityBuilder_.getMessageOrBuilder(); + } else { + return identity_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder> + getIdentityFieldBuilder() { + if (identityBuilder_ == null) { + identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder>( + getIdentity(), + getParentForChildren(), + isClean()); + identity_ = null; + } + return identityBuilder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef hostRef_; + 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> hostRefBuilder_; + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + public boolean hasHostRef() { + return hostRefBuilder_ != null || hostRef_ != null; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef() { + if (hostRefBuilder_ == null) { + return hostRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } else { + return hostRefBuilder_.getMessage(); + } + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder setHostRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (hostRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hostRef_ = value; + onChanged(); + } else { + hostRefBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder setHostRef( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (hostRefBuilder_ == null) { + hostRef_ = builderForValue.build(); + onChanged(); + } else { + hostRefBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder mergeHostRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (hostRefBuilder_ == null) { + if (hostRef_ != null) { + hostRef_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(hostRef_).mergeFrom(value).buildPartial(); + } else { + hostRef_ = value; + } + onChanged(); + } else { + hostRefBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder clearHostRef() { + if (hostRefBuilder_ == null) { + hostRef_ = null; + onChanged(); + } else { + hostRef_ = null; + hostRefBuilder_ = null; + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getHostRefBuilder() { + + onChanged(); + return getHostRefFieldBuilder().getBuilder(); + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder() { + if (hostRefBuilder_ != null) { + return hostRefBuilder_.getMessageOrBuilder(); + } else { + return hostRef_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + 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> + getHostRefFieldBuilder() { + if (hostRefBuilder_ == null) { + hostRefBuilder_ = 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>( + getHostRef(), + getParentForChildren(), + isClean()); + hostRef_ = null; + } + return hostRefBuilder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef local_; + 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> localBuilder_; + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + public boolean hasLocal() { + return localBuilder_ != null || local_ != null; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal() { + if (localBuilder_ == null) { + return local_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } else { + return localBuilder_.getMessage(); + } + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder setLocal(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (localBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + local_ = value; + onChanged(); + } else { + localBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder setLocal( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (localBuilder_ == null) { + local_ = builderForValue.build(); + onChanged(); + } else { + localBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder mergeLocal(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (localBuilder_ == null) { + if (local_ != null) { + local_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(local_).mergeFrom(value).buildPartial(); + } else { + local_ = value; + } + onChanged(); + } else { + localBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder clearLocal() { + if (localBuilder_ == null) { + local_ = null; + onChanged(); + } else { + local_ = null; + localBuilder_ = null; + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getLocalBuilder() { + + onChanged(); + return getLocalFieldBuilder().getBuilder(); + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder() { + if (localBuilder_ != null) { + return localBuilder_.getMessageOrBuilder(); + } else { + return local_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + 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> + getLocalFieldBuilder() { + if (localBuilder_ == null) { + localBuilder_ = 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>( + getLocal(), + getParentForChildren(), + isClean()); + local_ = null; + } + return localBuilder_; + } + @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:model.bas.pump.CoolWaterCirculatePump) + } + + // @@protoc_insertion_point(class_scope:model.bas.pump.CoolWaterCirculatePump) + private static final club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoolWaterCirculatePump parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CoolWaterCirculatePump(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.CoolWaterCirculatePumpProto.CoolWaterCirculatePump getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_pump_CoolWaterCirculatePump_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_pump_CoolWaterCirculatePump_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+model/bas/pump/CoolWaterCirculatePump." + + "proto\022\016model.bas.pump\032\025model/DataModel.p" + + "roto\"~\n\026CoolWaterCirculatePump\022\"\n\010identi" + + "ty\030\001 \001(\0132\020.model.DataModel\022 \n\007hostRef\030\002 " + + "\001(\0132\017.model.ModelRef\022\036\n\005local\030\003 \001(\0132\017.mo" + + "del.ModelRefBO\n0club.joylink.rtss.iscs.p" + + "roto.model.data.bas.pumpB\033CoolWaterCircu" + + "latePumpProtob\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_model_bas_pump_CoolWaterCirculatePump_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_pump_CoolWaterCirculatePump_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_pump_CoolWaterCirculatePump_descriptor, + new java.lang.String[] { "Identity", "HostRef", "Local", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/valve/CombinedAirValveProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/valve/CombinedAirValveProto.java new file mode 100644 index 000000000..760dcce24 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/valve/CombinedAirValveProto.java @@ -0,0 +1,1300 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/valve/CombinedAirValve.proto + +package club.joylink.rtss.iscs.proto.model.data.bas.valve; + +public final class CombinedAirValveProto { + private CombinedAirValveProto() {} + 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 CombinedAirValveOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.valve.CombinedAirValve) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + boolean hasIdentity(); + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity(); + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder(); + + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + boolean hasHostRef(); + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef(); + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder(); + + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + boolean hasLocal(); + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal(); + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder(); + } + /** + *
+   *组合式风阀
+   * 
+ * + * Protobuf type {@code model.bas.valve.CombinedAirValve} + */ + public static final class CombinedAirValve extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.valve.CombinedAirValve) + CombinedAirValveOrBuilder { + private static final long serialVersionUID = 0L; + // Use CombinedAirValve.newBuilder() to construct. + private CombinedAirValve(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CombinedAirValve() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CombinedAirValve(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CombinedAirValve( + 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.DataModel.Builder subBuilder = null; + if (identity_ != null) { + subBuilder = identity_.toBuilder(); + } + identity_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identity_); + identity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (hostRef_ != null) { + subBuilder = hostRef_.toBuilder(); + } + hostRef_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hostRef_); + hostRef_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (local_ != null) { + subBuilder = local_.toBuilder(); + } + local_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(local_); + local_ = subBuilder.buildPartial(); + } + + 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.data.bas.valve.CombinedAirValveProto.internal_static_model_bas_valve_CombinedAirValve_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.internal_static_model_bas_valve_CombinedAirValve_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.class, club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel identity_; + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + @java.lang.Override + public boolean hasIdentity() { + return identity_ != null; + } + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity() { + return identity_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } + /** + *
+     *当前模型数据唯一标识
+     * 
+ * + * .model.DataModel identity = 1; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder() { + return getIdentity(); + } + + public static final int HOSTREF_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef hostRef_; + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + @java.lang.Override + public boolean hasHostRef() { + return hostRef_ != null; + } + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef() { + return hostRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } + /** + *
+     *消防私服主机
+     *FireControlHost
+     * 
+ * + * .model.ModelRef hostRef = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder() { + return getHostRef(); + } + + public static final int LOCAL_FIELD_NUMBER = 3; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef local_; + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + @java.lang.Override + public boolean hasLocal() { + return local_ != null; + } + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal() { + return local_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } + /** + *
+     *所在位置
+     *basLocal
+     * 
+ * + * .model.ModelRef local = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder() { + return getLocal(); + } + + 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 (identity_ != null) { + output.writeMessage(1, getIdentity()); + } + if (hostRef_ != null) { + output.writeMessage(2, getHostRef()); + } + if (local_ != null) { + output.writeMessage(3, getLocal()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (identity_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIdentity()); + } + if (hostRef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHostRef()); + } + if (local_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLocal()); + } + 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve other = (club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasHostRef() != other.hasHostRef()) return false; + if (hasHostRef()) { + if (!getHostRef() + .equals(other.getHostRef())) return false; + } + if (hasLocal() != other.hasLocal()) return false; + if (hasLocal()) { + if (!getLocal() + .equals(other.getLocal())) 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 (hasIdentity()) { + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + } + if (hasHostRef()) { + hash = (37 * hash) + HOSTREF_FIELD_NUMBER; + hash = (53 * hash) + getHostRef().hashCode(); + } + if (hasLocal()) { + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + getLocal().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve 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; + } + /** + *
+     *组合式风阀
+     * 
+ * + * Protobuf type {@code model.bas.valve.CombinedAirValve} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.valve.CombinedAirValve) + club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.internal_static_model_bas_valve_CombinedAirValve_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.internal_static_model_bas_valve_CombinedAirValve_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.class, club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.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 (identityBuilder_ == null) { + identity_ = null; + } else { + identity_ = null; + identityBuilder_ = null; + } + if (hostRefBuilder_ == null) { + hostRef_ = null; + } else { + hostRef_ = null; + hostRefBuilder_ = null; + } + if (localBuilder_ == null) { + local_ = null; + } else { + local_ = null; + localBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.internal_static_model_bas_valve_CombinedAirValve_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve build() { + club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve result = new club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (hostRefBuilder_ == null) { + result.hostRef_ = hostRef_; + } else { + result.hostRef_ = hostRefBuilder_.build(); + } + if (localBuilder_ == null) { + result.local_ = local_; + } else { + result.local_ = localBuilder_.build(); + } + 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasHostRef()) { + mergeHostRef(other.getHostRef()); + } + if (other.hasLocal()) { + mergeLocal(other.getLocal()); + } + 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.data.bas.valve.CombinedAirValveProto.CombinedAirValve parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel identity_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder> identityBuilder_; + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + * @return Whether the identity field is set. + */ + public boolean hasIdentity() { + return identityBuilder_ != null || identity_ != null; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + * @return The identity. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel getIdentity() { + if (identityBuilder_ == null) { + return identity_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } else { + return identityBuilder_.getMessage(); + } + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder setIdentity(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel value) { + if (identityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identity_ = value; + onChanged(); + } else { + identityBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder setIdentity( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder builderForValue) { + if (identityBuilder_ == null) { + identity_ = builderForValue.build(); + onChanged(); + } else { + identityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder mergeIdentity(club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel value) { + if (identityBuilder_ == null) { + if (identity_ != null) { + identity_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.newBuilder(identity_).mergeFrom(value).buildPartial(); + } else { + identity_ = value; + } + onChanged(); + } else { + identityBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public Builder clearIdentity() { + if (identityBuilder_ == null) { + identity_ = null; + onChanged(); + } else { + identity_ = null; + identityBuilder_ = null; + } + + return this; + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder getIdentityBuilder() { + + onChanged(); + return getIdentityFieldBuilder().getBuilder(); + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder getIdentityOrBuilder() { + if (identityBuilder_ != null) { + return identityBuilder_.getMessageOrBuilder(); + } else { + return identity_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.getDefaultInstance() : identity_; + } + } + /** + *
+       *当前模型数据唯一标识
+       * 
+ * + * .model.DataModel identity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder> + getIdentityFieldBuilder() { + if (identityBuilder_ == null) { + identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModel.Builder, club.joylink.rtss.iscs.proto.model.data.DataModelProto.DataModelOrBuilder>( + getIdentity(), + getParentForChildren(), + isClean()); + identity_ = null; + } + return identityBuilder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef hostRef_; + 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> hostRefBuilder_; + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + * @return Whether the hostRef field is set. + */ + public boolean hasHostRef() { + return hostRefBuilder_ != null || hostRef_ != null; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + * @return The hostRef. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getHostRef() { + if (hostRefBuilder_ == null) { + return hostRef_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } else { + return hostRefBuilder_.getMessage(); + } + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder setHostRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (hostRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hostRef_ = value; + onChanged(); + } else { + hostRefBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder setHostRef( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (hostRefBuilder_ == null) { + hostRef_ = builderForValue.build(); + onChanged(); + } else { + hostRefBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder mergeHostRef(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (hostRefBuilder_ == null) { + if (hostRef_ != null) { + hostRef_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(hostRef_).mergeFrom(value).buildPartial(); + } else { + hostRef_ = value; + } + onChanged(); + } else { + hostRefBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public Builder clearHostRef() { + if (hostRefBuilder_ == null) { + hostRef_ = null; + onChanged(); + } else { + hostRef_ = null; + hostRefBuilder_ = null; + } + + return this; + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getHostRefBuilder() { + + onChanged(); + return getHostRefFieldBuilder().getBuilder(); + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getHostRefOrBuilder() { + if (hostRefBuilder_ != null) { + return hostRefBuilder_.getMessageOrBuilder(); + } else { + return hostRef_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : hostRef_; + } + } + /** + *
+       *消防私服主机
+       *FireControlHost
+       * 
+ * + * .model.ModelRef hostRef = 2; + */ + 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> + getHostRefFieldBuilder() { + if (hostRefBuilder_ == null) { + hostRefBuilder_ = 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>( + getHostRef(), + getParentForChildren(), + isClean()); + hostRef_ = null; + } + return hostRefBuilder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef local_; + 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> localBuilder_; + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + * @return Whether the local field is set. + */ + public boolean hasLocal() { + return localBuilder_ != null || local_ != null; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + * @return The local. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getLocal() { + if (localBuilder_ == null) { + return local_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } else { + return localBuilder_.getMessage(); + } + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder setLocal(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (localBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + local_ = value; + onChanged(); + } else { + localBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder setLocal( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (localBuilder_ == null) { + local_ = builderForValue.build(); + onChanged(); + } else { + localBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder mergeLocal(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (localBuilder_ == null) { + if (local_ != null) { + local_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(local_).mergeFrom(value).buildPartial(); + } else { + local_ = value; + } + onChanged(); + } else { + localBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public Builder clearLocal() { + if (localBuilder_ == null) { + local_ = null; + onChanged(); + } else { + local_ = null; + localBuilder_ = null; + } + + return this; + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getLocalBuilder() { + + onChanged(); + return getLocalFieldBuilder().getBuilder(); + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getLocalOrBuilder() { + if (localBuilder_ != null) { + return localBuilder_.getMessageOrBuilder(); + } else { + return local_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : local_; + } + } + /** + *
+       *所在位置
+       *basLocal
+       * 
+ * + * .model.ModelRef local = 3; + */ + 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> + getLocalFieldBuilder() { + if (localBuilder_ == null) { + localBuilder_ = 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>( + getLocal(), + getParentForChildren(), + isClean()); + local_ = null; + } + return localBuilder_; + } + @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:model.bas.valve.CombinedAirValve) + } + + // @@protoc_insertion_point(class_scope:model.bas.valve.CombinedAirValve) + private static final club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CombinedAirValve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CombinedAirValve(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.CombinedAirValveProto.CombinedAirValve getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_valve_CombinedAirValve_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_valve_CombinedAirValve_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&model/bas/valve/CombinedAirValve.proto" + + "\022\017model.bas.valve\032\025model/DataModel.proto" + + "\"x\n\020CombinedAirValve\022\"\n\010identity\030\001 \001(\0132\020" + + ".model.DataModel\022 \n\007hostRef\030\002 \001(\0132\017.mode" + + "l.ModelRef\022\036\n\005local\030\003 \001(\0132\017.model.ModelR" + + "efBJ\n1club.joylink.rtss.iscs.proto.model" + + ".data.bas.valveB\025CombinedAirValveProtob\006" + + "proto3" + }; + 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_model_bas_valve_CombinedAirValve_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_valve_CombinedAirValve_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_valve_CombinedAirValve_descriptor, + new java.lang.String[] { "Identity", "HostRef", "Local", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/cool/CoolTowerStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/cool/CoolTowerStateProto.java new file mode 100644 index 000000000..379c94dac --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/cool/CoolTowerStateProto.java @@ -0,0 +1,950 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/bas/cool/CoolTowerState.proto + +package club.joylink.rtss.iscs.proto.model.status.bas.cool; + +public final class CoolTowerStateProto { + private CoolTowerStateProto() {} + 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 CoolTowerStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.bas.cool.CoolTowerState) + com.google.protobuf.MessageOrBuilder { + + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State getState(); + } + /** + *
+   *冷却塔
+   * 
+ * + * Protobuf type {@code status.bas.cool.CoolTowerState} + */ + public static final class CoolTowerState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.bas.cool.CoolTowerState) + CoolTowerStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use CoolTowerState.newBuilder() to construct. + private CoolTowerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CoolTowerState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CoolTowerState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CoolTowerState( + 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.cool.CoolTowerStateProto.internal_static_status_bas_cool_CoolTowerState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.internal_static_status_bas_cool_CoolTowerState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.class, club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.Builder.class); + } + + /** + * Protobuf enum {@code status.bas.cool.CoolTowerState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *正常/运行
+       * 
+ * + * NORMAL = 0; + */ + NORMAL(0), + /** + *
+       *停止
+       * 
+ * + * STOP = 1; + */ + STOP(1), + /** + *
+       *故障
+       * 
+ * + * FAULT = 2; + */ + FAULT(2), + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 3; + */ + OFFLINE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       *正常/运行
+       * 
+ * + * NORMAL = 0; + */ + public static final int NORMAL_VALUE = 0; + /** + *
+       *停止
+       * 
+ * + * STOP = 1; + */ + public static final int STOP_VALUE = 1; + /** + *
+       *故障
+       * 
+ * + * FAULT = 2; + */ + public static final int FAULT_VALUE = 2; + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 3; + */ + 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 NORMAL; + case 1: return STOP; + case 2: return FAULT; + case 3: return OFFLINE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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.cool.CoolTowerStateProto.CoolTowerState.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.cool.CoolTowerState.State) + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + * .model.ModelRef modelRef = 1; + * @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_; + } + /** + * .model.ModelRef modelRef = 1; + */ + @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_; + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State result = club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.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.cool.CoolTowerStateProto.CoolTowerState.State.NORMAL.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.cool.CoolTowerStateProto.CoolTowerState.State.NORMAL.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.cool.CoolTowerStateProto.CoolTowerState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState other = (club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState) 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.cool.CoolTowerStateProto.CoolTowerState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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.cool.CoolTowerStateProto.CoolTowerState 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; + } + /** + *
+     *冷却塔
+     * 
+ * + * Protobuf type {@code status.bas.cool.CoolTowerState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.bas.cool.CoolTowerState) + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.internal_static_status_bas_cool_CoolTowerState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.internal_static_status_bas_cool_CoolTowerState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.class, club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.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.cool.CoolTowerStateProto.internal_static_status_bas_cool_CoolTowerState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState build() { + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState result = new club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState(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.cool.CoolTowerStateProto.CoolTowerState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.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.cool.CoolTowerStateProto.CoolTowerState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState) 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_; + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + * .model.ModelRef modelRef = 1; + * @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(); + } + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + * .model.ModelRef modelRef = 1; + */ + 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_; + } + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @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; + } + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State result = club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State.UNRECOGNIZED : result; + } + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .status.bas.cool.CoolTowerState.State state = 2; + * @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.cool.CoolTowerState) + } + + // @@protoc_insertion_point(class_scope:status.bas.cool.CoolTowerState) + private static final club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoolTowerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CoolTowerState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.cool.CoolTowerStateProto.CoolTowerState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_bas_cool_CoolTowerState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_bas_cool_CoolTowerState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n$status/bas/cool/CoolTowerState.proto\022\017" + + "status.bas.cool\032\025model/DataModel.proto\"\240" + + "\001\n\016CoolTowerState\022!\n\010modelRef\030\001 \001(\0132\017.mo" + + "del.ModelRef\0224\n\005state\030\002 \001(\0162%.status.bas" + + ".cool.CoolTowerState.State\"5\n\005State\022\n\n\006N" + + "ORMAL\020\000\022\010\n\004STOP\020\001\022\t\n\005FAULT\020\002\022\013\n\007OFFLINE\020" + + "\003BI\n2club.joylink.rtss.iscs.proto.model." + + "status.bas.coolB\023CoolTowerStateProtob\006pr" + + "oto3" + }; + 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_cool_CoolTowerState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_bas_cool_CoolTowerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_bas_cool_CoolTowerState_descriptor, + new java.lang.String[] { "ModelRef", "State", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/sensor/CO2SensorStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/sensor/CO2SensorStateProto.java new file mode 100644 index 000000000..cb9c9d6b7 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/sensor/CO2SensorStateProto.java @@ -0,0 +1,1008 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/bas/sensor/CO2SensorState.proto + +package club.joylink.rtss.iscs.proto.model.status.bas.sensor; + +public final class CO2SensorStateProto { + private CO2SensorStateProto() {} + 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 CO2SensorStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.bas.sensor.CO2SensorState) + com.google.protobuf.MessageOrBuilder { + + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State getState(); + + /** + *
+     * co2 浓度
+     * 
+ * + * float ppm = 3; + * @return The ppm. + */ + float getPpm(); + } + /** + *
+   *二氧化碳传感器
+   * 
+ * + * Protobuf type {@code status.bas.sensor.CO2SensorState} + */ + public static final class CO2SensorState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.bas.sensor.CO2SensorState) + CO2SensorStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use CO2SensorState.newBuilder() to construct. + private CO2SensorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CO2SensorState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CO2SensorState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CO2SensorState( + 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; + } + case 29: { + + ppm_ = input.readFloat(); + 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.sensor.CO2SensorStateProto.internal_static_status_bas_sensor_CO2SensorState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.internal_static_status_bas_sensor_CO2SensorState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.class, club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.Builder.class); + } + + /** + * Protobuf enum {@code status.bas.sensor.CO2SensorState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *工作中
+       * 
+ * + * WORKED = 0; + */ + WORKED(0), + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 1; + */ + OFFLINE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       *工作中
+       * 
+ * + * WORKED = 0; + */ + public static final int WORKED_VALUE = 0; + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 1; + */ + public static final int OFFLINE_VALUE = 1; + + + 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 WORKED; + case 1: return OFFLINE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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.sensor.CO2SensorStateProto.CO2SensorState.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.sensor.CO2SensorState.State) + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + * .model.ModelRef modelRef = 1; + * @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_; + } + /** + * .model.ModelRef modelRef = 1; + */ + @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_; + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State result = club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State.UNRECOGNIZED : result; + } + + public static final int PPM_FIELD_NUMBER = 3; + private float ppm_; + /** + *
+     * co2 浓度
+     * 
+ * + * float ppm = 3; + * @return The ppm. + */ + @java.lang.Override + public float getPpm() { + return ppm_; + } + + 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.sensor.CO2SensorStateProto.CO2SensorState.State.WORKED.getNumber()) { + output.writeEnum(2, state_); + } + if (java.lang.Float.floatToRawIntBits(ppm_) != 0) { + output.writeFloat(3, ppm_); + } + 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.sensor.CO2SensorStateProto.CO2SensorState.State.WORKED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + if (java.lang.Float.floatToRawIntBits(ppm_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, ppm_); + } + 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.sensor.CO2SensorStateProto.CO2SensorState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState other = (club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState) obj; + + if (hasModelRef() != other.hasModelRef()) return false; + if (hasModelRef()) { + if (!getModelRef() + .equals(other.getModelRef())) return false; + } + if (state_ != other.state_) return false; + if (java.lang.Float.floatToIntBits(getPpm()) + != java.lang.Float.floatToIntBits( + other.getPpm())) 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 = (37 * hash) + PPM_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPpm()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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.sensor.CO2SensorStateProto.CO2SensorState 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; + } + /** + *
+     *二氧化碳传感器
+     * 
+ * + * Protobuf type {@code status.bas.sensor.CO2SensorState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.bas.sensor.CO2SensorState) + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.internal_static_status_bas_sensor_CO2SensorState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.internal_static_status_bas_sensor_CO2SensorState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.class, club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.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; + + ppm_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.internal_static_status_bas_sensor_CO2SensorState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState build() { + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState result = new club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState(this); + if (modelRefBuilder_ == null) { + result.modelRef_ = modelRef_; + } else { + result.modelRef_ = modelRefBuilder_.build(); + } + result.state_ = state_; + result.ppm_ = ppm_; + 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.sensor.CO2SensorStateProto.CO2SensorState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.getDefaultInstance()) return this; + if (other.hasModelRef()) { + mergeModelRef(other.getModelRef()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPpm() != 0F) { + setPpm(other.getPpm()); + } + 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.sensor.CO2SensorStateProto.CO2SensorState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState) 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_; + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + * .model.ModelRef modelRef = 1; + * @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(); + } + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + * .model.ModelRef modelRef = 1; + */ + 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_; + } + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @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; + } + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State result = club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State.UNRECOGNIZED : result; + } + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .status.bas.sensor.CO2SensorState.State state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private float ppm_ ; + /** + *
+       * co2 浓度
+       * 
+ * + * float ppm = 3; + * @return The ppm. + */ + @java.lang.Override + public float getPpm() { + return ppm_; + } + /** + *
+       * co2 浓度
+       * 
+ * + * float ppm = 3; + * @param value The ppm to set. + * @return This builder for chaining. + */ + public Builder setPpm(float value) { + + ppm_ = value; + onChanged(); + return this; + } + /** + *
+       * co2 浓度
+       * 
+ * + * float ppm = 3; + * @return This builder for chaining. + */ + public Builder clearPpm() { + + ppm_ = 0F; + 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.sensor.CO2SensorState) + } + + // @@protoc_insertion_point(class_scope:status.bas.sensor.CO2SensorState) + private static final club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CO2SensorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CO2SensorState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.sensor.CO2SensorStateProto.CO2SensorState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_bas_sensor_CO2SensorState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_bas_sensor_CO2SensorState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&status/bas/sensor/CO2SensorState.proto" + + "\022\021status.bas.sensor\032\025model/DataModel.pro" + + "to\"\232\001\n\016CO2SensorState\022!\n\010modelRef\030\001 \001(\0132" + + "\017.model.ModelRef\0226\n\005state\030\002 \001(\0162\'.status" + + ".bas.sensor.CO2SensorState.State\022\013\n\003ppm\030" + + "\003 \001(\002\" \n\005State\022\n\n\006WORKED\020\000\022\013\n\007OFFLINE\020\001B" + + "K\n4club.joylink.rtss.iscs.proto.model.st" + + "atus.bas.sensorB\023CO2SensorStateProtob\006pr" + + "oto3" + }; + 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_sensor_CO2SensorState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_bas_sensor_CO2SensorState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_bas_sensor_CO2SensorState_descriptor, + new java.lang.String[] { "ModelRef", "State", "Ppm", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/valve/CombinedAirValveStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/valve/CombinedAirValveStateProto.java new file mode 100644 index 000000000..09f1c1d95 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/valve/CombinedAirValveStateProto.java @@ -0,0 +1,968 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/bas/valve/CombinedAirValveState.proto + +package club.joylink.rtss.iscs.proto.model.status.bas.valve; + +public final class CombinedAirValveStateProto { + private CombinedAirValveStateProto() {} + 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 CombinedAirValveStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.bas.valve.CombinedAirValveState) + com.google.protobuf.MessageOrBuilder { + + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State getState(); + } + /** + *
+   *组合式风阀
+   * 
+ * + * Protobuf type {@code status.bas.valve.CombinedAirValveState} + */ + public static final class CombinedAirValveState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.bas.valve.CombinedAirValveState) + CombinedAirValveStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use CombinedAirValveState.newBuilder() to construct. + private CombinedAirValveState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CombinedAirValveState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CombinedAirValveState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CombinedAirValveState( + 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.valve.CombinedAirValveStateProto.internal_static_status_bas_valve_CombinedAirValveState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.internal_static_status_bas_valve_CombinedAirValveState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.class, club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.Builder.class); + } + + /** + * Protobuf enum {@code status.bas.valve.CombinedAirValveState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *关到位
+       * 
+ * + * CLOSE_OVER = 0; + */ + CLOSE_OVER(0), + /** + *
+       *开到位
+       * 
+ * + * OPENED_OVER = 1; + */ + OPENED_OVER(1), + /** + *
+       *动作
+       * 
+ * + * CLOSE_OR_OPENING = 2; + */ + CLOSE_OR_OPENING(2), + /** + *
+       *故障
+       * 
+ * + * FAULT = 3; + */ + FAULT(3), + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 4; + */ + OFFLINE(4), + UNRECOGNIZED(-1), + ; + + /** + *
+       *关到位
+       * 
+ * + * CLOSE_OVER = 0; + */ + public static final int CLOSE_OVER_VALUE = 0; + /** + *
+       *开到位
+       * 
+ * + * OPENED_OVER = 1; + */ + public static final int OPENED_OVER_VALUE = 1; + /** + *
+       *动作
+       * 
+ * + * CLOSE_OR_OPENING = 2; + */ + public static final int CLOSE_OR_OPENING_VALUE = 2; + /** + *
+       *故障
+       * 
+ * + * FAULT = 3; + */ + public static final int FAULT_VALUE = 3; + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 4; + */ + public static final int OFFLINE_VALUE = 4; + + + 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 CLOSE_OVER; + case 1: return OPENED_OVER; + case 2: return CLOSE_OR_OPENING; + case 3: return FAULT; + case 4: return OFFLINE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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.valve.CombinedAirValveStateProto.CombinedAirValveState.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.valve.CombinedAirValveState.State) + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + * .model.ModelRef modelRef = 1; + * @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_; + } + /** + * .model.ModelRef modelRef = 1; + */ + @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_; + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State result = club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.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.valve.CombinedAirValveStateProto.CombinedAirValveState.State.CLOSE_OVER.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.valve.CombinedAirValveStateProto.CombinedAirValveState.State.CLOSE_OVER.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.valve.CombinedAirValveStateProto.CombinedAirValveState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState other = (club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState) 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.valve.CombinedAirValveStateProto.CombinedAirValveState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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.valve.CombinedAirValveStateProto.CombinedAirValveState 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; + } + /** + *
+     *组合式风阀
+     * 
+ * + * Protobuf type {@code status.bas.valve.CombinedAirValveState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.bas.valve.CombinedAirValveState) + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.internal_static_status_bas_valve_CombinedAirValveState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.internal_static_status_bas_valve_CombinedAirValveState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.class, club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.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.valve.CombinedAirValveStateProto.internal_static_status_bas_valve_CombinedAirValveState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState build() { + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState result = new club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState(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.valve.CombinedAirValveStateProto.CombinedAirValveState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.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.valve.CombinedAirValveStateProto.CombinedAirValveState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState) 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_; + /** + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + * .model.ModelRef modelRef = 1; + * @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(); + } + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + } + /** + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + * .model.ModelRef modelRef = 1; + */ + 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_; + } + } + /** + * .model.ModelRef modelRef = 1; + */ + 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; + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @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; + } + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State result = club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State.UNRECOGNIZED : result; + } + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .status.bas.valve.CombinedAirValveState.State state = 2; + * @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.valve.CombinedAirValveState) + } + + // @@protoc_insertion_point(class_scope:status.bas.valve.CombinedAirValveState) + private static final club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CombinedAirValveState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CombinedAirValveState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.CombinedAirValveStateProto.CombinedAirValveState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_bas_valve_CombinedAirValveState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_bas_valve_CombinedAirValveState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,status/bas/valve/CombinedAirValveState" + + ".proto\022\020status.bas.valve\032\025model/DataMode" + + "l.proto\"\320\001\n\025CombinedAirValveState\022!\n\010mod" + + "elRef\030\001 \001(\0132\017.model.ModelRef\022<\n\005state\030\002 " + + "\001(\0162-.status.bas.valve.CombinedAirValveS" + + "tate.State\"V\n\005State\022\016\n\nCLOSE_OVER\020\000\022\017\n\013O" + + "PENED_OVER\020\001\022\024\n\020CLOSE_OR_OPENING\020\002\022\t\n\005FA" + + "ULT\020\003\022\013\n\007OFFLINE\020\004BQ\n3club.joylink.rtss." + + "iscs.proto.model.status.bas.valveB\032Combi" + + "nedAirValveStateProtob\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_valve_CombinedAirValveState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_bas_valve_CombinedAirValveState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_bas_valve_CombinedAirValveState_descriptor, + new java.lang.String[] { "ModelRef", "State", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}