/** * Tencent is pleased to support the open source community by making MSEC available. * * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the GNU General Public License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may * obtain a copy of the License at * * https://opensource.org/licenses/GPL-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: monitor.proto package ngse.monitor; public final class Monitor { private Monitor() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } /** * Protobuf enum {@code ngse.monitor.AlarmType} */ public enum AlarmType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>ALARM_MAX = 1;</code> */ ALARM_MAX(0, 1), /** * <code>ALARM_MIN = 2;</code> */ ALARM_MIN(1, 2), /** * <code>ALARM_DIFF = 3;</code> */ ALARM_DIFF(2, 3), /** * <code>ALARM_DIFF_PERCENT = 4;</code> */ ALARM_DIFF_PERCENT(3, 4), ; /** * <code>ALARM_MAX = 1;</code> */ public static final int ALARM_MAX_VALUE = 1; /** * <code>ALARM_MIN = 2;</code> */ public static final int ALARM_MIN_VALUE = 2; /** * <code>ALARM_DIFF = 3;</code> */ public static final int ALARM_DIFF_VALUE = 3; /** * <code>ALARM_DIFF_PERCENT = 4;</code> */ public static final int ALARM_DIFF_PERCENT_VALUE = 4; public final int getNumber() { return value; } public static AlarmType valueOf(int value) { switch (value) { case 1: return ALARM_MAX; case 2: return ALARM_MIN; case 3: return ALARM_DIFF; case 4: return ALARM_DIFF_PERCENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<AlarmType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<AlarmType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<AlarmType>() { public AlarmType findValueByNumber(int number) { return AlarmType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ngse.monitor.Monitor.getDescriptor().getEnumTypes().get(0); } private static final AlarmType[] VALUES = values(); public static AlarmType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private AlarmType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:ngse.monitor.AlarmType) } public interface AttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.Attr) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>repeated uint32 values = 3;</code> */ java.util.List<java.lang.Integer> getValuesList(); /** * <code>repeated uint32 values = 3;</code> */ int getValuesCount(); /** * <code>repeated uint32 values = 3;</code> */ int getValues(int index); /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ boolean hasBeginTime(); /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ int getBeginTime(); /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ boolean hasEndTime(); /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ int getEndTime(); } /** * Protobuf type {@code ngse.monitor.Attr} * * <pre> *set function * </pre> */ public static final class Attr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.Attr) AttrOrBuilder { // Use Attr.newBuilder() to construct. private Attr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Attr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Attr defaultInstance; public static Attr getDefaultInstance() { return defaultInstance; } public Attr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Attr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } values_.add(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { values_.add(input.readUInt32()); } input.popLimit(limit); break; } case 32: { bitField0_ |= 0x00000004; beginTime_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000008; endTime_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Attr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.Attr.class, ngse.monitor.Monitor.Attr.Builder.class); } public static com.google.protobuf.Parser<Attr> PARSER = new com.google.protobuf.AbstractParser<Attr>() { public Attr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Attr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Attr> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> values_; /** * <code>repeated uint32 values = 3;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return values_; } /** * <code>repeated uint32 values = 3;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 3;</code> */ public int getValues(int index) { return values_.get(index); } public static final int BEGIN_TIME_FIELD_NUMBER = 4; private int beginTime_; /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ public boolean hasBeginTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ public int getBeginTime() { return beginTime_; } public static final int END_TIME_FIELD_NUMBER = 5; private int endTime_; /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ public boolean hasEndTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ public int getEndTime() { return endTime_; } private void initFields() { servicename_ = ""; attrname_ = ""; values_ = java.util.Collections.emptyList(); beginTime_ = 0; endTime_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } for (int i = 0; i < values_.size(); i++) { output.writeUInt32(3, values_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(4, beginTime_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, endTime_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, beginTime_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, endTime_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.Attr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.Attr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.Attr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.Attr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.Attr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.Attr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.Attr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.Attr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.Attr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.Attr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.Attr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.Attr} * * <pre> *set function * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.Attr) ngse.monitor.Monitor.AttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Attr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.Attr.class, ngse.monitor.Monitor.Attr.Builder.class); } // Construct using ngse.monitor.Monitor.Attr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); beginTime_ = 0; bitField0_ = (bitField0_ & ~0x00000008); endTime_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Attr_descriptor; } public ngse.monitor.Monitor.Attr getDefaultInstanceForType() { return ngse.monitor.Monitor.Attr.getDefaultInstance(); } public ngse.monitor.Monitor.Attr build() { ngse.monitor.Monitor.Attr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.Attr buildPartial() { ngse.monitor.Monitor.Attr result = new ngse.monitor.Monitor.Attr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.beginTime_ = beginTime_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.endTime_ = endTime_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.Attr) { return mergeFrom((ngse.monitor.Monitor.Attr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.Attr other) { if (other == ngse.monitor.Monitor.Attr.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } if (other.hasBeginTime()) { setBeginTime(other.getBeginTime()); } if (other.hasEndTime()) { setEndTime(other.getEndTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.Attr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.Attr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } private java.util.List<java.lang.Integer> values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList<java.lang.Integer>(values_); bitField0_ |= 0x00000004; } } /** * <code>repeated uint32 values = 3;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return java.util.Collections.unmodifiableList(values_); } /** * <code>repeated uint32 values = 3;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 3;</code> */ public int getValues(int index) { return values_.get(index); } /** * <code>repeated uint32 values = 3;</code> */ public Builder setValues( int index, int value) { ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder addValues(int value) { ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder addAllValues( java.lang.Iterable<? extends java.lang.Integer> values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private int beginTime_ ; /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ public boolean hasBeginTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ public int getBeginTime() { return beginTime_; } /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ public Builder setBeginTime(int value) { bitField0_ |= 0x00000008; beginTime_ = value; onChanged(); return this; } /** * <code>optional uint32 begin_time = 4;</code> * * <pre> *上报开始时间 * </pre> */ public Builder clearBeginTime() { bitField0_ = (bitField0_ & ~0x00000008); beginTime_ = 0; onChanged(); return this; } private int endTime_ ; /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ public int getEndTime() { return endTime_; } /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ public Builder setEndTime(int value) { bitField0_ |= 0x00000010; endTime_ = value; onChanged(); return this; } /** * <code>optional uint32 end_time = 5;</code> * * <pre> *上报结束时间 * </pre> */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000010); endTime_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.Attr) } static { defaultInstance = new Attr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.Attr) } public interface ReqReportOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqReport) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ java.util.List<ngse.monitor.Monitor.Attr> getAttrsList(); /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ ngse.monitor.Monitor.Attr getAttrs(int index); /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ int getAttrsCount(); /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ java.util.List<? extends ngse.monitor.Monitor.AttrOrBuilder> getAttrsOrBuilderList(); /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ ngse.monitor.Monitor.AttrOrBuilder getAttrsOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.ReqReport} * * <pre> *上报协议 * </pre> */ public static final class ReqReport extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqReport) ReqReportOrBuilder { // Use ReqReport.newBuilder() to construct. private ReqReport(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqReport(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqReport defaultInstance; public static ReqReport getDefaultInstance() { return defaultInstance; } public ReqReport getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqReport( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attrs_ = new java.util.ArrayList<ngse.monitor.Monitor.Attr>(); mutable_bitField0_ |= 0x00000001; } attrs_.add(input.readMessage(ngse.monitor.Monitor.Attr.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attrs_ = java.util.Collections.unmodifiableList(attrs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqReport_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqReport_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqReport.class, ngse.monitor.Monitor.ReqReport.Builder.class); } public static com.google.protobuf.Parser<ReqReport> PARSER = new com.google.protobuf.AbstractParser<ReqReport>() { public ReqReport parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqReport(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqReport> getParserForType() { return PARSER; } public static final int ATTRS_FIELD_NUMBER = 1; private java.util.List<ngse.monitor.Monitor.Attr> attrs_; /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public java.util.List<ngse.monitor.Monitor.Attr> getAttrsList() { return attrs_; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AttrOrBuilder> getAttrsOrBuilderList() { return attrs_; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public int getAttrsCount() { return attrs_.size(); } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.Attr getAttrs(int index) { return attrs_.get(index); } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.AttrOrBuilder getAttrsOrBuilder( int index) { return attrs_.get(index); } private void initFields() { attrs_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < attrs_.size(); i++) { output.writeMessage(1, attrs_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < attrs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, attrs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqReport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqReport parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqReport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqReport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqReport parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqReport prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqReport} * * <pre> *上报协议 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqReport) ngse.monitor.Monitor.ReqReportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqReport_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqReport_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqReport.class, ngse.monitor.Monitor.ReqReport.Builder.class); } // Construct using ngse.monitor.Monitor.ReqReport.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAttrsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (attrsBuilder_ == null) { attrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { attrsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqReport_descriptor; } public ngse.monitor.Monitor.ReqReport getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqReport.getDefaultInstance(); } public ngse.monitor.Monitor.ReqReport build() { ngse.monitor.Monitor.ReqReport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqReport buildPartial() { ngse.monitor.Monitor.ReqReport result = new ngse.monitor.Monitor.ReqReport(this); int from_bitField0_ = bitField0_; if (attrsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { attrs_ = java.util.Collections.unmodifiableList(attrs_); bitField0_ = (bitField0_ & ~0x00000001); } result.attrs_ = attrs_; } else { result.attrs_ = attrsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqReport) { return mergeFrom((ngse.monitor.Monitor.ReqReport)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqReport other) { if (other == ngse.monitor.Monitor.ReqReport.getDefaultInstance()) return this; if (attrsBuilder_ == null) { if (!other.attrs_.isEmpty()) { if (attrs_.isEmpty()) { attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttrsIsMutable(); attrs_.addAll(other.attrs_); } onChanged(); } } else { if (!other.attrs_.isEmpty()) { if (attrsBuilder_.isEmpty()) { attrsBuilder_.dispose(); attrsBuilder_ = null; attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000001); attrsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttrsFieldBuilder() : null; } else { attrsBuilder_.addAllMessages(other.attrs_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqReport parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqReport) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ngse.monitor.Monitor.Attr> attrs_ = java.util.Collections.emptyList(); private void ensureAttrsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { attrs_ = new java.util.ArrayList<ngse.monitor.Monitor.Attr>(attrs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.Attr, ngse.monitor.Monitor.Attr.Builder, ngse.monitor.Monitor.AttrOrBuilder> attrsBuilder_; /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public java.util.List<ngse.monitor.Monitor.Attr> getAttrsList() { if (attrsBuilder_ == null) { return java.util.Collections.unmodifiableList(attrs_); } else { return attrsBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public int getAttrsCount() { if (attrsBuilder_ == null) { return attrs_.size(); } else { return attrsBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.Attr getAttrs(int index) { if (attrsBuilder_ == null) { return attrs_.get(index); } else { return attrsBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder setAttrs( int index, ngse.monitor.Monitor.Attr value) { if (attrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.set(index, value); onChanged(); } else { attrsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder setAttrs( int index, ngse.monitor.Monitor.Attr.Builder builderForValue) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.set(index, builderForValue.build()); onChanged(); } else { attrsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder addAttrs(ngse.monitor.Monitor.Attr value) { if (attrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.add(value); onChanged(); } else { attrsBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder addAttrs( int index, ngse.monitor.Monitor.Attr value) { if (attrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.add(index, value); onChanged(); } else { attrsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder addAttrs( ngse.monitor.Monitor.Attr.Builder builderForValue) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.add(builderForValue.build()); onChanged(); } else { attrsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder addAttrs( int index, ngse.monitor.Monitor.Attr.Builder builderForValue) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.add(index, builderForValue.build()); onChanged(); } else { attrsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder addAllAttrs( java.lang.Iterable<? extends ngse.monitor.Monitor.Attr> values) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attrs_); onChanged(); } else { attrsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder clearAttrs() { if (attrsBuilder_ == null) { attrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { attrsBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public Builder removeAttrs(int index) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.remove(index); onChanged(); } else { attrsBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.Attr.Builder getAttrsBuilder( int index) { return getAttrsFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.AttrOrBuilder getAttrsOrBuilder( int index) { if (attrsBuilder_ == null) { return attrs_.get(index); } else { return attrsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AttrOrBuilder> getAttrsOrBuilderList() { if (attrsBuilder_ != null) { return attrsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attrs_); } } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.Attr.Builder addAttrsBuilder() { return getAttrsFieldBuilder().addBuilder( ngse.monitor.Monitor.Attr.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public ngse.monitor.Monitor.Attr.Builder addAttrsBuilder( int index) { return getAttrsFieldBuilder().addBuilder( index, ngse.monitor.Monitor.Attr.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.Attr attrs = 1;</code> */ public java.util.List<ngse.monitor.Monitor.Attr.Builder> getAttrsBuilderList() { return getAttrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.Attr, ngse.monitor.Monitor.Attr.Builder, ngse.monitor.Monitor.AttrOrBuilder> getAttrsFieldBuilder() { if (attrsBuilder_ == null) { attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.Attr, ngse.monitor.Monitor.Attr.Builder, ngse.monitor.Monitor.AttrOrBuilder>( attrs_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); attrs_ = null; } return attrsBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqReport) } static { defaultInstance = new ReqReport(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqReport) } public interface RespReportOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespReport) com.google.protobuf.MessageOrBuilder { /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ boolean hasResult(); /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ int getResult(); } /** * Protobuf type {@code ngse.monitor.RespReport} */ public static final class RespReport extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespReport) RespReportOrBuilder { // Use RespReport.newBuilder() to construct. private RespReport(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespReport(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespReport defaultInstance; public static RespReport getDefaultInstance() { return defaultInstance; } public RespReport getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespReport( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; result_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespReport_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespReport_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespReport.class, ngse.monitor.Monitor.RespReport.Builder.class); } public static com.google.protobuf.Parser<RespReport> PARSER = new com.google.protobuf.AbstractParser<RespReport>() { public RespReport parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespReport(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespReport> getParserForType() { return PARSER; } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private int result_; /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public boolean hasResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public int getResult() { return result_; } private void initFields() { result_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, result_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, result_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespReport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespReport parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespReport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespReport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespReport parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespReport prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespReport} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespReport) ngse.monitor.Monitor.RespReportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespReport_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespReport_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespReport.class, ngse.monitor.Monitor.RespReport.Builder.class); } // Construct using ngse.monitor.Monitor.RespReport.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); result_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespReport_descriptor; } public ngse.monitor.Monitor.RespReport getDefaultInstanceForType() { return ngse.monitor.Monitor.RespReport.getDefaultInstance(); } public ngse.monitor.Monitor.RespReport build() { ngse.monitor.Monitor.RespReport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespReport buildPartial() { ngse.monitor.Monitor.RespReport result = new ngse.monitor.Monitor.RespReport(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.result_ = result_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespReport) { return mergeFrom((ngse.monitor.Monitor.RespReport)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespReport other) { if (other == ngse.monitor.Monitor.RespReport.getDefaultInstance()) return this; if (other.hasResult()) { setResult(other.getResult()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespReport parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespReport) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int result_ ; /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public boolean hasResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public int getResult() { return result_; } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public Builder setResult(int value) { bitField0_ |= 0x00000001; result_ = value; onChanged(); return this; } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); result_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespReport) } static { defaultInstance = new RespReport(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespReport) } public interface ReqMonitorOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqMonitor) com.google.protobuf.MessageOrBuilder { /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ boolean hasService(); /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ ngse.monitor.Monitor.ReqService getService(); /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ ngse.monitor.Monitor.ReqServiceOrBuilder getServiceOrBuilder(); /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ boolean hasServiceattr(); /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ ngse.monitor.Monitor.ReqServiceAttr getServiceattr(); /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ ngse.monitor.Monitor.ReqServiceAttrOrBuilder getServiceattrOrBuilder(); /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ boolean hasAttrip(); /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ ngse.monitor.Monitor.ReqAttrIP getAttrip(); /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ ngse.monitor.Monitor.ReqAttrIPOrBuilder getAttripOrBuilder(); /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ boolean hasIp(); /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ ngse.monitor.Monitor.ReqIP getIp(); /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ ngse.monitor.Monitor.ReqIPOrBuilder getIpOrBuilder(); /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ boolean hasIpattr(); /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ ngse.monitor.Monitor.ReqIPAttr getIpattr(); /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ ngse.monitor.Monitor.ReqIPAttrOrBuilder getIpattrOrBuilder(); /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ boolean hasSetalarmattr(); /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ ngse.monitor.Monitor.ReqSetAlarmAttr getSetalarmattr(); /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder getSetalarmattrOrBuilder(); /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ boolean hasDelalarmattr(); /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ ngse.monitor.Monitor.ReqDelAlarmAttr getDelalarmattr(); /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder getDelalarmattrOrBuilder(); /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ boolean hasNewalarm(); /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ ngse.monitor.Monitor.ReqNewestAlarm getNewalarm(); /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ ngse.monitor.Monitor.ReqNewestAlarmOrBuilder getNewalarmOrBuilder(); /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ boolean hasDelalarm(); /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ ngse.monitor.Monitor.ReqDelAlarm getDelalarm(); /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ ngse.monitor.Monitor.ReqDelAlarmOrBuilder getDelalarmOrBuilder(); } /** * Protobuf type {@code ngse.monitor.ReqMonitor} * * <pre> *get function *读取监控数据协议 * </pre> */ public static final class ReqMonitor extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqMonitor) ReqMonitorOrBuilder { // Use ReqMonitor.newBuilder() to construct. private ReqMonitor(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqMonitor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqMonitor defaultInstance; public static ReqMonitor getDefaultInstance() { return defaultInstance; } public ReqMonitor getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqMonitor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { ngse.monitor.Monitor.ReqService.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = service_.toBuilder(); } service_ = input.readMessage(ngse.monitor.Monitor.ReqService.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(service_); service_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { ngse.monitor.Monitor.ReqServiceAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = serviceattr_.toBuilder(); } serviceattr_ = input.readMessage(ngse.monitor.Monitor.ReqServiceAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serviceattr_); serviceattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { ngse.monitor.Monitor.ReqAttrIP.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = attrip_.toBuilder(); } attrip_ = input.readMessage(ngse.monitor.Monitor.ReqAttrIP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attrip_); attrip_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { ngse.monitor.Monitor.ReqIP.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = ip_.toBuilder(); } ip_ = input.readMessage(ngse.monitor.Monitor.ReqIP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ip_); ip_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { ngse.monitor.Monitor.ReqIPAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = ipattr_.toBuilder(); } ipattr_ = input.readMessage(ngse.monitor.Monitor.ReqIPAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ipattr_); ipattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 162: { ngse.monitor.Monitor.ReqSetAlarmAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = setalarmattr_.toBuilder(); } setalarmattr_ = input.readMessage(ngse.monitor.Monitor.ReqSetAlarmAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(setalarmattr_); setalarmattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 170: { ngse.monitor.Monitor.ReqDelAlarmAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = delalarmattr_.toBuilder(); } delalarmattr_ = input.readMessage(ngse.monitor.Monitor.ReqDelAlarmAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delalarmattr_); delalarmattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 178: { ngse.monitor.Monitor.ReqNewestAlarm.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = newalarm_.toBuilder(); } newalarm_ = input.readMessage(ngse.monitor.Monitor.ReqNewestAlarm.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(newalarm_); newalarm_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 186: { ngse.monitor.Monitor.ReqDelAlarm.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = delalarm_.toBuilder(); } delalarm_ = input.readMessage(ngse.monitor.Monitor.ReqDelAlarm.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delalarm_); delalarm_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqMonitor_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqMonitor_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqMonitor.class, ngse.monitor.Monitor.ReqMonitor.Builder.class); } public static com.google.protobuf.Parser<ReqMonitor> PARSER = new com.google.protobuf.AbstractParser<ReqMonitor>() { public ReqMonitor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqMonitor(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqMonitor> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICE_FIELD_NUMBER = 1; private ngse.monitor.Monitor.ReqService service_; /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqService getService() { return service_; } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqServiceOrBuilder getServiceOrBuilder() { return service_; } public static final int SERVICEATTR_FIELD_NUMBER = 2; private ngse.monitor.Monitor.ReqServiceAttr serviceattr_; /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public boolean hasServiceattr() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public ngse.monitor.Monitor.ReqServiceAttr getServiceattr() { return serviceattr_; } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public ngse.monitor.Monitor.ReqServiceAttrOrBuilder getServiceattrOrBuilder() { return serviceattr_; } public static final int ATTRIP_FIELD_NUMBER = 3; private ngse.monitor.Monitor.ReqAttrIP attrip_; /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public boolean hasAttrip() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqAttrIP getAttrip() { return attrip_; } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqAttrIPOrBuilder getAttripOrBuilder() { return attrip_; } public static final int IP_FIELD_NUMBER = 4; private ngse.monitor.Monitor.ReqIP ip_; /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public boolean hasIp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqIP getIp() { return ip_; } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqIPOrBuilder getIpOrBuilder() { return ip_; } public static final int IPATTR_FIELD_NUMBER = 5; private ngse.monitor.Monitor.ReqIPAttr ipattr_; /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public boolean hasIpattr() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqIPAttr getIpattr() { return ipattr_; } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqIPAttrOrBuilder getIpattrOrBuilder() { return ipattr_; } public static final int SETALARMATTR_FIELD_NUMBER = 20; private ngse.monitor.Monitor.ReqSetAlarmAttr setalarmattr_; /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public boolean hasSetalarmattr() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.ReqSetAlarmAttr getSetalarmattr() { return setalarmattr_; } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder getSetalarmattrOrBuilder() { return setalarmattr_; } public static final int DELALARMATTR_FIELD_NUMBER = 21; private ngse.monitor.Monitor.ReqDelAlarmAttr delalarmattr_; /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public boolean hasDelalarmattr() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmAttr getDelalarmattr() { return delalarmattr_; } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder getDelalarmattrOrBuilder() { return delalarmattr_; } public static final int NEWALARM_FIELD_NUMBER = 22; private ngse.monitor.Monitor.ReqNewestAlarm newalarm_; /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public boolean hasNewalarm() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public ngse.monitor.Monitor.ReqNewestAlarm getNewalarm() { return newalarm_; } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public ngse.monitor.Monitor.ReqNewestAlarmOrBuilder getNewalarmOrBuilder() { return newalarm_; } public static final int DELALARM_FIELD_NUMBER = 23; private ngse.monitor.Monitor.ReqDelAlarm delalarm_; /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public boolean hasDelalarm() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarm getDelalarm() { return delalarm_; } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmOrBuilder getDelalarmOrBuilder() { return delalarm_; } private void initFields() { service_ = ngse.monitor.Monitor.ReqService.getDefaultInstance(); serviceattr_ = ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance(); attrip_ = ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance(); ip_ = ngse.monitor.Monitor.ReqIP.getDefaultInstance(); ipattr_ = ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance(); setalarmattr_ = ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance(); delalarmattr_ = ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance(); newalarm_ = ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance(); delalarm_ = ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, service_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, serviceattr_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, attrip_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, ip_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, ipattr_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(20, setalarmattr_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(21, delalarmattr_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(22, newalarm_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(23, delalarm_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, service_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, serviceattr_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, attrip_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, ip_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, ipattr_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, setalarmattr_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, delalarmattr_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, newalarm_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, delalarm_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqMonitor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqMonitor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqMonitor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqMonitor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqMonitor parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqMonitor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqMonitor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqMonitor parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqMonitor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqMonitor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqMonitor prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqMonitor} * * <pre> *get function *读取监控数据协议 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqMonitor) ngse.monitor.Monitor.ReqMonitorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqMonitor_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqMonitor_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqMonitor.class, ngse.monitor.Monitor.ReqMonitor.Builder.class); } // Construct using ngse.monitor.Monitor.ReqMonitor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getServiceFieldBuilder(); getServiceattrFieldBuilder(); getAttripFieldBuilder(); getIpFieldBuilder(); getIpattrFieldBuilder(); getSetalarmattrFieldBuilder(); getDelalarmattrFieldBuilder(); getNewalarmFieldBuilder(); getDelalarmFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (serviceBuilder_ == null) { service_ = ngse.monitor.Monitor.ReqService.getDefaultInstance(); } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (serviceattrBuilder_ == null) { serviceattr_ = ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance(); } else { serviceattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (attripBuilder_ == null) { attrip_ = ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance(); } else { attripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (ipBuilder_ == null) { ip_ = ngse.monitor.Monitor.ReqIP.getDefaultInstance(); } else { ipBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (ipattrBuilder_ == null) { ipattr_ = ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance(); } else { ipattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (setalarmattrBuilder_ == null) { setalarmattr_ = ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance(); } else { setalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (delalarmattrBuilder_ == null) { delalarmattr_ = ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance(); } else { delalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (newalarmBuilder_ == null) { newalarm_ = ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance(); } else { newalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (delalarmBuilder_ == null) { delalarm_ = ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance(); } else { delalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqMonitor_descriptor; } public ngse.monitor.Monitor.ReqMonitor getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqMonitor.getDefaultInstance(); } public ngse.monitor.Monitor.ReqMonitor build() { ngse.monitor.Monitor.ReqMonitor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqMonitor buildPartial() { ngse.monitor.Monitor.ReqMonitor result = new ngse.monitor.Monitor.ReqMonitor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (serviceattrBuilder_ == null) { result.serviceattr_ = serviceattr_; } else { result.serviceattr_ = serviceattrBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (attripBuilder_ == null) { result.attrip_ = attrip_; } else { result.attrip_ = attripBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (ipBuilder_ == null) { result.ip_ = ip_; } else { result.ip_ = ipBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (ipattrBuilder_ == null) { result.ipattr_ = ipattr_; } else { result.ipattr_ = ipattrBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (setalarmattrBuilder_ == null) { result.setalarmattr_ = setalarmattr_; } else { result.setalarmattr_ = setalarmattrBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (delalarmattrBuilder_ == null) { result.delalarmattr_ = delalarmattr_; } else { result.delalarmattr_ = delalarmattrBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (newalarmBuilder_ == null) { result.newalarm_ = newalarm_; } else { result.newalarm_ = newalarmBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (delalarmBuilder_ == null) { result.delalarm_ = delalarm_; } else { result.delalarm_ = delalarmBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqMonitor) { return mergeFrom((ngse.monitor.Monitor.ReqMonitor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqMonitor other) { if (other == ngse.monitor.Monitor.ReqMonitor.getDefaultInstance()) return this; if (other.hasService()) { mergeService(other.getService()); } if (other.hasServiceattr()) { mergeServiceattr(other.getServiceattr()); } if (other.hasAttrip()) { mergeAttrip(other.getAttrip()); } if (other.hasIp()) { mergeIp(other.getIp()); } if (other.hasIpattr()) { mergeIpattr(other.getIpattr()); } if (other.hasSetalarmattr()) { mergeSetalarmattr(other.getSetalarmattr()); } if (other.hasDelalarmattr()) { mergeDelalarmattr(other.getDelalarmattr()); } if (other.hasNewalarm()) { mergeNewalarm(other.getNewalarm()); } if (other.hasDelalarm()) { mergeDelalarm(other.getDelalarm()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqMonitor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqMonitor) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private ngse.monitor.Monitor.ReqService service_ = ngse.monitor.Monitor.ReqService.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqService, ngse.monitor.Monitor.ReqService.Builder, ngse.monitor.Monitor.ReqServiceOrBuilder> serviceBuilder_; /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqService getService() { if (serviceBuilder_ == null) { return service_; } else { return serviceBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public Builder setService(ngse.monitor.Monitor.ReqService value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public Builder setService( ngse.monitor.Monitor.ReqService.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public Builder mergeService(ngse.monitor.Monitor.ReqService value) { if (serviceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && service_ != ngse.monitor.Monitor.ReqService.getDefaultInstance()) { service_ = ngse.monitor.Monitor.ReqService.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = ngse.monitor.Monitor.ReqService.getDefaultInstance(); onChanged(); } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqService.Builder getServiceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getServiceFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_; } } /** * <code>optional .ngse.monitor.ReqService service = 1;</code> * * <pre> *获取单个Service的属性和IP,可指定特定时间过滤无上报的属性 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqService, ngse.monitor.Monitor.ReqService.Builder, ngse.monitor.Monitor.ReqServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqService, ngse.monitor.Monitor.ReqService.Builder, ngse.monitor.Monitor.ReqServiceOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private ngse.monitor.Monitor.ReqServiceAttr serviceattr_ = ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqServiceAttr, ngse.monitor.Monitor.ReqServiceAttr.Builder, ngse.monitor.Monitor.ReqServiceAttrOrBuilder> serviceattrBuilder_; /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public boolean hasServiceattr() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public ngse.monitor.Monitor.ReqServiceAttr getServiceattr() { if (serviceattrBuilder_ == null) { return serviceattr_; } else { return serviceattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public Builder setServiceattr(ngse.monitor.Monitor.ReqServiceAttr value) { if (serviceattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceattr_ = value; onChanged(); } else { serviceattrBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public Builder setServiceattr( ngse.monitor.Monitor.ReqServiceAttr.Builder builderForValue) { if (serviceattrBuilder_ == null) { serviceattr_ = builderForValue.build(); onChanged(); } else { serviceattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public Builder mergeServiceattr(ngse.monitor.Monitor.ReqServiceAttr value) { if (serviceattrBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && serviceattr_ != ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance()) { serviceattr_ = ngse.monitor.Monitor.ReqServiceAttr.newBuilder(serviceattr_).mergeFrom(value).buildPartial(); } else { serviceattr_ = value; } onChanged(); } else { serviceattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public Builder clearServiceattr() { if (serviceattrBuilder_ == null) { serviceattr_ = ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance(); onChanged(); } else { serviceattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public ngse.monitor.Monitor.ReqServiceAttr.Builder getServiceattrBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServiceattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public ngse.monitor.Monitor.ReqServiceAttrOrBuilder getServiceattrOrBuilder() { if (serviceattrBuilder_ != null) { return serviceattrBuilder_.getMessageOrBuilder(); } else { return serviceattr_; } } /** * <code>optional .ngse.monitor.ReqServiceAttr serviceattr = 2;</code> * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqServiceAttr, ngse.monitor.Monitor.ReqServiceAttr.Builder, ngse.monitor.Monitor.ReqServiceAttrOrBuilder> getServiceattrFieldBuilder() { if (serviceattrBuilder_ == null) { serviceattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqServiceAttr, ngse.monitor.Monitor.ReqServiceAttr.Builder, ngse.monitor.Monitor.ReqServiceAttrOrBuilder>( getServiceattr(), getParentForChildren(), isClean()); serviceattr_ = null; } return serviceattrBuilder_; } private ngse.monitor.Monitor.ReqAttrIP attrip_ = ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqAttrIP, ngse.monitor.Monitor.ReqAttrIP.Builder, ngse.monitor.Monitor.ReqAttrIPOrBuilder> attripBuilder_; /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public boolean hasAttrip() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqAttrIP getAttrip() { if (attripBuilder_ == null) { return attrip_; } else { return attripBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder setAttrip(ngse.monitor.Monitor.ReqAttrIP value) { if (attripBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attrip_ = value; onChanged(); } else { attripBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder setAttrip( ngse.monitor.Monitor.ReqAttrIP.Builder builderForValue) { if (attripBuilder_ == null) { attrip_ = builderForValue.build(); onChanged(); } else { attripBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder mergeAttrip(ngse.monitor.Monitor.ReqAttrIP value) { if (attripBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && attrip_ != ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance()) { attrip_ = ngse.monitor.Monitor.ReqAttrIP.newBuilder(attrip_).mergeFrom(value).buildPartial(); } else { attrip_ = value; } onChanged(); } else { attripBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder clearAttrip() { if (attripBuilder_ == null) { attrip_ = ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance(); onChanged(); } else { attripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqAttrIP.Builder getAttripBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAttripFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqAttrIPOrBuilder getAttripOrBuilder() { if (attripBuilder_ != null) { return attripBuilder_.getMessageOrBuilder(); } else { return attrip_; } } /** * <code>optional .ngse.monitor.ReqAttrIP attrip = 3;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqAttrIP, ngse.monitor.Monitor.ReqAttrIP.Builder, ngse.monitor.Monitor.ReqAttrIPOrBuilder> getAttripFieldBuilder() { if (attripBuilder_ == null) { attripBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqAttrIP, ngse.monitor.Monitor.ReqAttrIP.Builder, ngse.monitor.Monitor.ReqAttrIPOrBuilder>( getAttrip(), getParentForChildren(), isClean()); attrip_ = null; } return attripBuilder_; } private ngse.monitor.Monitor.ReqIP ip_ = ngse.monitor.Monitor.ReqIP.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqIP, ngse.monitor.Monitor.ReqIP.Builder, ngse.monitor.Monitor.ReqIPOrBuilder> ipBuilder_; /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public boolean hasIp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqIP getIp() { if (ipBuilder_ == null) { return ip_; } else { return ipBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public Builder setIp(ngse.monitor.Monitor.ReqIP value) { if (ipBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ip_ = value; onChanged(); } else { ipBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public Builder setIp( ngse.monitor.Monitor.ReqIP.Builder builderForValue) { if (ipBuilder_ == null) { ip_ = builderForValue.build(); onChanged(); } else { ipBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public Builder mergeIp(ngse.monitor.Monitor.ReqIP value) { if (ipBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && ip_ != ngse.monitor.Monitor.ReqIP.getDefaultInstance()) { ip_ = ngse.monitor.Monitor.ReqIP.newBuilder(ip_).mergeFrom(value).buildPartial(); } else { ip_ = value; } onChanged(); } else { ipBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public Builder clearIp() { if (ipBuilder_ == null) { ip_ = ngse.monitor.Monitor.ReqIP.getDefaultInstance(); onChanged(); } else { ipBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqIP.Builder getIpBuilder() { bitField0_ |= 0x00000008; onChanged(); return getIpFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ public ngse.monitor.Monitor.ReqIPOrBuilder getIpOrBuilder() { if (ipBuilder_ != null) { return ipBuilder_.getMessageOrBuilder(); } else { return ip_; } } /** * <code>optional .ngse.monitor.ReqIP ip = 4;</code> * * <pre> *获取单个IP的Service和属性,可指定特定时间过滤无上报的属性 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqIP, ngse.monitor.Monitor.ReqIP.Builder, ngse.monitor.Monitor.ReqIPOrBuilder> getIpFieldBuilder() { if (ipBuilder_ == null) { ipBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqIP, ngse.monitor.Monitor.ReqIP.Builder, ngse.monitor.Monitor.ReqIPOrBuilder>( getIp(), getParentForChildren(), isClean()); ip_ = null; } return ipBuilder_; } private ngse.monitor.Monitor.ReqIPAttr ipattr_ = ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqIPAttr, ngse.monitor.Monitor.ReqIPAttr.Builder, ngse.monitor.Monitor.ReqIPAttrOrBuilder> ipattrBuilder_; /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public boolean hasIpattr() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqIPAttr getIpattr() { if (ipattrBuilder_ == null) { return ipattr_; } else { return ipattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder setIpattr(ngse.monitor.Monitor.ReqIPAttr value) { if (ipattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ipattr_ = value; onChanged(); } else { ipattrBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder setIpattr( ngse.monitor.Monitor.ReqIPAttr.Builder builderForValue) { if (ipattrBuilder_ == null) { ipattr_ = builderForValue.build(); onChanged(); } else { ipattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder mergeIpattr(ngse.monitor.Monitor.ReqIPAttr value) { if (ipattrBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && ipattr_ != ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance()) { ipattr_ = ngse.monitor.Monitor.ReqIPAttr.newBuilder(ipattr_).mergeFrom(value).buildPartial(); } else { ipattr_ = value; } onChanged(); } else { ipattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public Builder clearIpattr() { if (ipattrBuilder_ == null) { ipattr_ = ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance(); onChanged(); } else { ipattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqIPAttr.Builder getIpattrBuilder() { bitField0_ |= 0x00000010; onChanged(); return getIpattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public ngse.monitor.Monitor.ReqIPAttrOrBuilder getIpattrOrBuilder() { if (ipattrBuilder_ != null) { return ipattrBuilder_.getMessageOrBuilder(); } else { return ipattr_; } } /** * <code>optional .ngse.monitor.ReqIPAttr ipattr = 5;</code> * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqIPAttr, ngse.monitor.Monitor.ReqIPAttr.Builder, ngse.monitor.Monitor.ReqIPAttrOrBuilder> getIpattrFieldBuilder() { if (ipattrBuilder_ == null) { ipattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqIPAttr, ngse.monitor.Monitor.ReqIPAttr.Builder, ngse.monitor.Monitor.ReqIPAttrOrBuilder>( getIpattr(), getParentForChildren(), isClean()); ipattr_ = null; } return ipattrBuilder_; } private ngse.monitor.Monitor.ReqSetAlarmAttr setalarmattr_ = ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqSetAlarmAttr, ngse.monitor.Monitor.ReqSetAlarmAttr.Builder, ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder> setalarmattrBuilder_; /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public boolean hasSetalarmattr() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.ReqSetAlarmAttr getSetalarmattr() { if (setalarmattrBuilder_ == null) { return setalarmattr_; } else { return setalarmattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder setSetalarmattr(ngse.monitor.Monitor.ReqSetAlarmAttr value) { if (setalarmattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setalarmattr_ = value; onChanged(); } else { setalarmattrBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder setSetalarmattr( ngse.monitor.Monitor.ReqSetAlarmAttr.Builder builderForValue) { if (setalarmattrBuilder_ == null) { setalarmattr_ = builderForValue.build(); onChanged(); } else { setalarmattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder mergeSetalarmattr(ngse.monitor.Monitor.ReqSetAlarmAttr value) { if (setalarmattrBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && setalarmattr_ != ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance()) { setalarmattr_ = ngse.monitor.Monitor.ReqSetAlarmAttr.newBuilder(setalarmattr_).mergeFrom(value).buildPartial(); } else { setalarmattr_ = value; } onChanged(); } else { setalarmattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder clearSetalarmattr() { if (setalarmattrBuilder_ == null) { setalarmattr_ = ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance(); onChanged(); } else { setalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.ReqSetAlarmAttr.Builder getSetalarmattrBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSetalarmattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder getSetalarmattrOrBuilder() { if (setalarmattrBuilder_ != null) { return setalarmattrBuilder_.getMessageOrBuilder(); } else { return setalarmattr_; } } /** * <code>optional .ngse.monitor.ReqSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqSetAlarmAttr, ngse.monitor.Monitor.ReqSetAlarmAttr.Builder, ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder> getSetalarmattrFieldBuilder() { if (setalarmattrBuilder_ == null) { setalarmattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqSetAlarmAttr, ngse.monitor.Monitor.ReqSetAlarmAttr.Builder, ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder>( getSetalarmattr(), getParentForChildren(), isClean()); setalarmattr_ = null; } return setalarmattrBuilder_; } private ngse.monitor.Monitor.ReqDelAlarmAttr delalarmattr_ = ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqDelAlarmAttr, ngse.monitor.Monitor.ReqDelAlarmAttr.Builder, ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder> delalarmattrBuilder_; /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public boolean hasDelalarmattr() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmAttr getDelalarmattr() { if (delalarmattrBuilder_ == null) { return delalarmattr_; } else { return delalarmattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public Builder setDelalarmattr(ngse.monitor.Monitor.ReqDelAlarmAttr value) { if (delalarmattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delalarmattr_ = value; onChanged(); } else { delalarmattrBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public Builder setDelalarmattr( ngse.monitor.Monitor.ReqDelAlarmAttr.Builder builderForValue) { if (delalarmattrBuilder_ == null) { delalarmattr_ = builderForValue.build(); onChanged(); } else { delalarmattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public Builder mergeDelalarmattr(ngse.monitor.Monitor.ReqDelAlarmAttr value) { if (delalarmattrBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && delalarmattr_ != ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance()) { delalarmattr_ = ngse.monitor.Monitor.ReqDelAlarmAttr.newBuilder(delalarmattr_).mergeFrom(value).buildPartial(); } else { delalarmattr_ = value; } onChanged(); } else { delalarmattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public Builder clearDelalarmattr() { if (delalarmattrBuilder_ == null) { delalarmattr_ = ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance(); onChanged(); } else { delalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmAttr.Builder getDelalarmattrBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDelalarmattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder getDelalarmattrOrBuilder() { if (delalarmattrBuilder_ != null) { return delalarmattrBuilder_.getMessageOrBuilder(); } else { return delalarmattr_; } } /** * <code>optional .ngse.monitor.ReqDelAlarmAttr delalarmattr = 21;</code> * * <pre> *删除单个告警项 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqDelAlarmAttr, ngse.monitor.Monitor.ReqDelAlarmAttr.Builder, ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder> getDelalarmattrFieldBuilder() { if (delalarmattrBuilder_ == null) { delalarmattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqDelAlarmAttr, ngse.monitor.Monitor.ReqDelAlarmAttr.Builder, ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder>( getDelalarmattr(), getParentForChildren(), isClean()); delalarmattr_ = null; } return delalarmattrBuilder_; } private ngse.monitor.Monitor.ReqNewestAlarm newalarm_ = ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqNewestAlarm, ngse.monitor.Monitor.ReqNewestAlarm.Builder, ngse.monitor.Monitor.ReqNewestAlarmOrBuilder> newalarmBuilder_; /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public boolean hasNewalarm() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public ngse.monitor.Monitor.ReqNewestAlarm getNewalarm() { if (newalarmBuilder_ == null) { return newalarm_; } else { return newalarmBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public Builder setNewalarm(ngse.monitor.Monitor.ReqNewestAlarm value) { if (newalarmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newalarm_ = value; onChanged(); } else { newalarmBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public Builder setNewalarm( ngse.monitor.Monitor.ReqNewestAlarm.Builder builderForValue) { if (newalarmBuilder_ == null) { newalarm_ = builderForValue.build(); onChanged(); } else { newalarmBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public Builder mergeNewalarm(ngse.monitor.Monitor.ReqNewestAlarm value) { if (newalarmBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && newalarm_ != ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance()) { newalarm_ = ngse.monitor.Monitor.ReqNewestAlarm.newBuilder(newalarm_).mergeFrom(value).buildPartial(); } else { newalarm_ = value; } onChanged(); } else { newalarmBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public Builder clearNewalarm() { if (newalarmBuilder_ == null) { newalarm_ = ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance(); onChanged(); } else { newalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public ngse.monitor.Monitor.ReqNewestAlarm.Builder getNewalarmBuilder() { bitField0_ |= 0x00000080; onChanged(); return getNewalarmFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ public ngse.monitor.Monitor.ReqNewestAlarmOrBuilder getNewalarmOrBuilder() { if (newalarmBuilder_ != null) { return newalarmBuilder_.getMessageOrBuilder(); } else { return newalarm_; } } /** * <code>optional .ngse.monitor.ReqNewestAlarm newalarm = 22;</code> * * <pre> *获取最新产生的告警,可指定获取特定服务的告警 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqNewestAlarm, ngse.monitor.Monitor.ReqNewestAlarm.Builder, ngse.monitor.Monitor.ReqNewestAlarmOrBuilder> getNewalarmFieldBuilder() { if (newalarmBuilder_ == null) { newalarmBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqNewestAlarm, ngse.monitor.Monitor.ReqNewestAlarm.Builder, ngse.monitor.Monitor.ReqNewestAlarmOrBuilder>( getNewalarm(), getParentForChildren(), isClean()); newalarm_ = null; } return newalarmBuilder_; } private ngse.monitor.Monitor.ReqDelAlarm delalarm_ = ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqDelAlarm, ngse.monitor.Monitor.ReqDelAlarm.Builder, ngse.monitor.Monitor.ReqDelAlarmOrBuilder> delalarmBuilder_; /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public boolean hasDelalarm() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarm getDelalarm() { if (delalarmBuilder_ == null) { return delalarm_; } else { return delalarmBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public Builder setDelalarm(ngse.monitor.Monitor.ReqDelAlarm value) { if (delalarmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delalarm_ = value; onChanged(); } else { delalarmBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public Builder setDelalarm( ngse.monitor.Monitor.ReqDelAlarm.Builder builderForValue) { if (delalarmBuilder_ == null) { delalarm_ = builderForValue.build(); onChanged(); } else { delalarmBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public Builder mergeDelalarm(ngse.monitor.Monitor.ReqDelAlarm value) { if (delalarmBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && delalarm_ != ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance()) { delalarm_ = ngse.monitor.Monitor.ReqDelAlarm.newBuilder(delalarm_).mergeFrom(value).buildPartial(); } else { delalarm_ = value; } onChanged(); } else { delalarmBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public Builder clearDelalarm() { if (delalarmBuilder_ == null) { delalarm_ = ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance(); onChanged(); } else { delalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarm.Builder getDelalarmBuilder() { bitField0_ |= 0x00000100; onChanged(); return getDelalarmFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ public ngse.monitor.Monitor.ReqDelAlarmOrBuilder getDelalarmOrBuilder() { if (delalarmBuilder_ != null) { return delalarmBuilder_.getMessageOrBuilder(); } else { return delalarm_; } } /** * <code>optional .ngse.monitor.ReqDelAlarm delalarm = 23;</code> * * <pre> *删除单日某类收敛告警 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqDelAlarm, ngse.monitor.Monitor.ReqDelAlarm.Builder, ngse.monitor.Monitor.ReqDelAlarmOrBuilder> getDelalarmFieldBuilder() { if (delalarmBuilder_ == null) { delalarmBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.ReqDelAlarm, ngse.monitor.Monitor.ReqDelAlarm.Builder, ngse.monitor.Monitor.ReqDelAlarmOrBuilder>( getDelalarm(), getParentForChildren(), isClean()); delalarm_ = null; } return delalarmBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqMonitor) } static { defaultInstance = new ReqMonitor(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqMonitor) } public interface RespMonitorOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespMonitor) com.google.protobuf.MessageOrBuilder { /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ boolean hasResult(); /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ int getResult(); /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ boolean hasService(); /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ ngse.monitor.Monitor.RespService getService(); /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ ngse.monitor.Monitor.RespServiceOrBuilder getServiceOrBuilder(); /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ boolean hasServiceattr(); /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ ngse.monitor.Monitor.RespServiceAttr getServiceattr(); /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ ngse.monitor.Monitor.RespServiceAttrOrBuilder getServiceattrOrBuilder(); /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ boolean hasAttrip(); /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ ngse.monitor.Monitor.RespAttrIP getAttrip(); /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ ngse.monitor.Monitor.RespAttrIPOrBuilder getAttripOrBuilder(); /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ boolean hasIp(); /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ ngse.monitor.Monitor.RespIP getIp(); /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ ngse.monitor.Monitor.RespIPOrBuilder getIpOrBuilder(); /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ boolean hasIpattr(); /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ ngse.monitor.Monitor.RespIPAttr getIpattr(); /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ ngse.monitor.Monitor.RespIPAttrOrBuilder getIpattrOrBuilder(); /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ boolean hasSetalarmattr(); /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ ngse.monitor.Monitor.RespSetAlarmAttr getSetalarmattr(); /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder getSetalarmattrOrBuilder(); /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ boolean hasDelalarmattr(); /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ ngse.monitor.Monitor.RespDelAlarmAttr getDelalarmattr(); /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder getDelalarmattrOrBuilder(); /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ boolean hasNewalarm(); /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ ngse.monitor.Monitor.RespNewestAlarm getNewalarm(); /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ ngse.monitor.Monitor.RespNewestAlarmOrBuilder getNewalarmOrBuilder(); /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ boolean hasDelalarm(); /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ ngse.monitor.Monitor.RespDelAlarm getDelalarm(); /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ ngse.monitor.Monitor.RespDelAlarmOrBuilder getDelalarmOrBuilder(); } /** * Protobuf type {@code ngse.monitor.RespMonitor} */ public static final class RespMonitor extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespMonitor) RespMonitorOrBuilder { // Use RespMonitor.newBuilder() to construct. private RespMonitor(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespMonitor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespMonitor defaultInstance; public static RespMonitor getDefaultInstance() { return defaultInstance; } public RespMonitor getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespMonitor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; result_ = input.readUInt32(); break; } case 18: { ngse.monitor.Monitor.RespService.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = service_.toBuilder(); } service_ = input.readMessage(ngse.monitor.Monitor.RespService.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(service_); service_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { ngse.monitor.Monitor.RespServiceAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = serviceattr_.toBuilder(); } serviceattr_ = input.readMessage(ngse.monitor.Monitor.RespServiceAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serviceattr_); serviceattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { ngse.monitor.Monitor.RespAttrIP.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = attrip_.toBuilder(); } attrip_ = input.readMessage(ngse.monitor.Monitor.RespAttrIP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attrip_); attrip_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { ngse.monitor.Monitor.RespIP.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = ip_.toBuilder(); } ip_ = input.readMessage(ngse.monitor.Monitor.RespIP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ip_); ip_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { ngse.monitor.Monitor.RespIPAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = ipattr_.toBuilder(); } ipattr_ = input.readMessage(ngse.monitor.Monitor.RespIPAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ipattr_); ipattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 162: { ngse.monitor.Monitor.RespSetAlarmAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = setalarmattr_.toBuilder(); } setalarmattr_ = input.readMessage(ngse.monitor.Monitor.RespSetAlarmAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(setalarmattr_); setalarmattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 170: { ngse.monitor.Monitor.RespDelAlarmAttr.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = delalarmattr_.toBuilder(); } delalarmattr_ = input.readMessage(ngse.monitor.Monitor.RespDelAlarmAttr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delalarmattr_); delalarmattr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 178: { ngse.monitor.Monitor.RespNewestAlarm.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = newalarm_.toBuilder(); } newalarm_ = input.readMessage(ngse.monitor.Monitor.RespNewestAlarm.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(newalarm_); newalarm_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 186: { ngse.monitor.Monitor.RespDelAlarm.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = delalarm_.toBuilder(); } delalarm_ = input.readMessage(ngse.monitor.Monitor.RespDelAlarm.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delalarm_); delalarm_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespMonitor_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespMonitor_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespMonitor.class, ngse.monitor.Monitor.RespMonitor.Builder.class); } public static com.google.protobuf.Parser<RespMonitor> PARSER = new com.google.protobuf.AbstractParser<RespMonitor>() { public RespMonitor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespMonitor(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespMonitor> getParserForType() { return PARSER; } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private int result_; /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public boolean hasResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public int getResult() { return result_; } public static final int SERVICE_FIELD_NUMBER = 2; private ngse.monitor.Monitor.RespService service_; /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public boolean hasService() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public ngse.monitor.Monitor.RespService getService() { return service_; } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public ngse.monitor.Monitor.RespServiceOrBuilder getServiceOrBuilder() { return service_; } public static final int SERVICEATTR_FIELD_NUMBER = 3; private ngse.monitor.Monitor.RespServiceAttr serviceattr_; /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public boolean hasServiceattr() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public ngse.monitor.Monitor.RespServiceAttr getServiceattr() { return serviceattr_; } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public ngse.monitor.Monitor.RespServiceAttrOrBuilder getServiceattrOrBuilder() { return serviceattr_; } public static final int ATTRIP_FIELD_NUMBER = 4; private ngse.monitor.Monitor.RespAttrIP attrip_; /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public boolean hasAttrip() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public ngse.monitor.Monitor.RespAttrIP getAttrip() { return attrip_; } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public ngse.monitor.Monitor.RespAttrIPOrBuilder getAttripOrBuilder() { return attrip_; } public static final int IP_FIELD_NUMBER = 5; private ngse.monitor.Monitor.RespIP ip_; /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public ngse.monitor.Monitor.RespIP getIp() { return ip_; } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public ngse.monitor.Monitor.RespIPOrBuilder getIpOrBuilder() { return ip_; } public static final int IPATTR_FIELD_NUMBER = 6; private ngse.monitor.Monitor.RespIPAttr ipattr_; /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public boolean hasIpattr() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public ngse.monitor.Monitor.RespIPAttr getIpattr() { return ipattr_; } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public ngse.monitor.Monitor.RespIPAttrOrBuilder getIpattrOrBuilder() { return ipattr_; } public static final int SETALARMATTR_FIELD_NUMBER = 20; private ngse.monitor.Monitor.RespSetAlarmAttr setalarmattr_; /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public boolean hasSetalarmattr() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.RespSetAlarmAttr getSetalarmattr() { return setalarmattr_; } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder getSetalarmattrOrBuilder() { return setalarmattr_; } public static final int DELALARMATTR_FIELD_NUMBER = 21; private ngse.monitor.Monitor.RespDelAlarmAttr delalarmattr_; /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public boolean hasDelalarmattr() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public ngse.monitor.Monitor.RespDelAlarmAttr getDelalarmattr() { return delalarmattr_; } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder getDelalarmattrOrBuilder() { return delalarmattr_; } public static final int NEWALARM_FIELD_NUMBER = 22; private ngse.monitor.Monitor.RespNewestAlarm newalarm_; /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public boolean hasNewalarm() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public ngse.monitor.Monitor.RespNewestAlarm getNewalarm() { return newalarm_; } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public ngse.monitor.Monitor.RespNewestAlarmOrBuilder getNewalarmOrBuilder() { return newalarm_; } public static final int DELALARM_FIELD_NUMBER = 23; private ngse.monitor.Monitor.RespDelAlarm delalarm_; /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public boolean hasDelalarm() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public ngse.monitor.Monitor.RespDelAlarm getDelalarm() { return delalarm_; } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public ngse.monitor.Monitor.RespDelAlarmOrBuilder getDelalarmOrBuilder() { return delalarm_; } private void initFields() { result_ = 0; service_ = ngse.monitor.Monitor.RespService.getDefaultInstance(); serviceattr_ = ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance(); attrip_ = ngse.monitor.Monitor.RespAttrIP.getDefaultInstance(); ip_ = ngse.monitor.Monitor.RespIP.getDefaultInstance(); ipattr_ = ngse.monitor.Monitor.RespIPAttr.getDefaultInstance(); setalarmattr_ = ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance(); delalarmattr_ = ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance(); newalarm_ = ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance(); delalarm_ = ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, result_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, service_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, serviceattr_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, attrip_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, ip_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, ipattr_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(20, setalarmattr_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(21, delalarmattr_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(22, newalarm_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(23, delalarm_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, result_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, service_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, serviceattr_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, attrip_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, ip_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, ipattr_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, setalarmattr_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, delalarmattr_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, newalarm_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, delalarm_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespMonitor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespMonitor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespMonitor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespMonitor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespMonitor parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespMonitor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespMonitor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespMonitor parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespMonitor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespMonitor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespMonitor prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespMonitor} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespMonitor) ngse.monitor.Monitor.RespMonitorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespMonitor_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespMonitor_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespMonitor.class, ngse.monitor.Monitor.RespMonitor.Builder.class); } // Construct using ngse.monitor.Monitor.RespMonitor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getServiceFieldBuilder(); getServiceattrFieldBuilder(); getAttripFieldBuilder(); getIpFieldBuilder(); getIpattrFieldBuilder(); getSetalarmattrFieldBuilder(); getDelalarmattrFieldBuilder(); getNewalarmFieldBuilder(); getDelalarmFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); result_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (serviceBuilder_ == null) { service_ = ngse.monitor.Monitor.RespService.getDefaultInstance(); } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (serviceattrBuilder_ == null) { serviceattr_ = ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance(); } else { serviceattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (attripBuilder_ == null) { attrip_ = ngse.monitor.Monitor.RespAttrIP.getDefaultInstance(); } else { attripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (ipBuilder_ == null) { ip_ = ngse.monitor.Monitor.RespIP.getDefaultInstance(); } else { ipBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (ipattrBuilder_ == null) { ipattr_ = ngse.monitor.Monitor.RespIPAttr.getDefaultInstance(); } else { ipattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (setalarmattrBuilder_ == null) { setalarmattr_ = ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance(); } else { setalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (delalarmattrBuilder_ == null) { delalarmattr_ = ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance(); } else { delalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (newalarmBuilder_ == null) { newalarm_ = ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance(); } else { newalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (delalarmBuilder_ == null) { delalarm_ = ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance(); } else { delalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespMonitor_descriptor; } public ngse.monitor.Monitor.RespMonitor getDefaultInstanceForType() { return ngse.monitor.Monitor.RespMonitor.getDefaultInstance(); } public ngse.monitor.Monitor.RespMonitor build() { ngse.monitor.Monitor.RespMonitor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespMonitor buildPartial() { ngse.monitor.Monitor.RespMonitor result = new ngse.monitor.Monitor.RespMonitor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.result_ = result_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (serviceattrBuilder_ == null) { result.serviceattr_ = serviceattr_; } else { result.serviceattr_ = serviceattrBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (attripBuilder_ == null) { result.attrip_ = attrip_; } else { result.attrip_ = attripBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (ipBuilder_ == null) { result.ip_ = ip_; } else { result.ip_ = ipBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (ipattrBuilder_ == null) { result.ipattr_ = ipattr_; } else { result.ipattr_ = ipattrBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (setalarmattrBuilder_ == null) { result.setalarmattr_ = setalarmattr_; } else { result.setalarmattr_ = setalarmattrBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (delalarmattrBuilder_ == null) { result.delalarmattr_ = delalarmattr_; } else { result.delalarmattr_ = delalarmattrBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (newalarmBuilder_ == null) { result.newalarm_ = newalarm_; } else { result.newalarm_ = newalarmBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (delalarmBuilder_ == null) { result.delalarm_ = delalarm_; } else { result.delalarm_ = delalarmBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespMonitor) { return mergeFrom((ngse.monitor.Monitor.RespMonitor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespMonitor other) { if (other == ngse.monitor.Monitor.RespMonitor.getDefaultInstance()) return this; if (other.hasResult()) { setResult(other.getResult()); } if (other.hasService()) { mergeService(other.getService()); } if (other.hasServiceattr()) { mergeServiceattr(other.getServiceattr()); } if (other.hasAttrip()) { mergeAttrip(other.getAttrip()); } if (other.hasIp()) { mergeIp(other.getIp()); } if (other.hasIpattr()) { mergeIpattr(other.getIpattr()); } if (other.hasSetalarmattr()) { mergeSetalarmattr(other.getSetalarmattr()); } if (other.hasDelalarmattr()) { mergeDelalarmattr(other.getDelalarmattr()); } if (other.hasNewalarm()) { mergeNewalarm(other.getNewalarm()); } if (other.hasDelalarm()) { mergeDelalarm(other.getDelalarm()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespMonitor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespMonitor) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int result_ ; /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public boolean hasResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public int getResult() { return result_; } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public Builder setResult(int value) { bitField0_ |= 0x00000001; result_ = value; onChanged(); return this; } /** * <code>optional uint32 result = 1;</code> * * <pre> *0,正常;其余,失败返回码。 * </pre> */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); result_ = 0; onChanged(); return this; } private ngse.monitor.Monitor.RespService service_ = ngse.monitor.Monitor.RespService.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespService, ngse.monitor.Monitor.RespService.Builder, ngse.monitor.Monitor.RespServiceOrBuilder> serviceBuilder_; /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public boolean hasService() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public ngse.monitor.Monitor.RespService getService() { if (serviceBuilder_ == null) { return service_; } else { return serviceBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public Builder setService(ngse.monitor.Monitor.RespService value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public Builder setService( ngse.monitor.Monitor.RespService.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public Builder mergeService(ngse.monitor.Monitor.RespService value) { if (serviceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && service_ != ngse.monitor.Monitor.RespService.getDefaultInstance()) { service_ = ngse.monitor.Monitor.RespService.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = ngse.monitor.Monitor.RespService.getDefaultInstance(); onChanged(); } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public ngse.monitor.Monitor.RespService.Builder getServiceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServiceFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ public ngse.monitor.Monitor.RespServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_; } } /** * <code>optional .ngse.monitor.RespService service = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespService, ngse.monitor.Monitor.RespService.Builder, ngse.monitor.Monitor.RespServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespService, ngse.monitor.Monitor.RespService.Builder, ngse.monitor.Monitor.RespServiceOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private ngse.monitor.Monitor.RespServiceAttr serviceattr_ = ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespServiceAttr, ngse.monitor.Monitor.RespServiceAttr.Builder, ngse.monitor.Monitor.RespServiceAttrOrBuilder> serviceattrBuilder_; /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public boolean hasServiceattr() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public ngse.monitor.Monitor.RespServiceAttr getServiceattr() { if (serviceattrBuilder_ == null) { return serviceattr_; } else { return serviceattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public Builder setServiceattr(ngse.monitor.Monitor.RespServiceAttr value) { if (serviceattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceattr_ = value; onChanged(); } else { serviceattrBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public Builder setServiceattr( ngse.monitor.Monitor.RespServiceAttr.Builder builderForValue) { if (serviceattrBuilder_ == null) { serviceattr_ = builderForValue.build(); onChanged(); } else { serviceattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public Builder mergeServiceattr(ngse.monitor.Monitor.RespServiceAttr value) { if (serviceattrBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && serviceattr_ != ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance()) { serviceattr_ = ngse.monitor.Monitor.RespServiceAttr.newBuilder(serviceattr_).mergeFrom(value).buildPartial(); } else { serviceattr_ = value; } onChanged(); } else { serviceattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public Builder clearServiceattr() { if (serviceattrBuilder_ == null) { serviceattr_ = ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance(); onChanged(); } else { serviceattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public ngse.monitor.Monitor.RespServiceAttr.Builder getServiceattrBuilder() { bitField0_ |= 0x00000004; onChanged(); return getServiceattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ public ngse.monitor.Monitor.RespServiceAttrOrBuilder getServiceattrOrBuilder() { if (serviceattrBuilder_ != null) { return serviceattrBuilder_.getMessageOrBuilder(); } else { return serviceattr_; } } /** * <code>optional .ngse.monitor.RespServiceAttr serviceattr = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespServiceAttr, ngse.monitor.Monitor.RespServiceAttr.Builder, ngse.monitor.Monitor.RespServiceAttrOrBuilder> getServiceattrFieldBuilder() { if (serviceattrBuilder_ == null) { serviceattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespServiceAttr, ngse.monitor.Monitor.RespServiceAttr.Builder, ngse.monitor.Monitor.RespServiceAttrOrBuilder>( getServiceattr(), getParentForChildren(), isClean()); serviceattr_ = null; } return serviceattrBuilder_; } private ngse.monitor.Monitor.RespAttrIP attrip_ = ngse.monitor.Monitor.RespAttrIP.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespAttrIP, ngse.monitor.Monitor.RespAttrIP.Builder, ngse.monitor.Monitor.RespAttrIPOrBuilder> attripBuilder_; /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public boolean hasAttrip() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public ngse.monitor.Monitor.RespAttrIP getAttrip() { if (attripBuilder_ == null) { return attrip_; } else { return attripBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public Builder setAttrip(ngse.monitor.Monitor.RespAttrIP value) { if (attripBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attrip_ = value; onChanged(); } else { attripBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public Builder setAttrip( ngse.monitor.Monitor.RespAttrIP.Builder builderForValue) { if (attripBuilder_ == null) { attrip_ = builderForValue.build(); onChanged(); } else { attripBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public Builder mergeAttrip(ngse.monitor.Monitor.RespAttrIP value) { if (attripBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && attrip_ != ngse.monitor.Monitor.RespAttrIP.getDefaultInstance()) { attrip_ = ngse.monitor.Monitor.RespAttrIP.newBuilder(attrip_).mergeFrom(value).buildPartial(); } else { attrip_ = value; } onChanged(); } else { attripBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public Builder clearAttrip() { if (attripBuilder_ == null) { attrip_ = ngse.monitor.Monitor.RespAttrIP.getDefaultInstance(); onChanged(); } else { attripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public ngse.monitor.Monitor.RespAttrIP.Builder getAttripBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAttripFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ public ngse.monitor.Monitor.RespAttrIPOrBuilder getAttripOrBuilder() { if (attripBuilder_ != null) { return attripBuilder_.getMessageOrBuilder(); } else { return attrip_; } } /** * <code>optional .ngse.monitor.RespAttrIP attrip = 4;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespAttrIP, ngse.monitor.Monitor.RespAttrIP.Builder, ngse.monitor.Monitor.RespAttrIPOrBuilder> getAttripFieldBuilder() { if (attripBuilder_ == null) { attripBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespAttrIP, ngse.monitor.Monitor.RespAttrIP.Builder, ngse.monitor.Monitor.RespAttrIPOrBuilder>( getAttrip(), getParentForChildren(), isClean()); attrip_ = null; } return attripBuilder_; } private ngse.monitor.Monitor.RespIP ip_ = ngse.monitor.Monitor.RespIP.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespIP, ngse.monitor.Monitor.RespIP.Builder, ngse.monitor.Monitor.RespIPOrBuilder> ipBuilder_; /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public ngse.monitor.Monitor.RespIP getIp() { if (ipBuilder_ == null) { return ip_; } else { return ipBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public Builder setIp(ngse.monitor.Monitor.RespIP value) { if (ipBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ip_ = value; onChanged(); } else { ipBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public Builder setIp( ngse.monitor.Monitor.RespIP.Builder builderForValue) { if (ipBuilder_ == null) { ip_ = builderForValue.build(); onChanged(); } else { ipBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public Builder mergeIp(ngse.monitor.Monitor.RespIP value) { if (ipBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && ip_ != ngse.monitor.Monitor.RespIP.getDefaultInstance()) { ip_ = ngse.monitor.Monitor.RespIP.newBuilder(ip_).mergeFrom(value).buildPartial(); } else { ip_ = value; } onChanged(); } else { ipBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public Builder clearIp() { if (ipBuilder_ == null) { ip_ = ngse.monitor.Monitor.RespIP.getDefaultInstance(); onChanged(); } else { ipBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public ngse.monitor.Monitor.RespIP.Builder getIpBuilder() { bitField0_ |= 0x00000010; onChanged(); return getIpFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ public ngse.monitor.Monitor.RespIPOrBuilder getIpOrBuilder() { if (ipBuilder_ != null) { return ipBuilder_.getMessageOrBuilder(); } else { return ip_; } } /** * <code>optional .ngse.monitor.RespIP ip = 5;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespIP, ngse.monitor.Monitor.RespIP.Builder, ngse.monitor.Monitor.RespIPOrBuilder> getIpFieldBuilder() { if (ipBuilder_ == null) { ipBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespIP, ngse.monitor.Monitor.RespIP.Builder, ngse.monitor.Monitor.RespIPOrBuilder>( getIp(), getParentForChildren(), isClean()); ip_ = null; } return ipBuilder_; } private ngse.monitor.Monitor.RespIPAttr ipattr_ = ngse.monitor.Monitor.RespIPAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespIPAttr, ngse.monitor.Monitor.RespIPAttr.Builder, ngse.monitor.Monitor.RespIPAttrOrBuilder> ipattrBuilder_; /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public boolean hasIpattr() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public ngse.monitor.Monitor.RespIPAttr getIpattr() { if (ipattrBuilder_ == null) { return ipattr_; } else { return ipattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public Builder setIpattr(ngse.monitor.Monitor.RespIPAttr value) { if (ipattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ipattr_ = value; onChanged(); } else { ipattrBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public Builder setIpattr( ngse.monitor.Monitor.RespIPAttr.Builder builderForValue) { if (ipattrBuilder_ == null) { ipattr_ = builderForValue.build(); onChanged(); } else { ipattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public Builder mergeIpattr(ngse.monitor.Monitor.RespIPAttr value) { if (ipattrBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && ipattr_ != ngse.monitor.Monitor.RespIPAttr.getDefaultInstance()) { ipattr_ = ngse.monitor.Monitor.RespIPAttr.newBuilder(ipattr_).mergeFrom(value).buildPartial(); } else { ipattr_ = value; } onChanged(); } else { ipattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public Builder clearIpattr() { if (ipattrBuilder_ == null) { ipattr_ = ngse.monitor.Monitor.RespIPAttr.getDefaultInstance(); onChanged(); } else { ipattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public ngse.monitor.Monitor.RespIPAttr.Builder getIpattrBuilder() { bitField0_ |= 0x00000020; onChanged(); return getIpattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ public ngse.monitor.Monitor.RespIPAttrOrBuilder getIpattrOrBuilder() { if (ipattrBuilder_ != null) { return ipattrBuilder_.getMessageOrBuilder(); } else { return ipattr_; } } /** * <code>optional .ngse.monitor.RespIPAttr ipattr = 6;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespIPAttr, ngse.monitor.Monitor.RespIPAttr.Builder, ngse.monitor.Monitor.RespIPAttrOrBuilder> getIpattrFieldBuilder() { if (ipattrBuilder_ == null) { ipattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespIPAttr, ngse.monitor.Monitor.RespIPAttr.Builder, ngse.monitor.Monitor.RespIPAttrOrBuilder>( getIpattr(), getParentForChildren(), isClean()); ipattr_ = null; } return ipattrBuilder_; } private ngse.monitor.Monitor.RespSetAlarmAttr setalarmattr_ = ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespSetAlarmAttr, ngse.monitor.Monitor.RespSetAlarmAttr.Builder, ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder> setalarmattrBuilder_; /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public boolean hasSetalarmattr() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.RespSetAlarmAttr getSetalarmattr() { if (setalarmattrBuilder_ == null) { return setalarmattr_; } else { return setalarmattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder setSetalarmattr(ngse.monitor.Monitor.RespSetAlarmAttr value) { if (setalarmattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setalarmattr_ = value; onChanged(); } else { setalarmattrBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder setSetalarmattr( ngse.monitor.Monitor.RespSetAlarmAttr.Builder builderForValue) { if (setalarmattrBuilder_ == null) { setalarmattr_ = builderForValue.build(); onChanged(); } else { setalarmattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder mergeSetalarmattr(ngse.monitor.Monitor.RespSetAlarmAttr value) { if (setalarmattrBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && setalarmattr_ != ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance()) { setalarmattr_ = ngse.monitor.Monitor.RespSetAlarmAttr.newBuilder(setalarmattr_).mergeFrom(value).buildPartial(); } else { setalarmattr_ = value; } onChanged(); } else { setalarmattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public Builder clearSetalarmattr() { if (setalarmattrBuilder_ == null) { setalarmattr_ = ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance(); onChanged(); } else { setalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.RespSetAlarmAttr.Builder getSetalarmattrBuilder() { bitField0_ |= 0x00000040; onChanged(); return getSetalarmattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ public ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder getSetalarmattrOrBuilder() { if (setalarmattrBuilder_ != null) { return setalarmattrBuilder_.getMessageOrBuilder(); } else { return setalarmattr_; } } /** * <code>optional .ngse.monitor.RespSetAlarmAttr setalarmattr = 20;</code> * * <pre> *告警相关 * </pre> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespSetAlarmAttr, ngse.monitor.Monitor.RespSetAlarmAttr.Builder, ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder> getSetalarmattrFieldBuilder() { if (setalarmattrBuilder_ == null) { setalarmattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespSetAlarmAttr, ngse.monitor.Monitor.RespSetAlarmAttr.Builder, ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder>( getSetalarmattr(), getParentForChildren(), isClean()); setalarmattr_ = null; } return setalarmattrBuilder_; } private ngse.monitor.Monitor.RespDelAlarmAttr delalarmattr_ = ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespDelAlarmAttr, ngse.monitor.Monitor.RespDelAlarmAttr.Builder, ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder> delalarmattrBuilder_; /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public boolean hasDelalarmattr() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public ngse.monitor.Monitor.RespDelAlarmAttr getDelalarmattr() { if (delalarmattrBuilder_ == null) { return delalarmattr_; } else { return delalarmattrBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public Builder setDelalarmattr(ngse.monitor.Monitor.RespDelAlarmAttr value) { if (delalarmattrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delalarmattr_ = value; onChanged(); } else { delalarmattrBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public Builder setDelalarmattr( ngse.monitor.Monitor.RespDelAlarmAttr.Builder builderForValue) { if (delalarmattrBuilder_ == null) { delalarmattr_ = builderForValue.build(); onChanged(); } else { delalarmattrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public Builder mergeDelalarmattr(ngse.monitor.Monitor.RespDelAlarmAttr value) { if (delalarmattrBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && delalarmattr_ != ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance()) { delalarmattr_ = ngse.monitor.Monitor.RespDelAlarmAttr.newBuilder(delalarmattr_).mergeFrom(value).buildPartial(); } else { delalarmattr_ = value; } onChanged(); } else { delalarmattrBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public Builder clearDelalarmattr() { if (delalarmattrBuilder_ == null) { delalarmattr_ = ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance(); onChanged(); } else { delalarmattrBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public ngse.monitor.Monitor.RespDelAlarmAttr.Builder getDelalarmattrBuilder() { bitField0_ |= 0x00000080; onChanged(); return getDelalarmattrFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ public ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder getDelalarmattrOrBuilder() { if (delalarmattrBuilder_ != null) { return delalarmattrBuilder_.getMessageOrBuilder(); } else { return delalarmattr_; } } /** * <code>optional .ngse.monitor.RespDelAlarmAttr delalarmattr = 21;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespDelAlarmAttr, ngse.monitor.Monitor.RespDelAlarmAttr.Builder, ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder> getDelalarmattrFieldBuilder() { if (delalarmattrBuilder_ == null) { delalarmattrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespDelAlarmAttr, ngse.monitor.Monitor.RespDelAlarmAttr.Builder, ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder>( getDelalarmattr(), getParentForChildren(), isClean()); delalarmattr_ = null; } return delalarmattrBuilder_; } private ngse.monitor.Monitor.RespNewestAlarm newalarm_ = ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespNewestAlarm, ngse.monitor.Monitor.RespNewestAlarm.Builder, ngse.monitor.Monitor.RespNewestAlarmOrBuilder> newalarmBuilder_; /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public boolean hasNewalarm() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public ngse.monitor.Monitor.RespNewestAlarm getNewalarm() { if (newalarmBuilder_ == null) { return newalarm_; } else { return newalarmBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public Builder setNewalarm(ngse.monitor.Monitor.RespNewestAlarm value) { if (newalarmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newalarm_ = value; onChanged(); } else { newalarmBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public Builder setNewalarm( ngse.monitor.Monitor.RespNewestAlarm.Builder builderForValue) { if (newalarmBuilder_ == null) { newalarm_ = builderForValue.build(); onChanged(); } else { newalarmBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public Builder mergeNewalarm(ngse.monitor.Monitor.RespNewestAlarm value) { if (newalarmBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && newalarm_ != ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance()) { newalarm_ = ngse.monitor.Monitor.RespNewestAlarm.newBuilder(newalarm_).mergeFrom(value).buildPartial(); } else { newalarm_ = value; } onChanged(); } else { newalarmBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public Builder clearNewalarm() { if (newalarmBuilder_ == null) { newalarm_ = ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance(); onChanged(); } else { newalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public ngse.monitor.Monitor.RespNewestAlarm.Builder getNewalarmBuilder() { bitField0_ |= 0x00000100; onChanged(); return getNewalarmFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ public ngse.monitor.Monitor.RespNewestAlarmOrBuilder getNewalarmOrBuilder() { if (newalarmBuilder_ != null) { return newalarmBuilder_.getMessageOrBuilder(); } else { return newalarm_; } } /** * <code>optional .ngse.monitor.RespNewestAlarm newalarm = 22;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespNewestAlarm, ngse.monitor.Monitor.RespNewestAlarm.Builder, ngse.monitor.Monitor.RespNewestAlarmOrBuilder> getNewalarmFieldBuilder() { if (newalarmBuilder_ == null) { newalarmBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespNewestAlarm, ngse.monitor.Monitor.RespNewestAlarm.Builder, ngse.monitor.Monitor.RespNewestAlarmOrBuilder>( getNewalarm(), getParentForChildren(), isClean()); newalarm_ = null; } return newalarmBuilder_; } private ngse.monitor.Monitor.RespDelAlarm delalarm_ = ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespDelAlarm, ngse.monitor.Monitor.RespDelAlarm.Builder, ngse.monitor.Monitor.RespDelAlarmOrBuilder> delalarmBuilder_; /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public boolean hasDelalarm() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public ngse.monitor.Monitor.RespDelAlarm getDelalarm() { if (delalarmBuilder_ == null) { return delalarm_; } else { return delalarmBuilder_.getMessage(); } } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public Builder setDelalarm(ngse.monitor.Monitor.RespDelAlarm value) { if (delalarmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delalarm_ = value; onChanged(); } else { delalarmBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public Builder setDelalarm( ngse.monitor.Monitor.RespDelAlarm.Builder builderForValue) { if (delalarmBuilder_ == null) { delalarm_ = builderForValue.build(); onChanged(); } else { delalarmBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public Builder mergeDelalarm(ngse.monitor.Monitor.RespDelAlarm value) { if (delalarmBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && delalarm_ != ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance()) { delalarm_ = ngse.monitor.Monitor.RespDelAlarm.newBuilder(delalarm_).mergeFrom(value).buildPartial(); } else { delalarm_ = value; } onChanged(); } else { delalarmBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public Builder clearDelalarm() { if (delalarmBuilder_ == null) { delalarm_ = ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance(); onChanged(); } else { delalarmBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public ngse.monitor.Monitor.RespDelAlarm.Builder getDelalarmBuilder() { bitField0_ |= 0x00000200; onChanged(); return getDelalarmFieldBuilder().getBuilder(); } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ public ngse.monitor.Monitor.RespDelAlarmOrBuilder getDelalarmOrBuilder() { if (delalarmBuilder_ != null) { return delalarmBuilder_.getMessageOrBuilder(); } else { return delalarm_; } } /** * <code>optional .ngse.monitor.RespDelAlarm delalarm = 23;</code> */ private com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespDelAlarm, ngse.monitor.Monitor.RespDelAlarm.Builder, ngse.monitor.Monitor.RespDelAlarmOrBuilder> getDelalarmFieldBuilder() { if (delalarmBuilder_ == null) { delalarmBuilder_ = new com.google.protobuf.SingleFieldBuilder< ngse.monitor.Monitor.RespDelAlarm, ngse.monitor.Monitor.RespDelAlarm.Builder, ngse.monitor.Monitor.RespDelAlarmOrBuilder>( getDelalarm(), getParentForChildren(), isClean()); delalarm_ = null; } return delalarmBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespMonitor) } static { defaultInstance = new RespMonitor(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespMonitor) } public interface ReqServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqService) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ java.util.List<java.lang.Integer> getDaysList(); /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ int getDaysCount(); /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ int getDays(int index); } /** * Protobuf type {@code ngse.monitor.ReqService} * * <pre> *获取单个Service的属性和IP * </pre> */ public static final class ReqService extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqService) ReqServiceOrBuilder { // Use ReqService.newBuilder() to construct. private ReqService(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqService(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqService defaultInstance; public static ReqService getDefaultInstance() { return defaultInstance; } public ReqService getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqService( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } days_.add(input.readUInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { days_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { days_ = java.util.Collections.unmodifiableList(days_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqService_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqService_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqService.class, ngse.monitor.Monitor.ReqService.Builder.class); } public static com.google.protobuf.Parser<ReqService> PARSER = new com.google.protobuf.AbstractParser<ReqService>() { public ReqService parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqService(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqService> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAYS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> days_; /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public java.util.List<java.lang.Integer> getDaysList() { return days_; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDays(int index) { return days_.get(index); } private void initFields() { servicename_ = ""; days_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } for (int i = 0; i < days_.size(); i++) { output.writeUInt32(2, days_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } { int dataSize = 0; for (int i = 0; i < days_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(days_.get(i)); } size += dataSize; size += 1 * getDaysList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqService parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqService parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqService parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqService parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqService parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqService parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqService prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqService} * * <pre> *获取单个Service的属性和IP * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqService) ngse.monitor.Monitor.ReqServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqService_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqService_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqService.class, ngse.monitor.Monitor.ReqService.Builder.class); } // Construct using ngse.monitor.Monitor.ReqService.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqService_descriptor; } public ngse.monitor.Monitor.ReqService getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqService.getDefaultInstance(); } public ngse.monitor.Monitor.ReqService build() { ngse.monitor.Monitor.ReqService result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqService buildPartial() { ngse.monitor.Monitor.ReqService result = new ngse.monitor.Monitor.ReqService(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((bitField0_ & 0x00000002) == 0x00000002)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000002); } result.days_ = days_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqService) { return mergeFrom((ngse.monitor.Monitor.ReqService)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqService other) { if (other == ngse.monitor.Monitor.ReqService.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqService parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqService) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.util.List<java.lang.Integer> days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { days_ = new java.util.ArrayList<java.lang.Integer>(days_); bitField0_ |= 0x00000002; } } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public java.util.List<java.lang.Integer> getDaysList() { return java.util.Collections.unmodifiableList(days_); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDays(int index) { return days_.get(index); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder setDays( int index, int value) { ensureDaysIsMutable(); days_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder addDays(int value) { ensureDaysIsMutable(); days_.add(value); onChanged(); return this; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder addAllDays( java.lang.Iterable<? extends java.lang.Integer> values) { ensureDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, days_); onChanged(); return this; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder clearDays() { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqService) } static { defaultInstance = new ReqService(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqService) } public interface AlarmAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.AlarmAttr) com.google.protobuf.MessageOrBuilder { /** * <code>optional string attrname = 1;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 1;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 1;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ boolean hasMax(); /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ int getMax(); /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ boolean hasMin(); /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ int getMin(); /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ boolean hasDiff(); /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ int getDiff(); /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ boolean hasDiffPercent(); /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ int getDiffPercent(); } /** * Protobuf type {@code ngse.monitor.AlarmAttr} */ public static final class AlarmAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.AlarmAttr) AlarmAttrOrBuilder { // Use AlarmAttr.newBuilder() to construct. private AlarmAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AlarmAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AlarmAttr defaultInstance; public static AlarmAttr getDefaultInstance() { return defaultInstance; } public AlarmAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlarmAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; attrname_ = bs; break; } case 16: { bitField0_ |= 0x00000002; max_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; min_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; diff_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; diffPercent_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.AlarmAttr.class, ngse.monitor.Monitor.AlarmAttr.Builder.class); } public static com.google.protobuf.Parser<AlarmAttr> PARSER = new com.google.protobuf.AbstractParser<AlarmAttr>() { public AlarmAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlarmAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<AlarmAttr> getParserForType() { return PARSER; } private int bitField0_; public static final int ATTRNAME_FIELD_NUMBER = 1; private java.lang.Object attrname_; /** * <code>optional string attrname = 1;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string attrname = 1;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 1;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_FIELD_NUMBER = 2; private int max_; /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ public int getMax() { return max_; } public static final int MIN_FIELD_NUMBER = 3; private int min_; /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ public boolean hasMin() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ public int getMin() { return min_; } public static final int DIFF_FIELD_NUMBER = 4; private int diff_; /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ public boolean hasDiff() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ public int getDiff() { return diff_; } public static final int DIFF_PERCENT_FIELD_NUMBER = 5; private int diffPercent_; /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ public boolean hasDiffPercent() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ public int getDiffPercent() { return diffPercent_; } private void initFields() { attrname_ = ""; max_ = 0; min_ = 0; diff_ = 0; diffPercent_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getAttrnameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, max_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, min_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, diff_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, diffPercent_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getAttrnameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, max_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, min_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, diff_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, diffPercent_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.AlarmAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.AlarmAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.AlarmAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.AlarmAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.AlarmAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.AlarmAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.AlarmAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.AlarmAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.AlarmAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.AlarmAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.AlarmAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.AlarmAttr} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.AlarmAttr) ngse.monitor.Monitor.AlarmAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.AlarmAttr.class, ngse.monitor.Monitor.AlarmAttr.Builder.class); } // Construct using ngse.monitor.Monitor.AlarmAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); max_ = 0; bitField0_ = (bitField0_ & ~0x00000002); min_ = 0; bitField0_ = (bitField0_ & ~0x00000004); diff_ = 0; bitField0_ = (bitField0_ & ~0x00000008); diffPercent_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AlarmAttr_descriptor; } public ngse.monitor.Monitor.AlarmAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.AlarmAttr.getDefaultInstance(); } public ngse.monitor.Monitor.AlarmAttr build() { ngse.monitor.Monitor.AlarmAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.AlarmAttr buildPartial() { ngse.monitor.Monitor.AlarmAttr result = new ngse.monitor.Monitor.AlarmAttr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.attrname_ = attrname_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.max_ = max_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.min_ = min_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.diff_ = diff_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.diffPercent_ = diffPercent_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.AlarmAttr) { return mergeFrom((ngse.monitor.Monitor.AlarmAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.AlarmAttr other) { if (other == ngse.monitor.Monitor.AlarmAttr.getDefaultInstance()) return this; if (other.hasAttrname()) { bitField0_ |= 0x00000001; attrname_ = other.attrname_; onChanged(); } if (other.hasMax()) { setMax(other.getMax()); } if (other.hasMin()) { setMin(other.getMin()); } if (other.hasDiff()) { setDiff(other.getDiff()); } if (other.hasDiffPercent()) { setDiffPercent(other.getDiffPercent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.AlarmAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.AlarmAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 1;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string attrname = 1;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 1;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 1;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 1;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000001); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 1;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attrname_ = value; onChanged(); return this; } private int max_ ; /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ public int getMax() { return max_; } /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ public Builder setMax(int value) { bitField0_ |= 0x00000002; max_ = value; onChanged(); return this; } /** * <code>optional uint32 max = 2;</code> * * <pre> *最大值 * </pre> */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000002); max_ = 0; onChanged(); return this; } private int min_ ; /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ public boolean hasMin() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ public int getMin() { return min_; } /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ public Builder setMin(int value) { bitField0_ |= 0x00000004; min_ = value; onChanged(); return this; } /** * <code>optional uint32 min = 3;</code> * * <pre> *最小值 * </pre> */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000004); min_ = 0; onChanged(); return this; } private int diff_ ; /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ public boolean hasDiff() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ public int getDiff() { return diff_; } /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ public Builder setDiff(int value) { bitField0_ |= 0x00000008; diff_ = value; onChanged(); return this; } /** * <code>optional uint32 diff = 4;</code> * * <pre> *波动值 * </pre> */ public Builder clearDiff() { bitField0_ = (bitField0_ & ~0x00000008); diff_ = 0; onChanged(); return this; } private int diffPercent_ ; /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ public boolean hasDiffPercent() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ public int getDiffPercent() { return diffPercent_; } /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ public Builder setDiffPercent(int value) { bitField0_ |= 0x00000010; diffPercent_ = value; onChanged(); return this; } /** * <code>optional uint32 diff_percent = 5;</code> * * <pre> *波动比率 * </pre> */ public Builder clearDiffPercent() { bitField0_ = (bitField0_ & ~0x00000010); diffPercent_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.AlarmAttr) } static { defaultInstance = new AlarmAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.AlarmAttr) } public interface RespServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespService) com.google.protobuf.MessageOrBuilder { /** * <code>repeated string attrnames = 1;</code> */ com.google.protobuf.ProtocolStringList getAttrnamesList(); /** * <code>repeated string attrnames = 1;</code> */ int getAttrnamesCount(); /** * <code>repeated string attrnames = 1;</code> */ java.lang.String getAttrnames(int index); /** * <code>repeated string attrnames = 1;</code> */ com.google.protobuf.ByteString getAttrnamesBytes(int index); /** * <code>repeated string ips = 2;</code> */ com.google.protobuf.ProtocolStringList getIpsList(); /** * <code>repeated string ips = 2;</code> */ int getIpsCount(); /** * <code>repeated string ips = 2;</code> */ java.lang.String getIps(int index); /** * <code>repeated string ips = 2;</code> */ com.google.protobuf.ByteString getIpsBytes(int index); /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ java.util.List<ngse.monitor.Monitor.AlarmAttr> getAlarmattrsList(); /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ ngse.monitor.Monitor.AlarmAttr getAlarmattrs(int index); /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ int getAlarmattrsCount(); /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ java.util.List<? extends ngse.monitor.Monitor.AlarmAttrOrBuilder> getAlarmattrsOrBuilderList(); /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ ngse.monitor.Monitor.AlarmAttrOrBuilder getAlarmattrsOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.RespService} */ public static final class RespService extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespService) RespServiceOrBuilder { // Use RespService.newBuilder() to construct. private RespService(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespService(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespService defaultInstance; public static RespService getDefaultInstance() { return defaultInstance; } public RespService getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespService( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attrnames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } attrnames_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ips_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } ips_.add(bs); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { alarmattrs_ = new java.util.ArrayList<ngse.monitor.Monitor.AlarmAttr>(); mutable_bitField0_ |= 0x00000004; } alarmattrs_.add(input.readMessage(ngse.monitor.Monitor.AlarmAttr.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attrnames_ = attrnames_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ips_ = ips_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { alarmattrs_ = java.util.Collections.unmodifiableList(alarmattrs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespService_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespService_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespService.class, ngse.monitor.Monitor.RespService.Builder.class); } public static com.google.protobuf.Parser<RespService> PARSER = new com.google.protobuf.AbstractParser<RespService>() { public RespService parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespService(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespService> getParserForType() { return PARSER; } public static final int ATTRNAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList attrnames_; /** * <code>repeated string attrnames = 1;</code> */ public com.google.protobuf.ProtocolStringList getAttrnamesList() { return attrnames_; } /** * <code>repeated string attrnames = 1;</code> */ public int getAttrnamesCount() { return attrnames_.size(); } /** * <code>repeated string attrnames = 1;</code> */ public java.lang.String getAttrnames(int index) { return attrnames_.get(index); } /** * <code>repeated string attrnames = 1;</code> */ public com.google.protobuf.ByteString getAttrnamesBytes(int index) { return attrnames_.getByteString(index); } public static final int IPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ips_; /** * <code>repeated string ips = 2;</code> */ public com.google.protobuf.ProtocolStringList getIpsList() { return ips_; } /** * <code>repeated string ips = 2;</code> */ public int getIpsCount() { return ips_.size(); } /** * <code>repeated string ips = 2;</code> */ public java.lang.String getIps(int index) { return ips_.get(index); } /** * <code>repeated string ips = 2;</code> */ public com.google.protobuf.ByteString getIpsBytes(int index) { return ips_.getByteString(index); } public static final int ALARMATTRS_FIELD_NUMBER = 3; private java.util.List<ngse.monitor.Monitor.AlarmAttr> alarmattrs_; /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public java.util.List<ngse.monitor.Monitor.AlarmAttr> getAlarmattrsList() { return alarmattrs_; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AlarmAttrOrBuilder> getAlarmattrsOrBuilderList() { return alarmattrs_; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public int getAlarmattrsCount() { return alarmattrs_.size(); } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttr getAlarmattrs(int index) { return alarmattrs_.get(index); } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttrOrBuilder getAlarmattrsOrBuilder( int index) { return alarmattrs_.get(index); } private void initFields() { attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; alarmattrs_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < attrnames_.size(); i++) { output.writeBytes(1, attrnames_.getByteString(i)); } for (int i = 0; i < ips_.size(); i++) { output.writeBytes(2, ips_.getByteString(i)); } for (int i = 0; i < alarmattrs_.size(); i++) { output.writeMessage(3, alarmattrs_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < attrnames_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attrnames_.getByteString(i)); } size += dataSize; size += 1 * getAttrnamesList().size(); } { int dataSize = 0; for (int i = 0; i < ips_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(ips_.getByteString(i)); } size += dataSize; size += 1 * getIpsList().size(); } for (int i = 0; i < alarmattrs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, alarmattrs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespService parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespService parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespService parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespService parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespService parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespService parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespService prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespService} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespService) ngse.monitor.Monitor.RespServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespService_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespService_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespService.class, ngse.monitor.Monitor.RespService.Builder.class); } // Construct using ngse.monitor.Monitor.RespService.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAlarmattrsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (alarmattrsBuilder_ == null) { alarmattrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { alarmattrsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespService_descriptor; } public ngse.monitor.Monitor.RespService getDefaultInstanceForType() { return ngse.monitor.Monitor.RespService.getDefaultInstance(); } public ngse.monitor.Monitor.RespService build() { ngse.monitor.Monitor.RespService result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespService buildPartial() { ngse.monitor.Monitor.RespService result = new ngse.monitor.Monitor.RespService(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { attrnames_ = attrnames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.attrnames_ = attrnames_; if (((bitField0_ & 0x00000002) == 0x00000002)) { ips_ = ips_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.ips_ = ips_; if (alarmattrsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { alarmattrs_ = java.util.Collections.unmodifiableList(alarmattrs_); bitField0_ = (bitField0_ & ~0x00000004); } result.alarmattrs_ = alarmattrs_; } else { result.alarmattrs_ = alarmattrsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespService) { return mergeFrom((ngse.monitor.Monitor.RespService)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespService other) { if (other == ngse.monitor.Monitor.RespService.getDefaultInstance()) return this; if (!other.attrnames_.isEmpty()) { if (attrnames_.isEmpty()) { attrnames_ = other.attrnames_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttrnamesIsMutable(); attrnames_.addAll(other.attrnames_); } onChanged(); } if (!other.ips_.isEmpty()) { if (ips_.isEmpty()) { ips_ = other.ips_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIpsIsMutable(); ips_.addAll(other.ips_); } onChanged(); } if (alarmattrsBuilder_ == null) { if (!other.alarmattrs_.isEmpty()) { if (alarmattrs_.isEmpty()) { alarmattrs_ = other.alarmattrs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAlarmattrsIsMutable(); alarmattrs_.addAll(other.alarmattrs_); } onChanged(); } } else { if (!other.alarmattrs_.isEmpty()) { if (alarmattrsBuilder_.isEmpty()) { alarmattrsBuilder_.dispose(); alarmattrsBuilder_ = null; alarmattrs_ = other.alarmattrs_; bitField0_ = (bitField0_ & ~0x00000004); alarmattrsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAlarmattrsFieldBuilder() : null; } else { alarmattrsBuilder_.addAllMessages(other.alarmattrs_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespService parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespService) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttrnamesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { attrnames_ = new com.google.protobuf.LazyStringArrayList(attrnames_); bitField0_ |= 0x00000001; } } /** * <code>repeated string attrnames = 1;</code> */ public com.google.protobuf.ProtocolStringList getAttrnamesList() { return attrnames_.getUnmodifiableView(); } /** * <code>repeated string attrnames = 1;</code> */ public int getAttrnamesCount() { return attrnames_.size(); } /** * <code>repeated string attrnames = 1;</code> */ public java.lang.String getAttrnames(int index) { return attrnames_.get(index); } /** * <code>repeated string attrnames = 1;</code> */ public com.google.protobuf.ByteString getAttrnamesBytes(int index) { return attrnames_.getByteString(index); } /** * <code>repeated string attrnames = 1;</code> */ public Builder setAttrnames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.set(index, value); onChanged(); return this; } /** * <code>repeated string attrnames = 1;</code> */ public Builder addAttrnames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.add(value); onChanged(); return this; } /** * <code>repeated string attrnames = 1;</code> */ public Builder addAllAttrnames( java.lang.Iterable<java.lang.String> values) { ensureAttrnamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attrnames_); onChanged(); return this; } /** * <code>repeated string attrnames = 1;</code> */ public Builder clearAttrnames() { attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated string attrnames = 1;</code> */ public Builder addAttrnamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ips_ = new com.google.protobuf.LazyStringArrayList(ips_); bitField0_ |= 0x00000002; } } /** * <code>repeated string ips = 2;</code> */ public com.google.protobuf.ProtocolStringList getIpsList() { return ips_.getUnmodifiableView(); } /** * <code>repeated string ips = 2;</code> */ public int getIpsCount() { return ips_.size(); } /** * <code>repeated string ips = 2;</code> */ public java.lang.String getIps(int index) { return ips_.get(index); } /** * <code>repeated string ips = 2;</code> */ public com.google.protobuf.ByteString getIpsBytes(int index) { return ips_.getByteString(index); } /** * <code>repeated string ips = 2;</code> */ public Builder setIps( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpsIsMutable(); ips_.set(index, value); onChanged(); return this; } /** * <code>repeated string ips = 2;</code> */ public Builder addIps( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpsIsMutable(); ips_.add(value); onChanged(); return this; } /** * <code>repeated string ips = 2;</code> */ public Builder addAllIps( java.lang.Iterable<java.lang.String> values) { ensureIpsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ips_); onChanged(); return this; } /** * <code>repeated string ips = 2;</code> */ public Builder clearIps() { ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string ips = 2;</code> */ public Builder addIpsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureIpsIsMutable(); ips_.add(value); onChanged(); return this; } private java.util.List<ngse.monitor.Monitor.AlarmAttr> alarmattrs_ = java.util.Collections.emptyList(); private void ensureAlarmattrsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { alarmattrs_ = new java.util.ArrayList<ngse.monitor.Monitor.AlarmAttr>(alarmattrs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AlarmAttr, ngse.monitor.Monitor.AlarmAttr.Builder, ngse.monitor.Monitor.AlarmAttrOrBuilder> alarmattrsBuilder_; /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public java.util.List<ngse.monitor.Monitor.AlarmAttr> getAlarmattrsList() { if (alarmattrsBuilder_ == null) { return java.util.Collections.unmodifiableList(alarmattrs_); } else { return alarmattrsBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public int getAlarmattrsCount() { if (alarmattrsBuilder_ == null) { return alarmattrs_.size(); } else { return alarmattrsBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttr getAlarmattrs(int index) { if (alarmattrsBuilder_ == null) { return alarmattrs_.get(index); } else { return alarmattrsBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder setAlarmattrs( int index, ngse.monitor.Monitor.AlarmAttr value) { if (alarmattrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmattrsIsMutable(); alarmattrs_.set(index, value); onChanged(); } else { alarmattrsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder setAlarmattrs( int index, ngse.monitor.Monitor.AlarmAttr.Builder builderForValue) { if (alarmattrsBuilder_ == null) { ensureAlarmattrsIsMutable(); alarmattrs_.set(index, builderForValue.build()); onChanged(); } else { alarmattrsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder addAlarmattrs(ngse.monitor.Monitor.AlarmAttr value) { if (alarmattrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmattrsIsMutable(); alarmattrs_.add(value); onChanged(); } else { alarmattrsBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder addAlarmattrs( int index, ngse.monitor.Monitor.AlarmAttr value) { if (alarmattrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmattrsIsMutable(); alarmattrs_.add(index, value); onChanged(); } else { alarmattrsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder addAlarmattrs( ngse.monitor.Monitor.AlarmAttr.Builder builderForValue) { if (alarmattrsBuilder_ == null) { ensureAlarmattrsIsMutable(); alarmattrs_.add(builderForValue.build()); onChanged(); } else { alarmattrsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder addAlarmattrs( int index, ngse.monitor.Monitor.AlarmAttr.Builder builderForValue) { if (alarmattrsBuilder_ == null) { ensureAlarmattrsIsMutable(); alarmattrs_.add(index, builderForValue.build()); onChanged(); } else { alarmattrsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder addAllAlarmattrs( java.lang.Iterable<? extends ngse.monitor.Monitor.AlarmAttr> values) { if (alarmattrsBuilder_ == null) { ensureAlarmattrsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alarmattrs_); onChanged(); } else { alarmattrsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder clearAlarmattrs() { if (alarmattrsBuilder_ == null) { alarmattrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { alarmattrsBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public Builder removeAlarmattrs(int index) { if (alarmattrsBuilder_ == null) { ensureAlarmattrsIsMutable(); alarmattrs_.remove(index); onChanged(); } else { alarmattrsBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttr.Builder getAlarmattrsBuilder( int index) { return getAlarmattrsFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttrOrBuilder getAlarmattrsOrBuilder( int index) { if (alarmattrsBuilder_ == null) { return alarmattrs_.get(index); } else { return alarmattrsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AlarmAttrOrBuilder> getAlarmattrsOrBuilderList() { if (alarmattrsBuilder_ != null) { return alarmattrsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alarmattrs_); } } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttr.Builder addAlarmattrsBuilder() { return getAlarmattrsFieldBuilder().addBuilder( ngse.monitor.Monitor.AlarmAttr.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public ngse.monitor.Monitor.AlarmAttr.Builder addAlarmattrsBuilder( int index) { return getAlarmattrsFieldBuilder().addBuilder( index, ngse.monitor.Monitor.AlarmAttr.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.AlarmAttr alarmattrs = 3;</code> */ public java.util.List<ngse.monitor.Monitor.AlarmAttr.Builder> getAlarmattrsBuilderList() { return getAlarmattrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AlarmAttr, ngse.monitor.Monitor.AlarmAttr.Builder, ngse.monitor.Monitor.AlarmAttrOrBuilder> getAlarmattrsFieldBuilder() { if (alarmattrsBuilder_ == null) { alarmattrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AlarmAttr, ngse.monitor.Monitor.AlarmAttr.Builder, ngse.monitor.Monitor.AlarmAttrOrBuilder>( alarmattrs_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); alarmattrs_ = null; } return alarmattrsBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespService) } static { defaultInstance = new RespService(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespService) } public interface ReqServiceAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqServiceAttr) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>repeated string attrnames = 2;</code> */ com.google.protobuf.ProtocolStringList getAttrnamesList(); /** * <code>repeated string attrnames = 2;</code> */ int getAttrnamesCount(); /** * <code>repeated string attrnames = 2;</code> */ java.lang.String getAttrnames(int index); /** * <code>repeated string attrnames = 2;</code> */ com.google.protobuf.ByteString getAttrnamesBytes(int index); /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ java.util.List<java.lang.Integer> getDaysList(); /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ int getDaysCount(); /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ int getDays(int index); } /** * Protobuf type {@code ngse.monitor.ReqServiceAttr} * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public static final class ReqServiceAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqServiceAttr) ReqServiceAttrOrBuilder { // Use ReqServiceAttr.newBuilder() to construct. private ReqServiceAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqServiceAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqServiceAttr defaultInstance; public static ReqServiceAttr getDefaultInstance() { return defaultInstance; } public ReqServiceAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqServiceAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } attrnames_.add(bs); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } days_.add(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { days_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = attrnames_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { days_ = java.util.Collections.unmodifiableList(days_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqServiceAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqServiceAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqServiceAttr.class, ngse.monitor.Monitor.ReqServiceAttr.Builder.class); } public static com.google.protobuf.Parser<ReqServiceAttr> PARSER = new com.google.protobuf.AbstractParser<ReqServiceAttr>() { public ReqServiceAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqServiceAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqServiceAttr> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList attrnames_; /** * <code>repeated string attrnames = 2;</code> */ public com.google.protobuf.ProtocolStringList getAttrnamesList() { return attrnames_; } /** * <code>repeated string attrnames = 2;</code> */ public int getAttrnamesCount() { return attrnames_.size(); } /** * <code>repeated string attrnames = 2;</code> */ public java.lang.String getAttrnames(int index) { return attrnames_.get(index); } /** * <code>repeated string attrnames = 2;</code> */ public com.google.protobuf.ByteString getAttrnamesBytes(int index) { return attrnames_.getByteString(index); } public static final int DAYS_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> days_; /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public java.util.List<java.lang.Integer> getDaysList() { return days_; } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public int getDays(int index) { return days_.get(index); } private void initFields() { servicename_ = ""; attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; days_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } for (int i = 0; i < attrnames_.size(); i++) { output.writeBytes(2, attrnames_.getByteString(i)); } for (int i = 0; i < days_.size(); i++) { output.writeUInt32(3, days_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } { int dataSize = 0; for (int i = 0; i < attrnames_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attrnames_.getByteString(i)); } size += dataSize; size += 1 * getAttrnamesList().size(); } { int dataSize = 0; for (int i = 0; i < days_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(days_.get(i)); } size += dataSize; size += 1 * getDaysList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqServiceAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqServiceAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqServiceAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqServiceAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqServiceAttr} * * <pre> *批量获取单个Service的多天多属性数据 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqServiceAttr) ngse.monitor.Monitor.ReqServiceAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqServiceAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqServiceAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqServiceAttr.class, ngse.monitor.Monitor.ReqServiceAttr.Builder.class); } // Construct using ngse.monitor.Monitor.ReqServiceAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqServiceAttr_descriptor; } public ngse.monitor.Monitor.ReqServiceAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance(); } public ngse.monitor.Monitor.ReqServiceAttr build() { ngse.monitor.Monitor.ReqServiceAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqServiceAttr buildPartial() { ngse.monitor.Monitor.ReqServiceAttr result = new ngse.monitor.Monitor.ReqServiceAttr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = attrnames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.attrnames_ = attrnames_; if (((bitField0_ & 0x00000004) == 0x00000004)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000004); } result.days_ = days_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqServiceAttr) { return mergeFrom((ngse.monitor.Monitor.ReqServiceAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqServiceAttr other) { if (other == ngse.monitor.Monitor.ReqServiceAttr.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (!other.attrnames_.isEmpty()) { if (attrnames_.isEmpty()) { attrnames_ = other.attrnames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAttrnamesIsMutable(); attrnames_.addAll(other.attrnames_); } onChanged(); } if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqServiceAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqServiceAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttrnamesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = new com.google.protobuf.LazyStringArrayList(attrnames_); bitField0_ |= 0x00000002; } } /** * <code>repeated string attrnames = 2;</code> */ public com.google.protobuf.ProtocolStringList getAttrnamesList() { return attrnames_.getUnmodifiableView(); } /** * <code>repeated string attrnames = 2;</code> */ public int getAttrnamesCount() { return attrnames_.size(); } /** * <code>repeated string attrnames = 2;</code> */ public java.lang.String getAttrnames(int index) { return attrnames_.get(index); } /** * <code>repeated string attrnames = 2;</code> */ public com.google.protobuf.ByteString getAttrnamesBytes(int index) { return attrnames_.getByteString(index); } /** * <code>repeated string attrnames = 2;</code> */ public Builder setAttrnames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.set(index, value); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> */ public Builder addAttrnames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.add(value); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> */ public Builder addAllAttrnames( java.lang.Iterable<java.lang.String> values) { ensureAttrnamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attrnames_); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> */ public Builder clearAttrnames() { attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> */ public Builder addAttrnamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.add(value); onChanged(); return this; } private java.util.List<java.lang.Integer> days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { days_ = new java.util.ArrayList<java.lang.Integer>(days_); bitField0_ |= 0x00000004; } } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public java.util.List<java.lang.Integer> getDaysList() { return java.util.Collections.unmodifiableList(days_); } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public int getDays(int index) { return days_.get(index); } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public Builder setDays( int index, int value) { ensureDaysIsMutable(); days_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public Builder addDays(int value) { ensureDaysIsMutable(); days_.add(value); onChanged(); return this; } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public Builder addAllDays( java.lang.Iterable<? extends java.lang.Integer> values) { ensureDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, days_); onChanged(); return this; } /** * <code>repeated uint32 days = 3;</code> * * <pre> *如2016年2月24日对应的值为20160224 * </pre> */ public Builder clearDays() { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqServiceAttr) } static { defaultInstance = new ReqServiceAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqServiceAttr) } public interface AttrDataOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.AttrData) com.google.protobuf.MessageOrBuilder { /** * <code>optional string attrname = 1;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 1;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 1;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>optional uint32 day = 2;</code> */ boolean hasDay(); /** * <code>optional uint32 day = 2;</code> */ int getDay(); /** * <code>repeated uint32 values = 3;</code> */ java.util.List<java.lang.Integer> getValuesList(); /** * <code>repeated uint32 values = 3;</code> */ int getValuesCount(); /** * <code>repeated uint32 values = 3;</code> */ int getValues(int index); } /** * Protobuf type {@code ngse.monitor.AttrData} */ public static final class AttrData extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.AttrData) AttrDataOrBuilder { // Use AttrData.newBuilder() to construct. private AttrData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AttrData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AttrData defaultInstance; public static AttrData getDefaultInstance() { return defaultInstance; } public AttrData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttrData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; attrname_ = bs; break; } case 16: { bitField0_ |= 0x00000002; day_ = input.readUInt32(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } values_.add(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { values_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.AttrData.class, ngse.monitor.Monitor.AttrData.Builder.class); } public static com.google.protobuf.Parser<AttrData> PARSER = new com.google.protobuf.AbstractParser<AttrData>() { public AttrData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttrData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<AttrData> getParserForType() { return PARSER; } private int bitField0_; public static final int ATTRNAME_FIELD_NUMBER = 1; private java.lang.Object attrname_; /** * <code>optional string attrname = 1;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string attrname = 1;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 1;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAY_FIELD_NUMBER = 2; private int day_; /** * <code>optional uint32 day = 2;</code> */ public boolean hasDay() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 day = 2;</code> */ public int getDay() { return day_; } public static final int VALUES_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> values_; /** * <code>repeated uint32 values = 3;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return values_; } /** * <code>repeated uint32 values = 3;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 3;</code> */ public int getValues(int index) { return values_.get(index); } private void initFields() { attrname_ = ""; day_ = 0; values_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getAttrnameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, day_); } for (int i = 0; i < values_.size(); i++) { output.writeUInt32(3, values_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getAttrnameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, day_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.AttrData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.AttrData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.AttrData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.AttrData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.AttrData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.AttrData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.AttrData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.AttrData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.AttrData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.AttrData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.AttrData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.AttrData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.AttrData) ngse.monitor.Monitor.AttrDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.AttrData.class, ngse.monitor.Monitor.AttrData.Builder.class); } // Construct using ngse.monitor.Monitor.AttrData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); day_ = 0; bitField0_ = (bitField0_ & ~0x00000002); values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrData_descriptor; } public ngse.monitor.Monitor.AttrData getDefaultInstanceForType() { return ngse.monitor.Monitor.AttrData.getDefaultInstance(); } public ngse.monitor.Monitor.AttrData build() { ngse.monitor.Monitor.AttrData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.AttrData buildPartial() { ngse.monitor.Monitor.AttrData result = new ngse.monitor.Monitor.AttrData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.attrname_ = attrname_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.day_ = day_; if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.AttrData) { return mergeFrom((ngse.monitor.Monitor.AttrData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.AttrData other) { if (other == ngse.monitor.Monitor.AttrData.getDefaultInstance()) return this; if (other.hasAttrname()) { bitField0_ |= 0x00000001; attrname_ = other.attrname_; onChanged(); } if (other.hasDay()) { setDay(other.getDay()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.AttrData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.AttrData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 1;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string attrname = 1;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 1;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 1;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 1;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000001); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 1;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attrname_ = value; onChanged(); return this; } private int day_ ; /** * <code>optional uint32 day = 2;</code> */ public boolean hasDay() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 day = 2;</code> */ public int getDay() { return day_; } /** * <code>optional uint32 day = 2;</code> */ public Builder setDay(int value) { bitField0_ |= 0x00000002; day_ = value; onChanged(); return this; } /** * <code>optional uint32 day = 2;</code> */ public Builder clearDay() { bitField0_ = (bitField0_ & ~0x00000002); day_ = 0; onChanged(); return this; } private java.util.List<java.lang.Integer> values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList<java.lang.Integer>(values_); bitField0_ |= 0x00000004; } } /** * <code>repeated uint32 values = 3;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return java.util.Collections.unmodifiableList(values_); } /** * <code>repeated uint32 values = 3;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 3;</code> */ public int getValues(int index) { return values_.get(index); } /** * <code>repeated uint32 values = 3;</code> */ public Builder setValues( int index, int value) { ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder addValues(int value) { ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder addAllValues( java.lang.Iterable<? extends java.lang.Integer> values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.AttrData) } static { defaultInstance = new AttrData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.AttrData) } public interface RespServiceAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespServiceAttr) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ java.util.List<ngse.monitor.Monitor.AttrData> getDataList(); /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ ngse.monitor.Monitor.AttrData getData(int index); /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ int getDataCount(); /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ java.util.List<? extends ngse.monitor.Monitor.AttrDataOrBuilder> getDataOrBuilderList(); /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ ngse.monitor.Monitor.AttrDataOrBuilder getDataOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.RespServiceAttr} */ public static final class RespServiceAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespServiceAttr) RespServiceAttrOrBuilder { // Use RespServiceAttr.newBuilder() to construct. private RespServiceAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespServiceAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespServiceAttr defaultInstance; public static RespServiceAttr getDefaultInstance() { return defaultInstance; } public RespServiceAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespServiceAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.AttrData>(); mutable_bitField0_ |= 0x00000001; } data_.add(input.readMessage(ngse.monitor.Monitor.AttrData.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespServiceAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespServiceAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespServiceAttr.class, ngse.monitor.Monitor.RespServiceAttr.Builder.class); } public static com.google.protobuf.Parser<RespServiceAttr> PARSER = new com.google.protobuf.AbstractParser<RespServiceAttr>() { public RespServiceAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespServiceAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespServiceAttr> getParserForType() { return PARSER; } public static final int DATA_FIELD_NUMBER = 1; private java.util.List<ngse.monitor.Monitor.AttrData> data_; /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.AttrData> getDataList() { return data_; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AttrDataOrBuilder> getDataOrBuilderList() { return data_; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public int getDataCount() { return data_.size(); } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrData getData(int index) { return data_.get(index); } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrDataOrBuilder getDataOrBuilder( int index) { return data_.get(index); } private void initFields() { data_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < data_.size(); i++) { output.writeMessage(1, data_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, data_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespServiceAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespServiceAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespServiceAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespServiceAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespServiceAttr} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespServiceAttr) ngse.monitor.Monitor.RespServiceAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespServiceAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespServiceAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespServiceAttr.class, ngse.monitor.Monitor.RespServiceAttr.Builder.class); } // Construct using ngse.monitor.Monitor.RespServiceAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespServiceAttr_descriptor; } public ngse.monitor.Monitor.RespServiceAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance(); } public ngse.monitor.Monitor.RespServiceAttr build() { ngse.monitor.Monitor.RespServiceAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespServiceAttr buildPartial() { ngse.monitor.Monitor.RespServiceAttr result = new ngse.monitor.Monitor.RespServiceAttr(this); int from_bitField0_ = bitField0_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespServiceAttr) { return mergeFrom((ngse.monitor.Monitor.RespServiceAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespServiceAttr other) { if (other == ngse.monitor.Monitor.RespServiceAttr.getDefaultInstance()) return this; if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); dataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespServiceAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespServiceAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ngse.monitor.Monitor.AttrData> data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.AttrData>(data_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AttrData, ngse.monitor.Monitor.AttrData.Builder, ngse.monitor.Monitor.AttrDataOrBuilder> dataBuilder_; /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.AttrData> getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrData getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.AttrData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.AttrData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder addData(ngse.monitor.Monitor.AttrData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.AttrData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder addData( ngse.monitor.Monitor.AttrData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.AttrData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder addAllData( java.lang.Iterable<? extends ngse.monitor.Monitor.AttrData> values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrData.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrDataOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AttrDataOrBuilder> getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrData.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( ngse.monitor.Monitor.AttrData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public ngse.monitor.Monitor.AttrData.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, ngse.monitor.Monitor.AttrData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.AttrData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.AttrData.Builder> getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AttrData, ngse.monitor.Monitor.AttrData.Builder, ngse.monitor.Monitor.AttrDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AttrData, ngse.monitor.Monitor.AttrData.Builder, ngse.monitor.Monitor.AttrDataOrBuilder>( data_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespServiceAttr) } static { defaultInstance = new RespServiceAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespServiceAttr) } public interface ReqAttrIPOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqAttrIP) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>repeated string ips = 3;</code> */ com.google.protobuf.ProtocolStringList getIpsList(); /** * <code>repeated string ips = 3;</code> */ int getIpsCount(); /** * <code>repeated string ips = 3;</code> */ java.lang.String getIps(int index); /** * <code>repeated string ips = 3;</code> */ com.google.protobuf.ByteString getIpsBytes(int index); /** * <code>repeated uint32 days = 4;</code> */ java.util.List<java.lang.Integer> getDaysList(); /** * <code>repeated uint32 days = 4;</code> */ int getDaysCount(); /** * <code>repeated uint32 days = 4;</code> */ int getDays(int index); } /** * Protobuf type {@code ngse.monitor.ReqAttrIP} * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public static final class ReqAttrIP extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqAttrIP) ReqAttrIPOrBuilder { // Use ReqAttrIP.newBuilder() to construct. private ReqAttrIP(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqAttrIP(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqAttrIP defaultInstance; public static ReqAttrIP getDefaultInstance() { return defaultInstance; } public ReqAttrIP getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqAttrIP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ips_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } ips_.add(bs); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000008; } days_.add(input.readUInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { days_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ips_ = ips_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { days_ = java.util.Collections.unmodifiableList(days_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqAttrIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqAttrIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqAttrIP.class, ngse.monitor.Monitor.ReqAttrIP.Builder.class); } public static com.google.protobuf.Parser<ReqAttrIP> PARSER = new com.google.protobuf.AbstractParser<ReqAttrIP>() { public ReqAttrIP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqAttrIP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqAttrIP> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IPS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ips_; /** * <code>repeated string ips = 3;</code> */ public com.google.protobuf.ProtocolStringList getIpsList() { return ips_; } /** * <code>repeated string ips = 3;</code> */ public int getIpsCount() { return ips_.size(); } /** * <code>repeated string ips = 3;</code> */ public java.lang.String getIps(int index) { return ips_.get(index); } /** * <code>repeated string ips = 3;</code> */ public com.google.protobuf.ByteString getIpsBytes(int index) { return ips_.getByteString(index); } public static final int DAYS_FIELD_NUMBER = 4; private java.util.List<java.lang.Integer> days_; /** * <code>repeated uint32 days = 4;</code> */ public java.util.List<java.lang.Integer> getDaysList() { return days_; } /** * <code>repeated uint32 days = 4;</code> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 4;</code> */ public int getDays(int index) { return days_.get(index); } private void initFields() { servicename_ = ""; attrname_ = ""; ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; days_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } for (int i = 0; i < ips_.size(); i++) { output.writeBytes(3, ips_.getByteString(i)); } for (int i = 0; i < days_.size(); i++) { output.writeUInt32(4, days_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } { int dataSize = 0; for (int i = 0; i < ips_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(ips_.getByteString(i)); } size += dataSize; size += 1 * getIpsList().size(); } { int dataSize = 0; for (int i = 0; i < days_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(days_.get(i)); } size += dataSize; size += 1 * getDaysList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqAttrIP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqAttrIP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqAttrIP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqAttrIP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqAttrIP} * * <pre> *批量获取单个属性的多天多IP数据 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqAttrIP) ngse.monitor.Monitor.ReqAttrIPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqAttrIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqAttrIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqAttrIP.class, ngse.monitor.Monitor.ReqAttrIP.Builder.class); } // Construct using ngse.monitor.Monitor.ReqAttrIP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqAttrIP_descriptor; } public ngse.monitor.Monitor.ReqAttrIP getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance(); } public ngse.monitor.Monitor.ReqAttrIP build() { ngse.monitor.Monitor.ReqAttrIP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqAttrIP buildPartial() { ngse.monitor.Monitor.ReqAttrIP result = new ngse.monitor.Monitor.ReqAttrIP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; if (((bitField0_ & 0x00000004) == 0x00000004)) { ips_ = ips_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.ips_ = ips_; if (((bitField0_ & 0x00000008) == 0x00000008)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000008); } result.days_ = days_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqAttrIP) { return mergeFrom((ngse.monitor.Monitor.ReqAttrIP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqAttrIP other) { if (other == ngse.monitor.Monitor.ReqAttrIP.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } if (!other.ips_.isEmpty()) { if (ips_.isEmpty()) { ips_ = other.ips_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureIpsIsMutable(); ips_.addAll(other.ips_); } onChanged(); } if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqAttrIP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqAttrIP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { ips_ = new com.google.protobuf.LazyStringArrayList(ips_); bitField0_ |= 0x00000004; } } /** * <code>repeated string ips = 3;</code> */ public com.google.protobuf.ProtocolStringList getIpsList() { return ips_.getUnmodifiableView(); } /** * <code>repeated string ips = 3;</code> */ public int getIpsCount() { return ips_.size(); } /** * <code>repeated string ips = 3;</code> */ public java.lang.String getIps(int index) { return ips_.get(index); } /** * <code>repeated string ips = 3;</code> */ public com.google.protobuf.ByteString getIpsBytes(int index) { return ips_.getByteString(index); } /** * <code>repeated string ips = 3;</code> */ public Builder setIps( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpsIsMutable(); ips_.set(index, value); onChanged(); return this; } /** * <code>repeated string ips = 3;</code> */ public Builder addIps( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpsIsMutable(); ips_.add(value); onChanged(); return this; } /** * <code>repeated string ips = 3;</code> */ public Builder addAllIps( java.lang.Iterable<java.lang.String> values) { ensureIpsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ips_); onChanged(); return this; } /** * <code>repeated string ips = 3;</code> */ public Builder clearIps() { ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>repeated string ips = 3;</code> */ public Builder addIpsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureIpsIsMutable(); ips_.add(value); onChanged(); return this; } private java.util.List<java.lang.Integer> days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { days_ = new java.util.ArrayList<java.lang.Integer>(days_); bitField0_ |= 0x00000008; } } /** * <code>repeated uint32 days = 4;</code> */ public java.util.List<java.lang.Integer> getDaysList() { return java.util.Collections.unmodifiableList(days_); } /** * <code>repeated uint32 days = 4;</code> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 4;</code> */ public int getDays(int index) { return days_.get(index); } /** * <code>repeated uint32 days = 4;</code> */ public Builder setDays( int index, int value) { ensureDaysIsMutable(); days_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 days = 4;</code> */ public Builder addDays(int value) { ensureDaysIsMutable(); days_.add(value); onChanged(); return this; } /** * <code>repeated uint32 days = 4;</code> */ public Builder addAllDays( java.lang.Iterable<? extends java.lang.Integer> values) { ensureDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, days_); onChanged(); return this; } /** * <code>repeated uint32 days = 4;</code> */ public Builder clearDays() { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqAttrIP) } static { defaultInstance = new ReqAttrIP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqAttrIP) } public interface AttrIPDataOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.AttrIPData) com.google.protobuf.MessageOrBuilder { /** * <code>optional string ip = 1;</code> */ boolean hasIp(); /** * <code>optional string ip = 1;</code> */ java.lang.String getIp(); /** * <code>optional string ip = 1;</code> */ com.google.protobuf.ByteString getIpBytes(); /** * <code>optional uint32 day = 2;</code> */ boolean hasDay(); /** * <code>optional uint32 day = 2;</code> */ int getDay(); /** * <code>repeated uint32 values = 3;</code> */ java.util.List<java.lang.Integer> getValuesList(); /** * <code>repeated uint32 values = 3;</code> */ int getValuesCount(); /** * <code>repeated uint32 values = 3;</code> */ int getValues(int index); } /** * Protobuf type {@code ngse.monitor.AttrIPData} */ public static final class AttrIPData extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.AttrIPData) AttrIPDataOrBuilder { // Use AttrIPData.newBuilder() to construct. private AttrIPData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AttrIPData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AttrIPData defaultInstance; public static AttrIPData getDefaultInstance() { return defaultInstance; } public AttrIPData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttrIPData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; ip_ = bs; break; } case 16: { bitField0_ |= 0x00000002; day_ = input.readUInt32(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } values_.add(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { values_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrIPData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrIPData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.AttrIPData.class, ngse.monitor.Monitor.AttrIPData.Builder.class); } public static com.google.protobuf.Parser<AttrIPData> PARSER = new com.google.protobuf.AbstractParser<AttrIPData>() { public AttrIPData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttrIPData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<AttrIPData> getParserForType() { return PARSER; } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private java.lang.Object ip_; /** * <code>optional string ip = 1;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string ip = 1;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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(); if (bs.isValidUtf8()) { ip_ = s; } return s; } } /** * <code>optional string ip = 1;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAY_FIELD_NUMBER = 2; private int day_; /** * <code>optional uint32 day = 2;</code> */ public boolean hasDay() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 day = 2;</code> */ public int getDay() { return day_; } public static final int VALUES_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> values_; /** * <code>repeated uint32 values = 3;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return values_; } /** * <code>repeated uint32 values = 3;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 3;</code> */ public int getValues(int index) { return values_.get(index); } private void initFields() { ip_ = ""; day_ = 0; values_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getIpBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, day_); } for (int i = 0; i < values_.size(); i++) { output.writeUInt32(3, values_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getIpBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, day_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.AttrIPData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.AttrIPData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.AttrIPData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.AttrIPData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.AttrIPData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.AttrIPData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.AttrIPData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.AttrIPData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.AttrIPData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.AttrIPData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.AttrIPData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.AttrIPData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.AttrIPData) ngse.monitor.Monitor.AttrIPDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrIPData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrIPData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.AttrIPData.class, ngse.monitor.Monitor.AttrIPData.Builder.class); } // Construct using ngse.monitor.Monitor.AttrIPData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); day_ = 0; bitField0_ = (bitField0_ & ~0x00000002); values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_AttrIPData_descriptor; } public ngse.monitor.Monitor.AttrIPData getDefaultInstanceForType() { return ngse.monitor.Monitor.AttrIPData.getDefaultInstance(); } public ngse.monitor.Monitor.AttrIPData build() { ngse.monitor.Monitor.AttrIPData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.AttrIPData buildPartial() { ngse.monitor.Monitor.AttrIPData result = new ngse.monitor.Monitor.AttrIPData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.day_ = day_; if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.AttrIPData) { return mergeFrom((ngse.monitor.Monitor.AttrIPData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.AttrIPData other) { if (other == ngse.monitor.Monitor.AttrIPData.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; onChanged(); } if (other.hasDay()) { setDay(other.getDay()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.AttrIPData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.AttrIPData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * <code>optional string ip = 1;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string ip = 1;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string ip = 1;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string ip = 1;</code> */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * <code>optional string ip = 1;</code> */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * <code>optional string ip = 1;</code> */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } private int day_ ; /** * <code>optional uint32 day = 2;</code> */ public boolean hasDay() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 day = 2;</code> */ public int getDay() { return day_; } /** * <code>optional uint32 day = 2;</code> */ public Builder setDay(int value) { bitField0_ |= 0x00000002; day_ = value; onChanged(); return this; } /** * <code>optional uint32 day = 2;</code> */ public Builder clearDay() { bitField0_ = (bitField0_ & ~0x00000002); day_ = 0; onChanged(); return this; } private java.util.List<java.lang.Integer> values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList<java.lang.Integer>(values_); bitField0_ |= 0x00000004; } } /** * <code>repeated uint32 values = 3;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return java.util.Collections.unmodifiableList(values_); } /** * <code>repeated uint32 values = 3;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 3;</code> */ public int getValues(int index) { return values_.get(index); } /** * <code>repeated uint32 values = 3;</code> */ public Builder setValues( int index, int value) { ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder addValues(int value) { ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder addAllValues( java.lang.Iterable<? extends java.lang.Integer> values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * <code>repeated uint32 values = 3;</code> */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.AttrIPData) } static { defaultInstance = new AttrIPData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.AttrIPData) } public interface RespAttrIPOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespAttrIP) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ java.util.List<ngse.monitor.Monitor.AttrIPData> getDataList(); /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ ngse.monitor.Monitor.AttrIPData getData(int index); /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ int getDataCount(); /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ java.util.List<? extends ngse.monitor.Monitor.AttrIPDataOrBuilder> getDataOrBuilderList(); /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ ngse.monitor.Monitor.AttrIPDataOrBuilder getDataOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.RespAttrIP} */ public static final class RespAttrIP extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespAttrIP) RespAttrIPOrBuilder { // Use RespAttrIP.newBuilder() to construct. private RespAttrIP(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespAttrIP(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespAttrIP defaultInstance; public static RespAttrIP getDefaultInstance() { return defaultInstance; } public RespAttrIP getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespAttrIP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.AttrIPData>(); mutable_bitField0_ |= 0x00000001; } data_.add(input.readMessage(ngse.monitor.Monitor.AttrIPData.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespAttrIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespAttrIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespAttrIP.class, ngse.monitor.Monitor.RespAttrIP.Builder.class); } public static com.google.protobuf.Parser<RespAttrIP> PARSER = new com.google.protobuf.AbstractParser<RespAttrIP>() { public RespAttrIP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespAttrIP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespAttrIP> getParserForType() { return PARSER; } public static final int DATA_FIELD_NUMBER = 1; private java.util.List<ngse.monitor.Monitor.AttrIPData> data_; /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.AttrIPData> getDataList() { return data_; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AttrIPDataOrBuilder> getDataOrBuilderList() { return data_; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public int getDataCount() { return data_.size(); } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPData getData(int index) { return data_.get(index); } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPDataOrBuilder getDataOrBuilder( int index) { return data_.get(index); } private void initFields() { data_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < data_.size(); i++) { output.writeMessage(1, data_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, data_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespAttrIP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespAttrIP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespAttrIP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespAttrIP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespAttrIP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespAttrIP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespAttrIP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespAttrIP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespAttrIP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespAttrIP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespAttrIP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespAttrIP} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespAttrIP) ngse.monitor.Monitor.RespAttrIPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespAttrIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespAttrIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespAttrIP.class, ngse.monitor.Monitor.RespAttrIP.Builder.class); } // Construct using ngse.monitor.Monitor.RespAttrIP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespAttrIP_descriptor; } public ngse.monitor.Monitor.RespAttrIP getDefaultInstanceForType() { return ngse.monitor.Monitor.RespAttrIP.getDefaultInstance(); } public ngse.monitor.Monitor.RespAttrIP build() { ngse.monitor.Monitor.RespAttrIP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespAttrIP buildPartial() { ngse.monitor.Monitor.RespAttrIP result = new ngse.monitor.Monitor.RespAttrIP(this); int from_bitField0_ = bitField0_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespAttrIP) { return mergeFrom((ngse.monitor.Monitor.RespAttrIP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespAttrIP other) { if (other == ngse.monitor.Monitor.RespAttrIP.getDefaultInstance()) return this; if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); dataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespAttrIP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespAttrIP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ngse.monitor.Monitor.AttrIPData> data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.AttrIPData>(data_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AttrIPData, ngse.monitor.Monitor.AttrIPData.Builder, ngse.monitor.Monitor.AttrIPDataOrBuilder> dataBuilder_; /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.AttrIPData> getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPData getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.AttrIPData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.AttrIPData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder addData(ngse.monitor.Monitor.AttrIPData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.AttrIPData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder addData( ngse.monitor.Monitor.AttrIPData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.AttrIPData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder addAllData( java.lang.Iterable<? extends ngse.monitor.Monitor.AttrIPData> values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPData.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPDataOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AttrIPDataOrBuilder> getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPData.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( ngse.monitor.Monitor.AttrIPData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public ngse.monitor.Monitor.AttrIPData.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, ngse.monitor.Monitor.AttrIPData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.AttrIPData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.AttrIPData.Builder> getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AttrIPData, ngse.monitor.Monitor.AttrIPData.Builder, ngse.monitor.Monitor.AttrIPDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.AttrIPData, ngse.monitor.Monitor.AttrIPData.Builder, ngse.monitor.Monitor.AttrIPDataOrBuilder>( data_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespAttrIP) } static { defaultInstance = new RespAttrIP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespAttrIP) } public interface ReqIPOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqIP) com.google.protobuf.MessageOrBuilder { /** * <code>optional string ip = 1;</code> */ boolean hasIp(); /** * <code>optional string ip = 1;</code> */ java.lang.String getIp(); /** * <code>optional string ip = 1;</code> */ com.google.protobuf.ByteString getIpBytes(); /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ java.util.List<java.lang.Integer> getDaysList(); /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ int getDaysCount(); /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ int getDays(int index); } /** * Protobuf type {@code ngse.monitor.ReqIP} * * <pre> *获取单个IP的Service和属性 * </pre> */ public static final class ReqIP extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqIP) ReqIPOrBuilder { // Use ReqIP.newBuilder() to construct. private ReqIP(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqIP(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqIP defaultInstance; public static ReqIP getDefaultInstance() { return defaultInstance; } public ReqIP getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqIP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; ip_ = bs; break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } days_.add(input.readUInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { days_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { days_ = java.util.Collections.unmodifiableList(days_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqIP.class, ngse.monitor.Monitor.ReqIP.Builder.class); } public static com.google.protobuf.Parser<ReqIP> PARSER = new com.google.protobuf.AbstractParser<ReqIP>() { public ReqIP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqIP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqIP> getParserForType() { return PARSER; } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private java.lang.Object ip_; /** * <code>optional string ip = 1;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string ip = 1;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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(); if (bs.isValidUtf8()) { ip_ = s; } return s; } } /** * <code>optional string ip = 1;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAYS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> days_; /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public java.util.List<java.lang.Integer> getDaysList() { return days_; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDays(int index) { return days_.get(index); } private void initFields() { ip_ = ""; days_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getIpBytes()); } for (int i = 0; i < days_.size(); i++) { output.writeUInt32(2, days_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getIpBytes()); } { int dataSize = 0; for (int i = 0; i < days_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(days_.get(i)); } size += dataSize; size += 1 * getDaysList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqIP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqIP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqIP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqIP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqIP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqIP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqIP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqIP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqIP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqIP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqIP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqIP} * * <pre> *获取单个IP的Service和属性 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqIP) ngse.monitor.Monitor.ReqIPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqIP.class, ngse.monitor.Monitor.ReqIP.Builder.class); } // Construct using ngse.monitor.Monitor.ReqIP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIP_descriptor; } public ngse.monitor.Monitor.ReqIP getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqIP.getDefaultInstance(); } public ngse.monitor.Monitor.ReqIP build() { ngse.monitor.Monitor.ReqIP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqIP buildPartial() { ngse.monitor.Monitor.ReqIP result = new ngse.monitor.Monitor.ReqIP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (((bitField0_ & 0x00000002) == 0x00000002)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000002); } result.days_ = days_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqIP) { return mergeFrom((ngse.monitor.Monitor.ReqIP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqIP other) { if (other == ngse.monitor.Monitor.ReqIP.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; onChanged(); } if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqIP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqIP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * <code>optional string ip = 1;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string ip = 1;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string ip = 1;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string ip = 1;</code> */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * <code>optional string ip = 1;</code> */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * <code>optional string ip = 1;</code> */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } private java.util.List<java.lang.Integer> days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { days_ = new java.util.ArrayList<java.lang.Integer>(days_); bitField0_ |= 0x00000002; } } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public java.util.List<java.lang.Integer> getDaysList() { return java.util.Collections.unmodifiableList(days_); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public int getDays(int index) { return days_.get(index); } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder setDays( int index, int value) { ensureDaysIsMutable(); days_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder addDays(int value) { ensureDaysIsMutable(); days_.add(value); onChanged(); return this; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder addAllDays( java.lang.Iterable<? extends java.lang.Integer> values) { ensureDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, days_); onChanged(); return this; } /** * <code>repeated uint32 days = 2;</code> * * <pre> *如2016年2月24日对应的值为20160224;如指定日期则只返回在指定日期内有数据的属性 * </pre> */ public Builder clearDays() { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqIP) } static { defaultInstance = new ReqIP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqIP) } public interface IPDataOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.IPData) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ com.google.protobuf.ProtocolStringList getAttrnamesList(); /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ int getAttrnamesCount(); /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ java.lang.String getAttrnames(int index); /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ com.google.protobuf.ByteString getAttrnamesBytes(int index); } /** * Protobuf type {@code ngse.monitor.IPData} */ public static final class IPData extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.IPData) IPDataOrBuilder { // Use IPData.newBuilder() to construct. private IPData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IPData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IPData defaultInstance; public static IPData getDefaultInstance() { return defaultInstance; } public IPData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IPData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } attrnames_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = attrnames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.IPData.class, ngse.monitor.Monitor.IPData.Builder.class); } public static com.google.protobuf.Parser<IPData> PARSER = new com.google.protobuf.AbstractParser<IPData>() { public IPData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IPData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<IPData> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList attrnames_; /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public com.google.protobuf.ProtocolStringList getAttrnamesList() { return attrnames_; } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public int getAttrnamesCount() { return attrnames_.size(); } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public java.lang.String getAttrnames(int index) { return attrnames_.get(index); } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public com.google.protobuf.ByteString getAttrnamesBytes(int index) { return attrnames_.getByteString(index); } private void initFields() { servicename_ = ""; attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } for (int i = 0; i < attrnames_.size(); i++) { output.writeBytes(2, attrnames_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } { int dataSize = 0; for (int i = 0; i < attrnames_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attrnames_.getByteString(i)); } size += dataSize; size += 1 * getAttrnamesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.IPData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.IPData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.IPData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.IPData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.IPData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.IPData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.IPData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.IPData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.IPData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.IPData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.IPData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.IPData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.IPData) ngse.monitor.Monitor.IPDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.IPData.class, ngse.monitor.Monitor.IPData.Builder.class); } // Construct using ngse.monitor.Monitor.IPData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPData_descriptor; } public ngse.monitor.Monitor.IPData getDefaultInstanceForType() { return ngse.monitor.Monitor.IPData.getDefaultInstance(); } public ngse.monitor.Monitor.IPData build() { ngse.monitor.Monitor.IPData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.IPData buildPartial() { ngse.monitor.Monitor.IPData result = new ngse.monitor.Monitor.IPData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = attrnames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.attrnames_ = attrnames_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.IPData) { return mergeFrom((ngse.monitor.Monitor.IPData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.IPData other) { if (other == ngse.monitor.Monitor.IPData.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (!other.attrnames_.isEmpty()) { if (attrnames_.isEmpty()) { attrnames_ = other.attrnames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAttrnamesIsMutable(); attrnames_.addAll(other.attrnames_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.IPData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.IPData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttrnamesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { attrnames_ = new com.google.protobuf.LazyStringArrayList(attrnames_); bitField0_ |= 0x00000002; } } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public com.google.protobuf.ProtocolStringList getAttrnamesList() { return attrnames_.getUnmodifiableView(); } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public int getAttrnamesCount() { return attrnames_.size(); } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public java.lang.String getAttrnames(int index) { return attrnames_.get(index); } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public com.google.protobuf.ByteString getAttrnamesBytes(int index) { return attrnames_.getByteString(index); } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public Builder setAttrnames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.set(index, value); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public Builder addAttrnames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.add(value); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public Builder addAllAttrnames( java.lang.Iterable<java.lang.String> values) { ensureAttrnamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attrnames_); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public Builder clearAttrnames() { attrnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string attrnames = 2;</code> * * <pre> *如果指定了日期,有可能返回有servicename但无attrname的IPData,说明该servicename下在指定日期没有属性上报 * </pre> */ public Builder addAttrnamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttrnamesIsMutable(); attrnames_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.IPData) } static { defaultInstance = new IPData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.IPData) } public interface RespIPOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespIP) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ java.util.List<ngse.monitor.Monitor.IPData> getDataList(); /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ ngse.monitor.Monitor.IPData getData(int index); /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ int getDataCount(); /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ java.util.List<? extends ngse.monitor.Monitor.IPDataOrBuilder> getDataOrBuilderList(); /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ ngse.monitor.Monitor.IPDataOrBuilder getDataOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.RespIP} */ public static final class RespIP extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespIP) RespIPOrBuilder { // Use RespIP.newBuilder() to construct. private RespIP(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespIP(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespIP defaultInstance; public static RespIP getDefaultInstance() { return defaultInstance; } public RespIP getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespIP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.IPData>(); mutable_bitField0_ |= 0x00000001; } data_.add(input.readMessage(ngse.monitor.Monitor.IPData.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespIP.class, ngse.monitor.Monitor.RespIP.Builder.class); } public static com.google.protobuf.Parser<RespIP> PARSER = new com.google.protobuf.AbstractParser<RespIP>() { public RespIP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespIP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespIP> getParserForType() { return PARSER; } public static final int DATA_FIELD_NUMBER = 1; private java.util.List<ngse.monitor.Monitor.IPData> data_; /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.IPData> getDataList() { return data_; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.IPDataOrBuilder> getDataOrBuilderList() { return data_; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public int getDataCount() { return data_.size(); } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPData getData(int index) { return data_.get(index); } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPDataOrBuilder getDataOrBuilder( int index) { return data_.get(index); } private void initFields() { data_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < data_.size(); i++) { output.writeMessage(1, data_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, data_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespIP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespIP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespIP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespIP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespIP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespIP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespIP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespIP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespIP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespIP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespIP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespIP} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespIP) ngse.monitor.Monitor.RespIPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIP_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespIP.class, ngse.monitor.Monitor.RespIP.Builder.class); } // Construct using ngse.monitor.Monitor.RespIP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIP_descriptor; } public ngse.monitor.Monitor.RespIP getDefaultInstanceForType() { return ngse.monitor.Monitor.RespIP.getDefaultInstance(); } public ngse.monitor.Monitor.RespIP build() { ngse.monitor.Monitor.RespIP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespIP buildPartial() { ngse.monitor.Monitor.RespIP result = new ngse.monitor.Monitor.RespIP(this); int from_bitField0_ = bitField0_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespIP) { return mergeFrom((ngse.monitor.Monitor.RespIP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespIP other) { if (other == ngse.monitor.Monitor.RespIP.getDefaultInstance()) return this; if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); dataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespIP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespIP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ngse.monitor.Monitor.IPData> data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.IPData>(data_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPData, ngse.monitor.Monitor.IPData.Builder, ngse.monitor.Monitor.IPDataOrBuilder> dataBuilder_; /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.IPData> getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPData getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.IPData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.IPData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder addData(ngse.monitor.Monitor.IPData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.IPData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder addData( ngse.monitor.Monitor.IPData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.IPData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder addAllData( java.lang.Iterable<? extends ngse.monitor.Monitor.IPData> values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPData.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPDataOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.IPDataOrBuilder> getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPData.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( ngse.monitor.Monitor.IPData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public ngse.monitor.Monitor.IPData.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, ngse.monitor.Monitor.IPData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.IPData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.IPData.Builder> getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPData, ngse.monitor.Monitor.IPData.Builder, ngse.monitor.Monitor.IPDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPData, ngse.monitor.Monitor.IPData.Builder, ngse.monitor.Monitor.IPDataOrBuilder>( data_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespIP) } static { defaultInstance = new RespIP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespIP) } public interface ReqIPAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqIPAttr) com.google.protobuf.MessageOrBuilder { /** * <code>optional string ip = 1;</code> */ boolean hasIp(); /** * <code>optional string ip = 1;</code> */ java.lang.String getIp(); /** * <code>optional string ip = 1;</code> */ com.google.protobuf.ByteString getIpBytes(); /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ java.util.List<ngse.monitor.Monitor.IPData> getAttrsList(); /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ ngse.monitor.Monitor.IPData getAttrs(int index); /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ int getAttrsCount(); /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ java.util.List<? extends ngse.monitor.Monitor.IPDataOrBuilder> getAttrsOrBuilderList(); /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ ngse.monitor.Monitor.IPDataOrBuilder getAttrsOrBuilder( int index); /** * <code>repeated uint32 days = 3;</code> */ java.util.List<java.lang.Integer> getDaysList(); /** * <code>repeated uint32 days = 3;</code> */ int getDaysCount(); /** * <code>repeated uint32 days = 3;</code> */ int getDays(int index); } /** * Protobuf type {@code ngse.monitor.ReqIPAttr} * * <pre> *批量获取单个IP的多天多属性数据 * </pre> */ public static final class ReqIPAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqIPAttr) ReqIPAttrOrBuilder { // Use ReqIPAttr.newBuilder() to construct. private ReqIPAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqIPAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqIPAttr defaultInstance; public static ReqIPAttr getDefaultInstance() { return defaultInstance; } public ReqIPAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqIPAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; ip_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attrs_ = new java.util.ArrayList<ngse.monitor.Monitor.IPData>(); mutable_bitField0_ |= 0x00000002; } attrs_.add(input.readMessage(ngse.monitor.Monitor.IPData.PARSER, extensionRegistry)); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } days_.add(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { days_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { days_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attrs_ = java.util.Collections.unmodifiableList(attrs_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { days_ = java.util.Collections.unmodifiableList(days_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIPAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIPAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqIPAttr.class, ngse.monitor.Monitor.ReqIPAttr.Builder.class); } public static com.google.protobuf.Parser<ReqIPAttr> PARSER = new com.google.protobuf.AbstractParser<ReqIPAttr>() { public ReqIPAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqIPAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqIPAttr> getParserForType() { return PARSER; } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private java.lang.Object ip_; /** * <code>optional string ip = 1;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string ip = 1;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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(); if (bs.isValidUtf8()) { ip_ = s; } return s; } } /** * <code>optional string ip = 1;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRS_FIELD_NUMBER = 2; private java.util.List<ngse.monitor.Monitor.IPData> attrs_; /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public java.util.List<ngse.monitor.Monitor.IPData> getAttrsList() { return attrs_; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public java.util.List<? extends ngse.monitor.Monitor.IPDataOrBuilder> getAttrsOrBuilderList() { return attrs_; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public int getAttrsCount() { return attrs_.size(); } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPData getAttrs(int index) { return attrs_.get(index); } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPDataOrBuilder getAttrsOrBuilder( int index) { return attrs_.get(index); } public static final int DAYS_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> days_; /** * <code>repeated uint32 days = 3;</code> */ public java.util.List<java.lang.Integer> getDaysList() { return days_; } /** * <code>repeated uint32 days = 3;</code> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 3;</code> */ public int getDays(int index) { return days_.get(index); } private void initFields() { ip_ = ""; attrs_ = java.util.Collections.emptyList(); days_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getIpBytes()); } for (int i = 0; i < attrs_.size(); i++) { output.writeMessage(2, attrs_.get(i)); } for (int i = 0; i < days_.size(); i++) { output.writeUInt32(3, days_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getIpBytes()); } for (int i = 0; i < attrs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attrs_.get(i)); } { int dataSize = 0; for (int i = 0; i < days_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(days_.get(i)); } size += dataSize; size += 1 * getDaysList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqIPAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqIPAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqIPAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqIPAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqIPAttr} * * <pre> *批量获取单个IP的多天多属性数据 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqIPAttr) ngse.monitor.Monitor.ReqIPAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIPAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIPAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqIPAttr.class, ngse.monitor.Monitor.ReqIPAttr.Builder.class); } // Construct using ngse.monitor.Monitor.ReqIPAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAttrsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (attrsBuilder_ == null) { attrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { attrsBuilder_.clear(); } days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqIPAttr_descriptor; } public ngse.monitor.Monitor.ReqIPAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance(); } public ngse.monitor.Monitor.ReqIPAttr build() { ngse.monitor.Monitor.ReqIPAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqIPAttr buildPartial() { ngse.monitor.Monitor.ReqIPAttr result = new ngse.monitor.Monitor.ReqIPAttr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (attrsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { attrs_ = java.util.Collections.unmodifiableList(attrs_); bitField0_ = (bitField0_ & ~0x00000002); } result.attrs_ = attrs_; } else { result.attrs_ = attrsBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000004); } result.days_ = days_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqIPAttr) { return mergeFrom((ngse.monitor.Monitor.ReqIPAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqIPAttr other) { if (other == ngse.monitor.Monitor.ReqIPAttr.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; onChanged(); } if (attrsBuilder_ == null) { if (!other.attrs_.isEmpty()) { if (attrs_.isEmpty()) { attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAttrsIsMutable(); attrs_.addAll(other.attrs_); } onChanged(); } } else { if (!other.attrs_.isEmpty()) { if (attrsBuilder_.isEmpty()) { attrsBuilder_.dispose(); attrsBuilder_ = null; attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000002); attrsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttrsFieldBuilder() : null; } else { attrsBuilder_.addAllMessages(other.attrs_); } } } if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqIPAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqIPAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * <code>optional string ip = 1;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string ip = 1;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string ip = 1;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string ip = 1;</code> */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * <code>optional string ip = 1;</code> */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * <code>optional string ip = 1;</code> */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } private java.util.List<ngse.monitor.Monitor.IPData> attrs_ = java.util.Collections.emptyList(); private void ensureAttrsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { attrs_ = new java.util.ArrayList<ngse.monitor.Monitor.IPData>(attrs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPData, ngse.monitor.Monitor.IPData.Builder, ngse.monitor.Monitor.IPDataOrBuilder> attrsBuilder_; /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public java.util.List<ngse.monitor.Monitor.IPData> getAttrsList() { if (attrsBuilder_ == null) { return java.util.Collections.unmodifiableList(attrs_); } else { return attrsBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public int getAttrsCount() { if (attrsBuilder_ == null) { return attrs_.size(); } else { return attrsBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPData getAttrs(int index) { if (attrsBuilder_ == null) { return attrs_.get(index); } else { return attrsBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder setAttrs( int index, ngse.monitor.Monitor.IPData value) { if (attrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.set(index, value); onChanged(); } else { attrsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder setAttrs( int index, ngse.monitor.Monitor.IPData.Builder builderForValue) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.set(index, builderForValue.build()); onChanged(); } else { attrsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder addAttrs(ngse.monitor.Monitor.IPData value) { if (attrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.add(value); onChanged(); } else { attrsBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder addAttrs( int index, ngse.monitor.Monitor.IPData value) { if (attrsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrsIsMutable(); attrs_.add(index, value); onChanged(); } else { attrsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder addAttrs( ngse.monitor.Monitor.IPData.Builder builderForValue) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.add(builderForValue.build()); onChanged(); } else { attrsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder addAttrs( int index, ngse.monitor.Monitor.IPData.Builder builderForValue) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.add(index, builderForValue.build()); onChanged(); } else { attrsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder addAllAttrs( java.lang.Iterable<? extends ngse.monitor.Monitor.IPData> values) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attrs_); onChanged(); } else { attrsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder clearAttrs() { if (attrsBuilder_ == null) { attrs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { attrsBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public Builder removeAttrs(int index) { if (attrsBuilder_ == null) { ensureAttrsIsMutable(); attrs_.remove(index); onChanged(); } else { attrsBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPData.Builder getAttrsBuilder( int index) { return getAttrsFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPDataOrBuilder getAttrsOrBuilder( int index) { if (attrsBuilder_ == null) { return attrs_.get(index); } else { return attrsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public java.util.List<? extends ngse.monitor.Monitor.IPDataOrBuilder> getAttrsOrBuilderList() { if (attrsBuilder_ != null) { return attrsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attrs_); } } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPData.Builder addAttrsBuilder() { return getAttrsFieldBuilder().addBuilder( ngse.monitor.Monitor.IPData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public ngse.monitor.Monitor.IPData.Builder addAttrsBuilder( int index) { return getAttrsFieldBuilder().addBuilder( index, ngse.monitor.Monitor.IPData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.IPData attrs = 2;</code> */ public java.util.List<ngse.monitor.Monitor.IPData.Builder> getAttrsBuilderList() { return getAttrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPData, ngse.monitor.Monitor.IPData.Builder, ngse.monitor.Monitor.IPDataOrBuilder> getAttrsFieldBuilder() { if (attrsBuilder_ == null) { attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPData, ngse.monitor.Monitor.IPData.Builder, ngse.monitor.Monitor.IPDataOrBuilder>( attrs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); attrs_ = null; } return attrsBuilder_; } private java.util.List<java.lang.Integer> days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { days_ = new java.util.ArrayList<java.lang.Integer>(days_); bitField0_ |= 0x00000004; } } /** * <code>repeated uint32 days = 3;</code> */ public java.util.List<java.lang.Integer> getDaysList() { return java.util.Collections.unmodifiableList(days_); } /** * <code>repeated uint32 days = 3;</code> */ public int getDaysCount() { return days_.size(); } /** * <code>repeated uint32 days = 3;</code> */ public int getDays(int index) { return days_.get(index); } /** * <code>repeated uint32 days = 3;</code> */ public Builder setDays( int index, int value) { ensureDaysIsMutable(); days_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 days = 3;</code> */ public Builder addDays(int value) { ensureDaysIsMutable(); days_.add(value); onChanged(); return this; } /** * <code>repeated uint32 days = 3;</code> */ public Builder addAllDays( java.lang.Iterable<? extends java.lang.Integer> values) { ensureDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, days_); onChanged(); return this; } /** * <code>repeated uint32 days = 3;</code> */ public Builder clearDays() { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqIPAttr) } static { defaultInstance = new ReqIPAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqIPAttr) } public interface IPAttrDataOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.IPAttrData) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>optional uint32 day = 3;</code> */ boolean hasDay(); /** * <code>optional uint32 day = 3;</code> */ int getDay(); /** * <code>repeated uint32 values = 4;</code> */ java.util.List<java.lang.Integer> getValuesList(); /** * <code>repeated uint32 values = 4;</code> */ int getValuesCount(); /** * <code>repeated uint32 values = 4;</code> */ int getValues(int index); } /** * Protobuf type {@code ngse.monitor.IPAttrData} */ public static final class IPAttrData extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.IPAttrData) IPAttrDataOrBuilder { // Use IPAttrData.newBuilder() to construct. private IPAttrData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IPAttrData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IPAttrData defaultInstance; public static IPAttrData getDefaultInstance() { return defaultInstance; } public IPAttrData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IPAttrData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } case 24: { bitField0_ |= 0x00000004; day_ = input.readUInt32(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000008; } values_.add(input.readUInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { values_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { values_.add(input.readUInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPAttrData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPAttrData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.IPAttrData.class, ngse.monitor.Monitor.IPAttrData.Builder.class); } public static com.google.protobuf.Parser<IPAttrData> PARSER = new com.google.protobuf.AbstractParser<IPAttrData>() { public IPAttrData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IPAttrData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<IPAttrData> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAY_FIELD_NUMBER = 3; private int day_; /** * <code>optional uint32 day = 3;</code> */ public boolean hasDay() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 day = 3;</code> */ public int getDay() { return day_; } public static final int VALUES_FIELD_NUMBER = 4; private java.util.List<java.lang.Integer> values_; /** * <code>repeated uint32 values = 4;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return values_; } /** * <code>repeated uint32 values = 4;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 4;</code> */ public int getValues(int index) { return values_.get(index); } private void initFields() { servicename_ = ""; attrname_ = ""; day_ = 0; values_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, day_); } for (int i = 0; i < values_.size(); i++) { output.writeUInt32(4, values_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, day_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.IPAttrData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.IPAttrData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.IPAttrData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.IPAttrData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.IPAttrData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.IPAttrData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.IPAttrData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.IPAttrData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.IPAttrData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.IPAttrData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.IPAttrData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.IPAttrData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.IPAttrData) ngse.monitor.Monitor.IPAttrDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPAttrData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPAttrData_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.IPAttrData.class, ngse.monitor.Monitor.IPAttrData.Builder.class); } // Construct using ngse.monitor.Monitor.IPAttrData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); day_ = 0; bitField0_ = (bitField0_ & ~0x00000004); values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_IPAttrData_descriptor; } public ngse.monitor.Monitor.IPAttrData getDefaultInstanceForType() { return ngse.monitor.Monitor.IPAttrData.getDefaultInstance(); } public ngse.monitor.Monitor.IPAttrData build() { ngse.monitor.Monitor.IPAttrData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.IPAttrData buildPartial() { ngse.monitor.Monitor.IPAttrData result = new ngse.monitor.Monitor.IPAttrData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.day_ = day_; if (((bitField0_ & 0x00000008) == 0x00000008)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000008); } result.values_ = values_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.IPAttrData) { return mergeFrom((ngse.monitor.Monitor.IPAttrData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.IPAttrData other) { if (other == ngse.monitor.Monitor.IPAttrData.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } if (other.hasDay()) { setDay(other.getDay()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.IPAttrData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.IPAttrData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } private int day_ ; /** * <code>optional uint32 day = 3;</code> */ public boolean hasDay() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 day = 3;</code> */ public int getDay() { return day_; } /** * <code>optional uint32 day = 3;</code> */ public Builder setDay(int value) { bitField0_ |= 0x00000004; day_ = value; onChanged(); return this; } /** * <code>optional uint32 day = 3;</code> */ public Builder clearDay() { bitField0_ = (bitField0_ & ~0x00000004); day_ = 0; onChanged(); return this; } private java.util.List<java.lang.Integer> values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { values_ = new java.util.ArrayList<java.lang.Integer>(values_); bitField0_ |= 0x00000008; } } /** * <code>repeated uint32 values = 4;</code> */ public java.util.List<java.lang.Integer> getValuesList() { return java.util.Collections.unmodifiableList(values_); } /** * <code>repeated uint32 values = 4;</code> */ public int getValuesCount() { return values_.size(); } /** * <code>repeated uint32 values = 4;</code> */ public int getValues(int index) { return values_.get(index); } /** * <code>repeated uint32 values = 4;</code> */ public Builder setValues( int index, int value) { ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 values = 4;</code> */ public Builder addValues(int value) { ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * <code>repeated uint32 values = 4;</code> */ public Builder addAllValues( java.lang.Iterable<? extends java.lang.Integer> values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * <code>repeated uint32 values = 4;</code> */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.IPAttrData) } static { defaultInstance = new IPAttrData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.IPAttrData) } public interface RespIPAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespIPAttr) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ java.util.List<ngse.monitor.Monitor.IPAttrData> getDataList(); /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ ngse.monitor.Monitor.IPAttrData getData(int index); /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ int getDataCount(); /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ java.util.List<? extends ngse.monitor.Monitor.IPAttrDataOrBuilder> getDataOrBuilderList(); /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ ngse.monitor.Monitor.IPAttrDataOrBuilder getDataOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.RespIPAttr} */ public static final class RespIPAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespIPAttr) RespIPAttrOrBuilder { // Use RespIPAttr.newBuilder() to construct. private RespIPAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespIPAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespIPAttr defaultInstance; public static RespIPAttr getDefaultInstance() { return defaultInstance; } public RespIPAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespIPAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.IPAttrData>(); mutable_bitField0_ |= 0x00000001; } data_.add(input.readMessage(ngse.monitor.Monitor.IPAttrData.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIPAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIPAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespIPAttr.class, ngse.monitor.Monitor.RespIPAttr.Builder.class); } public static com.google.protobuf.Parser<RespIPAttr> PARSER = new com.google.protobuf.AbstractParser<RespIPAttr>() { public RespIPAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespIPAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespIPAttr> getParserForType() { return PARSER; } public static final int DATA_FIELD_NUMBER = 1; private java.util.List<ngse.monitor.Monitor.IPAttrData> data_; /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.IPAttrData> getDataList() { return data_; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.IPAttrDataOrBuilder> getDataOrBuilderList() { return data_; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public int getDataCount() { return data_.size(); } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrData getData(int index) { return data_.get(index); } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrDataOrBuilder getDataOrBuilder( int index) { return data_.get(index); } private void initFields() { data_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < data_.size(); i++) { output.writeMessage(1, data_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, data_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespIPAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespIPAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespIPAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespIPAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespIPAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespIPAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespIPAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespIPAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespIPAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespIPAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespIPAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespIPAttr} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespIPAttr) ngse.monitor.Monitor.RespIPAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIPAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIPAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespIPAttr.class, ngse.monitor.Monitor.RespIPAttr.Builder.class); } // Construct using ngse.monitor.Monitor.RespIPAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespIPAttr_descriptor; } public ngse.monitor.Monitor.RespIPAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.RespIPAttr.getDefaultInstance(); } public ngse.monitor.Monitor.RespIPAttr build() { ngse.monitor.Monitor.RespIPAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespIPAttr buildPartial() { ngse.monitor.Monitor.RespIPAttr result = new ngse.monitor.Monitor.RespIPAttr(this); int from_bitField0_ = bitField0_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespIPAttr) { return mergeFrom((ngse.monitor.Monitor.RespIPAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespIPAttr other) { if (other == ngse.monitor.Monitor.RespIPAttr.getDefaultInstance()) return this; if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); dataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespIPAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespIPAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ngse.monitor.Monitor.IPAttrData> data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList<ngse.monitor.Monitor.IPAttrData>(data_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPAttrData, ngse.monitor.Monitor.IPAttrData.Builder, ngse.monitor.Monitor.IPAttrDataOrBuilder> dataBuilder_; /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.IPAttrData> getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrData getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.IPAttrData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder setData( int index, ngse.monitor.Monitor.IPAttrData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder addData(ngse.monitor.Monitor.IPAttrData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.IPAttrData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder addData( ngse.monitor.Monitor.IPAttrData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder addData( int index, ngse.monitor.Monitor.IPAttrData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder addAllData( java.lang.Iterable<? extends ngse.monitor.Monitor.IPAttrData> values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrData.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrDataOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.IPAttrDataOrBuilder> getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrData.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( ngse.monitor.Monitor.IPAttrData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public ngse.monitor.Monitor.IPAttrData.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, ngse.monitor.Monitor.IPAttrData.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.IPAttrData data = 1;</code> */ public java.util.List<ngse.monitor.Monitor.IPAttrData.Builder> getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPAttrData, ngse.monitor.Monitor.IPAttrData.Builder, ngse.monitor.Monitor.IPAttrDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.IPAttrData, ngse.monitor.Monitor.IPAttrData.Builder, ngse.monitor.Monitor.IPAttrDataOrBuilder>( data_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespIPAttr) } static { defaultInstance = new RespIPAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespIPAttr) } public interface ReqSetAlarmAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqSetAlarmAttr) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ boolean hasMax(); /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ int getMax(); /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ boolean hasMin(); /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ int getMin(); /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ boolean hasDiff(); /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ int getDiff(); /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ boolean hasDiffPercent(); /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ int getDiffPercent(); } /** * Protobuf type {@code ngse.monitor.ReqSetAlarmAttr} * * <pre> *新增或更新单个告警监控项 * </pre> */ public static final class ReqSetAlarmAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqSetAlarmAttr) ReqSetAlarmAttrOrBuilder { // Use ReqSetAlarmAttr.newBuilder() to construct. private ReqSetAlarmAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqSetAlarmAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqSetAlarmAttr defaultInstance; public static ReqSetAlarmAttr getDefaultInstance() { return defaultInstance; } public ReqSetAlarmAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqSetAlarmAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } case 24: { bitField0_ |= 0x00000004; max_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; min_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; diff_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000020; diffPercent_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqSetAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqSetAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqSetAlarmAttr.class, ngse.monitor.Monitor.ReqSetAlarmAttr.Builder.class); } public static com.google.protobuf.Parser<ReqSetAlarmAttr> PARSER = new com.google.protobuf.AbstractParser<ReqSetAlarmAttr>() { public ReqSetAlarmAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqSetAlarmAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqSetAlarmAttr> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_FIELD_NUMBER = 3; private int max_; /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ public boolean hasMax() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ public int getMax() { return max_; } public static final int MIN_FIELD_NUMBER = 4; private int min_; /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ public boolean hasMin() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ public int getMin() { return min_; } public static final int DIFF_FIELD_NUMBER = 5; private int diff_; /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ public boolean hasDiff() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ public int getDiff() { return diff_; } public static final int DIFF_PERCENT_FIELD_NUMBER = 6; private int diffPercent_; /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ public boolean hasDiffPercent() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ public int getDiffPercent() { return diffPercent_; } private void initFields() { servicename_ = ""; attrname_ = ""; max_ = 0; min_ = 0; diff_ = 0; diffPercent_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, max_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, min_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, diff_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, diffPercent_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, max_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, min_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, diff_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, diffPercent_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqSetAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqSetAlarmAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqSetAlarmAttr} * * <pre> *新增或更新单个告警监控项 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqSetAlarmAttr) ngse.monitor.Monitor.ReqSetAlarmAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqSetAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqSetAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqSetAlarmAttr.class, ngse.monitor.Monitor.ReqSetAlarmAttr.Builder.class); } // Construct using ngse.monitor.Monitor.ReqSetAlarmAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); max_ = 0; bitField0_ = (bitField0_ & ~0x00000004); min_ = 0; bitField0_ = (bitField0_ & ~0x00000008); diff_ = 0; bitField0_ = (bitField0_ & ~0x00000010); diffPercent_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqSetAlarmAttr_descriptor; } public ngse.monitor.Monitor.ReqSetAlarmAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance(); } public ngse.monitor.Monitor.ReqSetAlarmAttr build() { ngse.monitor.Monitor.ReqSetAlarmAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqSetAlarmAttr buildPartial() { ngse.monitor.Monitor.ReqSetAlarmAttr result = new ngse.monitor.Monitor.ReqSetAlarmAttr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.max_ = max_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.min_ = min_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.diff_ = diff_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.diffPercent_ = diffPercent_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqSetAlarmAttr) { return mergeFrom((ngse.monitor.Monitor.ReqSetAlarmAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqSetAlarmAttr other) { if (other == ngse.monitor.Monitor.ReqSetAlarmAttr.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } if (other.hasMax()) { setMax(other.getMax()); } if (other.hasMin()) { setMin(other.getMin()); } if (other.hasDiff()) { setDiff(other.getDiff()); } if (other.hasDiffPercent()) { setDiffPercent(other.getDiffPercent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqSetAlarmAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqSetAlarmAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } private int max_ ; /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ public boolean hasMax() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ public int getMax() { return max_; } /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ public Builder setMax(int value) { bitField0_ |= 0x00000004; max_ = value; onChanged(); return this; } /** * <code>optional uint32 max = 3;</code> * * <pre> *最大值 * </pre> */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000004); max_ = 0; onChanged(); return this; } private int min_ ; /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ public boolean hasMin() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ public int getMin() { return min_; } /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ public Builder setMin(int value) { bitField0_ |= 0x00000008; min_ = value; onChanged(); return this; } /** * <code>optional uint32 min = 4;</code> * * <pre> *最小值 * </pre> */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000008); min_ = 0; onChanged(); return this; } private int diff_ ; /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ public boolean hasDiff() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ public int getDiff() { return diff_; } /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ public Builder setDiff(int value) { bitField0_ |= 0x00000010; diff_ = value; onChanged(); return this; } /** * <code>optional uint32 diff = 5;</code> * * <pre> *波动值 * </pre> */ public Builder clearDiff() { bitField0_ = (bitField0_ & ~0x00000010); diff_ = 0; onChanged(); return this; } private int diffPercent_ ; /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ public boolean hasDiffPercent() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ public int getDiffPercent() { return diffPercent_; } /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ public Builder setDiffPercent(int value) { bitField0_ |= 0x00000020; diffPercent_ = value; onChanged(); return this; } /** * <code>optional uint32 diff_percent = 6;</code> * * <pre> *波动比率 * </pre> */ public Builder clearDiffPercent() { bitField0_ = (bitField0_ & ~0x00000020); diffPercent_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqSetAlarmAttr) } static { defaultInstance = new ReqSetAlarmAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqSetAlarmAttr) } public interface RespSetAlarmAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespSetAlarmAttr) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code ngse.monitor.RespSetAlarmAttr} * * <pre> *通过包头result确认是否成功 * </pre> */ public static final class RespSetAlarmAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespSetAlarmAttr) RespSetAlarmAttrOrBuilder { // Use RespSetAlarmAttr.newBuilder() to construct. private RespSetAlarmAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespSetAlarmAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespSetAlarmAttr defaultInstance; public static RespSetAlarmAttr getDefaultInstance() { return defaultInstance; } public RespSetAlarmAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespSetAlarmAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; 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.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespSetAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespSetAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespSetAlarmAttr.class, ngse.monitor.Monitor.RespSetAlarmAttr.Builder.class); } public static com.google.protobuf.Parser<RespSetAlarmAttr> PARSER = new com.google.protobuf.AbstractParser<RespSetAlarmAttr>() { public RespSetAlarmAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespSetAlarmAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespSetAlarmAttr> getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespSetAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespSetAlarmAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespSetAlarmAttr} * * <pre> *通过包头result确认是否成功 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespSetAlarmAttr) ngse.monitor.Monitor.RespSetAlarmAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespSetAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespSetAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespSetAlarmAttr.class, ngse.monitor.Monitor.RespSetAlarmAttr.Builder.class); } // Construct using ngse.monitor.Monitor.RespSetAlarmAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespSetAlarmAttr_descriptor; } public ngse.monitor.Monitor.RespSetAlarmAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance(); } public ngse.monitor.Monitor.RespSetAlarmAttr build() { ngse.monitor.Monitor.RespSetAlarmAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespSetAlarmAttr buildPartial() { ngse.monitor.Monitor.RespSetAlarmAttr result = new ngse.monitor.Monitor.RespSetAlarmAttr(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespSetAlarmAttr) { return mergeFrom((ngse.monitor.Monitor.RespSetAlarmAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespSetAlarmAttr other) { if (other == ngse.monitor.Monitor.RespSetAlarmAttr.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespSetAlarmAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespSetAlarmAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespSetAlarmAttr) } static { defaultInstance = new RespSetAlarmAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespSetAlarmAttr) } public interface ReqDelAlarmAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqDelAlarmAttr) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); } /** * Protobuf type {@code ngse.monitor.ReqDelAlarmAttr} * * <pre> *删除单个告警项 * </pre> */ public static final class ReqDelAlarmAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqDelAlarmAttr) ReqDelAlarmAttrOrBuilder { // Use ReqDelAlarmAttr.newBuilder() to construct. private ReqDelAlarmAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqDelAlarmAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqDelAlarmAttr defaultInstance; public static ReqDelAlarmAttr getDefaultInstance() { return defaultInstance; } public ReqDelAlarmAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqDelAlarmAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqDelAlarmAttr.class, ngse.monitor.Monitor.ReqDelAlarmAttr.Builder.class); } public static com.google.protobuf.Parser<ReqDelAlarmAttr> PARSER = new com.google.protobuf.AbstractParser<ReqDelAlarmAttr>() { public ReqDelAlarmAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqDelAlarmAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqDelAlarmAttr> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { servicename_ = ""; attrname_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqDelAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqDelAlarmAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqDelAlarmAttr} * * <pre> *删除单个告警项 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqDelAlarmAttr) ngse.monitor.Monitor.ReqDelAlarmAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqDelAlarmAttr.class, ngse.monitor.Monitor.ReqDelAlarmAttr.Builder.class); } // Construct using ngse.monitor.Monitor.ReqDelAlarmAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarmAttr_descriptor; } public ngse.monitor.Monitor.ReqDelAlarmAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance(); } public ngse.monitor.Monitor.ReqDelAlarmAttr build() { ngse.monitor.Monitor.ReqDelAlarmAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqDelAlarmAttr buildPartial() { ngse.monitor.Monitor.ReqDelAlarmAttr result = new ngse.monitor.Monitor.ReqDelAlarmAttr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqDelAlarmAttr) { return mergeFrom((ngse.monitor.Monitor.ReqDelAlarmAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqDelAlarmAttr other) { if (other == ngse.monitor.Monitor.ReqDelAlarmAttr.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqDelAlarmAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqDelAlarmAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqDelAlarmAttr) } static { defaultInstance = new ReqDelAlarmAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqDelAlarmAttr) } public interface RespDelAlarmAttrOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespDelAlarmAttr) com.google.protobuf.MessageOrBuilder { /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ boolean hasDeletedRows(); /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ int getDeletedRows(); } /** * Protobuf type {@code ngse.monitor.RespDelAlarmAttr} * * <pre> *通过包头result确认是否成功 * </pre> */ public static final class RespDelAlarmAttr extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespDelAlarmAttr) RespDelAlarmAttrOrBuilder { // Use RespDelAlarmAttr.newBuilder() to construct. private RespDelAlarmAttr(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespDelAlarmAttr(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespDelAlarmAttr defaultInstance; public static RespDelAlarmAttr getDefaultInstance() { return defaultInstance; } public RespDelAlarmAttr getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespDelAlarmAttr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; deletedRows_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespDelAlarmAttr.class, ngse.monitor.Monitor.RespDelAlarmAttr.Builder.class); } public static com.google.protobuf.Parser<RespDelAlarmAttr> PARSER = new com.google.protobuf.AbstractParser<RespDelAlarmAttr>() { public RespDelAlarmAttr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespDelAlarmAttr(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespDelAlarmAttr> getParserForType() { return PARSER; } private int bitField0_; public static final int DELETED_ROWS_FIELD_NUMBER = 1; private int deletedRows_; /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public boolean hasDeletedRows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public int getDeletedRows() { return deletedRows_; } private void initFields() { deletedRows_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, deletedRows_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, deletedRows_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespDelAlarmAttr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespDelAlarmAttr prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespDelAlarmAttr} * * <pre> *通过包头result确认是否成功 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespDelAlarmAttr) ngse.monitor.Monitor.RespDelAlarmAttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarmAttr_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarmAttr_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespDelAlarmAttr.class, ngse.monitor.Monitor.RespDelAlarmAttr.Builder.class); } // Construct using ngse.monitor.Monitor.RespDelAlarmAttr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); deletedRows_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarmAttr_descriptor; } public ngse.monitor.Monitor.RespDelAlarmAttr getDefaultInstanceForType() { return ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance(); } public ngse.monitor.Monitor.RespDelAlarmAttr build() { ngse.monitor.Monitor.RespDelAlarmAttr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespDelAlarmAttr buildPartial() { ngse.monitor.Monitor.RespDelAlarmAttr result = new ngse.monitor.Monitor.RespDelAlarmAttr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.deletedRows_ = deletedRows_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespDelAlarmAttr) { return mergeFrom((ngse.monitor.Monitor.RespDelAlarmAttr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespDelAlarmAttr other) { if (other == ngse.monitor.Monitor.RespDelAlarmAttr.getDefaultInstance()) return this; if (other.hasDeletedRows()) { setDeletedRows(other.getDeletedRows()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespDelAlarmAttr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespDelAlarmAttr) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int deletedRows_ ; /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public boolean hasDeletedRows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public int getDeletedRows() { return deletedRows_; } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public Builder setDeletedRows(int value) { bitField0_ |= 0x00000001; deletedRows_ = value; onChanged(); return this; } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public Builder clearDeletedRows() { bitField0_ = (bitField0_ & ~0x00000001); deletedRows_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespDelAlarmAttr) } static { defaultInstance = new RespDelAlarmAttr(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespDelAlarmAttr) } public interface ReqNewestAlarmOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqNewestAlarm) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ boolean hasDay(); /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ int getDay(); } /** * Protobuf type {@code ngse.monitor.ReqNewestAlarm} * * <pre> *获取某一天产生的告警,可指定获取特定服务的告警 * </pre> */ public static final class ReqNewestAlarm extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqNewestAlarm) ReqNewestAlarmOrBuilder { // Use ReqNewestAlarm.newBuilder() to construct. private ReqNewestAlarm(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqNewestAlarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqNewestAlarm defaultInstance; public static ReqNewestAlarm getDefaultInstance() { return defaultInstance; } public ReqNewestAlarm getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqNewestAlarm( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 16: { bitField0_ |= 0x00000002; day_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqNewestAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqNewestAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqNewestAlarm.class, ngse.monitor.Monitor.ReqNewestAlarm.Builder.class); } public static com.google.protobuf.Parser<ReqNewestAlarm> PARSER = new com.google.protobuf.AbstractParser<ReqNewestAlarm>() { public ReqNewestAlarm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqNewestAlarm(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqNewestAlarm> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAY_FIELD_NUMBER = 2; private int day_; /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ public boolean hasDay() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ public int getDay() { return day_; } private void initFields() { servicename_ = ""; day_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, day_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, day_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqNewestAlarm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqNewestAlarm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqNewestAlarm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqNewestAlarm prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqNewestAlarm} * * <pre> *获取某一天产生的告警,可指定获取特定服务的告警 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqNewestAlarm) ngse.monitor.Monitor.ReqNewestAlarmOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqNewestAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqNewestAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqNewestAlarm.class, ngse.monitor.Monitor.ReqNewestAlarm.Builder.class); } // Construct using ngse.monitor.Monitor.ReqNewestAlarm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); day_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqNewestAlarm_descriptor; } public ngse.monitor.Monitor.ReqNewestAlarm getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance(); } public ngse.monitor.Monitor.ReqNewestAlarm build() { ngse.monitor.Monitor.ReqNewestAlarm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqNewestAlarm buildPartial() { ngse.monitor.Monitor.ReqNewestAlarm result = new ngse.monitor.Monitor.ReqNewestAlarm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.day_ = day_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqNewestAlarm) { return mergeFrom((ngse.monitor.Monitor.ReqNewestAlarm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqNewestAlarm other) { if (other == ngse.monitor.Monitor.ReqNewestAlarm.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasDay()) { setDay(other.getDay()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqNewestAlarm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqNewestAlarm) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> * * <pre> *不指定的话获取所有最新产生的告警 * </pre> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private int day_ ; /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ public boolean hasDay() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ public int getDay() { return day_; } /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ public Builder setDay(int value) { bitField0_ |= 0x00000002; day_ = value; onChanged(); return this; } /** * <code>optional uint32 day = 2;</code> * * <pre> *指定日期 * </pre> */ public Builder clearDay() { bitField0_ = (bitField0_ & ~0x00000002); day_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqNewestAlarm) } static { defaultInstance = new ReqNewestAlarm(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqNewestAlarm) } public interface AlarmOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.Alarm) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ boolean hasType(); /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ ngse.monitor.Monitor.AlarmType getType(); /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ boolean hasFirstAlarmTime(); /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ int getFirstAlarmTime(); /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ boolean hasLastAlarmTime(); /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ int getLastAlarmTime(); /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ boolean hasAlarmTimes(); /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ int getAlarmTimes(); /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ boolean hasLastValue(); /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ int getLastValue(); /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ boolean hasLastAttrValue(); /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ int getLastAttrValue(); /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ boolean hasLastDiffValue(); /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ int getLastDiffValue(); } /** * Protobuf type {@code ngse.monitor.Alarm} * * <pre> *告警依据属性名、类型在一天内收敛 * </pre> */ public static final class Alarm extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.Alarm) AlarmOrBuilder { // Use Alarm.newBuilder() to construct. private Alarm(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Alarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Alarm defaultInstance; public static Alarm getDefaultInstance() { return defaultInstance; } public Alarm getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Alarm( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } case 24: { int rawValue = input.readEnum(); ngse.monitor.Monitor.AlarmType value = ngse.monitor.Monitor.AlarmType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; type_ = value; } break; } case 32: { bitField0_ |= 0x00000008; firstAlarmTime_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; lastAlarmTime_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000020; alarmTimes_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000040; lastValue_ = input.readUInt32(); break; } case 64: { bitField0_ |= 0x00000080; lastAttrValue_ = input.readUInt32(); break; } case 72: { bitField0_ |= 0x00000100; lastDiffValue_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Alarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Alarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.Alarm.class, ngse.monitor.Monitor.Alarm.Builder.class); } public static com.google.protobuf.Parser<Alarm> PARSER = new com.google.protobuf.AbstractParser<Alarm>() { public Alarm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Alarm(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Alarm> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private ngse.monitor.Monitor.AlarmType type_; /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ public ngse.monitor.Monitor.AlarmType getType() { return type_; } public static final int FIRST_ALARM_TIME_FIELD_NUMBER = 4; private int firstAlarmTime_; /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ public boolean hasFirstAlarmTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ public int getFirstAlarmTime() { return firstAlarmTime_; } public static final int LAST_ALARM_TIME_FIELD_NUMBER = 5; private int lastAlarmTime_; /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ public boolean hasLastAlarmTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ public int getLastAlarmTime() { return lastAlarmTime_; } public static final int ALARM_TIMES_FIELD_NUMBER = 6; private int alarmTimes_; /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ public boolean hasAlarmTimes() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ public int getAlarmTimes() { return alarmTimes_; } public static final int LAST_VALUE_FIELD_NUMBER = 7; private int lastValue_; /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ public boolean hasLastValue() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ public int getLastValue() { return lastValue_; } public static final int LAST_ATTR_VALUE_FIELD_NUMBER = 8; private int lastAttrValue_; /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ public boolean hasLastAttrValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ public int getLastAttrValue() { return lastAttrValue_; } public static final int LAST_DIFF_VALUE_FIELD_NUMBER = 9; private int lastDiffValue_; /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ public boolean hasLastDiffValue() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ public int getLastDiffValue() { return lastDiffValue_; } private void initFields() { servicename_ = ""; attrname_ = ""; type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; firstAlarmTime_ = 0; lastAlarmTime_ = 0; alarmTimes_ = 0; lastValue_ = 0; lastAttrValue_ = 0; lastDiffValue_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, type_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, firstAlarmTime_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, lastAlarmTime_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, alarmTimes_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, lastValue_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, lastAttrValue_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(9, lastDiffValue_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, firstAlarmTime_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, lastAlarmTime_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, alarmTimes_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, lastValue_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, lastAttrValue_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, lastDiffValue_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.Alarm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.Alarm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.Alarm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.Alarm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.Alarm parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.Alarm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.Alarm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.Alarm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.Alarm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.Alarm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.Alarm prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.Alarm} * * <pre> *告警依据属性名、类型在一天内收敛 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.Alarm) ngse.monitor.Monitor.AlarmOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Alarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Alarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.Alarm.class, ngse.monitor.Monitor.Alarm.Builder.class); } // Construct using ngse.monitor.Monitor.Alarm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; bitField0_ = (bitField0_ & ~0x00000004); firstAlarmTime_ = 0; bitField0_ = (bitField0_ & ~0x00000008); lastAlarmTime_ = 0; bitField0_ = (bitField0_ & ~0x00000010); alarmTimes_ = 0; bitField0_ = (bitField0_ & ~0x00000020); lastValue_ = 0; bitField0_ = (bitField0_ & ~0x00000040); lastAttrValue_ = 0; bitField0_ = (bitField0_ & ~0x00000080); lastDiffValue_ = 0; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_Alarm_descriptor; } public ngse.monitor.Monitor.Alarm getDefaultInstanceForType() { return ngse.monitor.Monitor.Alarm.getDefaultInstance(); } public ngse.monitor.Monitor.Alarm build() { ngse.monitor.Monitor.Alarm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.Alarm buildPartial() { ngse.monitor.Monitor.Alarm result = new ngse.monitor.Monitor.Alarm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.firstAlarmTime_ = firstAlarmTime_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.lastAlarmTime_ = lastAlarmTime_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.alarmTimes_ = alarmTimes_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.lastValue_ = lastValue_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.lastAttrValue_ = lastAttrValue_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.lastDiffValue_ = lastDiffValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.Alarm) { return mergeFrom((ngse.monitor.Monitor.Alarm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.Alarm other) { if (other == ngse.monitor.Monitor.Alarm.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasFirstAlarmTime()) { setFirstAlarmTime(other.getFirstAlarmTime()); } if (other.hasLastAlarmTime()) { setLastAlarmTime(other.getLastAlarmTime()); } if (other.hasAlarmTimes()) { setAlarmTimes(other.getAlarmTimes()); } if (other.hasLastValue()) { setLastValue(other.getLastValue()); } if (other.hasLastAttrValue()) { setLastAttrValue(other.getLastAttrValue()); } if (other.hasLastDiffValue()) { setLastDiffValue(other.getLastDiffValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.Alarm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.Alarm) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } private ngse.monitor.Monitor.AlarmType type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ public ngse.monitor.Monitor.AlarmType getType() { return type_; } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ public Builder setType(ngse.monitor.Monitor.AlarmType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; onChanged(); return this; } private int firstAlarmTime_ ; /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ public boolean hasFirstAlarmTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ public int getFirstAlarmTime() { return firstAlarmTime_; } /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ public Builder setFirstAlarmTime(int value) { bitField0_ |= 0x00000008; firstAlarmTime_ = value; onChanged(); return this; } /** * <code>optional uint32 first_alarm_time = 4;</code> * * <pre> *第一次告警时间 * </pre> */ public Builder clearFirstAlarmTime() { bitField0_ = (bitField0_ & ~0x00000008); firstAlarmTime_ = 0; onChanged(); return this; } private int lastAlarmTime_ ; /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ public boolean hasLastAlarmTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ public int getLastAlarmTime() { return lastAlarmTime_; } /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ public Builder setLastAlarmTime(int value) { bitField0_ |= 0x00000010; lastAlarmTime_ = value; onChanged(); return this; } /** * <code>optional uint32 last_alarm_time = 5;</code> * * <pre> *最近一次告警时间 * </pre> */ public Builder clearLastAlarmTime() { bitField0_ = (bitField0_ & ~0x00000010); lastAlarmTime_ = 0; onChanged(); return this; } private int alarmTimes_ ; /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ public boolean hasAlarmTimes() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ public int getAlarmTimes() { return alarmTimes_; } /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ public Builder setAlarmTimes(int value) { bitField0_ |= 0x00000020; alarmTimes_ = value; onChanged(); return this; } /** * <code>optional uint32 alarm_times = 6;</code> * * <pre> *告警次数,用于收敛逻辑 * </pre> */ public Builder clearAlarmTimes() { bitField0_ = (bitField0_ & ~0x00000020); alarmTimes_ = 0; onChanged(); return this; } private int lastValue_ ; /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ public boolean hasLastValue() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ public int getLastValue() { return lastValue_; } /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ public Builder setLastValue(int value) { bitField0_ |= 0x00000040; lastValue_ = value; onChanged(); return this; } /** * <code>optional uint32 last_value = 7;</code> * * <pre> *最近一次告警的上报值 * </pre> */ public Builder clearLastValue() { bitField0_ = (bitField0_ & ~0x00000040); lastValue_ = 0; onChanged(); return this; } private int lastAttrValue_ ; /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ public boolean hasLastAttrValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ public int getLastAttrValue() { return lastAttrValue_; } /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ public Builder setLastAttrValue(int value) { bitField0_ |= 0x00000080; lastAttrValue_ = value; onChanged(); return this; } /** * <code>optional uint32 last_attr_value = 8;</code> * * <pre> *最近一次告警设置的阈值 * </pre> */ public Builder clearLastAttrValue() { bitField0_ = (bitField0_ & ~0x00000080); lastAttrValue_ = 0; onChanged(); return this; } private int lastDiffValue_ ; /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ public boolean hasLastDiffValue() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ public int getLastDiffValue() { return lastDiffValue_; } /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ public Builder setLastDiffValue(int value) { bitField0_ |= 0x00000100; lastDiffValue_ = value; onChanged(); return this; } /** * <code>optional uint32 last_diff_value = 9;</code> * * <pre> *如果是波动告警,计算实际波动量 * </pre> */ public Builder clearLastDiffValue() { bitField0_ = (bitField0_ & ~0x00000100); lastDiffValue_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.Alarm) } static { defaultInstance = new Alarm(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.Alarm) } public interface RespNewestAlarmOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespNewestAlarm) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ java.util.List<ngse.monitor.Monitor.Alarm> getAlarmsList(); /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ ngse.monitor.Monitor.Alarm getAlarms(int index); /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ int getAlarmsCount(); /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ java.util.List<? extends ngse.monitor.Monitor.AlarmOrBuilder> getAlarmsOrBuilderList(); /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ ngse.monitor.Monitor.AlarmOrBuilder getAlarmsOrBuilder( int index); } /** * Protobuf type {@code ngse.monitor.RespNewestAlarm} */ public static final class RespNewestAlarm extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespNewestAlarm) RespNewestAlarmOrBuilder { // Use RespNewestAlarm.newBuilder() to construct. private RespNewestAlarm(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespNewestAlarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespNewestAlarm defaultInstance; public static RespNewestAlarm getDefaultInstance() { return defaultInstance; } public RespNewestAlarm getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespNewestAlarm( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { alarms_ = new java.util.ArrayList<ngse.monitor.Monitor.Alarm>(); mutable_bitField0_ |= 0x00000001; } alarms_.add(input.readMessage(ngse.monitor.Monitor.Alarm.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { alarms_ = java.util.Collections.unmodifiableList(alarms_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespNewestAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespNewestAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespNewestAlarm.class, ngse.monitor.Monitor.RespNewestAlarm.Builder.class); } public static com.google.protobuf.Parser<RespNewestAlarm> PARSER = new com.google.protobuf.AbstractParser<RespNewestAlarm>() { public RespNewestAlarm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespNewestAlarm(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespNewestAlarm> getParserForType() { return PARSER; } public static final int ALARMS_FIELD_NUMBER = 1; private java.util.List<ngse.monitor.Monitor.Alarm> alarms_; /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public java.util.List<ngse.monitor.Monitor.Alarm> getAlarmsList() { return alarms_; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AlarmOrBuilder> getAlarmsOrBuilderList() { return alarms_; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public int getAlarmsCount() { return alarms_.size(); } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.Alarm getAlarms(int index) { return alarms_.get(index); } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.AlarmOrBuilder getAlarmsOrBuilder( int index) { return alarms_.get(index); } private void initFields() { alarms_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < alarms_.size(); i++) { output.writeMessage(1, alarms_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < alarms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, alarms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespNewestAlarm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespNewestAlarm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespNewestAlarm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespNewestAlarm prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespNewestAlarm} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespNewestAlarm) ngse.monitor.Monitor.RespNewestAlarmOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespNewestAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespNewestAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespNewestAlarm.class, ngse.monitor.Monitor.RespNewestAlarm.Builder.class); } // Construct using ngse.monitor.Monitor.RespNewestAlarm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAlarmsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (alarmsBuilder_ == null) { alarms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { alarmsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespNewestAlarm_descriptor; } public ngse.monitor.Monitor.RespNewestAlarm getDefaultInstanceForType() { return ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance(); } public ngse.monitor.Monitor.RespNewestAlarm build() { ngse.monitor.Monitor.RespNewestAlarm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespNewestAlarm buildPartial() { ngse.monitor.Monitor.RespNewestAlarm result = new ngse.monitor.Monitor.RespNewestAlarm(this); int from_bitField0_ = bitField0_; if (alarmsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { alarms_ = java.util.Collections.unmodifiableList(alarms_); bitField0_ = (bitField0_ & ~0x00000001); } result.alarms_ = alarms_; } else { result.alarms_ = alarmsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespNewestAlarm) { return mergeFrom((ngse.monitor.Monitor.RespNewestAlarm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespNewestAlarm other) { if (other == ngse.monitor.Monitor.RespNewestAlarm.getDefaultInstance()) return this; if (alarmsBuilder_ == null) { if (!other.alarms_.isEmpty()) { if (alarms_.isEmpty()) { alarms_ = other.alarms_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAlarmsIsMutable(); alarms_.addAll(other.alarms_); } onChanged(); } } else { if (!other.alarms_.isEmpty()) { if (alarmsBuilder_.isEmpty()) { alarmsBuilder_.dispose(); alarmsBuilder_ = null; alarms_ = other.alarms_; bitField0_ = (bitField0_ & ~0x00000001); alarmsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAlarmsFieldBuilder() : null; } else { alarmsBuilder_.addAllMessages(other.alarms_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespNewestAlarm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespNewestAlarm) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ngse.monitor.Monitor.Alarm> alarms_ = java.util.Collections.emptyList(); private void ensureAlarmsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { alarms_ = new java.util.ArrayList<ngse.monitor.Monitor.Alarm>(alarms_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.Alarm, ngse.monitor.Monitor.Alarm.Builder, ngse.monitor.Monitor.AlarmOrBuilder> alarmsBuilder_; /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public java.util.List<ngse.monitor.Monitor.Alarm> getAlarmsList() { if (alarmsBuilder_ == null) { return java.util.Collections.unmodifiableList(alarms_); } else { return alarmsBuilder_.getMessageList(); } } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public int getAlarmsCount() { if (alarmsBuilder_ == null) { return alarms_.size(); } else { return alarmsBuilder_.getCount(); } } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.Alarm getAlarms(int index) { if (alarmsBuilder_ == null) { return alarms_.get(index); } else { return alarmsBuilder_.getMessage(index); } } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder setAlarms( int index, ngse.monitor.Monitor.Alarm value) { if (alarmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmsIsMutable(); alarms_.set(index, value); onChanged(); } else { alarmsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder setAlarms( int index, ngse.monitor.Monitor.Alarm.Builder builderForValue) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.set(index, builderForValue.build()); onChanged(); } else { alarmsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder addAlarms(ngse.monitor.Monitor.Alarm value) { if (alarmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmsIsMutable(); alarms_.add(value); onChanged(); } else { alarmsBuilder_.addMessage(value); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder addAlarms( int index, ngse.monitor.Monitor.Alarm value) { if (alarmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmsIsMutable(); alarms_.add(index, value); onChanged(); } else { alarmsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder addAlarms( ngse.monitor.Monitor.Alarm.Builder builderForValue) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.add(builderForValue.build()); onChanged(); } else { alarmsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder addAlarms( int index, ngse.monitor.Monitor.Alarm.Builder builderForValue) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.add(index, builderForValue.build()); onChanged(); } else { alarmsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder addAllAlarms( java.lang.Iterable<? extends ngse.monitor.Monitor.Alarm> values) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alarms_); onChanged(); } else { alarmsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder clearAlarms() { if (alarmsBuilder_ == null) { alarms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { alarmsBuilder_.clear(); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public Builder removeAlarms(int index) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.remove(index); onChanged(); } else { alarmsBuilder_.remove(index); } return this; } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.Alarm.Builder getAlarmsBuilder( int index) { return getAlarmsFieldBuilder().getBuilder(index); } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.AlarmOrBuilder getAlarmsOrBuilder( int index) { if (alarmsBuilder_ == null) { return alarms_.get(index); } else { return alarmsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public java.util.List<? extends ngse.monitor.Monitor.AlarmOrBuilder> getAlarmsOrBuilderList() { if (alarmsBuilder_ != null) { return alarmsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alarms_); } } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.Alarm.Builder addAlarmsBuilder() { return getAlarmsFieldBuilder().addBuilder( ngse.monitor.Monitor.Alarm.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public ngse.monitor.Monitor.Alarm.Builder addAlarmsBuilder( int index) { return getAlarmsFieldBuilder().addBuilder( index, ngse.monitor.Monitor.Alarm.getDefaultInstance()); } /** * <code>repeated .ngse.monitor.Alarm alarms = 1;</code> */ public java.util.List<ngse.monitor.Monitor.Alarm.Builder> getAlarmsBuilderList() { return getAlarmsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.Alarm, ngse.monitor.Monitor.Alarm.Builder, ngse.monitor.Monitor.AlarmOrBuilder> getAlarmsFieldBuilder() { if (alarmsBuilder_ == null) { alarmsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< ngse.monitor.Monitor.Alarm, ngse.monitor.Monitor.Alarm.Builder, ngse.monitor.Monitor.AlarmOrBuilder>( alarms_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); alarms_ = null; } return alarmsBuilder_; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespNewestAlarm) } static { defaultInstance = new RespNewestAlarm(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespNewestAlarm) } public interface ReqDelAlarmOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.ReqDelAlarm) com.google.protobuf.MessageOrBuilder { /** * <code>optional string servicename = 1;</code> */ boolean hasServicename(); /** * <code>optional string servicename = 1;</code> */ java.lang.String getServicename(); /** * <code>optional string servicename = 1;</code> */ com.google.protobuf.ByteString getServicenameBytes(); /** * <code>optional string attrname = 2;</code> */ boolean hasAttrname(); /** * <code>optional string attrname = 2;</code> */ java.lang.String getAttrname(); /** * <code>optional string attrname = 2;</code> */ com.google.protobuf.ByteString getAttrnameBytes(); /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ boolean hasType(); /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ ngse.monitor.Monitor.AlarmType getType(); /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ boolean hasDay(); /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ int getDay(); /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ boolean hasTime(); /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ int getTime(); } /** * Protobuf type {@code ngse.monitor.ReqDelAlarm} * * <pre> *删除单日某类收敛告警 * </pre> */ public static final class ReqDelAlarm extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.ReqDelAlarm) ReqDelAlarmOrBuilder { // Use ReqDelAlarm.newBuilder() to construct. private ReqDelAlarm(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReqDelAlarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReqDelAlarm defaultInstance; public static ReqDelAlarm getDefaultInstance() { return defaultInstance; } public ReqDelAlarm getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqDelAlarm( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; servicename_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; attrname_ = bs; break; } case 24: { int rawValue = input.readEnum(); ngse.monitor.Monitor.AlarmType value = ngse.monitor.Monitor.AlarmType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; type_ = value; } break; } case 32: { bitField0_ |= 0x00000008; day_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; time_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqDelAlarm.class, ngse.monitor.Monitor.ReqDelAlarm.Builder.class); } public static com.google.protobuf.Parser<ReqDelAlarm> PARSER = new com.google.protobuf.AbstractParser<ReqDelAlarm>() { public ReqDelAlarm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqDelAlarm(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReqDelAlarm> getParserForType() { return PARSER; } private int bitField0_; public static final int SERVICENAME_FIELD_NUMBER = 1; private java.lang.Object servicename_; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; 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(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRNAME_FIELD_NUMBER = 2; private java.lang.Object attrname_; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; 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(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private ngse.monitor.Monitor.AlarmType type_; /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ public ngse.monitor.Monitor.AlarmType getType() { return type_; } public static final int DAY_FIELD_NUMBER = 4; private int day_; /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ public boolean hasDay() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ public int getDay() { return day_; } public static final int TIME_FIELD_NUMBER = 5; private int time_; /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ public boolean hasTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ public int getTime() { return time_; } private void initFields() { servicename_ = ""; attrname_ = ""; type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; day_ = 0; time_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, type_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, day_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, time_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServicenameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAttrnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, day_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, time_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.ReqDelAlarm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.ReqDelAlarm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.ReqDelAlarm prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.ReqDelAlarm} * * <pre> *删除单日某类收敛告警 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.ReqDelAlarm) ngse.monitor.Monitor.ReqDelAlarmOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.ReqDelAlarm.class, ngse.monitor.Monitor.ReqDelAlarm.Builder.class); } // Construct using ngse.monitor.Monitor.ReqDelAlarm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); servicename_ = ""; bitField0_ = (bitField0_ & ~0x00000001); attrname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; bitField0_ = (bitField0_ & ~0x00000004); day_ = 0; bitField0_ = (bitField0_ & ~0x00000008); time_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_ReqDelAlarm_descriptor; } public ngse.monitor.Monitor.ReqDelAlarm getDefaultInstanceForType() { return ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance(); } public ngse.monitor.Monitor.ReqDelAlarm build() { ngse.monitor.Monitor.ReqDelAlarm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.ReqDelAlarm buildPartial() { ngse.monitor.Monitor.ReqDelAlarm result = new ngse.monitor.Monitor.ReqDelAlarm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.servicename_ = servicename_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.attrname_ = attrname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.day_ = day_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.time_ = time_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.ReqDelAlarm) { return mergeFrom((ngse.monitor.Monitor.ReqDelAlarm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.ReqDelAlarm other) { if (other == ngse.monitor.Monitor.ReqDelAlarm.getDefaultInstance()) return this; if (other.hasServicename()) { bitField0_ |= 0x00000001; servicename_ = other.servicename_; onChanged(); } if (other.hasAttrname()) { bitField0_ |= 0x00000002; attrname_ = other.attrname_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasDay()) { setDay(other.getDay()); } if (other.hasTime()) { setTime(other.getTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.ReqDelAlarm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.ReqDelAlarm) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object servicename_ = ""; /** * <code>optional string servicename = 1;</code> */ public boolean hasServicename() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string servicename = 1;</code> */ public java.lang.String getServicename() { java.lang.Object ref = servicename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { servicename_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string servicename = 1;</code> */ public com.google.protobuf.ByteString getServicenameBytes() { java.lang.Object ref = servicename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servicename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string servicename = 1;</code> */ public Builder setServicename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder clearServicename() { bitField0_ = (bitField0_ & ~0x00000001); servicename_ = getDefaultInstance().getServicename(); onChanged(); return this; } /** * <code>optional string servicename = 1;</code> */ public Builder setServicenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; servicename_ = value; onChanged(); return this; } private java.lang.Object attrname_ = ""; /** * <code>optional string attrname = 2;</code> */ public boolean hasAttrname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string attrname = 2;</code> */ public java.lang.String getAttrname() { java.lang.Object ref = attrname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attrname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string attrname = 2;</code> */ public com.google.protobuf.ByteString getAttrnameBytes() { java.lang.Object ref = attrname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attrname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder clearAttrname() { bitField0_ = (bitField0_ & ~0x00000002); attrname_ = getDefaultInstance().getAttrname(); onChanged(); return this; } /** * <code>optional string attrname = 2;</code> */ public Builder setAttrnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; attrname_ = value; onChanged(); return this; } private ngse.monitor.Monitor.AlarmType type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ public ngse.monitor.Monitor.AlarmType getType() { return type_; } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ public Builder setType(ngse.monitor.Monitor.AlarmType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * <code>optional .ngse.monitor.AlarmType type = 3;</code> * * <pre> *待删除的告警类型 * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = ngse.monitor.Monitor.AlarmType.ALARM_MAX; onChanged(); return this; } private int day_ ; /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ public boolean hasDay() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ public int getDay() { return day_; } /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ public Builder setDay(int value) { bitField0_ |= 0x00000008; day_ = value; onChanged(); return this; } /** * <code>optional uint32 day = 4;</code> * * <pre> *待删除告警的日期 * </pre> */ public Builder clearDay() { bitField0_ = (bitField0_ & ~0x00000008); day_ = 0; onChanged(); return this; } private int time_ ; /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ public boolean hasTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ public int getTime() { return time_; } /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ public Builder setTime(int value) { bitField0_ |= 0x00000010; time_ = value; onChanged(); return this; } /** * <code>optional uint32 time = 5;</code> * * <pre> *待删除告警的最后发生时间 * </pre> */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000010); time_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.ReqDelAlarm) } static { defaultInstance = new ReqDelAlarm(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.ReqDelAlarm) } public interface RespDelAlarmOrBuilder extends // @@protoc_insertion_point(interface_extends:ngse.monitor.RespDelAlarm) com.google.protobuf.MessageOrBuilder { /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ boolean hasDeletedRows(); /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ int getDeletedRows(); } /** * Protobuf type {@code ngse.monitor.RespDelAlarm} * * <pre> *通过包头result确认是否成功 * </pre> */ public static final class RespDelAlarm extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ngse.monitor.RespDelAlarm) RespDelAlarmOrBuilder { // Use RespDelAlarm.newBuilder() to construct. private RespDelAlarm(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RespDelAlarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RespDelAlarm defaultInstance; public static RespDelAlarm getDefaultInstance() { return defaultInstance; } public RespDelAlarm getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespDelAlarm( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; deletedRows_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespDelAlarm.class, ngse.monitor.Monitor.RespDelAlarm.Builder.class); } public static com.google.protobuf.Parser<RespDelAlarm> PARSER = new com.google.protobuf.AbstractParser<RespDelAlarm>() { public RespDelAlarm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespDelAlarm(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RespDelAlarm> getParserForType() { return PARSER; } private int bitField0_; public static final int DELETED_ROWS_FIELD_NUMBER = 1; private int deletedRows_; /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public boolean hasDeletedRows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public int getDeletedRows() { return deletedRows_; } private void initFields() { deletedRows_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, deletedRows_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, deletedRows_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static ngse.monitor.Monitor.RespDelAlarm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static ngse.monitor.Monitor.RespDelAlarm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ngse.monitor.Monitor.RespDelAlarm prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ngse.monitor.RespDelAlarm} * * <pre> *通过包头result确认是否成功 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ngse.monitor.RespDelAlarm) ngse.monitor.Monitor.RespDelAlarmOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarm_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarm_fieldAccessorTable .ensureFieldAccessorsInitialized( ngse.monitor.Monitor.RespDelAlarm.class, ngse.monitor.Monitor.RespDelAlarm.Builder.class); } // Construct using ngse.monitor.Monitor.RespDelAlarm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); deletedRows_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ngse.monitor.Monitor.internal_static_ngse_monitor_RespDelAlarm_descriptor; } public ngse.monitor.Monitor.RespDelAlarm getDefaultInstanceForType() { return ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance(); } public ngse.monitor.Monitor.RespDelAlarm build() { ngse.monitor.Monitor.RespDelAlarm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ngse.monitor.Monitor.RespDelAlarm buildPartial() { ngse.monitor.Monitor.RespDelAlarm result = new ngse.monitor.Monitor.RespDelAlarm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.deletedRows_ = deletedRows_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ngse.monitor.Monitor.RespDelAlarm) { return mergeFrom((ngse.monitor.Monitor.RespDelAlarm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ngse.monitor.Monitor.RespDelAlarm other) { if (other == ngse.monitor.Monitor.RespDelAlarm.getDefaultInstance()) return this; if (other.hasDeletedRows()) { setDeletedRows(other.getDeletedRows()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ngse.monitor.Monitor.RespDelAlarm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ngse.monitor.Monitor.RespDelAlarm) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int deletedRows_ ; /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public boolean hasDeletedRows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public int getDeletedRows() { return deletedRows_; } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public Builder setDeletedRows(int value) { bitField0_ |= 0x00000001; deletedRows_ = value; onChanged(); return this; } /** * <code>optional uint32 deleted_rows = 1;</code> * * <pre> *实际删除的告警行数 * </pre> */ public Builder clearDeletedRows() { bitField0_ = (bitField0_ & ~0x00000001); deletedRows_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ngse.monitor.RespDelAlarm) } static { defaultInstance = new RespDelAlarm(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ngse.monitor.RespDelAlarm) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_Attr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_Attr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqReport_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqReport_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespReport_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespReport_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqMonitor_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqMonitor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespMonitor_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespMonitor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqService_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqService_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_AlarmAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_AlarmAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespService_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespService_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqServiceAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqServiceAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_AttrData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_AttrData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespServiceAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespServiceAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqAttrIP_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqAttrIP_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_AttrIPData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_AttrIPData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespAttrIP_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespAttrIP_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqIP_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqIP_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_IPData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_IPData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespIP_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespIP_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqIPAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqIPAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_IPAttrData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_IPAttrData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespIPAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespIPAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqSetAlarmAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqSetAlarmAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespSetAlarmAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespSetAlarmAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqDelAlarmAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqDelAlarmAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespDelAlarmAttr_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespDelAlarmAttr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqNewestAlarm_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqNewestAlarm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_Alarm_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_Alarm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespNewestAlarm_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespNewestAlarm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_ReqDelAlarm_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_ReqDelAlarm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ngse_monitor_RespDelAlarm_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ngse_monitor_RespDelAlarm_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\rmonitor.proto\022\014ngse.monitor\"c\n\004Attr\022\023\n" + "\013servicename\030\001 \001(\t\022\020\n\010attrname\030\002 \001(\t\022\016\n\006" + "values\030\003 \003(\r\022\022\n\nbegin_time\030\004 \001(\r\022\020\n\010end_" + "time\030\005 \001(\r\".\n\tReqReport\022!\n\005attrs\030\001 \003(\0132\022" + ".ngse.monitor.Attr\"\034\n\nRespReport\022\016\n\006resu" + "lt\030\001 \001(\r\"\244\003\n\nReqMonitor\022)\n\007service\030\001 \001(\013" + "2\030.ngse.monitor.ReqService\0221\n\013serviceatt" + "r\030\002 \001(\0132\034.ngse.monitor.ReqServiceAttr\022\'\n" + "\006attrip\030\003 \001(\0132\027.ngse.monitor.ReqAttrIP\022\037" + "\n\002ip\030\004 \001(\0132\023.ngse.monitor.ReqIP\022\'\n\006ipatt", "r\030\005 \001(\0132\027.ngse.monitor.ReqIPAttr\0223\n\014seta" + "larmattr\030\024 \001(\0132\035.ngse.monitor.ReqSetAlar" + "mAttr\0223\n\014delalarmattr\030\025 \001(\0132\035.ngse.monit" + "or.ReqDelAlarmAttr\022.\n\010newalarm\030\026 \001(\0132\034.n" + "gse.monitor.ReqNewestAlarm\022+\n\010delalarm\030\027" + " \001(\0132\031.ngse.monitor.ReqDelAlarm\"\276\003\n\013Resp" + "Monitor\022\016\n\006result\030\001 \001(\r\022*\n\007service\030\002 \001(\013" + "2\031.ngse.monitor.RespService\0222\n\013serviceat" + "tr\030\003 \001(\0132\035.ngse.monitor.RespServiceAttr\022" + "(\n\006attrip\030\004 \001(\0132\030.ngse.monitor.RespAttrI", "P\022 \n\002ip\030\005 \001(\0132\024.ngse.monitor.RespIP\022(\n\006i" + "pattr\030\006 \001(\0132\030.ngse.monitor.RespIPAttr\0224\n" + "\014setalarmattr\030\024 \001(\0132\036.ngse.monitor.RespS" + "etAlarmAttr\0224\n\014delalarmattr\030\025 \001(\0132\036.ngse" + ".monitor.RespDelAlarmAttr\022/\n\010newalarm\030\026 " + "\001(\0132\035.ngse.monitor.RespNewestAlarm\022,\n\010de" + "lalarm\030\027 \001(\0132\032.ngse.monitor.RespDelAlarm" + "\"/\n\nReqService\022\023\n\013servicename\030\001 \001(\t\022\014\n\004d" + "ays\030\002 \003(\r\"[\n\tAlarmAttr\022\020\n\010attrname\030\001 \001(\t" + "\022\013\n\003max\030\002 \001(\r\022\013\n\003min\030\003 \001(\r\022\014\n\004diff\030\004 \001(\r", "\022\024\n\014diff_percent\030\005 \001(\r\"Z\n\013RespService\022\021\n" + "\tattrnames\030\001 \003(\t\022\013\n\003ips\030\002 \003(\t\022+\n\nalarmat" + "trs\030\003 \003(\0132\027.ngse.monitor.AlarmAttr\"F\n\016Re" + "qServiceAttr\022\023\n\013servicename\030\001 \001(\t\022\021\n\tatt" + "rnames\030\002 \003(\t\022\014\n\004days\030\003 \003(\r\"9\n\010AttrData\022\020" + "\n\010attrname\030\001 \001(\t\022\013\n\003day\030\002 \001(\r\022\016\n\006values\030" + "\003 \003(\r\"7\n\017RespServiceAttr\022$\n\004data\030\001 \003(\0132\026" + ".ngse.monitor.AttrData\"M\n\tReqAttrIP\022\023\n\013s" + "ervicename\030\001 \001(\t\022\020\n\010attrname\030\002 \001(\t\022\013\n\003ip" + "s\030\003 \003(\t\022\014\n\004days\030\004 \003(\r\"5\n\nAttrIPData\022\n\n\002i", "p\030\001 \001(\t\022\013\n\003day\030\002 \001(\r\022\016\n\006values\030\003 \003(\r\"4\n\n" + "RespAttrIP\022&\n\004data\030\001 \003(\0132\030.ngse.monitor." + "AttrIPData\"!\n\005ReqIP\022\n\n\002ip\030\001 \001(\t\022\014\n\004days\030" + "\002 \003(\r\"0\n\006IPData\022\023\n\013servicename\030\001 \001(\t\022\021\n\t" + "attrnames\030\002 \003(\t\",\n\006RespIP\022\"\n\004data\030\001 \003(\0132" + "\024.ngse.monitor.IPData\"J\n\tReqIPAttr\022\n\n\002ip" + "\030\001 \001(\t\022#\n\005attrs\030\002 \003(\0132\024.ngse.monitor.IPD" + "ata\022\014\n\004days\030\003 \003(\r\"P\n\nIPAttrData\022\023\n\013servi" + "cename\030\001 \001(\t\022\020\n\010attrname\030\002 \001(\t\022\013\n\003day\030\003 " + "\001(\r\022\016\n\006values\030\004 \003(\r\"4\n\nRespIPAttr\022&\n\004dat", "a\030\001 \003(\0132\030.ngse.monitor.IPAttrData\"v\n\017Req" + "SetAlarmAttr\022\023\n\013servicename\030\001 \001(\t\022\020\n\010att" + "rname\030\002 \001(\t\022\013\n\003max\030\003 \001(\r\022\013\n\003min\030\004 \001(\r\022\014\n" + "\004diff\030\005 \001(\r\022\024\n\014diff_percent\030\006 \001(\r\"\022\n\020Res" + "pSetAlarmAttr\"8\n\017ReqDelAlarmAttr\022\023\n\013serv" + "icename\030\001 \001(\t\022\020\n\010attrname\030\002 \001(\t\"(\n\020RespD" + "elAlarmAttr\022\024\n\014deleted_rows\030\001 \001(\r\"2\n\016Req" + "NewestAlarm\022\023\n\013servicename\030\001 \001(\t\022\013\n\003day\030" + "\002 \001(\r\"\343\001\n\005Alarm\022\023\n\013servicename\030\001 \001(\t\022\020\n\010" + "attrname\030\002 \001(\t\022%\n\004type\030\003 \001(\0162\027.ngse.moni", "tor.AlarmType\022\030\n\020first_alarm_time\030\004 \001(\r\022" + "\027\n\017last_alarm_time\030\005 \001(\r\022\023\n\013alarm_times\030" + "\006 \001(\r\022\022\n\nlast_value\030\007 \001(\r\022\027\n\017last_attr_v" + "alue\030\010 \001(\r\022\027\n\017last_diff_value\030\t \001(\r\"6\n\017R" + "espNewestAlarm\022#\n\006alarms\030\001 \003(\0132\023.ngse.mo" + "nitor.Alarm\"v\n\013ReqDelAlarm\022\023\n\013servicenam" + "e\030\001 \001(\t\022\020\n\010attrname\030\002 \001(\t\022%\n\004type\030\003 \001(\0162" + "\027.ngse.monitor.AlarmType\022\013\n\003day\030\004 \001(\r\022\014\n" + "\004time\030\005 \001(\r\"$\n\014RespDelAlarm\022\024\n\014deleted_r" + "ows\030\001 \001(\r*Q\n\tAlarmType\022\r\n\tALARM_MAX\020\001\022\r\n", "\tALARM_MIN\020\002\022\016\n\nALARM_DIFF\020\003\022\026\n\022ALARM_DI" + "FF_PERCENT\020\004" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_ngse_monitor_Attr_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ngse_monitor_Attr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_Attr_descriptor, new java.lang.String[] { "Servicename", "Attrname", "Values", "BeginTime", "EndTime", }); internal_static_ngse_monitor_ReqReport_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_ngse_monitor_ReqReport_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqReport_descriptor, new java.lang.String[] { "Attrs", }); internal_static_ngse_monitor_RespReport_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ngse_monitor_RespReport_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespReport_descriptor, new java.lang.String[] { "Result", }); internal_static_ngse_monitor_ReqMonitor_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ngse_monitor_ReqMonitor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqMonitor_descriptor, new java.lang.String[] { "Service", "Serviceattr", "Attrip", "Ip", "Ipattr", "Setalarmattr", "Delalarmattr", "Newalarm", "Delalarm", }); internal_static_ngse_monitor_RespMonitor_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_ngse_monitor_RespMonitor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespMonitor_descriptor, new java.lang.String[] { "Result", "Service", "Serviceattr", "Attrip", "Ip", "Ipattr", "Setalarmattr", "Delalarmattr", "Newalarm", "Delalarm", }); internal_static_ngse_monitor_ReqService_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_ngse_monitor_ReqService_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqService_descriptor, new java.lang.String[] { "Servicename", "Days", }); internal_static_ngse_monitor_AlarmAttr_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_ngse_monitor_AlarmAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_AlarmAttr_descriptor, new java.lang.String[] { "Attrname", "Max", "Min", "Diff", "DiffPercent", }); internal_static_ngse_monitor_RespService_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_ngse_monitor_RespService_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespService_descriptor, new java.lang.String[] { "Attrnames", "Ips", "Alarmattrs", }); internal_static_ngse_monitor_ReqServiceAttr_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_ngse_monitor_ReqServiceAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqServiceAttr_descriptor, new java.lang.String[] { "Servicename", "Attrnames", "Days", }); internal_static_ngse_monitor_AttrData_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_ngse_monitor_AttrData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_AttrData_descriptor, new java.lang.String[] { "Attrname", "Day", "Values", }); internal_static_ngse_monitor_RespServiceAttr_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_ngse_monitor_RespServiceAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespServiceAttr_descriptor, new java.lang.String[] { "Data", }); internal_static_ngse_monitor_ReqAttrIP_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_ngse_monitor_ReqAttrIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqAttrIP_descriptor, new java.lang.String[] { "Servicename", "Attrname", "Ips", "Days", }); internal_static_ngse_monitor_AttrIPData_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_ngse_monitor_AttrIPData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_AttrIPData_descriptor, new java.lang.String[] { "Ip", "Day", "Values", }); internal_static_ngse_monitor_RespAttrIP_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_ngse_monitor_RespAttrIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespAttrIP_descriptor, new java.lang.String[] { "Data", }); internal_static_ngse_monitor_ReqIP_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_ngse_monitor_ReqIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqIP_descriptor, new java.lang.String[] { "Ip", "Days", }); internal_static_ngse_monitor_IPData_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_ngse_monitor_IPData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_IPData_descriptor, new java.lang.String[] { "Servicename", "Attrnames", }); internal_static_ngse_monitor_RespIP_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_ngse_monitor_RespIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespIP_descriptor, new java.lang.String[] { "Data", }); internal_static_ngse_monitor_ReqIPAttr_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_ngse_monitor_ReqIPAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqIPAttr_descriptor, new java.lang.String[] { "Ip", "Attrs", "Days", }); internal_static_ngse_monitor_IPAttrData_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_ngse_monitor_IPAttrData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_IPAttrData_descriptor, new java.lang.String[] { "Servicename", "Attrname", "Day", "Values", }); internal_static_ngse_monitor_RespIPAttr_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_ngse_monitor_RespIPAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespIPAttr_descriptor, new java.lang.String[] { "Data", }); internal_static_ngse_monitor_ReqSetAlarmAttr_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_ngse_monitor_ReqSetAlarmAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqSetAlarmAttr_descriptor, new java.lang.String[] { "Servicename", "Attrname", "Max", "Min", "Diff", "DiffPercent", }); internal_static_ngse_monitor_RespSetAlarmAttr_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_ngse_monitor_RespSetAlarmAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespSetAlarmAttr_descriptor, new java.lang.String[] { }); internal_static_ngse_monitor_ReqDelAlarmAttr_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_ngse_monitor_ReqDelAlarmAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqDelAlarmAttr_descriptor, new java.lang.String[] { "Servicename", "Attrname", }); internal_static_ngse_monitor_RespDelAlarmAttr_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_ngse_monitor_RespDelAlarmAttr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespDelAlarmAttr_descriptor, new java.lang.String[] { "DeletedRows", }); internal_static_ngse_monitor_ReqNewestAlarm_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_ngse_monitor_ReqNewestAlarm_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqNewestAlarm_descriptor, new java.lang.String[] { "Servicename", "Day", }); internal_static_ngse_monitor_Alarm_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_ngse_monitor_Alarm_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_Alarm_descriptor, new java.lang.String[] { "Servicename", "Attrname", "Type", "FirstAlarmTime", "LastAlarmTime", "AlarmTimes", "LastValue", "LastAttrValue", "LastDiffValue", }); internal_static_ngse_monitor_RespNewestAlarm_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_ngse_monitor_RespNewestAlarm_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespNewestAlarm_descriptor, new java.lang.String[] { "Alarms", }); internal_static_ngse_monitor_ReqDelAlarm_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_ngse_monitor_ReqDelAlarm_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_ReqDelAlarm_descriptor, new java.lang.String[] { "Servicename", "Attrname", "Type", "Day", "Time", }); internal_static_ngse_monitor_RespDelAlarm_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_ngse_monitor_RespDelAlarm_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ngse_monitor_RespDelAlarm_descriptor, new java.lang.String[] { "DeletedRows", }); } // @@protoc_insertion_point(outer_class_scope) }