diff --git a/.hgignore b/.hgignore index ccb1ce15..d05d0a78 100644 --- a/.hgignore +++ b/.hgignore @@ -11,3 +11,5 @@ private/* .nb-gradle/* .idea/ *.iml + +/numass-core/gen/ diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..b5a3db4d Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..96936931 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Apr 05 18:15:59 MSK 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip diff --git a/gradlew b/gradlew new file mode 100644 index 00000000..4453ccea --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save ( ) { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 00000000..e95643d6 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/numass-storage/numass-client/build.gradle b/numass-client/build.gradle similarity index 82% rename from numass-storage/numass-client/build.gradle rename to numass-client/build.gradle index f727accd..ee95af75 100644 --- a/numass-storage/numass-client/build.gradle +++ b/numass-client/build.gradle @@ -7,7 +7,7 @@ if (!hasProperty('mainClass')) { mainClassName = mainClass dependencies { - compile project(':numass-storage') + compile project(':numass-core') compile 'commons-cli:commons-cli:1.3.1' compile 'org.zeroturnaround:zt-zip:1.9' } \ No newline at end of file diff --git a/numass-storage/numass-client/src/main/java/inr/numass/client/Cli.java b/numass-client/src/main/java/inr/numass/client/Cli.java similarity index 100% rename from numass-storage/numass-client/src/main/java/inr/numass/client/Cli.java rename to numass-client/src/main/java/inr/numass/client/Cli.java diff --git a/numass-storage/numass-client/src/main/java/inr/numass/client/ClientUtils.java b/numass-client/src/main/java/inr/numass/client/ClientUtils.java similarity index 100% rename from numass-storage/numass-client/src/main/java/inr/numass/client/ClientUtils.java rename to numass-client/src/main/java/inr/numass/client/ClientUtils.java diff --git a/numass-storage/numass-client/src/main/java/inr/numass/client/NumassClient.java b/numass-client/src/main/java/inr/numass/client/NumassClient.java similarity index 100% rename from numass-storage/numass-client/src/main/java/inr/numass/client/NumassClient.java rename to numass-client/src/main/java/inr/numass/client/NumassClient.java diff --git a/numass-storage/numass-client/src/main/java/inr/numass/client/RemoteNumassStorage.java b/numass-client/src/main/java/inr/numass/client/RemoteNumassStorage.java similarity index 100% rename from numass-storage/numass-client/src/main/java/inr/numass/client/RemoteNumassStorage.java rename to numass-client/src/main/java/inr/numass/client/RemoteNumassStorage.java diff --git a/numass-control/build.gradle b/numass-control/build.gradle index c95858cc..4e5b9b82 100644 --- a/numass-control/build.gradle +++ b/numass-control/build.gradle @@ -6,7 +6,7 @@ configurations { } dependencies { - compile project(':numass-storage:numass-client') + compile project(':numass-client') compile "hep.dataforge:plots-jfc" // project(':dataforge-plots:plots-jfc') compile "hep.dataforge:dataforge-control" //project(':dataforge-control') compile "hep.dataforge:dataforge-fx" //project(':dataforge-fx') diff --git a/numass-storage/build.gradle b/numass-core/build.gradle similarity index 87% rename from numass-storage/build.gradle rename to numass-core/build.gradle index 6b2a84d6..228afaec 100644 --- a/numass-storage/build.gradle +++ b/numass-core/build.gradle @@ -9,6 +9,8 @@ buildscript { apply plugin: 'com.google.protobuf' +description = "A bse package with minimal dependencies for numass" + dependencies { compile "hep.dataforge:dataforge-storage" //project(':dataforge-storage') diff --git a/numass-storage/docs/server_commands.md b/numass-core/docs/server_commands.md similarity index 100% rename from numass-storage/docs/server_commands.md rename to numass-core/docs/server_commands.md diff --git a/numass-core/gen/main/java/inr/numass/data/NumassProto.java b/numass-core/gen/main/java/inr/numass/data/NumassProto.java new file mode 100644 index 00000000..fbc1e409 --- /dev/null +++ b/numass-core/gen/main/java/inr/numass/data/NumassProto.java @@ -0,0 +1,4450 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: inr/numas/numass-proto.proto + +package inr.numass.data; + +public final class NumassProto { + private NumassProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PointOrBuilder extends + // @@protoc_insertion_point(interface_extends:inr.numass.data.Point) + com.google.protobuf.MessageOrBuilder { + + /** + *
+ * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ java.util.List+ * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ inr.numass.data.NumassProto.Point.Channel getChannels(int index);
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ int getChannelsCount();
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ java.util.List extends inr.numass.data.NumassProto.Point.ChannelOrBuilder>
+ getChannelsOrBuilderList();
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ inr.numass.data.NumassProto.Point.ChannelOrBuilder getChannelsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code inr.numass.data.Point}
+ */
+ public static final class Point extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:inr.numass.data.Point)
+ PointOrBuilder {
+ // Use Point.newBuilder() to construct.
+ private Point(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Point() {
+ channels_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Point(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ channels_ = new java.util.ArrayList+ * номер канала + *+ * + *
uint64 num = 1;
+ */
+ long getNum();
+
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ java.util.List+ * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ inr.numass.data.NumassProto.Point.Channel.Block getBlocks(int index);
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ int getBlocksCount();
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ java.util.List extends inr.numass.data.NumassProto.Point.Channel.BlockOrBuilder>
+ getBlocksOrBuilderList();
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ inr.numass.data.NumassProto.Point.Channel.BlockOrBuilder getBlocksOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code inr.numass.data.Point.Channel}
+ */
+ public static final class Channel extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:inr.numass.data.Point.Channel)
+ ChannelOrBuilder {
+ // Use Channel.newBuilder() to construct.
+ private Channel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Channel() {
+ num_ = 0L;
+ blocks_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Channel(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ num_ = input.readUInt64();
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ blocks_ = new java.util.ArrayList+ * время начала блока в наносекундах с начала эпохи + *+ * + *
uint64 time = 1;
+ */
+ long getTime();
+
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ java.util.List+ * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ inr.numass.data.NumassProto.Point.Channel.Block.Event getEvents(int index);
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ int getEventsCount();
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ java.util.List extends inr.numass.data.NumassProto.Point.Channel.Block.EventOrBuilder>
+ getEventsOrBuilderList();
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ inr.numass.data.NumassProto.Point.Channel.Block.EventOrBuilder getEventsOrBuilder(
+ int index);
+
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ boolean hasPeaks();
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks getPeaks();
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ inr.numass.data.NumassProto.Point.Channel.Block.PeaksOrBuilder getPeaksOrBuilder();
+ }
+ /**
+ * Protobuf type {@code inr.numass.data.Point.Channel.Block}
+ */
+ public static final class Block extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:inr.numass.data.Point.Channel.Block)
+ BlockOrBuilder {
+ // Use Block.newBuilder() to construct.
+ private Block(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Block() {
+ time_ = 0L;
+ events_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private Block(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ time_ = input.readUInt64();
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ events_ = new java.util.ArrayList+ *время в наносекундах от начала блока + *+ * + *
uint64 time = 1;
+ */
+ long getTime();
+
+ /**
+ * + * массив кадра события в формате int16 + *+ * + *
bytes data = 2;
+ */
+ com.google.protobuf.ByteString getData();
+ }
+ /**
+ * + * Необработанное событие + *+ * + * Protobuf type {@code inr.numass.data.Point.Channel.Block.Event} + */ + public static final class Event extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:inr.numass.data.Point.Channel.Block.Event) + EventOrBuilder { + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Event() { + time_ = 0L; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Event( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + time_ = input.readUInt64(); + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return inr.numass.data.NumassProto.internal_static_inr_numass_data_Point_Channel_Block_Event_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return inr.numass.data.NumassProto.internal_static_inr_numass_data_Point_Channel_Block_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + inr.numass.data.NumassProto.Point.Channel.Block.Event.class, inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder.class); + } + + public static final int TIME_FIELD_NUMBER = 1; + private long time_; + /** + *
+ *время в наносекундах от начала блока + *+ * + *
uint64 time = 1;
+ */
+ public long getTime() {
+ return time_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString data_;
+ /**
+ * + * массив кадра события в формате int16 + *+ * + *
bytes data = 2;
+ */
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+
+ 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 {
+ if (time_ != 0L) {
+ output.writeUInt64(1, time_);
+ }
+ if (!data_.isEmpty()) {
+ output.writeBytes(2, data_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (time_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, time_);
+ }
+ if (!data_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, data_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof inr.numass.data.NumassProto.Point.Channel.Block.Event)) {
+ return super.equals(obj);
+ }
+ inr.numass.data.NumassProto.Point.Channel.Block.Event other = (inr.numass.data.NumassProto.Point.Channel.Block.Event) obj;
+
+ boolean result = true;
+ result = result && (getTime()
+ == other.getTime());
+ result = result && getData()
+ .equals(other.getData());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTime());
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(inr.numass.data.NumassProto.Point.Channel.Block.Event prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Необработанное событие + *+ * + * Protobuf type {@code inr.numass.data.Point.Channel.Block.Event} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ *время в наносекундах от начала блока + *+ * + *
uint64 time = 1;
+ */
+ public long getTime() {
+ return time_;
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
uint64 time = 1;
+ */
+ public Builder setTime(long value) {
+
+ time_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
uint64 time = 1;
+ */
+ public Builder clearTime() {
+
+ time_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * + * массив кадра события в формате int16 + *+ * + *
bytes data = 2;
+ */
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+ /**
+ * + * массив кадра события в формате int16 + *+ * + *
bytes data = 2;
+ */
+ public Builder setData(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ data_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * массив кадра события в формате int16 + *+ * + *
bytes data = 2;
+ */
+ public Builder clearData() {
+
+ data_ = getDefaultInstance().getData();
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:inr.numass.data.Point.Channel.Block.Event)
+ }
+
+ // @@protoc_insertion_point(class_scope:inr.numass.data.Point.Channel.Block.Event)
+ private static final inr.numass.data.NumassProto.Point.Channel.Block.Event DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new inr.numass.data.NumassProto.Point.Channel.Block.Event();
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Event getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ java.util.List+ *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ int getTimesCount();
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ long getTimes(int index);
+
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ java.util.List+ *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ int getAmplitudesCount();
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ long getAmplitudes(int index);
+ }
+ /**
+ * + * Обработанные события. Содержат только время и амплитуду сигналов. + * Для экономии места при сериализации амплитуды и времена лежат в + * разных массивах. Амплитуда и время имеющие одинаковые индексы + * соответствуют одному событию + *+ * + * Protobuf type {@code inr.numass.data.Point.Channel.Block.Peaks} + */ + public static final class Peaks extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:inr.numass.data.Point.Channel.Block.Peaks) + PeaksOrBuilder { + // Use Peaks.newBuilder() to construct. + private Peaks(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Peaks() { + times_ = java.util.Collections.emptyList(); + amplitudes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Peaks( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + times_ = new java.util.ArrayList
+ *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public java.util.List+ *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public int getTimesCount() {
+ return times_.size();
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public long getTimes(int index) {
+ return times_.get(index);
+ }
+ private int timesMemoizedSerializedSize = -1;
+
+ public static final int AMPLITUDES_FIELD_NUMBER = 2;
+ private java.util.List+ *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public java.util.List+ *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public int getAmplitudesCount() {
+ return amplitudes_.size();
+ }
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public long getAmplitudes(int index) {
+ return amplitudes_.get(index);
+ }
+ private int amplitudesMemoizedSerializedSize = -1;
+
+ 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 (getTimesList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(timesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < times_.size(); i++) {
+ output.writeUInt64NoTag(times_.get(i));
+ }
+ if (getAmplitudesList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(amplitudesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < amplitudes_.size(); i++) {
+ output.writeUInt64NoTag(amplitudes_.get(i));
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < times_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt64SizeNoTag(times_.get(i));
+ }
+ size += dataSize;
+ if (!getTimesList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ timesMemoizedSerializedSize = dataSize;
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < amplitudes_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt64SizeNoTag(amplitudes_.get(i));
+ }
+ size += dataSize;
+ if (!getAmplitudesList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ amplitudesMemoizedSerializedSize = dataSize;
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof inr.numass.data.NumassProto.Point.Channel.Block.Peaks)) {
+ return super.equals(obj);
+ }
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks other = (inr.numass.data.NumassProto.Point.Channel.Block.Peaks) obj;
+
+ boolean result = true;
+ result = result && getTimesList()
+ .equals(other.getTimesList());
+ result = result && getAmplitudesList()
+ .equals(other.getAmplitudesList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getTimesCount() > 0) {
+ hash = (37 * hash) + TIMES_FIELD_NUMBER;
+ hash = (53 * hash) + getTimesList().hashCode();
+ }
+ if (getAmplitudesCount() > 0) {
+ hash = (37 * hash) + AMPLITUDES_FIELD_NUMBER;
+ hash = (53 * hash) + getAmplitudesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(inr.numass.data.NumassProto.Point.Channel.Block.Peaks prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Обработанные события. Содержат только время и амплитуду сигналов. + * Для экономии места при сериализации амплитуды и времена лежат в + * разных массивах. Амплитуда и время имеющие одинаковые индексы + * соответствуют одному событию + *+ * + * Protobuf type {@code inr.numass.data.Point.Channel.Block.Peaks} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public java.util.List+ *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public int getTimesCount() {
+ return times_.size();
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public long getTimes(int index) {
+ return times_.get(index);
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public Builder setTimes(
+ int index, long value) {
+ ensureTimesIsMutable();
+ times_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public Builder addTimes(long value) {
+ ensureTimesIsMutable();
+ times_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public Builder addAllTimes(
+ java.lang.Iterable extends java.lang.Long> values) {
+ ensureTimesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, times_);
+ onChanged();
+ return this;
+ }
+ /**
+ * + *время в наносекундах от начала блока + *+ * + *
repeated uint64 times = 1;
+ */
+ public Builder clearTimes() {
+ times_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public java.util.List+ *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public int getAmplitudesCount() {
+ return amplitudes_.size();
+ }
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public long getAmplitudes(int index) {
+ return amplitudes_.get(index);
+ }
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public Builder setAmplitudes(
+ int index, long value) {
+ ensureAmplitudesIsMutable();
+ amplitudes_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public Builder addAmplitudes(long value) {
+ ensureAmplitudesIsMutable();
+ amplitudes_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public Builder addAllAmplitudes(
+ java.lang.Iterable extends java.lang.Long> values) {
+ ensureAmplitudesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, amplitudes_);
+ onChanged();
+ return this;
+ }
+ /**
+ * + *амплитуда события в каналах + *+ * + *
repeated uint64 amplitudes = 2;
+ */
+ public Builder clearAmplitudes() {
+ amplitudes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:inr.numass.data.Point.Channel.Block.Peaks)
+ }
+
+ // @@protoc_insertion_point(class_scope:inr.numass.data.Point.Channel.Block.Peaks)
+ private static final inr.numass.data.NumassProto.Point.Channel.Block.Peaks DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new inr.numass.data.NumassProto.Point.Channel.Block.Peaks();
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel.Block.Peaks getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * время начала блока в наносекундах с начала эпохи + *+ * + *
uint64 time = 1;
+ */
+ public long getTime() {
+ return time_;
+ }
+
+ public static final int EVENTS_FIELD_NUMBER = 2;
+ private java.util.List+ * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public java.util.List+ * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public java.util.List extends inr.numass.data.NumassProto.Point.Channel.Block.EventOrBuilder>
+ getEventsOrBuilderList() {
+ return events_;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public int getEventsCount() {
+ return events_.size();
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Event getEvents(int index) {
+ return events_.get(index);
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.EventOrBuilder getEventsOrBuilder(
+ int index) {
+ return events_.get(index);
+ }
+
+ public static final int PEAKS_FIELD_NUMBER = 3;
+ private inr.numass.data.NumassProto.Point.Channel.Block.Peaks peaks_;
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public boolean hasPeaks() {
+ return peaks_ != null;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Peaks getPeaks() {
+ return peaks_ == null ? inr.numass.data.NumassProto.Point.Channel.Block.Peaks.getDefaultInstance() : peaks_;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.PeaksOrBuilder getPeaksOrBuilder() {
+ return getPeaks();
+ }
+
+ 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 {
+ if (time_ != 0L) {
+ output.writeUInt64(1, time_);
+ }
+ for (int i = 0; i < events_.size(); i++) {
+ output.writeMessage(2, events_.get(i));
+ }
+ if (peaks_ != null) {
+ output.writeMessage(3, getPeaks());
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (time_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, time_);
+ }
+ for (int i = 0; i < events_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, events_.get(i));
+ }
+ if (peaks_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getPeaks());
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof inr.numass.data.NumassProto.Point.Channel.Block)) {
+ return super.equals(obj);
+ }
+ inr.numass.data.NumassProto.Point.Channel.Block other = (inr.numass.data.NumassProto.Point.Channel.Block) obj;
+
+ boolean result = true;
+ result = result && (getTime()
+ == other.getTime());
+ result = result && getEventsList()
+ .equals(other.getEventsList());
+ result = result && (hasPeaks() == other.hasPeaks());
+ if (hasPeaks()) {
+ result = result && getPeaks()
+ .equals(other.getPeaks());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTime());
+ if (getEventsCount() > 0) {
+ hash = (37 * hash) + EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getEventsList().hashCode();
+ }
+ if (hasPeaks()) {
+ hash = (37 * hash) + PEAKS_FIELD_NUMBER;
+ hash = (53 * hash) + getPeaks().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel.Block parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(inr.numass.data.NumassProto.Point.Channel.Block prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code inr.numass.data.Point.Channel.Block}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * время начала блока в наносекундах с начала эпохи + *+ * + *
uint64 time = 1;
+ */
+ public long getTime() {
+ return time_;
+ }
+ /**
+ * + * время начала блока в наносекундах с начала эпохи + *+ * + *
uint64 time = 1;
+ */
+ public Builder setTime(long value) {
+
+ time_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * время начала блока в наносекундах с начала эпохи + *+ * + *
uint64 time = 1;
+ */
+ public Builder clearTime() {
+
+ time_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public java.util.List+ * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public int getEventsCount() {
+ if (eventsBuilder_ == null) {
+ return events_.size();
+ } else {
+ return eventsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Event getEvents(int index) {
+ if (eventsBuilder_ == null) {
+ return events_.get(index);
+ } else {
+ return eventsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder setEvents(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block.Event value) {
+ if (eventsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEventsIsMutable();
+ events_.set(index, value);
+ onChanged();
+ } else {
+ eventsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder setEvents(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder builderForValue) {
+ if (eventsBuilder_ == null) {
+ ensureEventsIsMutable();
+ events_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ eventsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder addEvents(inr.numass.data.NumassProto.Point.Channel.Block.Event value) {
+ if (eventsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEventsIsMutable();
+ events_.add(value);
+ onChanged();
+ } else {
+ eventsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder addEvents(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block.Event value) {
+ if (eventsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEventsIsMutable();
+ events_.add(index, value);
+ onChanged();
+ } else {
+ eventsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder addEvents(
+ inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder builderForValue) {
+ if (eventsBuilder_ == null) {
+ ensureEventsIsMutable();
+ events_.add(builderForValue.build());
+ onChanged();
+ } else {
+ eventsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder addEvents(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder builderForValue) {
+ if (eventsBuilder_ == null) {
+ ensureEventsIsMutable();
+ events_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ eventsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder addAllEvents(
+ java.lang.Iterable extends inr.numass.data.NumassProto.Point.Channel.Block.Event> values) {
+ if (eventsBuilder_ == null) {
+ ensureEventsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, events_);
+ onChanged();
+ } else {
+ eventsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder clearEvents() {
+ if (eventsBuilder_ == null) {
+ events_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ eventsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public Builder removeEvents(int index) {
+ if (eventsBuilder_ == null) {
+ ensureEventsIsMutable();
+ events_.remove(index);
+ onChanged();
+ } else {
+ eventsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder getEventsBuilder(
+ int index) {
+ return getEventsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.EventOrBuilder getEventsOrBuilder(
+ int index) {
+ if (eventsBuilder_ == null) {
+ return events_.get(index); } else {
+ return eventsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public java.util.List extends inr.numass.data.NumassProto.Point.Channel.Block.EventOrBuilder>
+ getEventsOrBuilderList() {
+ if (eventsBuilder_ != null) {
+ return eventsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(events_);
+ }
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder addEventsBuilder() {
+ return getEventsFieldBuilder().addBuilder(
+ inr.numass.data.NumassProto.Point.Channel.Block.Event.getDefaultInstance());
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Event.Builder addEventsBuilder(
+ int index) {
+ return getEventsFieldBuilder().addBuilder(
+ index, inr.numass.data.NumassProto.Point.Channel.Block.Event.getDefaultInstance());
+ }
+ /**
+ * + * массив необработанных событий + *+ * + *
repeated .inr.numass.data.Point.Channel.Block.Event events = 2;
+ */
+ public java.util.List+ * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public boolean hasPeaks() {
+ return peaksBuilder_ != null || peaks_ != null;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Peaks getPeaks() {
+ if (peaksBuilder_ == null) {
+ return peaks_ == null ? inr.numass.data.NumassProto.Point.Channel.Block.Peaks.getDefaultInstance() : peaks_;
+ } else {
+ return peaksBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public Builder setPeaks(inr.numass.data.NumassProto.Point.Channel.Block.Peaks value) {
+ if (peaksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ peaks_ = value;
+ onChanged();
+ } else {
+ peaksBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public Builder setPeaks(
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks.Builder builderForValue) {
+ if (peaksBuilder_ == null) {
+ peaks_ = builderForValue.build();
+ onChanged();
+ } else {
+ peaksBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public Builder mergePeaks(inr.numass.data.NumassProto.Point.Channel.Block.Peaks value) {
+ if (peaksBuilder_ == null) {
+ if (peaks_ != null) {
+ peaks_ =
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks.newBuilder(peaks_).mergeFrom(value).buildPartial();
+ } else {
+ peaks_ = value;
+ }
+ onChanged();
+ } else {
+ peaksBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public Builder clearPeaks() {
+ if (peaksBuilder_ == null) {
+ peaks_ = null;
+ onChanged();
+ } else {
+ peaks_ = null;
+ peaksBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Peaks.Builder getPeaksBuilder() {
+
+ onChanged();
+ return getPeaksFieldBuilder().getBuilder();
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.PeaksOrBuilder getPeaksOrBuilder() {
+ if (peaksBuilder_ != null) {
+ return peaksBuilder_.getMessageOrBuilder();
+ } else {
+ return peaks_ == null ?
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks.getDefaultInstance() : peaks_;
+ }
+ }
+ /**
+ * + * массив обработанных событий + *+ * + *
.inr.numass.data.Point.Channel.Block.Peaks peaks = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks, inr.numass.data.NumassProto.Point.Channel.Block.Peaks.Builder, inr.numass.data.NumassProto.Point.Channel.Block.PeaksOrBuilder>
+ getPeaksFieldBuilder() {
+ if (peaksBuilder_ == null) {
+ peaksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ inr.numass.data.NumassProto.Point.Channel.Block.Peaks, inr.numass.data.NumassProto.Point.Channel.Block.Peaks.Builder, inr.numass.data.NumassProto.Point.Channel.Block.PeaksOrBuilder>(
+ getPeaks(),
+ getParentForChildren(),
+ isClean());
+ peaks_ = null;
+ }
+ return peaksBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:inr.numass.data.Point.Channel.Block)
+ }
+
+ // @@protoc_insertion_point(class_scope:inr.numass.data.Point.Channel.Block)
+ private static final inr.numass.data.NumassProto.Point.Channel.Block DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new inr.numass.data.NumassProto.Point.Channel.Block();
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel.Block getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * номер канала + *+ * + *
uint64 num = 1;
+ */
+ public long getNum() {
+ return num_;
+ }
+
+ public static final int BLOCKS_FIELD_NUMBER = 2;
+ private java.util.List+ * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public java.util.List+ * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public java.util.List extends inr.numass.data.NumassProto.Point.Channel.BlockOrBuilder>
+ getBlocksOrBuilderList() {
+ return blocks_;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public int getBlocksCount() {
+ return blocks_.size();
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block getBlocks(int index) {
+ return blocks_.get(index);
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.BlockOrBuilder getBlocksOrBuilder(
+ int index) {
+ return blocks_.get(index);
+ }
+
+ 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 {
+ if (num_ != 0L) {
+ output.writeUInt64(1, num_);
+ }
+ for (int i = 0; i < blocks_.size(); i++) {
+ output.writeMessage(2, blocks_.get(i));
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (num_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, num_);
+ }
+ for (int i = 0; i < blocks_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, blocks_.get(i));
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof inr.numass.data.NumassProto.Point.Channel)) {
+ return super.equals(obj);
+ }
+ inr.numass.data.NumassProto.Point.Channel other = (inr.numass.data.NumassProto.Point.Channel) obj;
+
+ boolean result = true;
+ result = result && (getNum()
+ == other.getNum());
+ result = result && getBlocksList()
+ .equals(other.getBlocksList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getNum());
+ if (getBlocksCount() > 0) {
+ hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
+ hash = (53 * hash) + getBlocksList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point.Channel parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(inr.numass.data.NumassProto.Point.Channel prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code inr.numass.data.Point.Channel}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * номер канала + *+ * + *
uint64 num = 1;
+ */
+ public long getNum() {
+ return num_;
+ }
+ /**
+ * + * номер канала + *+ * + *
uint64 num = 1;
+ */
+ public Builder setNum(long value) {
+
+ num_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * номер канала + *+ * + *
uint64 num = 1;
+ */
+ public Builder clearNum() {
+
+ num_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public java.util.List+ * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public int getBlocksCount() {
+ if (blocksBuilder_ == null) {
+ return blocks_.size();
+ } else {
+ return blocksBuilder_.getCount();
+ }
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block getBlocks(int index) {
+ if (blocksBuilder_ == null) {
+ return blocks_.get(index);
+ } else {
+ return blocksBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder setBlocks(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block value) {
+ if (blocksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBlocksIsMutable();
+ blocks_.set(index, value);
+ onChanged();
+ } else {
+ blocksBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder setBlocks(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block.Builder builderForValue) {
+ if (blocksBuilder_ == null) {
+ ensureBlocksIsMutable();
+ blocks_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ blocksBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder addBlocks(inr.numass.data.NumassProto.Point.Channel.Block value) {
+ if (blocksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBlocksIsMutable();
+ blocks_.add(value);
+ onChanged();
+ } else {
+ blocksBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder addBlocks(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block value) {
+ if (blocksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBlocksIsMutable();
+ blocks_.add(index, value);
+ onChanged();
+ } else {
+ blocksBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder addBlocks(
+ inr.numass.data.NumassProto.Point.Channel.Block.Builder builderForValue) {
+ if (blocksBuilder_ == null) {
+ ensureBlocksIsMutable();
+ blocks_.add(builderForValue.build());
+ onChanged();
+ } else {
+ blocksBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder addBlocks(
+ int index, inr.numass.data.NumassProto.Point.Channel.Block.Builder builderForValue) {
+ if (blocksBuilder_ == null) {
+ ensureBlocksIsMutable();
+ blocks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ blocksBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder addAllBlocks(
+ java.lang.Iterable extends inr.numass.data.NumassProto.Point.Channel.Block> values) {
+ if (blocksBuilder_ == null) {
+ ensureBlocksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, blocks_);
+ onChanged();
+ } else {
+ blocksBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder clearBlocks() {
+ if (blocksBuilder_ == null) {
+ blocks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ blocksBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public Builder removeBlocks(int index) {
+ if (blocksBuilder_ == null) {
+ ensureBlocksIsMutable();
+ blocks_.remove(index);
+ onChanged();
+ } else {
+ blocksBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Builder getBlocksBuilder(
+ int index) {
+ return getBlocksFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.BlockOrBuilder getBlocksOrBuilder(
+ int index) {
+ if (blocksBuilder_ == null) {
+ return blocks_.get(index); } else {
+ return blocksBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public java.util.List extends inr.numass.data.NumassProto.Point.Channel.BlockOrBuilder>
+ getBlocksOrBuilderList() {
+ if (blocksBuilder_ != null) {
+ return blocksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(blocks_);
+ }
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Builder addBlocksBuilder() {
+ return getBlocksFieldBuilder().addBuilder(
+ inr.numass.data.NumassProto.Point.Channel.Block.getDefaultInstance());
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Block.Builder addBlocksBuilder(
+ int index) {
+ return getBlocksFieldBuilder().addBuilder(
+ index, inr.numass.data.NumassProto.Point.Channel.Block.getDefaultInstance());
+ }
+ /**
+ * + * набранные блоки + *+ * + *
repeated .inr.numass.data.Point.Channel.Block blocks = 2;
+ */
+ public java.util.List+ * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public java.util.List+ * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public java.util.List extends inr.numass.data.NumassProto.Point.ChannelOrBuilder>
+ getChannelsOrBuilderList() {
+ return channels_;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public int getChannelsCount() {
+ return channels_.size();
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.Channel getChannels(int index) {
+ return channels_.get(index);
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.ChannelOrBuilder getChannelsOrBuilder(
+ int index) {
+ return channels_.get(index);
+ }
+
+ 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 {
+ for (int i = 0; i < channels_.size(); i++) {
+ output.writeMessage(1, channels_.get(i));
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < channels_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, channels_.get(i));
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof inr.numass.data.NumassProto.Point)) {
+ return super.equals(obj);
+ }
+ inr.numass.data.NumassProto.Point other = (inr.numass.data.NumassProto.Point) obj;
+
+ boolean result = true;
+ result = result && getChannelsList()
+ .equals(other.getChannelsList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getChannelsCount() > 0) {
+ hash = (37 * hash) + CHANNELS_FIELD_NUMBER;
+ hash = (53 * hash) + getChannelsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static inr.numass.data.NumassProto.Point parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static inr.numass.data.NumassProto.Point parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(inr.numass.data.NumassProto.Point prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code inr.numass.data.Point}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public java.util.List+ * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public int getChannelsCount() {
+ if (channelsBuilder_ == null) {
+ return channels_.size();
+ } else {
+ return channelsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.Channel getChannels(int index) {
+ if (channelsBuilder_ == null) {
+ return channels_.get(index);
+ } else {
+ return channelsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder setChannels(
+ int index, inr.numass.data.NumassProto.Point.Channel value) {
+ if (channelsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChannelsIsMutable();
+ channels_.set(index, value);
+ onChanged();
+ } else {
+ channelsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder setChannels(
+ int index, inr.numass.data.NumassProto.Point.Channel.Builder builderForValue) {
+ if (channelsBuilder_ == null) {
+ ensureChannelsIsMutable();
+ channels_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ channelsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder addChannels(inr.numass.data.NumassProto.Point.Channel value) {
+ if (channelsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChannelsIsMutable();
+ channels_.add(value);
+ onChanged();
+ } else {
+ channelsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder addChannels(
+ int index, inr.numass.data.NumassProto.Point.Channel value) {
+ if (channelsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChannelsIsMutable();
+ channels_.add(index, value);
+ onChanged();
+ } else {
+ channelsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder addChannels(
+ inr.numass.data.NumassProto.Point.Channel.Builder builderForValue) {
+ if (channelsBuilder_ == null) {
+ ensureChannelsIsMutable();
+ channels_.add(builderForValue.build());
+ onChanged();
+ } else {
+ channelsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder addChannels(
+ int index, inr.numass.data.NumassProto.Point.Channel.Builder builderForValue) {
+ if (channelsBuilder_ == null) {
+ ensureChannelsIsMutable();
+ channels_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ channelsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder addAllChannels(
+ java.lang.Iterable extends inr.numass.data.NumassProto.Point.Channel> values) {
+ if (channelsBuilder_ == null) {
+ ensureChannelsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, channels_);
+ onChanged();
+ } else {
+ channelsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder clearChannels() {
+ if (channelsBuilder_ == null) {
+ channels_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ channelsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public Builder removeChannels(int index) {
+ if (channelsBuilder_ == null) {
+ ensureChannelsIsMutable();
+ channels_.remove(index);
+ onChanged();
+ } else {
+ channelsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Builder getChannelsBuilder(
+ int index) {
+ return getChannelsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.ChannelOrBuilder getChannelsOrBuilder(
+ int index) {
+ if (channelsBuilder_ == null) {
+ return channels_.get(index); } else {
+ return channelsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public java.util.List extends inr.numass.data.NumassProto.Point.ChannelOrBuilder>
+ getChannelsOrBuilderList() {
+ if (channelsBuilder_ != null) {
+ return channelsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(channels_);
+ }
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Builder addChannelsBuilder() {
+ return getChannelsFieldBuilder().addBuilder(
+ inr.numass.data.NumassProto.Point.Channel.getDefaultInstance());
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public inr.numass.data.NumassProto.Point.Channel.Builder addChannelsBuilder(
+ int index) {
+ return getChannelsFieldBuilder().addBuilder(
+ index, inr.numass.data.NumassProto.Point.Channel.getDefaultInstance());
+ }
+ /**
+ * + * массив событий по каналам + *+ * + *
repeated .inr.numass.data.Point.Channel channels = 1;
+ */
+ public java.util.List