diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/BasLocalProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/BasLocalProto.java new file mode 100644 index 000000000..dcf78fd7b --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/BasLocalProto.java @@ -0,0 +1,1300 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/BasLocal.proto + +package club.joylink.rtss.iscs.proto.model.data.bas; + +public final class BasLocalProto { + private BasLocalProto() {} + 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 BasLocalOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.BasLocal) + 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(); + + /** + *
+     *对应车站
+     * 
+ * + * string station = 2; + * @return The station. + */ + java.lang.String getStation(); + /** + *
+     *对应车站
+     * 
+ * + * string station = 2; + * @return The bytes for station. + */ + com.google.protobuf.ByteString + getStationBytes(); + + /** + *
+     *端点 A,B端,或是 站厅
+     * 
+ * + * string endPoint = 3; + * @return The endPoint. + */ + java.lang.String getEndPoint(); + /** + *
+     *端点 A,B端,或是 站厅
+     * 
+ * + * string endPoint = 3; + * @return The bytes for endPoint. + */ + com.google.protobuf.ByteString + getEndPointBytes(); + + /** + *
+     * 房间
+     * 
+ * + * string room = 4; + * @return The room. + */ + java.lang.String getRoom(); + /** + *
+     * 房间
+     * 
+ * + * string room = 4; + * @return The bytes for room. + */ + com.google.protobuf.ByteString + getRoomBytes(); + } + /** + *
+   *bas 基本信息(房间,端点,车站)
+   * 
+ * + * Protobuf type {@code model.bas.BasLocal} + */ + public static final class BasLocal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.BasLocal) + BasLocalOrBuilder { + private static final long serialVersionUID = 0L; + // Use BasLocal.newBuilder() to construct. + private BasLocal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BasLocal() { + station_ = ""; + endPoint_ = ""; + room_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BasLocal(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BasLocal( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + station_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + endPoint_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + room_ = s; + 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.BasLocalProto.internal_static_model_bas_BasLocal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.internal_static_model_bas_BasLocal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.class, club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.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 STATION_FIELD_NUMBER = 2; + private volatile java.lang.Object station_; + /** + *
+     *对应车站
+     * 
+ * + * string station = 2; + * @return The station. + */ + @java.lang.Override + public java.lang.String getStation() { + java.lang.Object ref = station_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + station_ = s; + return s; + } + } + /** + *
+     *对应车站
+     * 
+ * + * string station = 2; + * @return The bytes for station. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStationBytes() { + java.lang.Object ref = station_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + station_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 3; + private volatile java.lang.Object endPoint_; + /** + *
+     *端点 A,B端,或是 站厅
+     * 
+ * + * string endPoint = 3; + * @return The endPoint. + */ + @java.lang.Override + public java.lang.String getEndPoint() { + java.lang.Object ref = endPoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endPoint_ = s; + return s; + } + } + /** + *
+     *端点 A,B端,或是 站厅
+     * 
+ * + * string endPoint = 3; + * @return The bytes for endPoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEndPointBytes() { + java.lang.Object ref = endPoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOM_FIELD_NUMBER = 4; + private volatile java.lang.Object room_; + /** + *
+     * 房间
+     * 
+ * + * string room = 4; + * @return The room. + */ + @java.lang.Override + public java.lang.String getRoom() { + java.lang.Object ref = room_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + room_ = s; + return s; + } + } + /** + *
+     * 房间
+     * 
+ * + * string room = 4; + * @return The bytes for room. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRoomBytes() { + java.lang.Object ref = room_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + room_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(station_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, station_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endPoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endPoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(room_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, room_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(station_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, station_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endPoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endPoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(room_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, room_); + } + 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.BasLocalProto.BasLocal)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal other = (club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (!getStation() + .equals(other.getStation())) return false; + if (!getEndPoint() + .equals(other.getEndPoint())) return false; + if (!getRoom() + .equals(other.getRoom())) 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(); + } + hash = (37 * hash) + STATION_FIELD_NUMBER; + hash = (53 * hash) + getStation().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndPoint().hashCode(); + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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.BasLocalProto.BasLocal 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; + } + /** + *
+     *bas 基本信息(房间,端点,车站)
+     * 
+ * + * Protobuf type {@code model.bas.BasLocal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.BasLocal) + club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.internal_static_model_bas_BasLocal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.internal_static_model_bas_BasLocal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.class, club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.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; + } + station_ = ""; + + endPoint_ = ""; + + room_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.internal_static_model_bas_BasLocal_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal build() { + club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal result = new club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + result.station_ = station_; + result.endPoint_ = endPoint_; + result.room_ = room_; + 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.BasLocalProto.BasLocal) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (!other.getStation().isEmpty()) { + station_ = other.station_; + onChanged(); + } + if (!other.getEndPoint().isEmpty()) { + endPoint_ = other.endPoint_; + onChanged(); + } + if (!other.getRoom().isEmpty()) { + room_ = other.room_; + onChanged(); + } + 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.BasLocalProto.BasLocal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal) 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 java.lang.Object station_ = ""; + /** + *
+       *对应车站
+       * 
+ * + * string station = 2; + * @return The station. + */ + public java.lang.String getStation() { + java.lang.Object ref = station_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + station_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *对应车站
+       * 
+ * + * string station = 2; + * @return The bytes for station. + */ + public com.google.protobuf.ByteString + getStationBytes() { + java.lang.Object ref = station_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + station_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *对应车站
+       * 
+ * + * string station = 2; + * @param value The station to set. + * @return This builder for chaining. + */ + public Builder setStation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + station_ = value; + onChanged(); + return this; + } + /** + *
+       *对应车站
+       * 
+ * + * string station = 2; + * @return This builder for chaining. + */ + public Builder clearStation() { + + station_ = getDefaultInstance().getStation(); + onChanged(); + return this; + } + /** + *
+       *对应车站
+       * 
+ * + * string station = 2; + * @param value The bytes for station to set. + * @return This builder for chaining. + */ + public Builder setStationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + station_ = value; + onChanged(); + return this; + } + + private java.lang.Object endPoint_ = ""; + /** + *
+       *端点 A,B端,或是 站厅
+       * 
+ * + * string endPoint = 3; + * @return The endPoint. + */ + public java.lang.String getEndPoint() { + java.lang.Object ref = endPoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endPoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *端点 A,B端,或是 站厅
+       * 
+ * + * string endPoint = 3; + * @return The bytes for endPoint. + */ + public com.google.protobuf.ByteString + getEndPointBytes() { + java.lang.Object ref = endPoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *端点 A,B端,或是 站厅
+       * 
+ * + * string endPoint = 3; + * @param value The endPoint to set. + * @return This builder for chaining. + */ + public Builder setEndPoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endPoint_ = value; + onChanged(); + return this; + } + /** + *
+       *端点 A,B端,或是 站厅
+       * 
+ * + * string endPoint = 3; + * @return This builder for chaining. + */ + public Builder clearEndPoint() { + + endPoint_ = getDefaultInstance().getEndPoint(); + onChanged(); + return this; + } + /** + *
+       *端点 A,B端,或是 站厅
+       * 
+ * + * string endPoint = 3; + * @param value The bytes for endPoint to set. + * @return This builder for chaining. + */ + public Builder setEndPointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endPoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object room_ = ""; + /** + *
+       * 房间
+       * 
+ * + * string room = 4; + * @return The room. + */ + public java.lang.String getRoom() { + java.lang.Object ref = room_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + room_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 房间
+       * 
+ * + * string room = 4; + * @return The bytes for room. + */ + public com.google.protobuf.ByteString + getRoomBytes() { + java.lang.Object ref = room_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + room_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 房间
+       * 
+ * + * string room = 4; + * @param value The room to set. + * @return This builder for chaining. + */ + public Builder setRoom( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + room_ = value; + onChanged(); + return this; + } + /** + *
+       * 房间
+       * 
+ * + * string room = 4; + * @return This builder for chaining. + */ + public Builder clearRoom() { + + room_ = getDefaultInstance().getRoom(); + onChanged(); + return this; + } + /** + *
+       * 房间
+       * 
+ * + * string room = 4; + * @param value The bytes for room to set. + * @return This builder for chaining. + */ + public Builder setRoomBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + room_ = value; + 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:model.bas.BasLocal) + } + + // @@protoc_insertion_point(class_scope:model.bas.BasLocal) + private static final club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.BasLocalProto.BasLocal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasLocal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BasLocal(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.BasLocalProto.BasLocal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_BasLocal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_BasLocal_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\030model/bas/BasLocal.proto\022\tmodel.bas\032\025m" + + "odel/DataModel.proto\"_\n\010BasLocal\022\"\n\010iden" + + "tity\030\001 \001(\0132\020.model.DataModel\022\017\n\007station\030" + + "\002 \001(\t\022\020\n\010endPoint\030\003 \001(\t\022\014\n\004room\030\004 \001(\tB<\n" + + "+club.joylink.rtss.iscs.proto.model.data" + + ".basB\rBasLocalProtob\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_BasLocal_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_BasLocal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_BasLocal_descriptor, + new java.lang.String[] { "Identity", "Station", "EndPoint", "Room", }); + 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/BasServerProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/BasServerProto.java new file mode 100644 index 000000000..c8eeabfba --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/BasServerProto.java @@ -0,0 +1,1775 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/BasServer.proto + +package club.joylink.rtss.iscs.proto.model.data.bas; + +public final class BasServerProto { + private BasServerProto() {} + 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 BasServerOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.BasServer) + 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(); + + /** + *
+     *网卡
+     * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + * @return Whether the netcard field is set. + */ + boolean hasNetcard(); + /** + *
+     *网卡
+     * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + * @return The netcard. + */ + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork getNetcard(); + /** + *
+     *网卡
+     * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder getNetcardOrBuilder(); + + /** + *
+     *所在位置
+     *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(); + + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + java.util.List + getFasDevicesList(); + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getFasDevices(int index); + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + int getFasDevicesCount(); + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + java.util.List + getFasDevicesOrBuilderList(); + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getFasDevicesOrBuilder( + int index); + } + /** + *
+   *旁通阀开关
+   * 
+ * + * Protobuf type {@code model.bas.BasServer} + */ + public static final class BasServer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.BasServer) + BasServerOrBuilder { + private static final long serialVersionUID = 0L; + // Use BasServer.newBuilder() to construct. + private BasServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BasServer() { + fasDevices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BasServer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BasServer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + 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.nms.NetworkTerminalProto.DoubleNetwork.Builder subBuilder = null; + if (netcard_ != null) { + subBuilder = netcard_.toBuilder(); + } + netcard_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(netcard_); + netcard_ = 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; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fasDevices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fasDevices_.add( + input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fasDevices_ = java.util.Collections.unmodifiableList(fasDevices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.internal_static_model_bas_BasServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.internal_static_model_bas_BasServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.class, club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.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 NETCARD_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork netcard_; + /** + *
+     *网卡
+     * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + * @return Whether the netcard field is set. + */ + @java.lang.Override + public boolean hasNetcard() { + return netcard_ != null; + } + /** + *
+     *网卡
+     * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + * @return The netcard. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork getNetcard() { + return netcard_ == null ? club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.getDefaultInstance() : netcard_; + } + /** + *
+     *网卡
+     * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder getNetcardOrBuilder() { + return getNetcard(); + } + + 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(); + } + + public static final int FASDEVICES_FIELD_NUMBER = 4; + private java.util.List fasDevices_; + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + @java.lang.Override + public java.util.List getFasDevicesList() { + return fasDevices_; + } + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + @java.lang.Override + public java.util.List + getFasDevicesOrBuilderList() { + return fasDevices_; + } + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + @java.lang.Override + public int getFasDevicesCount() { + return fasDevices_.size(); + } + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getFasDevices(int index) { + return fasDevices_.get(index); + } + /** + *
+     *所管辖的bas相关设备
+     * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getFasDevicesOrBuilder( + int index) { + return fasDevices_.get(index); + } + + 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 (netcard_ != null) { + output.writeMessage(2, getNetcard()); + } + if (local_ != null) { + output.writeMessage(3, getLocal()); + } + for (int i = 0; i < fasDevices_.size(); i++) { + output.writeMessage(4, fasDevices_.get(i)); + } + 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 (netcard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNetcard()); + } + if (local_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLocal()); + } + for (int i = 0; i < fasDevices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fasDevices_.get(i)); + } + 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.BasServerProto.BasServer)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer other = (club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasNetcard() != other.hasNetcard()) return false; + if (hasNetcard()) { + if (!getNetcard() + .equals(other.getNetcard())) return false; + } + if (hasLocal() != other.hasLocal()) return false; + if (hasLocal()) { + if (!getLocal() + .equals(other.getLocal())) return false; + } + if (!getFasDevicesList() + .equals(other.getFasDevicesList())) 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 (hasNetcard()) { + hash = (37 * hash) + NETCARD_FIELD_NUMBER; + hash = (53 * hash) + getNetcard().hashCode(); + } + if (hasLocal()) { + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + getLocal().hashCode(); + } + if (getFasDevicesCount() > 0) { + hash = (37 * hash) + FASDEVICES_FIELD_NUMBER; + hash = (53 * hash) + getFasDevicesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServerProto.BasServer 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.BasServer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.BasServer) + club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.internal_static_model_bas_BasServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.internal_static_model_bas_BasServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.class, club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFasDevicesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (identityBuilder_ == null) { + identity_ = null; + } else { + identity_ = null; + identityBuilder_ = null; + } + if (netcardBuilder_ == null) { + netcard_ = null; + } else { + netcard_ = null; + netcardBuilder_ = null; + } + if (localBuilder_ == null) { + local_ = null; + } else { + local_ = null; + localBuilder_ = null; + } + if (fasDevicesBuilder_ == null) { + fasDevices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fasDevicesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.internal_static_model_bas_BasServer_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer build() { + club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer result = new club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer(this); + int from_bitField0_ = bitField0_; + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (netcardBuilder_ == null) { + result.netcard_ = netcard_; + } else { + result.netcard_ = netcardBuilder_.build(); + } + if (localBuilder_ == null) { + result.local_ = local_; + } else { + result.local_ = localBuilder_.build(); + } + if (fasDevicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fasDevices_ = java.util.Collections.unmodifiableList(fasDevices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fasDevices_ = fasDevices_; + } else { + result.fasDevices_ = fasDevicesBuilder_.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.BasServerProto.BasServer) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasNetcard()) { + mergeNetcard(other.getNetcard()); + } + if (other.hasLocal()) { + mergeLocal(other.getLocal()); + } + if (fasDevicesBuilder_ == null) { + if (!other.fasDevices_.isEmpty()) { + if (fasDevices_.isEmpty()) { + fasDevices_ = other.fasDevices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFasDevicesIsMutable(); + fasDevices_.addAll(other.fasDevices_); + } + onChanged(); + } + } else { + if (!other.fasDevices_.isEmpty()) { + if (fasDevicesBuilder_.isEmpty()) { + fasDevicesBuilder_.dispose(); + fasDevicesBuilder_ = null; + fasDevices_ = other.fasDevices_; + bitField0_ = (bitField0_ & ~0x00000001); + fasDevicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFasDevicesFieldBuilder() : null; + } else { + fasDevicesBuilder_.addAllMessages(other.fasDevices_); + } + } + } + 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.BasServerProto.BasServer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + 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.nms.NetworkTerminalProto.DoubleNetwork netcard_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder> netcardBuilder_; + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + * @return Whether the netcard field is set. + */ + public boolean hasNetcard() { + return netcardBuilder_ != null || netcard_ != null; + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + * @return The netcard. + */ + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork getNetcard() { + if (netcardBuilder_ == null) { + return netcard_ == null ? club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.getDefaultInstance() : netcard_; + } else { + return netcardBuilder_.getMessage(); + } + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + public Builder setNetcard(club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork value) { + if (netcardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + netcard_ = value; + onChanged(); + } else { + netcardBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + public Builder setNetcard( + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder builderForValue) { + if (netcardBuilder_ == null) { + netcard_ = builderForValue.build(); + onChanged(); + } else { + netcardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + public Builder mergeNetcard(club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork value) { + if (netcardBuilder_ == null) { + if (netcard_ != null) { + netcard_ = + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.newBuilder(netcard_).mergeFrom(value).buildPartial(); + } else { + netcard_ = value; + } + onChanged(); + } else { + netcardBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + public Builder clearNetcard() { + if (netcardBuilder_ == null) { + netcard_ = null; + onChanged(); + } else { + netcard_ = null; + netcardBuilder_ = null; + } + + return this; + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder getNetcardBuilder() { + + onChanged(); + return getNetcardFieldBuilder().getBuilder(); + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder getNetcardOrBuilder() { + if (netcardBuilder_ != null) { + return netcardBuilder_.getMessageOrBuilder(); + } else { + return netcard_ == null ? + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.getDefaultInstance() : netcard_; + } + } + /** + *
+       *网卡
+       * 
+ * + * .model.nms.DoubleNetwork netcard = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder> + getNetcardFieldBuilder() { + if (netcardBuilder_ == null) { + netcardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder>( + getNetcard(), + getParentForChildren(), + isClean()); + netcard_ = null; + } + return netcardBuilder_; + } + + 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_; + } + + private java.util.List fasDevices_ = + java.util.Collections.emptyList(); + private void ensureFasDevicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fasDevices_ = new java.util.ArrayList(fasDevices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + 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> fasDevicesBuilder_; + + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public java.util.List getFasDevicesList() { + if (fasDevicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(fasDevices_); + } else { + return fasDevicesBuilder_.getMessageList(); + } + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public int getFasDevicesCount() { + if (fasDevicesBuilder_ == null) { + return fasDevices_.size(); + } else { + return fasDevicesBuilder_.getCount(); + } + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getFasDevices(int index) { + if (fasDevicesBuilder_ == null) { + return fasDevices_.get(index); + } else { + return fasDevicesBuilder_.getMessage(index); + } + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder setFasDevices( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (fasDevicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFasDevicesIsMutable(); + fasDevices_.set(index, value); + onChanged(); + } else { + fasDevicesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder setFasDevices( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (fasDevicesBuilder_ == null) { + ensureFasDevicesIsMutable(); + fasDevices_.set(index, builderForValue.build()); + onChanged(); + } else { + fasDevicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder addFasDevices(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (fasDevicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFasDevicesIsMutable(); + fasDevices_.add(value); + onChanged(); + } else { + fasDevicesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder addFasDevices( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (fasDevicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFasDevicesIsMutable(); + fasDevices_.add(index, value); + onChanged(); + } else { + fasDevicesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder addFasDevices( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (fasDevicesBuilder_ == null) { + ensureFasDevicesIsMutable(); + fasDevices_.add(builderForValue.build()); + onChanged(); + } else { + fasDevicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder addFasDevices( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (fasDevicesBuilder_ == null) { + ensureFasDevicesIsMutable(); + fasDevices_.add(index, builderForValue.build()); + onChanged(); + } else { + fasDevicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder addAllFasDevices( + java.lang.Iterable values) { + if (fasDevicesBuilder_ == null) { + ensureFasDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fasDevices_); + onChanged(); + } else { + fasDevicesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder clearFasDevices() { + if (fasDevicesBuilder_ == null) { + fasDevices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fasDevicesBuilder_.clear(); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public Builder removeFasDevices(int index) { + if (fasDevicesBuilder_ == null) { + ensureFasDevicesIsMutable(); + fasDevices_.remove(index); + onChanged(); + } else { + fasDevicesBuilder_.remove(index); + } + return this; + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getFasDevicesBuilder( + int index) { + return getFasDevicesFieldBuilder().getBuilder(index); + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getFasDevicesOrBuilder( + int index) { + if (fasDevicesBuilder_ == null) { + return fasDevices_.get(index); } else { + return fasDevicesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public java.util.List + getFasDevicesOrBuilderList() { + if (fasDevicesBuilder_ != null) { + return fasDevicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fasDevices_); + } + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder addFasDevicesBuilder() { + return getFasDevicesFieldBuilder().addBuilder( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance()); + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder addFasDevicesBuilder( + int index) { + return getFasDevicesFieldBuilder().addBuilder( + index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance()); + } + /** + *
+       *所管辖的bas相关设备
+       * 
+ * + * repeated .model.ModelRef fasDevices = 4; + */ + public java.util.List + getFasDevicesBuilderList() { + return getFasDevicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + 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> + getFasDevicesFieldBuilder() { + if (fasDevicesBuilder_ == null) { + fasDevicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + 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>( + fasDevices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fasDevices_ = null; + } + return fasDevicesBuilder_; + } + @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.BasServer) + } + + // @@protoc_insertion_point(class_scope:model.bas.BasServer) + private static final club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.BasServerProto.BasServer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasServer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BasServer(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.BasServerProto.BasServer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_BasServer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_BasServer_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\031model/bas/BasServer.proto\022\tmodel.bas\032\025" + + "model/DataModel.proto\032\037model/nms/Network" + + "Terminal.proto\"\237\001\n\tBasServer\022\"\n\010identity" + + "\030\001 \001(\0132\020.model.DataModel\022)\n\007netcard\030\002 \001(" + + "\0132\030.model.nms.DoubleNetwork\022\036\n\005local\030\003 \001" + + "(\0132\017.model.ModelRef\022#\n\nfasDevices\030\004 \003(\0132" + + "\017.model.ModelRefB=\n+club.joylink.rtss.is" + + "cs.proto.model.data.basB\016BasServerProtob" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(), + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.getDescriptor(), + }); + internal_static_model_bas_BasServer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_BasServer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_BasServer_descriptor, + new java.lang.String[] { "Identity", "Netcard", "Local", "FasDevices", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/pump/ChilledWaterPumpProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/pump/ChilledWaterPumpProto.java new file mode 100644 index 000000000..e0a9bb471 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/pump/ChilledWaterPumpProto.java @@ -0,0 +1,1300 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/pump/ChilledWaterPump.proto + +package club.joylink.rtss.iscs.proto.model.data.bas.pump; + +public final class ChilledWaterPumpProto { + private ChilledWaterPumpProto() {} + 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 ChilledWaterPumpOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.pump.ChilledWaterPump) + 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.ChilledWaterPump} + */ + public static final class ChilledWaterPump extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.pump.ChilledWaterPump) + ChilledWaterPumpOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChilledWaterPump.newBuilder() to construct. + private ChilledWaterPump(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ChilledWaterPump() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChilledWaterPump(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChilledWaterPump( + 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.ChilledWaterPumpProto.internal_static_model_bas_pump_ChilledWaterPump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.internal_static_model_bas_pump_ChilledWaterPump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.class, club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.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.ChilledWaterPumpProto.ChilledWaterPump)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump other = (club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump) 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPumpProto.ChilledWaterPump 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.ChilledWaterPump} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.pump.ChilledWaterPump) + club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPumpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.internal_static_model_bas_pump_ChilledWaterPump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.internal_static_model_bas_pump_ChilledWaterPump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.class, club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.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.ChilledWaterPumpProto.internal_static_model_bas_pump_ChilledWaterPump_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump build() { + club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump result = new club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump(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.ChilledWaterPumpProto.ChilledWaterPump) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump.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.ChilledWaterPumpProto.ChilledWaterPump parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump) 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.ChilledWaterPump) + } + + // @@protoc_insertion_point(class_scope:model.bas.pump.ChilledWaterPump) + private static final club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.pump.ChilledWaterPumpProto.ChilledWaterPump getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChilledWaterPump parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChilledWaterPump(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.ChilledWaterPumpProto.ChilledWaterPump getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_pump_ChilledWaterPump_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_pump_ChilledWaterPump_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/ChilledWaterPump.proto\022" + + "\016model.bas.pump\032\025model/DataModel.proto\"x" + + "\n\020ChilledWaterPump\022\"\n\010identity\030\001 \001(\0132\020.m" + + "odel.DataModel\022 \n\007hostRef\030\002 \001(\0132\017.model." + + "ModelRef\022\036\n\005local\030\003 \001(\0132\017.model.ModelRef" + + "BI\n0club.joylink.rtss.iscs.proto.model.d" + + "ata.bas.pumpB\025ChilledWaterPumpProtob\006pro" + + "to3" + }; + 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_ChilledWaterPump_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_pump_ChilledWaterPump_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_pump_ChilledWaterPump_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/sensor/CO2SensorProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/sensor/CO2SensorProto.java new file mode 100644 index 000000000..707d7eab5 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/sensor/CO2SensorProto.java @@ -0,0 +1,1299 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/sensor/CO2Sensor.proto + +package club.joylink.rtss.iscs.proto.model.data.bas.sensor; + +public final class CO2SensorProto { + private CO2SensorProto() {} + 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 CO2SensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.sensor.CO2Sensor) + 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.sensor.CO2Sensor} + */ + public static final class CO2Sensor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.sensor.CO2Sensor) + CO2SensorOrBuilder { + private static final long serialVersionUID = 0L; + // Use CO2Sensor.newBuilder() to construct. + private CO2Sensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CO2Sensor() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CO2Sensor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CO2Sensor( + 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.sensor.CO2SensorProto.internal_static_model_bas_sensor_CO2Sensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.internal_static_model_bas_sensor_CO2Sensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.class, club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.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.sensor.CO2SensorProto.CO2Sensor)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor other = (club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor) 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.sensor.CO2SensorProto.CO2Sensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2SensorProto.CO2Sensor 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.sensor.CO2Sensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.sensor.CO2Sensor) + club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2SensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.internal_static_model_bas_sensor_CO2Sensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.internal_static_model_bas_sensor_CO2Sensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.class, club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.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.sensor.CO2SensorProto.internal_static_model_bas_sensor_CO2Sensor_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor build() { + club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor result = new club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor(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.sensor.CO2SensorProto.CO2Sensor) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor.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.sensor.CO2SensorProto.CO2Sensor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor) 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.sensor.CO2Sensor) + } + + // @@protoc_insertion_point(class_scope:model.bas.sensor.CO2Sensor) + private static final club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.sensor.CO2SensorProto.CO2Sensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CO2Sensor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CO2Sensor(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.sensor.CO2SensorProto.CO2Sensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_sensor_CO2Sensor_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_sensor_CO2Sensor_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/sensor/CO2Sensor.proto\022\020mode" + + "l.bas.sensor\032\025model/DataModel.proto\"q\n\tC" + + "O2Sensor\022\"\n\010identity\030\001 \001(\0132\020.model.DataM" + + "odel\022 \n\007hostRef\030\002 \001(\0132\017.model.ModelRef\022\036" + + "\n\005local\030\003 \001(\0132\017.model.ModelRefBD\n2club.j" + + "oylink.rtss.iscs.proto.model.data.bas.se" + + "nsorB\016CO2SensorProtob\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_sensor_CO2Sensor_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_sensor_CO2Sensor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_sensor_CO2Sensor_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/BypassValveProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/valve/BypassValveProto.java new file mode 100644 index 000000000..584e908ca --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/bas/valve/BypassValveProto.java @@ -0,0 +1,1299 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/bas/valve/BypassValve.proto + +package club.joylink.rtss.iscs.proto.model.data.bas.valve; + +public final class BypassValveProto { + private BypassValveProto() {} + 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 BypassValveOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.bas.valve.BypassValve) + 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.BypassValve} + */ + public static final class BypassValve extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.bas.valve.BypassValve) + BypassValveOrBuilder { + private static final long serialVersionUID = 0L; + // Use BypassValve.newBuilder() to construct. + private BypassValve(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BypassValve() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BypassValve(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BypassValve( + 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.BypassValveProto.internal_static_model_bas_valve_BypassValve_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.internal_static_model_bas_valve_BypassValve_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.class, club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.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.BypassValveProto.BypassValve)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve other = (club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve) 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValveProto.BypassValve 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.BypassValve} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.bas.valve.BypassValve) + club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.internal_static_model_bas_valve_BypassValve_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.internal_static_model_bas_valve_BypassValve_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.class, club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.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.BypassValveProto.internal_static_model_bas_valve_BypassValve_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve build() { + club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve buildPartial() { + club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve result = new club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve(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.BypassValveProto.BypassValve) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve other) { + if (other == club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve.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.BypassValveProto.BypassValve parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve) 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.BypassValve) + } + + // @@protoc_insertion_point(class_scope:model.bas.valve.BypassValve) + private static final club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve(); + } + + public static club.joylink.rtss.iscs.proto.model.data.bas.valve.BypassValveProto.BypassValve getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BypassValve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BypassValve(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.BypassValveProto.BypassValve getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_bas_valve_BypassValve_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_bas_valve_BypassValve_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/BypassValve.proto\022\017mod" + + "el.bas.valve\032\025model/DataModel.proto\"s\n\013B" + + "ypassValve\022\"\n\010identity\030\001 \001(\0132\020.model.Dat" + + "aModel\022 \n\007hostRef\030\002 \001(\0132\017.model.ModelRef" + + "\022\036\n\005local\030\003 \001(\0132\017.model.ModelRefBE\n1club" + + ".joylink.rtss.iscs.proto.model.data.bas." + + "valveB\020BypassValveProtob\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_valve_BypassValve_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_bas_valve_BypassValve_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_bas_valve_BypassValve_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/cctv/CctvCameraModelProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/cctv/CctvCameraModelProto.java new file mode 100644 index 000000000..6ab064ada --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/cctv/CctvCameraModelProto.java @@ -0,0 +1,1295 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/cctv/CctvCameraModel.proto + +package club.joylink.rtss.iscs.proto.model.data.cctv; + +public final class CctvCameraModelProto { + private CctvCameraModelProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   *摄像头类型
+   * 
+ * + * Protobuf enum {@code model.cctv.CctvCameraType} + */ + public enum CctvCameraType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *球形
+     * 
+ * + * Ball = 0; + */ + Ball(0), + /** + *
+     *枪形
+     * 
+ * + * Gun = 1; + */ + Gun(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     *球形
+     * 
+ * + * Ball = 0; + */ + public static final int Ball_VALUE = 0; + /** + *
+     *枪形
+     * 
+ * + * Gun = 1; + */ + public static final int Gun_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 CctvCameraType 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 CctvCameraType forNumber(int value) { + switch (value) { + case 0: return Ball; + case 1: return Gun; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CctvCameraType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CctvCameraType findValueByNumber(int number) { + return CctvCameraType.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.data.cctv.CctvCameraModelProto.getDescriptor().getEnumTypes().get(0); + } + + private static final CctvCameraType[] VALUES = values(); + + public static CctvCameraType 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 CctvCameraType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:model.cctv.CctvCameraType) + } + + public interface CctvCameraModelOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.cctv.CctvCameraModel) + 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(); + + /** + *
+     *摄像头类型
+     * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     *摄像头类型
+     * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return The type. + */ + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType getType(); + + /** + *
+     *所属CCTV服务器
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef cctvServer = 3; + * @return Whether the cctvServer field is set. + */ + boolean hasCctvServer(); + /** + *
+     *所属CCTV服务器
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef cctvServer = 3; + * @return The cctvServer. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getCctvServer(); + /** + *
+     *所属CCTV服务器
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef cctvServer = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getCctvServerOrBuilder(); + } + /** + *
+   **
+   * CCTV 监控摄像头
+   * 
+ * + * Protobuf type {@code model.cctv.CctvCameraModel} + */ + public static final class CctvCameraModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.cctv.CctvCameraModel) + CctvCameraModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use CctvCameraModel.newBuilder() to construct. + private CctvCameraModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CctvCameraModel() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CctvCameraModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CctvCameraModel( + 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 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (cctvServer_ != null) { + subBuilder = cctvServer_.toBuilder(); + } + cctvServer_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cctvServer_); + cctvServer_ = 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.cctv.CctvCameraModelProto.internal_static_model_cctv_CctvCameraModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.internal_static_model_cctv_CctvCameraModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.class, club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.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 TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+     *摄像头类型
+     * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     *摄像头类型
+     * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return The type. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType getType() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType result = club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType.valueOf(type_); + return result == null ? club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType.UNRECOGNIZED : result; + } + + public static final int CCTVSERVER_FIELD_NUMBER = 3; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef cctvServer_; + /** + *
+     *所属CCTV服务器
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef cctvServer = 3; + * @return Whether the cctvServer field is set. + */ + @java.lang.Override + public boolean hasCctvServer() { + return cctvServer_ != null; + } + /** + *
+     *所属CCTV服务器
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef cctvServer = 3; + * @return The cctvServer. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getCctvServer() { + return cctvServer_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : cctvServer_; + } + /** + *
+     *所属CCTV服务器
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef cctvServer = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getCctvServerOrBuilder() { + return getCctvServer(); + } + + 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 (type_ != club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType.Ball.getNumber()) { + output.writeEnum(2, type_); + } + if (cctvServer_ != null) { + output.writeMessage(3, getCctvServer()); + } + 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 (type_ != club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType.Ball.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + if (cctvServer_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCctvServer()); + } + 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.cctv.CctvCameraModelProto.CctvCameraModel)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel other = (club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (type_ != other.type_) return false; + if (hasCctvServer() != other.hasCctvServer()) return false; + if (hasCctvServer()) { + if (!getCctvServer() + .equals(other.getCctvServer())) 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(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasCctvServer()) { + hash = (37 * hash) + CCTVSERVER_FIELD_NUMBER; + hash = (53 * hash) + getCctvServer().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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.cctv.CctvCameraModelProto.CctvCameraModel 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; + } + /** + *
+     **
+     * CCTV 监控摄像头
+     * 
+ * + * Protobuf type {@code model.cctv.CctvCameraModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.cctv.CctvCameraModel) + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.internal_static_model_cctv_CctvCameraModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.internal_static_model_cctv_CctvCameraModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.class, club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.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; + } + type_ = 0; + + if (cctvServerBuilder_ == null) { + cctvServer_ = null; + } else { + cctvServer_ = null; + cctvServerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.internal_static_model_cctv_CctvCameraModel_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel build() { + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel buildPartial() { + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel result = new club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + result.type_ = type_; + if (cctvServerBuilder_ == null) { + result.cctvServer_ = cctvServer_; + } else { + result.cctvServer_ = cctvServerBuilder_.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.cctv.CctvCameraModelProto.CctvCameraModel) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel other) { + if (other == club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasCctvServer()) { + mergeCctvServer(other.getCctvServer()); + } + 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.cctv.CctvCameraModelProto.CctvCameraModel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel) 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 int type_ = 0; + /** + *
+       *摄像头类型
+       * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       *摄像头类型
+       * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+       *摄像头类型
+       * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return The type. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType getType() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType result = club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType.valueOf(type_); + return result == null ? club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType.UNRECOGNIZED : result; + } + /** + *
+       *摄像头类型
+       * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       *摄像头类型
+       * 
+ * + * .model.cctv.CctvCameraType type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef cctvServer_; + 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> cctvServerBuilder_; + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + * @return Whether the cctvServer field is set. + */ + public boolean hasCctvServer() { + return cctvServerBuilder_ != null || cctvServer_ != null; + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + * @return The cctvServer. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getCctvServer() { + if (cctvServerBuilder_ == null) { + return cctvServer_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : cctvServer_; + } else { + return cctvServerBuilder_.getMessage(); + } + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + */ + public Builder setCctvServer(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (cctvServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cctvServer_ = value; + onChanged(); + } else { + cctvServerBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + */ + public Builder setCctvServer( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (cctvServerBuilder_ == null) { + cctvServer_ = builderForValue.build(); + onChanged(); + } else { + cctvServerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + */ + public Builder mergeCctvServer(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (cctvServerBuilder_ == null) { + if (cctvServer_ != null) { + cctvServer_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(cctvServer_).mergeFrom(value).buildPartial(); + } else { + cctvServer_ = value; + } + onChanged(); + } else { + cctvServerBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + */ + public Builder clearCctvServer() { + if (cctvServerBuilder_ == null) { + cctvServer_ = null; + onChanged(); + } else { + cctvServer_ = null; + cctvServerBuilder_ = null; + } + + return this; + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getCctvServerBuilder() { + + onChanged(); + return getCctvServerFieldBuilder().getBuilder(); + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getCctvServerOrBuilder() { + if (cctvServerBuilder_ != null) { + return cctvServerBuilder_.getMessageOrBuilder(); + } else { + return cctvServer_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : cctvServer_; + } + } + /** + *
+       *所属CCTV服务器
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef cctvServer = 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> + getCctvServerFieldBuilder() { + if (cctvServerBuilder_ == null) { + cctvServerBuilder_ = 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>( + getCctvServer(), + getParentForChildren(), + isClean()); + cctvServer_ = null; + } + return cctvServerBuilder_; + } + @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.cctv.CctvCameraModel) + } + + // @@protoc_insertion_point(class_scope:model.cctv.CctvCameraModel) + private static final club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel(); + } + + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvCameraModelProto.CctvCameraModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CctvCameraModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CctvCameraModel(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.cctv.CctvCameraModelProto.CctvCameraModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_cctv_CctvCameraModel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_cctv_CctvCameraModel_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/cctv/CctvCameraModel.proto\022\nmode" + + "l.cctv\032\025model/DataModel.proto\"\204\001\n\017CctvCa" + + "meraModel\022\"\n\010identity\030\001 \001(\0132\020.model.Data" + + "Model\022(\n\004type\030\002 \001(\0162\032.model.cctv.CctvCam" + + "eraType\022#\n\ncctvServer\030\003 \001(\0132\017.model.Mode" + + "lRef*#\n\016CctvCameraType\022\010\n\004Ball\020\000\022\007\n\003Gun\020" + + "\001BD\n,club.joylink.rtss.iscs.proto.model." + + "data.cctvB\024CctvCameraModelProtob\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_cctv_CctvCameraModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_cctv_CctvCameraModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_cctv_CctvCameraModel_descriptor, + new java.lang.String[] { "Identity", "Type", "CctvServer", }); + 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/cctv/CctvServerModelProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/cctv/CctvServerModelProto.java new file mode 100644 index 000000000..5fc27f740 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/cctv/CctvServerModelProto.java @@ -0,0 +1,1527 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/cctv/CctvServerModel.proto + +package club.joylink.rtss.iscs.proto.model.data.cctv; + +public final class CctvServerModelProto { + private CctvServerModelProto() {} + 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 CctvServerModelOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.cctv.CctvServerModel) + 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(); + + /** + *
+     *当前模型作为网络设备的网络信息
+     * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + * @return Whether the identityNetwork field is set. + */ + boolean hasIdentityNetwork(); + /** + *
+     *当前模型作为网络设备的网络信息
+     * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + * @return The identityNetwork. + */ + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork getIdentityNetwork(); + /** + *
+     *当前模型作为网络设备的网络信息
+     * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder getIdentityNetworkOrBuilder(); + + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + java.util.List + getCamerasList(); + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getCameras(int index); + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + int getCamerasCount(); + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + java.util.List + getCamerasOrBuilderList(); + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getCamerasOrBuilder( + int index); + } + /** + *
+   **
+   * CCTV监控系统控制器
+   * 
+ * + * Protobuf type {@code model.cctv.CctvServerModel} + */ + public static final class CctvServerModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.cctv.CctvServerModel) + CctvServerModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use CctvServerModel.newBuilder() to construct. + private CctvServerModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CctvServerModel() { + cameras_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CctvServerModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CctvServerModel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + 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.nms.NetworkTerminalProto.DoubleNetwork.Builder subBuilder = null; + if (identityNetwork_ != null) { + subBuilder = identityNetwork_.toBuilder(); + } + identityNetwork_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identityNetwork_); + identityNetwork_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cameras_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cameras_.add( + input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cameras_ = java.util.Collections.unmodifiableList(cameras_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.internal_static_model_cctv_CctvServerModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.internal_static_model_cctv_CctvServerModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.class, club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.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 IDENTITYNETWORK_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork identityNetwork_; + /** + *
+     *当前模型作为网络设备的网络信息
+     * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + * @return Whether the identityNetwork field is set. + */ + @java.lang.Override + public boolean hasIdentityNetwork() { + return identityNetwork_ != null; + } + /** + *
+     *当前模型作为网络设备的网络信息
+     * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + * @return The identityNetwork. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork getIdentityNetwork() { + return identityNetwork_ == null ? club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.getDefaultInstance() : identityNetwork_; + } + /** + *
+     *当前模型作为网络设备的网络信息
+     * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder getIdentityNetworkOrBuilder() { + return getIdentityNetwork(); + } + + public static final int CAMERAS_FIELD_NUMBER = 3; + private java.util.List cameras_; + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + @java.lang.Override + public java.util.List getCamerasList() { + return cameras_; + } + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + @java.lang.Override + public java.util.List + getCamerasOrBuilderList() { + return cameras_; + } + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + @java.lang.Override + public int getCamerasCount() { + return cameras_.size(); + } + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getCameras(int index) { + return cameras_.get(index); + } + /** + *
+     *该监控控制器管辖的所有摄像头
+     *CctvCameraModel
+     * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getCamerasOrBuilder( + int index) { + return cameras_.get(index); + } + + 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 (identityNetwork_ != null) { + output.writeMessage(2, getIdentityNetwork()); + } + for (int i = 0; i < cameras_.size(); i++) { + output.writeMessage(3, cameras_.get(i)); + } + 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 (identityNetwork_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIdentityNetwork()); + } + for (int i = 0; i < cameras_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, cameras_.get(i)); + } + 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.cctv.CctvServerModelProto.CctvServerModel)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel other = (club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasIdentityNetwork() != other.hasIdentityNetwork()) return false; + if (hasIdentityNetwork()) { + if (!getIdentityNetwork() + .equals(other.getIdentityNetwork())) return false; + } + if (!getCamerasList() + .equals(other.getCamerasList())) 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 (hasIdentityNetwork()) { + hash = (37 * hash) + IDENTITYNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getIdentityNetwork().hashCode(); + } + if (getCamerasCount() > 0) { + hash = (37 * hash) + CAMERAS_FIELD_NUMBER; + hash = (53 * hash) + getCamerasList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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.cctv.CctvServerModelProto.CctvServerModel 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; + } + /** + *
+     **
+     * CCTV监控系统控制器
+     * 
+ * + * Protobuf type {@code model.cctv.CctvServerModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.cctv.CctvServerModel) + club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.internal_static_model_cctv_CctvServerModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.internal_static_model_cctv_CctvServerModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.class, club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCamerasFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (identityBuilder_ == null) { + identity_ = null; + } else { + identity_ = null; + identityBuilder_ = null; + } + if (identityNetworkBuilder_ == null) { + identityNetwork_ = null; + } else { + identityNetwork_ = null; + identityNetworkBuilder_ = null; + } + if (camerasBuilder_ == null) { + cameras_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + camerasBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.internal_static_model_cctv_CctvServerModel_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel build() { + club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel buildPartial() { + club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel result = new club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel(this); + int from_bitField0_ = bitField0_; + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (identityNetworkBuilder_ == null) { + result.identityNetwork_ = identityNetwork_; + } else { + result.identityNetwork_ = identityNetworkBuilder_.build(); + } + if (camerasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cameras_ = java.util.Collections.unmodifiableList(cameras_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cameras_ = cameras_; + } else { + result.cameras_ = camerasBuilder_.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.cctv.CctvServerModelProto.CctvServerModel) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel other) { + if (other == club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasIdentityNetwork()) { + mergeIdentityNetwork(other.getIdentityNetwork()); + } + if (camerasBuilder_ == null) { + if (!other.cameras_.isEmpty()) { + if (cameras_.isEmpty()) { + cameras_ = other.cameras_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCamerasIsMutable(); + cameras_.addAll(other.cameras_); + } + onChanged(); + } + } else { + if (!other.cameras_.isEmpty()) { + if (camerasBuilder_.isEmpty()) { + camerasBuilder_.dispose(); + camerasBuilder_ = null; + cameras_ = other.cameras_; + bitField0_ = (bitField0_ & ~0x00000001); + camerasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCamerasFieldBuilder() : null; + } else { + camerasBuilder_.addAllMessages(other.cameras_); + } + } + } + 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.cctv.CctvServerModelProto.CctvServerModel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + 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.nms.NetworkTerminalProto.DoubleNetwork identityNetwork_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder> identityNetworkBuilder_; + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + * @return Whether the identityNetwork field is set. + */ + public boolean hasIdentityNetwork() { + return identityNetworkBuilder_ != null || identityNetwork_ != null; + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + * @return The identityNetwork. + */ + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork getIdentityNetwork() { + if (identityNetworkBuilder_ == null) { + return identityNetwork_ == null ? club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.getDefaultInstance() : identityNetwork_; + } else { + return identityNetworkBuilder_.getMessage(); + } + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + public Builder setIdentityNetwork(club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork value) { + if (identityNetworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityNetwork_ = value; + onChanged(); + } else { + identityNetworkBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + public Builder setIdentityNetwork( + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder builderForValue) { + if (identityNetworkBuilder_ == null) { + identityNetwork_ = builderForValue.build(); + onChanged(); + } else { + identityNetworkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + public Builder mergeIdentityNetwork(club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork value) { + if (identityNetworkBuilder_ == null) { + if (identityNetwork_ != null) { + identityNetwork_ = + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.newBuilder(identityNetwork_).mergeFrom(value).buildPartial(); + } else { + identityNetwork_ = value; + } + onChanged(); + } else { + identityNetworkBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + public Builder clearIdentityNetwork() { + if (identityNetworkBuilder_ == null) { + identityNetwork_ = null; + onChanged(); + } else { + identityNetwork_ = null; + identityNetworkBuilder_ = null; + } + + return this; + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder getIdentityNetworkBuilder() { + + onChanged(); + return getIdentityNetworkFieldBuilder().getBuilder(); + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder getIdentityNetworkOrBuilder() { + if (identityNetworkBuilder_ != null) { + return identityNetworkBuilder_.getMessageOrBuilder(); + } else { + return identityNetwork_ == null ? + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.getDefaultInstance() : identityNetwork_; + } + } + /** + *
+       *当前模型作为网络设备的网络信息
+       * 
+ * + * .model.nms.DoubleNetwork identityNetwork = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder> + getIdentityNetworkFieldBuilder() { + if (identityNetworkBuilder_ == null) { + identityNetworkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetwork.Builder, club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.DoubleNetworkOrBuilder>( + getIdentityNetwork(), + getParentForChildren(), + isClean()); + identityNetwork_ = null; + } + return identityNetworkBuilder_; + } + + private java.util.List cameras_ = + java.util.Collections.emptyList(); + private void ensureCamerasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cameras_ = new java.util.ArrayList(cameras_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + 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> camerasBuilder_; + + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public java.util.List getCamerasList() { + if (camerasBuilder_ == null) { + return java.util.Collections.unmodifiableList(cameras_); + } else { + return camerasBuilder_.getMessageList(); + } + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public int getCamerasCount() { + if (camerasBuilder_ == null) { + return cameras_.size(); + } else { + return camerasBuilder_.getCount(); + } + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getCameras(int index) { + if (camerasBuilder_ == null) { + return cameras_.get(index); + } else { + return camerasBuilder_.getMessage(index); + } + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder setCameras( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (camerasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCamerasIsMutable(); + cameras_.set(index, value); + onChanged(); + } else { + camerasBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder setCameras( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (camerasBuilder_ == null) { + ensureCamerasIsMutable(); + cameras_.set(index, builderForValue.build()); + onChanged(); + } else { + camerasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder addCameras(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (camerasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCamerasIsMutable(); + cameras_.add(value); + onChanged(); + } else { + camerasBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder addCameras( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (camerasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCamerasIsMutable(); + cameras_.add(index, value); + onChanged(); + } else { + camerasBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder addCameras( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (camerasBuilder_ == null) { + ensureCamerasIsMutable(); + cameras_.add(builderForValue.build()); + onChanged(); + } else { + camerasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder addCameras( + int index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (camerasBuilder_ == null) { + ensureCamerasIsMutable(); + cameras_.add(index, builderForValue.build()); + onChanged(); + } else { + camerasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder addAllCameras( + java.lang.Iterable values) { + if (camerasBuilder_ == null) { + ensureCamerasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cameras_); + onChanged(); + } else { + camerasBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder clearCameras() { + if (camerasBuilder_ == null) { + cameras_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + camerasBuilder_.clear(); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public Builder removeCameras(int index) { + if (camerasBuilder_ == null) { + ensureCamerasIsMutable(); + cameras_.remove(index); + onChanged(); + } else { + camerasBuilder_.remove(index); + } + return this; + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getCamerasBuilder( + int index) { + return getCamerasFieldBuilder().getBuilder(index); + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getCamerasOrBuilder( + int index) { + if (camerasBuilder_ == null) { + return cameras_.get(index); } else { + return camerasBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public java.util.List + getCamerasOrBuilderList() { + if (camerasBuilder_ != null) { + return camerasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cameras_); + } + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder addCamerasBuilder() { + return getCamerasFieldBuilder().addBuilder( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance()); + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder addCamerasBuilder( + int index) { + return getCamerasFieldBuilder().addBuilder( + index, club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance()); + } + /** + *
+       *该监控控制器管辖的所有摄像头
+       *CctvCameraModel
+       * 
+ * + * repeated .model.ModelRef cameras = 3; + */ + public java.util.List + getCamerasBuilderList() { + return getCamerasFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + 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> + getCamerasFieldBuilder() { + if (camerasBuilder_ == null) { + camerasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + 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>( + cameras_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cameras_ = null; + } + return camerasBuilder_; + } + @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.cctv.CctvServerModel) + } + + // @@protoc_insertion_point(class_scope:model.cctv.CctvServerModel) + private static final club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel(); + } + + public static club.joylink.rtss.iscs.proto.model.data.cctv.CctvServerModelProto.CctvServerModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CctvServerModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CctvServerModel(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.cctv.CctvServerModelProto.CctvServerModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_cctv_CctvServerModel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_cctv_CctvServerModel_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/cctv/CctvServerModel.proto\022\nmode" + + "l.cctv\032\025model/DataModel.proto\032\037model/nms" + + "/NetworkTerminal.proto\"\212\001\n\017CctvServerMod" + + "el\022\"\n\010identity\030\001 \001(\0132\020.model.DataModel\0221" + + "\n\017identityNetwork\030\002 \001(\0132\030.model.nms.Doub" + + "leNetwork\022 \n\007cameras\030\003 \003(\0132\017.model.Model" + + "RefBD\n,club.joylink.rtss.iscs.proto.mode" + + "l.data.cctvB\024CctvServerModelProtob\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(), + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.getDescriptor(), + }); + internal_static_model_cctv_CctvServerModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_cctv_CctvServerModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_cctv_CctvServerModel_descriptor, + new java.lang.String[] { "Identity", "IdentityNetwork", "Cameras", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + club.joylink.rtss.iscs.proto.model.data.nms.NetworkTerminalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/data/pa/BroadcastModelProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/pa/BroadcastModelProto.java new file mode 100644 index 000000000..9cfee7ed1 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/pa/BroadcastModelProto.java @@ -0,0 +1,1022 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/pa/BroadcastModel.proto + +package club.joylink.rtss.iscs.proto.model.data.pa; + +public final class BroadcastModelProto { + private BroadcastModelProto() {} + 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 BroadcastModelOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.pa.BroadcastModel) + 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(); + + /** + *
+     *该广播所属控制器
+     *PaServerModel
+     * 
+ * + * .model.ModelRef paServer = 2; + * @return Whether the paServer field is set. + */ + boolean hasPaServer(); + /** + *
+     *该广播所属控制器
+     *PaServerModel
+     * 
+ * + * .model.ModelRef paServer = 2; + * @return The paServer. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getPaServer(); + /** + *
+     *该广播所属控制器
+     *PaServerModel
+     * 
+ * + * .model.ModelRef paServer = 2; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getPaServerOrBuilder(); + } + /** + *
+   **
+   * 广播数据模型
+   * 
+ * + * Protobuf type {@code model.pa.BroadcastModel} + */ + public static final class BroadcastModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.pa.BroadcastModel) + BroadcastModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use BroadcastModel.newBuilder() to construct. + private BroadcastModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BroadcastModel() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BroadcastModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BroadcastModel( + 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 (paServer_ != null) { + subBuilder = paServer_.toBuilder(); + } + paServer_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(paServer_); + paServer_ = 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.pa.BroadcastModelProto.internal_static_model_pa_BroadcastModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.internal_static_model_pa_BroadcastModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.class, club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.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 PASERVER_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef paServer_; + /** + *
+     *该广播所属控制器
+     *PaServerModel
+     * 
+ * + * .model.ModelRef paServer = 2; + * @return Whether the paServer field is set. + */ + @java.lang.Override + public boolean hasPaServer() { + return paServer_ != null; + } + /** + *
+     *该广播所属控制器
+     *PaServerModel
+     * 
+ * + * .model.ModelRef paServer = 2; + * @return The paServer. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getPaServer() { + return paServer_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : paServer_; + } + /** + *
+     *该广播所属控制器
+     *PaServerModel
+     * 
+ * + * .model.ModelRef paServer = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getPaServerOrBuilder() { + return getPaServer(); + } + + 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 (paServer_ != null) { + output.writeMessage(2, getPaServer()); + } + 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 (paServer_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPaServer()); + } + 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.pa.BroadcastModelProto.BroadcastModel)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel other = (club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasPaServer() != other.hasPaServer()) return false; + if (hasPaServer()) { + if (!getPaServer() + .equals(other.getPaServer())) 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 (hasPaServer()) { + hash = (37 * hash) + PASERVER_FIELD_NUMBER; + hash = (53 * hash) + getPaServer().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModelProto.BroadcastModel 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.pa.BroadcastModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.pa.BroadcastModel) + club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.internal_static_model_pa_BroadcastModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.internal_static_model_pa_BroadcastModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.class, club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.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 (paServerBuilder_ == null) { + paServer_ = null; + } else { + paServer_ = null; + paServerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.internal_static_model_pa_BroadcastModel_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel build() { + club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel buildPartial() { + club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel result = new club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (paServerBuilder_ == null) { + result.paServer_ = paServer_; + } else { + result.paServer_ = paServerBuilder_.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.pa.BroadcastModelProto.BroadcastModel) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel other) { + if (other == club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasPaServer()) { + mergePaServer(other.getPaServer()); + } + 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.pa.BroadcastModelProto.BroadcastModel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel) 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 paServer_; + 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> paServerBuilder_; + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + * @return Whether the paServer field is set. + */ + public boolean hasPaServer() { + return paServerBuilder_ != null || paServer_ != null; + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + * @return The paServer. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getPaServer() { + if (paServerBuilder_ == null) { + return paServer_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : paServer_; + } else { + return paServerBuilder_.getMessage(); + } + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + */ + public Builder setPaServer(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (paServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + paServer_ = value; + onChanged(); + } else { + paServerBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + */ + public Builder setPaServer( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (paServerBuilder_ == null) { + paServer_ = builderForValue.build(); + onChanged(); + } else { + paServerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + */ + public Builder mergePaServer(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (paServerBuilder_ == null) { + if (paServer_ != null) { + paServer_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(paServer_).mergeFrom(value).buildPartial(); + } else { + paServer_ = value; + } + onChanged(); + } else { + paServerBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + */ + public Builder clearPaServer() { + if (paServerBuilder_ == null) { + paServer_ = null; + onChanged(); + } else { + paServer_ = null; + paServerBuilder_ = null; + } + + return this; + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getPaServerBuilder() { + + onChanged(); + return getPaServerFieldBuilder().getBuilder(); + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getPaServerOrBuilder() { + if (paServerBuilder_ != null) { + return paServerBuilder_.getMessageOrBuilder(); + } else { + return paServer_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : paServer_; + } + } + /** + *
+       *该广播所属控制器
+       *PaServerModel
+       * 
+ * + * .model.ModelRef paServer = 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> + getPaServerFieldBuilder() { + if (paServerBuilder_ == null) { + paServerBuilder_ = 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>( + getPaServer(), + getParentForChildren(), + isClean()); + paServer_ = null; + } + return paServerBuilder_; + } + @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.pa.BroadcastModel) + } + + // @@protoc_insertion_point(class_scope:model.pa.BroadcastModel) + private static final club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel(); + } + + public static club.joylink.rtss.iscs.proto.model.data.pa.BroadcastModelProto.BroadcastModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BroadcastModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BroadcastModel(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.pa.BroadcastModelProto.BroadcastModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_pa_BroadcastModel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_pa_BroadcastModel_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\035model/pa/BroadcastModel.proto\022\010model.p" + + "a\032\025model/DataModel.proto\"W\n\016BroadcastMod" + + "el\022\"\n\010identity\030\001 \001(\0132\020.model.DataModel\022!" + + "\n\010paServer\030\002 \001(\0132\017.model.ModelRefBA\n*clu" + + "b.joylink.rtss.iscs.proto.model.data.paB" + + "\023BroadcastModelProtob\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_pa_BroadcastModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_pa_BroadcastModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_pa_BroadcastModel_descriptor, + new java.lang.String[] { "Identity", "PaServer", }); + 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/power/BusTieSpareSourceAutoSwitchModelProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/power/BusTieSpareSourceAutoSwitchModelProto.java new file mode 100644 index 000000000..f82ea239f --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/power/BusTieSpareSourceAutoSwitchModelProto.java @@ -0,0 +1,745 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/power/BusTieSpareSourceAutoSwitchModel.proto + +package club.joylink.rtss.iscs.proto.model.data.power; + +public final class BusTieSpareSourceAutoSwitchModelProto { + private BusTieSpareSourceAutoSwitchModelProto() {} + 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 BusTieSpareSourceAutoSwitchModelOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.power.BusTieSpareSourceAutoSwitchModel) + 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(); + } + /** + *
+   **
+   * 母联备自投
+   * 
+ * + * Protobuf type {@code model.power.BusTieSpareSourceAutoSwitchModel} + */ + public static final class BusTieSpareSourceAutoSwitchModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.power.BusTieSpareSourceAutoSwitchModel) + BusTieSpareSourceAutoSwitchModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use BusTieSpareSourceAutoSwitchModel.newBuilder() to construct. + private BusTieSpareSourceAutoSwitchModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BusTieSpareSourceAutoSwitchModel() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BusTieSpareSourceAutoSwitchModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BusTieSpareSourceAutoSwitchModel( + 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; + } + 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.power.BusTieSpareSourceAutoSwitchModelProto.internal_static_model_power_BusTieSpareSourceAutoSwitchModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.internal_static_model_power_BusTieSpareSourceAutoSwitchModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.class, club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.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(); + } + + 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()); + } + 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()); + } + 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel other = (club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) 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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel 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.power.BusTieSpareSourceAutoSwitchModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.power.BusTieSpareSourceAutoSwitchModel) + club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.internal_static_model_power_BusTieSpareSourceAutoSwitchModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.internal_static_model_power_BusTieSpareSourceAutoSwitchModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.class, club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.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; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.internal_static_model_power_BusTieSpareSourceAutoSwitchModel_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel build() { + club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel buildPartial() { + club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel result = new club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel other) { + if (other == club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + 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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel) 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_; + } + @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.power.BusTieSpareSourceAutoSwitchModel) + } + + // @@protoc_insertion_point(class_scope:model.power.BusTieSpareSourceAutoSwitchModel) + private static final club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel(); + } + + public static club.joylink.rtss.iscs.proto.model.data.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BusTieSpareSourceAutoSwitchModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BusTieSpareSourceAutoSwitchModel(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.power.BusTieSpareSourceAutoSwitchModelProto.BusTieSpareSourceAutoSwitchModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_power_BusTieSpareSourceAutoSwitchModel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_power_BusTieSpareSourceAutoSwitchModel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2model/power/BusTieSpareSourceAutoSwitc" + + "hModel.proto\022\013model.power\032\025model/DataMod" + + "el.proto\"F\n BusTieSpareSourceAutoSwitchM" + + "odel\022\"\n\010identity\030\001 \001(\0132\020.model.DataModel" + + "BV\n-club.joylink.rtss.iscs.proto.model.d" + + "ata.powerB%BusTieSpareSourceAutoSwitchMo" + + "delProtob\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_power_BusTieSpareSourceAutoSwitchModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_power_BusTieSpareSourceAutoSwitchModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_power_BusTieSpareSourceAutoSwitchModel_descriptor, + new java.lang.String[] { "Identity", }); + 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/power/CapacitorModelProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/power/CapacitorModelProto.java new file mode 100644 index 000000000..107eef784 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/power/CapacitorModelProto.java @@ -0,0 +1,1290 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/power/CapacitorModel.proto + +package club.joylink.rtss.iscs.proto.model.data.power; + +public final class CapacitorModelProto { + private CapacitorModelProto() {} + 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 CapacitorModelOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.power.CapacitorModel) + 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(); + + /** + *
+     *接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return Whether the terminal1 field is set. + */ + boolean hasTerminal1(); + /** + *
+     *接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return The terminal1. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal1(); + /** + *
+     *接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal1OrBuilder(); + + /** + *
+     *接线端2
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return Whether the terminal2 field is set. + */ + boolean hasTerminal2(); + /** + *
+     *接线端2
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return The terminal2. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal2(); + /** + *
+     *接线端2
+     * 
+ * + * .model.ModelRef terminal2 = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal2OrBuilder(); + } + /** + *
+   **
+   * 电容器模型数据
+   * <p>
+   * 通交流阻直流
+   * 
+ * + * Protobuf type {@code model.power.CapacitorModel} + */ + public static final class CapacitorModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.power.CapacitorModel) + CapacitorModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use CapacitorModel.newBuilder() to construct. + private CapacitorModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CapacitorModel() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CapacitorModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CapacitorModel( + 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 (terminal1_ != null) { + subBuilder = terminal1_.toBuilder(); + } + terminal1_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(terminal1_); + terminal1_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (terminal2_ != null) { + subBuilder = terminal2_.toBuilder(); + } + terminal2_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(terminal2_); + terminal2_ = 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.power.CapacitorModelProto.internal_static_model_power_CapacitorModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.internal_static_model_power_CapacitorModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.class, club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.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 TERMINAL1_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef terminal1_; + /** + *
+     *接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return Whether the terminal1 field is set. + */ + @java.lang.Override + public boolean hasTerminal1() { + return terminal1_ != null; + } + /** + *
+     *接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return The terminal1. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal1() { + return terminal1_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal1_; + } + /** + *
+     *接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal1OrBuilder() { + return getTerminal1(); + } + + public static final int TERMINAL2_FIELD_NUMBER = 3; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef terminal2_; + /** + *
+     *接线端2
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return Whether the terminal2 field is set. + */ + @java.lang.Override + public boolean hasTerminal2() { + return terminal2_ != null; + } + /** + *
+     *接线端2
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return The terminal2. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal2() { + return terminal2_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal2_; + } + /** + *
+     *接线端2
+     * 
+ * + * .model.ModelRef terminal2 = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal2OrBuilder() { + return getTerminal2(); + } + + 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 (terminal1_ != null) { + output.writeMessage(2, getTerminal1()); + } + if (terminal2_ != null) { + output.writeMessage(3, getTerminal2()); + } + 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 (terminal1_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTerminal1()); + } + if (terminal2_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTerminal2()); + } + 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.power.CapacitorModelProto.CapacitorModel)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel other = (club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasTerminal1() != other.hasTerminal1()) return false; + if (hasTerminal1()) { + if (!getTerminal1() + .equals(other.getTerminal1())) return false; + } + if (hasTerminal2() != other.hasTerminal2()) return false; + if (hasTerminal2()) { + if (!getTerminal2() + .equals(other.getTerminal2())) 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 (hasTerminal1()) { + hash = (37 * hash) + TERMINAL1_FIELD_NUMBER; + hash = (53 * hash) + getTerminal1().hashCode(); + } + if (hasTerminal2()) { + hash = (37 * hash) + TERMINAL2_FIELD_NUMBER; + hash = (53 * hash) + getTerminal2().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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.power.CapacitorModelProto.CapacitorModel 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; + } + /** + *
+     **
+     * 电容器模型数据
+     * <p>
+     * 通交流阻直流
+     * 
+ * + * Protobuf type {@code model.power.CapacitorModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.power.CapacitorModel) + club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.internal_static_model_power_CapacitorModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.internal_static_model_power_CapacitorModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.class, club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.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 (terminal1Builder_ == null) { + terminal1_ = null; + } else { + terminal1_ = null; + terminal1Builder_ = null; + } + if (terminal2Builder_ == null) { + terminal2_ = null; + } else { + terminal2_ = null; + terminal2Builder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.internal_static_model_power_CapacitorModel_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel build() { + club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel buildPartial() { + club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel result = new club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (terminal1Builder_ == null) { + result.terminal1_ = terminal1_; + } else { + result.terminal1_ = terminal1Builder_.build(); + } + if (terminal2Builder_ == null) { + result.terminal2_ = terminal2_; + } else { + result.terminal2_ = terminal2Builder_.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.power.CapacitorModelProto.CapacitorModel) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel other) { + if (other == club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasTerminal1()) { + mergeTerminal1(other.getTerminal1()); + } + if (other.hasTerminal2()) { + mergeTerminal2(other.getTerminal2()); + } + 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.power.CapacitorModelProto.CapacitorModel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel) 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 terminal1_; + 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> terminal1Builder_; + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + * @return Whether the terminal1 field is set. + */ + public boolean hasTerminal1() { + return terminal1Builder_ != null || terminal1_ != null; + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + * @return The terminal1. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal1() { + if (terminal1Builder_ == null) { + return terminal1_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal1_; + } else { + return terminal1Builder_.getMessage(); + } + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder setTerminal1(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal1Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminal1_ = value; + onChanged(); + } else { + terminal1Builder_.setMessage(value); + } + + return this; + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder setTerminal1( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (terminal1Builder_ == null) { + terminal1_ = builderForValue.build(); + onChanged(); + } else { + terminal1Builder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder mergeTerminal1(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal1Builder_ == null) { + if (terminal1_ != null) { + terminal1_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(terminal1_).mergeFrom(value).buildPartial(); + } else { + terminal1_ = value; + } + onChanged(); + } else { + terminal1Builder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder clearTerminal1() { + if (terminal1Builder_ == null) { + terminal1_ = null; + onChanged(); + } else { + terminal1_ = null; + terminal1Builder_ = null; + } + + return this; + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getTerminal1Builder() { + + onChanged(); + return getTerminal1FieldBuilder().getBuilder(); + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal1OrBuilder() { + if (terminal1Builder_ != null) { + return terminal1Builder_.getMessageOrBuilder(); + } else { + return terminal1_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal1_; + } + } + /** + *
+       *接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 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> + getTerminal1FieldBuilder() { + if (terminal1Builder_ == null) { + terminal1Builder_ = 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>( + getTerminal1(), + getParentForChildren(), + isClean()); + terminal1_ = null; + } + return terminal1Builder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef terminal2_; + 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> terminal2Builder_; + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + * @return Whether the terminal2 field is set. + */ + public boolean hasTerminal2() { + return terminal2Builder_ != null || terminal2_ != null; + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + * @return The terminal2. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal2() { + if (terminal2Builder_ == null) { + return terminal2_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal2_; + } else { + return terminal2Builder_.getMessage(); + } + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder setTerminal2(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminal2_ = value; + onChanged(); + } else { + terminal2Builder_.setMessage(value); + } + + return this; + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder setTerminal2( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (terminal2Builder_ == null) { + terminal2_ = builderForValue.build(); + onChanged(); + } else { + terminal2Builder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder mergeTerminal2(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal2Builder_ == null) { + if (terminal2_ != null) { + terminal2_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(terminal2_).mergeFrom(value).buildPartial(); + } else { + terminal2_ = value; + } + onChanged(); + } else { + terminal2Builder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder clearTerminal2() { + if (terminal2Builder_ == null) { + terminal2_ = null; + onChanged(); + } else { + terminal2_ = null; + terminal2Builder_ = null; + } + + return this; + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getTerminal2Builder() { + + onChanged(); + return getTerminal2FieldBuilder().getBuilder(); + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal2OrBuilder() { + if (terminal2Builder_ != null) { + return terminal2Builder_.getMessageOrBuilder(); + } else { + return terminal2_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal2_; + } + } + /** + *
+       *接线端2
+       * 
+ * + * .model.ModelRef terminal2 = 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> + getTerminal2FieldBuilder() { + if (terminal2Builder_ == null) { + terminal2Builder_ = 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>( + getTerminal2(), + getParentForChildren(), + isClean()); + terminal2_ = null; + } + return terminal2Builder_; + } + @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.power.CapacitorModel) + } + + // @@protoc_insertion_point(class_scope:model.power.CapacitorModel) + private static final club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel(); + } + + public static club.joylink.rtss.iscs.proto.model.data.power.CapacitorModelProto.CapacitorModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CapacitorModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CapacitorModel(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.power.CapacitorModelProto.CapacitorModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_power_CapacitorModel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_power_CapacitorModel_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/power/CapacitorModel.proto\022\013mode" + + "l.power\032\025model/DataModel.proto\"|\n\016Capaci" + + "torModel\022\"\n\010identity\030\001 \001(\0132\020.model.DataM" + + "odel\022\"\n\tterminal1\030\002 \001(\0132\017.model.ModelRef" + + "\022\"\n\tterminal2\030\003 \001(\0132\017.model.ModelRefBD\n-" + + "club.joylink.rtss.iscs.proto.model.data." + + "powerB\023CapacitorModelProtob\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_power_CapacitorModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_power_CapacitorModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_power_CapacitorModel_descriptor, + new java.lang.String[] { "Identity", "Terminal1", "Terminal2", }); + 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/power/CircuitBreakerModelProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/data/power/CircuitBreakerModelProto.java new file mode 100644 index 000000000..917b13ef8 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/data/power/CircuitBreakerModelProto.java @@ -0,0 +1,1302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: model/power/CircuitBreakerModel.proto + +package club.joylink.rtss.iscs.proto.model.data.power; + +public final class CircuitBreakerModelProto { + private CircuitBreakerModelProto() {} + 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 CircuitBreakerModelOrBuilder extends + // @@protoc_insertion_point(interface_extends:model.power.CircuitBreakerModel) + 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(); + + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return Whether the terminal1 field is set. + */ + boolean hasTerminal1(); + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return The terminal1. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal1(); + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal1OrBuilder(); + + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return Whether the terminal2 field is set. + */ + boolean hasTerminal2(); + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return The terminal2. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal2(); + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal2 = 3; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal2OrBuilder(); + } + /** + *
+   **
+   * 断路器模型数据
+   * 
+ * + * Protobuf type {@code model.power.CircuitBreakerModel} + */ + public static final class CircuitBreakerModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:model.power.CircuitBreakerModel) + CircuitBreakerModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use CircuitBreakerModel.newBuilder() to construct. + private CircuitBreakerModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CircuitBreakerModel() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CircuitBreakerModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CircuitBreakerModel( + 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 (terminal1_ != null) { + subBuilder = terminal1_.toBuilder(); + } + terminal1_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(terminal1_); + terminal1_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (terminal2_ != null) { + subBuilder = terminal2_.toBuilder(); + } + terminal2_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(terminal2_); + terminal2_ = 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.power.CircuitBreakerModelProto.internal_static_model_power_CircuitBreakerModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.internal_static_model_power_CircuitBreakerModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.class, club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.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 TERMINAL1_FIELD_NUMBER = 2; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef terminal1_; + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return Whether the terminal1 field is set. + */ + @java.lang.Override + public boolean hasTerminal1() { + return terminal1_ != null; + } + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + * @return The terminal1. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal1() { + return terminal1_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal1_; + } + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal1 = 2; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal1OrBuilder() { + return getTerminal1(); + } + + public static final int TERMINAL2_FIELD_NUMBER = 3; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef terminal2_; + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return Whether the terminal2 field is set. + */ + @java.lang.Override + public boolean hasTerminal2() { + return terminal2_ != null; + } + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal2 = 3; + * @return The terminal2. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal2() { + return terminal2_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal2_; + } + /** + *
+     *断路器接线端1
+     *WireModel
+     * 
+ * + * .model.ModelRef terminal2 = 3; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal2OrBuilder() { + return getTerminal2(); + } + + 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 (terminal1_ != null) { + output.writeMessage(2, getTerminal1()); + } + if (terminal2_ != null) { + output.writeMessage(3, getTerminal2()); + } + 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 (terminal1_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTerminal1()); + } + if (terminal2_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTerminal2()); + } + 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.power.CircuitBreakerModelProto.CircuitBreakerModel)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel other = (club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel) obj; + + if (hasIdentity() != other.hasIdentity()) return false; + if (hasIdentity()) { + if (!getIdentity() + .equals(other.getIdentity())) return false; + } + if (hasTerminal1() != other.hasTerminal1()) return false; + if (hasTerminal1()) { + if (!getTerminal1() + .equals(other.getTerminal1())) return false; + } + if (hasTerminal2() != other.hasTerminal2()) return false; + if (hasTerminal2()) { + if (!getTerminal2() + .equals(other.getTerminal2())) 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 (hasTerminal1()) { + hash = (37 * hash) + TERMINAL1_FIELD_NUMBER; + hash = (53 * hash) + getTerminal1().hashCode(); + } + if (hasTerminal2()) { + hash = (37 * hash) + TERMINAL2_FIELD_NUMBER; + hash = (53 * hash) + getTerminal2().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModelProto.CircuitBreakerModel 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.power.CircuitBreakerModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:model.power.CircuitBreakerModel) + club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.internal_static_model_power_CircuitBreakerModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.internal_static_model_power_CircuitBreakerModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.class, club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.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 (terminal1Builder_ == null) { + terminal1_ = null; + } else { + terminal1_ = null; + terminal1Builder_ = null; + } + if (terminal2Builder_ == null) { + terminal2_ = null; + } else { + terminal2_ = null; + terminal2Builder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.internal_static_model_power_CircuitBreakerModel_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel build() { + club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel buildPartial() { + club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel result = new club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel(this); + if (identityBuilder_ == null) { + result.identity_ = identity_; + } else { + result.identity_ = identityBuilder_.build(); + } + if (terminal1Builder_ == null) { + result.terminal1_ = terminal1_; + } else { + result.terminal1_ = terminal1Builder_.build(); + } + if (terminal2Builder_ == null) { + result.terminal2_ = terminal2_; + } else { + result.terminal2_ = terminal2Builder_.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.power.CircuitBreakerModelProto.CircuitBreakerModel) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel other) { + if (other == club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel.getDefaultInstance()) return this; + if (other.hasIdentity()) { + mergeIdentity(other.getIdentity()); + } + if (other.hasTerminal1()) { + mergeTerminal1(other.getTerminal1()); + } + if (other.hasTerminal2()) { + mergeTerminal2(other.getTerminal2()); + } + 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.power.CircuitBreakerModelProto.CircuitBreakerModel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel) 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 terminal1_; + 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> terminal1Builder_; + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + * @return Whether the terminal1 field is set. + */ + public boolean hasTerminal1() { + return terminal1Builder_ != null || terminal1_ != null; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + * @return The terminal1. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal1() { + if (terminal1Builder_ == null) { + return terminal1_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal1_; + } else { + return terminal1Builder_.getMessage(); + } + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder setTerminal1(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal1Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminal1_ = value; + onChanged(); + } else { + terminal1Builder_.setMessage(value); + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder setTerminal1( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (terminal1Builder_ == null) { + terminal1_ = builderForValue.build(); + onChanged(); + } else { + terminal1Builder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder mergeTerminal1(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal1Builder_ == null) { + if (terminal1_ != null) { + terminal1_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(terminal1_).mergeFrom(value).buildPartial(); + } else { + terminal1_ = value; + } + onChanged(); + } else { + terminal1Builder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public Builder clearTerminal1() { + if (terminal1Builder_ == null) { + terminal1_ = null; + onChanged(); + } else { + terminal1_ = null; + terminal1Builder_ = null; + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getTerminal1Builder() { + + onChanged(); + return getTerminal1FieldBuilder().getBuilder(); + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 2; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal1OrBuilder() { + if (terminal1Builder_ != null) { + return terminal1Builder_.getMessageOrBuilder(); + } else { + return terminal1_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal1_; + } + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal1 = 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> + getTerminal1FieldBuilder() { + if (terminal1Builder_ == null) { + terminal1Builder_ = 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>( + getTerminal1(), + getParentForChildren(), + isClean()); + terminal1_ = null; + } + return terminal1Builder_; + } + + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef terminal2_; + 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> terminal2Builder_; + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + * @return Whether the terminal2 field is set. + */ + public boolean hasTerminal2() { + return terminal2Builder_ != null || terminal2_ != null; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + * @return The terminal2. + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getTerminal2() { + if (terminal2Builder_ == null) { + return terminal2_ == null ? club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal2_; + } else { + return terminal2Builder_.getMessage(); + } + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder setTerminal2(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminal2_ = value; + onChanged(); + } else { + terminal2Builder_.setMessage(value); + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder setTerminal2( + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder builderForValue) { + if (terminal2Builder_ == null) { + terminal2_ = builderForValue.build(); + onChanged(); + } else { + terminal2Builder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder mergeTerminal2(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef value) { + if (terminal2Builder_ == null) { + if (terminal2_ != null) { + terminal2_ = + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.newBuilder(terminal2_).mergeFrom(value).buildPartial(); + } else { + terminal2_ = value; + } + onChanged(); + } else { + terminal2Builder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public Builder clearTerminal2() { + if (terminal2Builder_ == null) { + terminal2_ = null; + onChanged(); + } else { + terminal2_ = null; + terminal2Builder_ = null; + } + + return this; + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getTerminal2Builder() { + + onChanged(); + return getTerminal2FieldBuilder().getBuilder(); + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 3; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getTerminal2OrBuilder() { + if (terminal2Builder_ != null) { + return terminal2Builder_.getMessageOrBuilder(); + } else { + return terminal2_ == null ? + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.getDefaultInstance() : terminal2_; + } + } + /** + *
+       *断路器接线端1
+       *WireModel
+       * 
+ * + * .model.ModelRef terminal2 = 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> + getTerminal2FieldBuilder() { + if (terminal2Builder_ == null) { + terminal2Builder_ = 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>( + getTerminal2(), + getParentForChildren(), + isClean()); + terminal2_ = null; + } + return terminal2Builder_; + } + @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.power.CircuitBreakerModel) + } + + // @@protoc_insertion_point(class_scope:model.power.CircuitBreakerModel) + private static final club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel(); + } + + public static club.joylink.rtss.iscs.proto.model.data.power.CircuitBreakerModelProto.CircuitBreakerModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CircuitBreakerModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CircuitBreakerModel(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.power.CircuitBreakerModelProto.CircuitBreakerModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_model_power_CircuitBreakerModel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_model_power_CircuitBreakerModel_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/power/CircuitBreakerModel.proto\022" + + "\013model.power\032\025model/DataModel.proto\"\201\001\n\023" + + "CircuitBreakerModel\022\"\n\010identity\030\001 \001(\0132\020." + + "model.DataModel\022\"\n\tterminal1\030\002 \001(\0132\017.mod" + + "el.ModelRef\022\"\n\tterminal2\030\003 \001(\0132\017.model.M" + + "odelRefBI\n-club.joylink.rtss.iscs.proto." + + "model.data.powerB\030CircuitBreakerModelPro" + + "tob\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_power_CircuitBreakerModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_model_power_CircuitBreakerModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_model_power_CircuitBreakerModel_descriptor, + new java.lang.String[] { "Identity", "Terminal1", "Terminal2", }); + 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/pump/ChilledWaterPumpStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/pump/ChilledWaterPumpStateProto.java new file mode 100644 index 000000000..3d3b5cc18 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/pump/ChilledWaterPumpStateProto.java @@ -0,0 +1,950 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/bas/pump/ChilledWaterPumpState.proto + +package club.joylink.rtss.iscs.proto.model.status.bas.pump; + +public final class ChilledWaterPumpStateProto { + private ChilledWaterPumpStateProto() {} + 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 ChilledWaterPumpStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.bas.pump.ChilledWaterPumpState) + 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.pump.ChilledWaterPumpState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .status.bas.pump.ChilledWaterPumpState.State state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State getState(); + } + /** + *
+   *冷冻水泵
+   * 
+ * + * Protobuf type {@code status.bas.pump.ChilledWaterPumpState} + */ + public static final class ChilledWaterPumpState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.bas.pump.ChilledWaterPumpState) + ChilledWaterPumpStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChilledWaterPumpState.newBuilder() to construct. + private ChilledWaterPumpState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ChilledWaterPumpState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChilledWaterPumpState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChilledWaterPumpState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder subBuilder = null; + if (modelRef_ != null) { + subBuilder = modelRef_.toBuilder(); + } + modelRef_ = input.readMessage(club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modelRef_); + modelRef_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.internal_static_status_bas_pump_ChilledWaterPumpState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.internal_static_status_bas_pump_ChilledWaterPumpState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.class, club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.Builder.class); + } + + /** + * Protobuf enum {@code status.bas.pump.ChilledWaterPumpState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *停止
+       * 
+ * + * STOP = 0; + */ + STOP(0), + /** + *
+       *运行
+       * 
+ * + * RUNING = 1; + */ + RUNING(1), + /** + *
+       *故障
+       * 
+ * + * FAULT = 2; + */ + FAULT(2), + /** + *
+       *通信中断
+       * 
+ * + * OFFLINE = 3; + */ + OFFLINE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       *停止
+       * 
+ * + * STOP = 0; + */ + public static final int STOP_VALUE = 0; + /** + *
+       *运行
+       * 
+ * + * RUNING = 1; + */ + public static final int RUNING_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 STOP; + case 1: return RUNING; + 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.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:status.bas.pump.ChilledWaterPumpState.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.pump.ChilledWaterPumpState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.pump.ChilledWaterPumpState.State state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State result = club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (modelRef_ != null) { + output.writeMessage(1, getModelRef()); + } + if (state_ != club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State.STOP.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modelRef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getModelRef()); + } + if (state_ != club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State.STOP.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState other = (club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState) obj; + + if (hasModelRef() != other.hasModelRef()) return false; + if (hasModelRef()) { + if (!getModelRef() + .equals(other.getModelRef())) return false; + } + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasModelRef()) { + hash = (37 * hash) + MODELREF_FIELD_NUMBER; + hash = (53 * hash) + getModelRef().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState 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.pump.ChilledWaterPumpState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.bas.pump.ChilledWaterPumpState) + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.internal_static_status_bas_pump_ChilledWaterPumpState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.internal_static_status_bas_pump_ChilledWaterPumpState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.class, club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (modelRefBuilder_ == null) { + modelRef_ = null; + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.internal_static_status_bas_pump_ChilledWaterPumpState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState build() { + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState result = new club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState(this); + if (modelRefBuilder_ == null) { + result.modelRef_ = modelRef_; + } else { + result.modelRef_ = modelRefBuilder_.build(); + } + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.getDefaultInstance()) return this; + if (other.hasModelRef()) { + mergeModelRef(other.getModelRef()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState) 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.pump.ChilledWaterPumpState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.pump.ChilledWaterPumpState.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.pump.ChilledWaterPumpState.State state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State result = club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State.UNRECOGNIZED : result; + } + /** + * .status.bas.pump.ChilledWaterPumpState.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.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .status.bas.pump.ChilledWaterPumpState.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.pump.ChilledWaterPumpState) + } + + // @@protoc_insertion_point(class_scope:status.bas.pump.ChilledWaterPumpState) + private static final club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChilledWaterPumpState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChilledWaterPumpState(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.pump.ChilledWaterPumpStateProto.ChilledWaterPumpState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_bas_pump_ChilledWaterPumpState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_bas_pump_ChilledWaterPumpState_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/pump/ChilledWaterPumpState." + + "proto\022\017status.bas.pump\032\025model/DataModel." + + "proto\"\256\001\n\025ChilledWaterPumpState\022!\n\010model" + + "Ref\030\001 \001(\0132\017.model.ModelRef\022;\n\005state\030\002 \001(" + + "\0162,.status.bas.pump.ChilledWaterPumpStat" + + "e.State\"5\n\005State\022\010\n\004STOP\020\000\022\n\n\006RUNING\020\001\022\t" + + "\n\005FAULT\020\002\022\013\n\007OFFLINE\020\003BP\n2club.joylink.r" + + "tss.iscs.proto.model.status.bas.pumpB\032Ch" + + "illedWaterPumpStateProtob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(), + }); + internal_static_status_bas_pump_ChilledWaterPumpState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_bas_pump_ChilledWaterPumpState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_bas_pump_ChilledWaterPumpState_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/valve/BypassValveStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/valve/BypassValveStateProto.java new file mode 100644 index 000000000..0e5bb08d4 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/bas/valve/BypassValveStateProto.java @@ -0,0 +1,1008 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/bas/valve/BypassValveState.proto + +package club.joylink.rtss.iscs.proto.model.status.bas.valve; + +public final class BypassValveStateProto { + private BypassValveStateProto() {} + 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 BypassValveStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.bas.valve.BypassValveState) + 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.BypassValveState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .status.bas.valve.BypassValveState.State state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State getState(); + + /** + *
+     *开度
+     * 
+ * + * float opening = 3; + * @return The opening. + */ + float getOpening(); + } + /** + *
+   *旁通阀开关
+   * 
+ * + * Protobuf type {@code status.bas.valve.BypassValveState} + */ + public static final class BypassValveState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.bas.valve.BypassValveState) + BypassValveStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use BypassValveState.newBuilder() to construct. + private BypassValveState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BypassValveState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BypassValveState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BypassValveState( + 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: { + + opening_ = 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.valve.BypassValveStateProto.internal_static_status_bas_valve_BypassValveState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.internal_static_status_bas_valve_BypassValveState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.class, club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.Builder.class); + } + + /** + * Protobuf enum {@code status.bas.valve.BypassValveState.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.valve.BypassValveStateProto.BypassValveState.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.BypassValveState.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.BypassValveState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.valve.BypassValveState.State state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State result = club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State.UNRECOGNIZED : result; + } + + public static final int OPENING_FIELD_NUMBER = 3; + private float opening_; + /** + *
+     *开度
+     * 
+ * + * float opening = 3; + * @return The opening. + */ + @java.lang.Override + public float getOpening() { + return opening_; + } + + 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.BypassValveStateProto.BypassValveState.State.WORKED.getNumber()) { + output.writeEnum(2, state_); + } + if (java.lang.Float.floatToRawIntBits(opening_) != 0) { + output.writeFloat(3, opening_); + } + 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.BypassValveStateProto.BypassValveState.State.WORKED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + if (java.lang.Float.floatToRawIntBits(opening_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, opening_); + } + 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.BypassValveStateProto.BypassValveState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState other = (club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState) 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(getOpening()) + != java.lang.Float.floatToIntBits( + other.getOpening())) 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) + OPENING_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getOpening()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveStateProto.BypassValveState 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.BypassValveState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.bas.valve.BypassValveState) + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.internal_static_status_bas_valve_BypassValveState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.internal_static_status_bas_valve_BypassValveState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.class, club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.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; + + opening_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.internal_static_status_bas_valve_BypassValveState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState build() { + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState result = new club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState(this); + if (modelRefBuilder_ == null) { + result.modelRef_ = modelRef_; + } else { + result.modelRef_ = modelRefBuilder_.build(); + } + result.state_ = state_; + result.opening_ = opening_; + 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.BypassValveStateProto.BypassValveState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.getDefaultInstance()) return this; + if (other.hasModelRef()) { + mergeModelRef(other.getModelRef()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getOpening() != 0F) { + setOpening(other.getOpening()); + } + 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.BypassValveStateProto.BypassValveState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState) 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.BypassValveState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.bas.valve.BypassValveState.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.BypassValveState.State state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State result = club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState.State.UNRECOGNIZED : result; + } + /** + * .status.bas.valve.BypassValveState.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.BypassValveStateProto.BypassValveState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .status.bas.valve.BypassValveState.State state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private float opening_ ; + /** + *
+       *开度
+       * 
+ * + * float opening = 3; + * @return The opening. + */ + @java.lang.Override + public float getOpening() { + return opening_; + } + /** + *
+       *开度
+       * 
+ * + * float opening = 3; + * @param value The opening to set. + * @return This builder for chaining. + */ + public Builder setOpening(float value) { + + opening_ = value; + onChanged(); + return this; + } + /** + *
+       *开度
+       * 
+ * + * float opening = 3; + * @return This builder for chaining. + */ + public Builder clearOpening() { + + opening_ = 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.valve.BypassValveState) + } + + // @@protoc_insertion_point(class_scope:status.bas.valve.BypassValveState) + private static final club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.bas.valve.BypassValveStateProto.BypassValveState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BypassValveState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BypassValveState(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.BypassValveStateProto.BypassValveState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_bas_valve_BypassValveState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_bas_valve_BypassValveState_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/BypassValveState.prot" + + "o\022\020status.bas.valve\032\025model/DataModel.pro" + + "to\"\241\001\n\020BypassValveState\022!\n\010modelRef\030\001 \001(" + + "\0132\017.model.ModelRef\0227\n\005state\030\002 \001(\0162(.stat" + + "us.bas.valve.BypassValveState.State\022\017\n\007o" + + "pening\030\003 \001(\002\" \n\005State\022\n\n\006WORKED\020\000\022\013\n\007OFF" + + "LINE\020\001BL\n3club.joylink.rtss.iscs.proto.m" + + "odel.status.bas.valveB\025BypassValveStateP" + + "rotob\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_BypassValveState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_bas_valve_BypassValveState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_bas_valve_BypassValveState_descriptor, + new java.lang.String[] { "ModelRef", "State", "Opening", }); + 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/cctv/CctvServerStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/cctv/CctvServerStateProto.java new file mode 100644 index 000000000..7b4641a0d --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/cctv/CctvServerStateProto.java @@ -0,0 +1,906 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/cctv/CctvServerState.proto + +package club.joylink.rtss.iscs.proto.model.status.cctv; + +public final class CctvServerStateProto { + private CctvServerStateProto() {} + 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 CctvServerStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.cctv.CctvServerState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *表示哪个模型的状态
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + *
+     *表示哪个模型的状态
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + *
+     *表示哪个模型的状态
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + *
+     *nms网络状态
+     * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return The enum numeric value on the wire for networkState. + */ + int getNetworkStateValue(); + /** + *
+     *nms网络状态
+     * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return The networkState. + */ + club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState getNetworkState(); + } + /** + *
+   **
+   * CCTV监控系统控制器状态
+   * 
+ * + * Protobuf type {@code status.cctv.CctvServerState} + */ + public static final class CctvServerState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.cctv.CctvServerState) + CctvServerStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use CctvServerState.newBuilder() to construct. + private CctvServerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CctvServerState() { + networkState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CctvServerState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CctvServerState( + 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(); + + networkState_ = 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.cctv.CctvServerStateProto.internal_static_status_cctv_CctvServerState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.internal_static_status_cctv_CctvServerState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.class, club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.Builder.class); + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + *
+     *表示哪个模型的状态
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + *
+     *表示哪个模型的状态
+     *CctvServerModel
+     * 
+ * + * .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_; + } + /** + *
+     *表示哪个模型的状态
+     *CctvServerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder() { + return getModelRef(); + } + + public static final int NETWORKSTATE_FIELD_NUMBER = 2; + private int networkState_; + /** + *
+     *nms网络状态
+     * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return The enum numeric value on the wire for networkState. + */ + @java.lang.Override public int getNetworkStateValue() { + return networkState_; + } + /** + *
+     *nms网络状态
+     * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return The networkState. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState getNetworkState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState result = club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState.valueOf(networkState_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState.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 (networkState_ != club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState.Normal.getNumber()) { + output.writeEnum(2, networkState_); + } + 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 (networkState_ != club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState.Normal.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, networkState_); + } + 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.cctv.CctvServerStateProto.CctvServerState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState other = (club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState) obj; + + if (hasModelRef() != other.hasModelRef()) return false; + if (hasModelRef()) { + if (!getModelRef() + .equals(other.getModelRef())) return false; + } + if (networkState_ != other.networkState_) 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) + NETWORKSTATE_FIELD_NUMBER; + hash = (53 * hash) + networkState_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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.cctv.CctvServerStateProto.CctvServerState 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; + } + /** + *
+     **
+     * CCTV监控系统控制器状态
+     * 
+ * + * Protobuf type {@code status.cctv.CctvServerState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.cctv.CctvServerState) + club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.internal_static_status_cctv_CctvServerState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.internal_static_status_cctv_CctvServerState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.class, club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.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; + } + networkState_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.internal_static_status_cctv_CctvServerState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState build() { + club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState result = new club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState(this); + if (modelRefBuilder_ == null) { + result.modelRef_ = modelRef_; + } else { + result.modelRef_ = modelRefBuilder_.build(); + } + result.networkState_ = networkState_; + 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.cctv.CctvServerStateProto.CctvServerState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState.getDefaultInstance()) return this; + if (other.hasModelRef()) { + mergeModelRef(other.getModelRef()); + } + if (other.networkState_ != 0) { + setNetworkStateValue(other.getNetworkStateValue()); + } + 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.cctv.CctvServerStateProto.CctvServerState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState) 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_; + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .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(); + } + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .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_; + } + } + /** + *
+       *表示哪个模型的状态
+       *CctvServerModel
+       * 
+ * + * .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 networkState_ = 0; + /** + *
+       *nms网络状态
+       * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return The enum numeric value on the wire for networkState. + */ + @java.lang.Override public int getNetworkStateValue() { + return networkState_; + } + /** + *
+       *nms网络状态
+       * 
+ * + * .status.nms.NetworkState networkState = 2; + * @param value The enum numeric value on the wire for networkState to set. + * @return This builder for chaining. + */ + public Builder setNetworkStateValue(int value) { + + networkState_ = value; + onChanged(); + return this; + } + /** + *
+       *nms网络状态
+       * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return The networkState. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState getNetworkState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState result = club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState.valueOf(networkState_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState.UNRECOGNIZED : result; + } + /** + *
+       *nms网络状态
+       * 
+ * + * .status.nms.NetworkState networkState = 2; + * @param value The networkState to set. + * @return This builder for chaining. + */ + public Builder setNetworkState(club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.NetworkState value) { + if (value == null) { + throw new NullPointerException(); + } + + networkState_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       *nms网络状态
+       * 
+ * + * .status.nms.NetworkState networkState = 2; + * @return This builder for chaining. + */ + public Builder clearNetworkState() { + + networkState_ = 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.cctv.CctvServerState) + } + + // @@protoc_insertion_point(class_scope:status.cctv.CctvServerState) + private static final club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.cctv.CctvServerStateProto.CctvServerState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CctvServerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CctvServerState(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.cctv.CctvServerStateProto.CctvServerState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_cctv_CctvServerState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_cctv_CctvServerState_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/cctv/CctvServerState.proto\022\013sta" + + "tus.cctv\032\025model/DataModel.proto\032\035status/" + + "nms/NetworkState.proto\"d\n\017CctvServerStat" + + "e\022!\n\010modelRef\030\001 \001(\0132\017.model.ModelRef\022.\n\014" + + "networkState\030\002 \001(\0162\030.status.nms.NetworkS" + + "tateBF\n.club.joylink.rtss.iscs.proto.mod" + + "el.status.cctvB\024CctvServerStateProtob\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(), + club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.getDescriptor(), + }); + internal_static_status_cctv_CctvServerState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_cctv_CctvServerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_cctv_CctvServerState_descriptor, + new java.lang.String[] { "ModelRef", "NetworkState", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + club.joylink.rtss.iscs.proto.model.status.nms.NetworkStateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/club/joylink/rtss/iscs/proto/model/status/pa/BroadcastStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/pa/BroadcastStateProto.java new file mode 100644 index 000000000..0eb1759e2 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/pa/BroadcastStateProto.java @@ -0,0 +1,1031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/pa/BroadcastState.proto + +package club.joylink.rtss.iscs.proto.model.status.pa; + +public final class BroadcastStateProto { + private BroadcastStateProto() {} + 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 BroadcastStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.pa.BroadcastState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *表示哪个模型的状态
+     *BroadcastModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + *
+     *表示哪个模型的状态
+     *BroadcastModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + *
+     *表示哪个模型的状态
+     *BroadcastModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + * .status.pa.BroadcastState.BroadcastDeviceState state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .status.pa.BroadcastState.BroadcastDeviceState state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState getState(); + } + /** + *
+   **
+   * 广播状态
+   * 
+ * + * Protobuf type {@code status.pa.BroadcastState} + */ + public static final class BroadcastState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.pa.BroadcastState) + BroadcastStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use BroadcastState.newBuilder() to construct. + private BroadcastState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BroadcastState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BroadcastState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BroadcastState( + 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.pa.BroadcastStateProto.internal_static_status_pa_BroadcastState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.internal_static_status_pa_BroadcastState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.class, club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.Builder.class); + } + + /** + *
+     *广播装置状态
+     * 
+ * + * Protobuf enum {@code status.pa.BroadcastState.BroadcastDeviceState} + */ + public enum BroadcastDeviceState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *正常
+       * 
+ * + * Normal = 0; + */ + Normal(0), + /** + *
+       *关闭
+       * 
+ * + * Closed = 1; + */ + Closed(1), + /** + *
+       *故障
+       * 
+ * + * Fault = 2; + */ + Fault(2), + /** + *
+       *异常/通讯中断/离线状态
+       * 
+ * + * Exception = 3; + */ + Exception(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       *正常
+       * 
+ * + * Normal = 0; + */ + public static final int Normal_VALUE = 0; + /** + *
+       *关闭
+       * 
+ * + * Closed = 1; + */ + public static final int Closed_VALUE = 1; + /** + *
+       *故障
+       * 
+ * + * Fault = 2; + */ + public static final int Fault_VALUE = 2; + /** + *
+       *异常/通讯中断/离线状态
+       * 
+ * + * Exception = 3; + */ + public static final int Exception_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 BroadcastDeviceState 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 BroadcastDeviceState forNumber(int value) { + switch (value) { + case 0: return Normal; + case 1: return Closed; + case 2: return Fault; + case 3: return Exception; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BroadcastDeviceState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BroadcastDeviceState findValueByNumber(int number) { + return BroadcastDeviceState.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.pa.BroadcastStateProto.BroadcastState.getDescriptor().getEnumTypes().get(0); + } + + private static final BroadcastDeviceState[] VALUES = values(); + + public static BroadcastDeviceState 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 BroadcastDeviceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:status.pa.BroadcastState.BroadcastDeviceState) + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + *
+     *表示哪个模型的状态
+     *BroadcastModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + *
+     *表示哪个模型的状态
+     *BroadcastModel
+     * 
+ * + * .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_; + } + /** + *
+     *表示哪个模型的状态
+     *BroadcastModel
+     * 
+ * + * .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.pa.BroadcastState.BroadcastDeviceState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.pa.BroadcastState.BroadcastDeviceState state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState result = club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState.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.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState.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.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState.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.pa.BroadcastStateProto.BroadcastState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState other = (club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState) 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.pa.BroadcastStateProto.BroadcastState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastStateProto.BroadcastState 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.pa.BroadcastState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.pa.BroadcastState) + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.internal_static_status_pa_BroadcastState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.internal_static_status_pa_BroadcastState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.class, club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.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.pa.BroadcastStateProto.internal_static_status_pa_BroadcastState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState build() { + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState result = new club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState(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.pa.BroadcastStateProto.BroadcastState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.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.pa.BroadcastStateProto.BroadcastState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState) 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_; + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .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(); + } + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .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_; + } + } + /** + *
+       *表示哪个模型的状态
+       *BroadcastModel
+       * 
+ * + * .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.pa.BroadcastState.BroadcastDeviceState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .status.pa.BroadcastState.BroadcastDeviceState 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.pa.BroadcastState.BroadcastDeviceState state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState result = club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState.UNRECOGNIZED : result; + } + /** + * .status.pa.BroadcastState.BroadcastDeviceState state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState.BroadcastDeviceState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .status.pa.BroadcastState.BroadcastDeviceState 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.pa.BroadcastState) + } + + // @@protoc_insertion_point(class_scope:status.pa.BroadcastState) + private static final club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.pa.BroadcastStateProto.BroadcastState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BroadcastState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BroadcastState(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.pa.BroadcastStateProto.BroadcastState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_pa_BroadcastState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_pa_BroadcastState_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\036status/pa/BroadcastState.proto\022\tstatus" + + ".pa\032\025model/DataModel.proto\"\274\001\n\016Broadcast" + + "State\022!\n\010modelRef\030\001 \001(\0132\017.model.ModelRef" + + "\022=\n\005state\030\002 \001(\0162..status.pa.BroadcastSta" + + "te.BroadcastDeviceState\"H\n\024BroadcastDevi" + + "ceState\022\n\n\006Normal\020\000\022\n\n\006Closed\020\001\022\t\n\005Fault" + + "\020\002\022\r\n\tException\020\003BC\n,club.joylink.rtss.i" + + "scs.proto.model.status.paB\023BroadcastStat" + + "eProtob\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_pa_BroadcastState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_pa_BroadcastState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_pa_BroadcastState_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/power/BusTieSpareSourceAutoSwitchStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/power/BusTieSpareSourceAutoSwitchStateProto.java new file mode 100644 index 000000000..0a6f34f80 --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/power/BusTieSpareSourceAutoSwitchStateProto.java @@ -0,0 +1,1050 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/power/BusTieSpareSourceAutoSwitchState.proto + +package club.joylink.rtss.iscs.proto.model.status.power; + +public final class BusTieSpareSourceAutoSwitchStateProto { + private BusTieSpareSourceAutoSwitchStateProto() {} + 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 BusTieSpareSourceAutoSwitchStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.power.BusTieSpareSourceAutoSwitchState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *表示哪个模型的状态
+     *BusTieSpareSourceAutoSwitchModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + *
+     *表示哪个模型的状态
+     *BusTieSpareSourceAutoSwitchModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + *
+     *表示哪个模型的状态
+     *BusTieSpareSourceAutoSwitchModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + *
+     *母联备自投 状态
+     * 
+ * + * .status.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+     *母联备自投 状态
+     * 
+ * + * .status.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @return The state. + */ + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State getState(); + } + /** + *
+   *母联备自投 状态
+   * 
+ * + * Protobuf type {@code status.power.BusTieSpareSourceAutoSwitchState} + */ + public static final class BusTieSpareSourceAutoSwitchState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.power.BusTieSpareSourceAutoSwitchState) + BusTieSpareSourceAutoSwitchStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use BusTieSpareSourceAutoSwitchState.newBuilder() to construct. + private BusTieSpareSourceAutoSwitchState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BusTieSpareSourceAutoSwitchState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BusTieSpareSourceAutoSwitchState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BusTieSpareSourceAutoSwitchState( + 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.power.BusTieSpareSourceAutoSwitchStateProto.internal_static_status_power_BusTieSpareSourceAutoSwitchState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.internal_static_status_power_BusTieSpareSourceAutoSwitchState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.class, club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.Builder.class); + } + + /** + *
+     *母联备自投 状态
+     * 
+ * + * Protobuf enum {@code status.power.BusTieSpareSourceAutoSwitchState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *备自投退出
+       * 
+ * + * SwitchingOff = 0; + */ + SwitchingOff(0), + /** + *
+       *备自投投入
+       * 
+ * + * SwitchingOn = 1; + */ + SwitchingOn(1), + /** + *
+       *通讯中断
+       * 
+ * + * CommunicationInterrupted = 2; + */ + CommunicationInterrupted(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       *备自投退出
+       * 
+ * + * SwitchingOff = 0; + */ + public static final int SwitchingOff_VALUE = 0; + /** + *
+       *备自投投入
+       * 
+ * + * SwitchingOn = 1; + */ + public static final int SwitchingOn_VALUE = 1; + /** + *
+       *通讯中断
+       * 
+ * + * CommunicationInterrupted = 2; + */ + public static final int CommunicationInterrupted_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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 SwitchingOff; + case 1: return SwitchingOn; + case 2: return CommunicationInterrupted; + 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.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.power.BusTieSpareSourceAutoSwitchState.State) + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + *
+     *表示哪个模型的状态
+     *BusTieSpareSourceAutoSwitchModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + *
+     *表示哪个模型的状态
+     *BusTieSpareSourceAutoSwitchModel
+     * 
+ * + * .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_; + } + /** + *
+     *表示哪个模型的状态
+     *BusTieSpareSourceAutoSwitchModel
+     * 
+ * + * .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.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     *母联备自投 状态
+     * 
+ * + * .status.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @return The state. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State result = club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State.SwitchingOff.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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State.SwitchingOff.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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState other = (club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState) 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState 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.power.BusTieSpareSourceAutoSwitchState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.power.BusTieSpareSourceAutoSwitchState) + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.internal_static_status_power_BusTieSpareSourceAutoSwitchState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.internal_static_status_power_BusTieSpareSourceAutoSwitchState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.class, club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.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.power.BusTieSpareSourceAutoSwitchStateProto.internal_static_status_power_BusTieSpareSourceAutoSwitchState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState build() { + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState result = new club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState(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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState) 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_; + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .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(); + } + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .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_; + } + } + /** + *
+       *表示哪个模型的状态
+       *BusTieSpareSourceAutoSwitchModel
+       * 
+ * + * .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.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+       *母联备自投 状态
+       * 
+ * + * .status.power.BusTieSpareSourceAutoSwitchState.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.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @return The state. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State getState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State result = club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State.valueOf(state_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State.UNRECOGNIZED : result; + } + /** + *
+       *母联备自投 状态
+       * 
+ * + * .status.power.BusTieSpareSourceAutoSwitchState.State state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       *母联备自投 状态
+       * 
+ * + * .status.power.BusTieSpareSourceAutoSwitchState.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.power.BusTieSpareSourceAutoSwitchState) + } + + // @@protoc_insertion_point(class_scope:status.power.BusTieSpareSourceAutoSwitchState) + private static final club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BusTieSpareSourceAutoSwitchState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BusTieSpareSourceAutoSwitchState(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.power.BusTieSpareSourceAutoSwitchStateProto.BusTieSpareSourceAutoSwitchState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_power_BusTieSpareSourceAutoSwitchState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_power_BusTieSpareSourceAutoSwitchState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3status/power/BusTieSpareSourceAutoSwit" + + "chState.proto\022\014status.power\032\025model/DataM" + + "odel.proto\"\324\001\n BusTieSpareSourceAutoSwit" + + "chState\022!\n\010modelRef\030\001 \001(\0132\017.model.ModelR" + + "ef\022C\n\005state\030\002 \001(\01624.status.power.BusTieS" + + "pareSourceAutoSwitchState.State\"H\n\005State" + + "\022\020\n\014SwitchingOff\020\000\022\017\n\013SwitchingOn\020\001\022\034\n\030C" + + "ommunicationInterrupted\020\002BX\n/club.joylin" + + "k.rtss.iscs.proto.model.status.powerB%Bu" + + "sTieSpareSourceAutoSwitchStateProtob\006pro" + + "to3" + }; + 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_power_BusTieSpareSourceAutoSwitchState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_power_BusTieSpareSourceAutoSwitchState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_power_BusTieSpareSourceAutoSwitchState_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/power/CircuitBreakerStateProto.java b/src/main/java/club/joylink/rtss/iscs/proto/model/status/power/CircuitBreakerStateProto.java new file mode 100644 index 000000000..8e0bb1eff --- /dev/null +++ b/src/main/java/club/joylink/rtss/iscs/proto/model/status/power/CircuitBreakerStateProto.java @@ -0,0 +1,1051 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: status/power/CircuitBreakerState.proto + +package club.joylink.rtss.iscs.proto.model.status.power; + +public final class CircuitBreakerStateProto { + private CircuitBreakerStateProto() {} + 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 CircuitBreakerStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:status.power.CircuitBreakerState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *表示哪个模型的状态
+     *CircuitBreakerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + boolean hasModelRef(); + /** + *
+     *表示哪个模型的状态
+     *CircuitBreakerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return The modelRef. + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef getModelRef(); + /** + *
+     *表示哪个模型的状态
+     *CircuitBreakerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + */ + club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder(); + + /** + *
+     *断路器状态
+     * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return The enum numeric value on the wire for deviceState. + */ + int getDeviceStateValue(); + /** + *
+     *断路器状态
+     * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return The deviceState. + */ + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState getDeviceState(); + } + /** + *
+   **
+   * 断路器状态
+   * 
+ * + * Protobuf type {@code status.power.CircuitBreakerState} + */ + public static final class CircuitBreakerState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:status.power.CircuitBreakerState) + CircuitBreakerStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use CircuitBreakerState.newBuilder() to construct. + private CircuitBreakerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CircuitBreakerState() { + deviceState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CircuitBreakerState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CircuitBreakerState( + 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(); + + deviceState_ = 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.power.CircuitBreakerStateProto.internal_static_status_power_CircuitBreakerState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.internal_static_status_power_CircuitBreakerState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.class, club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.Builder.class); + } + + /** + *
+     *断路器状态
+     * 
+ * + * Protobuf enum {@code status.power.CircuitBreakerState.CircuitBreakerDeviceState} + */ + public enum CircuitBreakerDeviceState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       *分闸
+       * 
+ * + * Opened = 0; + */ + Opened(0), + /** + *
+       *合闸
+       * 
+ * + * Closed = 1; + */ + Closed(1), + /** + *
+       *通信中断
+       * 
+ * + * CommunicationInterrupted = 2; + */ + CommunicationInterrupted(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       *分闸
+       * 
+ * + * Opened = 0; + */ + public static final int Opened_VALUE = 0; + /** + *
+       *合闸
+       * 
+ * + * Closed = 1; + */ + public static final int Closed_VALUE = 1; + /** + *
+       *通信中断
+       * 
+ * + * CommunicationInterrupted = 2; + */ + public static final int CommunicationInterrupted_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CircuitBreakerDeviceState 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 CircuitBreakerDeviceState forNumber(int value) { + switch (value) { + case 0: return Opened; + case 1: return Closed; + case 2: return CommunicationInterrupted; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CircuitBreakerDeviceState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CircuitBreakerDeviceState findValueByNumber(int number) { + return CircuitBreakerDeviceState.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.power.CircuitBreakerStateProto.CircuitBreakerState.getDescriptor().getEnumTypes().get(0); + } + + private static final CircuitBreakerDeviceState[] VALUES = values(); + + public static CircuitBreakerDeviceState 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 CircuitBreakerDeviceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:status.power.CircuitBreakerState.CircuitBreakerDeviceState) + } + + public static final int MODELREF_FIELD_NUMBER = 1; + private club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef modelRef_; + /** + *
+     *表示哪个模型的状态
+     *CircuitBreakerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + @java.lang.Override + public boolean hasModelRef() { + return modelRef_ != null; + } + /** + *
+     *表示哪个模型的状态
+     *CircuitBreakerModel
+     * 
+ * + * .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_; + } + /** + *
+     *表示哪个模型的状态
+     *CircuitBreakerModel
+     * 
+ * + * .model.ModelRef modelRef = 1; + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRefOrBuilder getModelRefOrBuilder() { + return getModelRef(); + } + + public static final int DEVICESTATE_FIELD_NUMBER = 2; + private int deviceState_; + /** + *
+     *断路器状态
+     * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return The enum numeric value on the wire for deviceState. + */ + @java.lang.Override public int getDeviceStateValue() { + return deviceState_; + } + /** + *
+     *断路器状态
+     * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return The deviceState. + */ + @java.lang.Override public club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState getDeviceState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState result = club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState.valueOf(deviceState_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState.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 (deviceState_ != club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState.Opened.getNumber()) { + output.writeEnum(2, deviceState_); + } + 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 (deviceState_ != club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState.Opened.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, deviceState_); + } + 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.power.CircuitBreakerStateProto.CircuitBreakerState)) { + return super.equals(obj); + } + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState other = (club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState) obj; + + if (hasModelRef() != other.hasModelRef()) return false; + if (hasModelRef()) { + if (!getModelRef() + .equals(other.getModelRef())) return false; + } + if (deviceState_ != other.deviceState_) 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) + DEVICESTATE_FIELD_NUMBER; + hash = (53 * hash) + deviceState_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerStateProto.CircuitBreakerState 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.power.CircuitBreakerState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:status.power.CircuitBreakerState) + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.internal_static_status_power_CircuitBreakerState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.internal_static_status_power_CircuitBreakerState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.class, club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.Builder.class); + } + + // Construct using club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.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; + } + deviceState_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.internal_static_status_power_CircuitBreakerState_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState getDefaultInstanceForType() { + return club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState build() { + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState buildPartial() { + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState result = new club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState(this); + if (modelRefBuilder_ == null) { + result.modelRef_ = modelRef_; + } else { + result.modelRef_ = modelRefBuilder_.build(); + } + result.deviceState_ = deviceState_; + 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.power.CircuitBreakerStateProto.CircuitBreakerState) { + return mergeFrom((club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState other) { + if (other == club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.getDefaultInstance()) return this; + if (other.hasModelRef()) { + mergeModelRef(other.getModelRef()); + } + if (other.deviceState_ != 0) { + setDeviceStateValue(other.getDeviceStateValue()); + } + 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.power.CircuitBreakerStateProto.CircuitBreakerState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState) 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_; + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + * @return Whether the modelRef field is set. + */ + public boolean hasModelRef() { + return modelRefBuilder_ != null || modelRef_ != null; + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .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(); + } + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .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; + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public Builder clearModelRef() { + if (modelRefBuilder_ == null) { + modelRef_ = null; + onChanged(); + } else { + modelRef_ = null; + modelRefBuilder_ = null; + } + + return this; + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .model.ModelRef modelRef = 1; + */ + public club.joylink.rtss.iscs.proto.model.data.DataModelProto.ModelRef.Builder getModelRefBuilder() { + + onChanged(); + return getModelRefFieldBuilder().getBuilder(); + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .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_; + } + } + /** + *
+       *表示哪个模型的状态
+       *CircuitBreakerModel
+       * 
+ * + * .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 deviceState_ = 0; + /** + *
+       *断路器状态
+       * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return The enum numeric value on the wire for deviceState. + */ + @java.lang.Override public int getDeviceStateValue() { + return deviceState_; + } + /** + *
+       *断路器状态
+       * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @param value The enum numeric value on the wire for deviceState to set. + * @return This builder for chaining. + */ + public Builder setDeviceStateValue(int value) { + + deviceState_ = value; + onChanged(); + return this; + } + /** + *
+       *断路器状态
+       * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return The deviceState. + */ + @java.lang.Override + public club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState getDeviceState() { + @SuppressWarnings("deprecation") + club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState result = club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState.valueOf(deviceState_); + return result == null ? club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState.UNRECOGNIZED : result; + } + /** + *
+       *断路器状态
+       * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @param value The deviceState to set. + * @return This builder for chaining. + */ + public Builder setDeviceState(club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState.CircuitBreakerDeviceState value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceState_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       *断路器状态
+       * 
+ * + * .status.power.CircuitBreakerState.CircuitBreakerDeviceState deviceState = 2; + * @return This builder for chaining. + */ + public Builder clearDeviceState() { + + deviceState_ = 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.power.CircuitBreakerState) + } + + // @@protoc_insertion_point(class_scope:status.power.CircuitBreakerState) + private static final club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState(); + } + + public static club.joylink.rtss.iscs.proto.model.status.power.CircuitBreakerStateProto.CircuitBreakerState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CircuitBreakerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CircuitBreakerState(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.power.CircuitBreakerStateProto.CircuitBreakerState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_status_power_CircuitBreakerState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_status_power_CircuitBreakerState_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/power/CircuitBreakerState.proto" + + "\022\014status.power\032\025model/DataModel.proto\"\335\001" + + "\n\023CircuitBreakerState\022!\n\010modelRef\030\001 \001(\0132" + + "\017.model.ModelRef\022P\n\013deviceState\030\002 \001(\0162;." + + "status.power.CircuitBreakerState.Circuit" + + "BreakerDeviceState\"Q\n\031CircuitBreakerDevi" + + "ceState\022\n\n\006Opened\020\000\022\n\n\006Closed\020\001\022\034\n\030Commu" + + "nicationInterrupted\020\002BK\n/club.joylink.rt" + + "ss.iscs.proto.model.status.powerB\030Circui" + + "tBreakerStateProtob\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_power_CircuitBreakerState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_status_power_CircuitBreakerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_status_power_CircuitBreakerState_descriptor, + new java.lang.String[] { "ModelRef", "DeviceState", }); + club.joylink.rtss.iscs.proto.model.data.DataModelProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}