/* * This file is part of CoAnSys project. * Copyright (c) 2012-2015 ICM-UW * * CoAnSys is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * CoAnSys is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with CoAnSys. If not, see <http://www.gnu.org/licenses/>. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: statisticsgenerator.proto package pl.edu.icm.coansys.models; public final class StatisticsProtos { private StatisticsProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface KeyValueOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string key = 1; /** * <code>required string key = 1;</code> */ boolean hasKey(); /** * <code>required string key = 1;</code> */ java.lang.String getKey(); /** * <code>required string key = 1;</code> */ com.google.protobuf.ByteString getKeyBytes(); // required string value = 2; /** * <code>required string value = 2;</code> */ boolean hasValue(); /** * <code>required string value = 2;</code> */ java.lang.String getValue(); /** * <code>required string value = 2;</code> */ com.google.protobuf.ByteString getValueBytes(); // optional string comment = 3; /** * <code>optional string comment = 3;</code> */ boolean hasComment(); /** * <code>optional string comment = 3;</code> */ java.lang.String getComment(); /** * <code>optional string comment = 3;</code> */ com.google.protobuf.ByteString getCommentBytes(); // optional string language = 4; /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ boolean hasLanguage(); /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ java.lang.String getLanguage(); /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ com.google.protobuf.ByteString getLanguageBytes(); } /** * Protobuf type {@code pl.edu.icm.coansys.models.KeyValue} * * <pre> * in the future it will be replaced by import * </pre> */ public static final class KeyValue extends com.google.protobuf.GeneratedMessage implements KeyValueOrBuilder { // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private KeyValue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final KeyValue defaultInstance; public static KeyValue getDefaultInstance() { return defaultInstance; } public KeyValue getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyValue( 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: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; value_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; comment_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; language_ = 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.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_KeyValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.class, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder.class); } public static com.google.protobuf.Parser<KeyValue> PARSER = new com.google.protobuf.AbstractParser<KeyValue>() { public KeyValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyValue(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<KeyValue> getParserForType() { return PARSER; } private int bitField0_; // required string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * <code>required string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * <code>required string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * <code>required string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * <code>required string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string comment = 3; public static final int COMMENT_FIELD_NUMBER = 3; private java.lang.Object comment_; /** * <code>optional string comment = 3;</code> */ public boolean hasComment() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string comment = 3;</code> */ public java.lang.String getComment() { java.lang.Object ref = comment_; 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()) { comment_ = s; } return s; } } /** * <code>optional string comment = 3;</code> */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string language = 4; public static final int LANGUAGE_FIELD_NUMBER = 4; private java.lang.Object language_; /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public boolean hasLanguage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public java.lang.String getLanguage() { java.lang.Object ref = language_; 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()) { language_ = s; } return s; } } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { key_ = ""; value_ = ""; comment_ = ""; language_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 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, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getCommentBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getLanguageBytes()); } 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, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getCommentBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getLanguageBytes()); } 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 pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.KeyValue 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(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue 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 pl.edu.icm.coansys.models.KeyValue} * * <pre> * in the future it will be replaced by import * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_KeyValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.class, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder.class); } // Construct using pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); comment_ = ""; bitField0_ = (bitField0_ & ~0x00000004); language_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_KeyValue_descriptor; } public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getDefaultInstanceForType() { return pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance(); } public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue build() { pl.edu.icm.coansys.models.StatisticsProtos.KeyValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue buildPartial() { pl.edu.icm.coansys.models.StatisticsProtos.KeyValue result = new pl.edu.icm.coansys.models.StatisticsProtos.KeyValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.comment_ = comment_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.language_ = language_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof pl.edu.icm.coansys.models.StatisticsProtos.KeyValue) { return mergeFrom((pl.edu.icm.coansys.models.StatisticsProtos.KeyValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue other) { if (other == pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } if (other.hasComment()) { bitField0_ |= 0x00000004; comment_ = other.comment_; onChanged(); } if (other.hasLanguage()) { bitField0_ |= 0x00000008; language_ = other.language_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKey()) { return false; } if (!hasValue()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { pl.edu.icm.coansys.models.StatisticsProtos.KeyValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (pl.edu.icm.coansys.models.StatisticsProtos.KeyValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string key = 1; private java.lang.Object key_ = ""; /** * <code>required string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string key = 1;</code> */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * <code>required string key = 1;</code> */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * <code>required string key = 1;</code> */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } // required string value = 2; private java.lang.Object value_ = ""; /** * <code>required string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string value = 2;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * <code>required string value = 2;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <code>required string value = 2;</code> */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // optional string comment = 3; private java.lang.Object comment_ = ""; /** * <code>optional string comment = 3;</code> */ public boolean hasComment() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string comment = 3;</code> */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); comment_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string comment = 3;</code> */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string comment = 3;</code> */ public Builder setComment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; comment_ = value; onChanged(); return this; } /** * <code>optional string comment = 3;</code> */ public Builder clearComment() { bitField0_ = (bitField0_ & ~0x00000004); comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** * <code>optional string comment = 3;</code> */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; comment_ = value; onChanged(); return this; } // optional string language = 4; private java.lang.Object language_ = ""; /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public boolean hasLanguage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); language_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; language_ = value; onChanged(); return this; } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000008); language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /** * <code>optional string language = 4;</code> * * <pre> *in ISO 639 format * </pre> */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; language_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:pl.edu.icm.coansys.models.KeyValue) } static { defaultInstance = new KeyValue(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:pl.edu.icm.coansys.models.KeyValue) } public interface InputEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string label = 1; /** * <code>required string label = 1;</code> */ boolean hasLabel(); /** * <code>required string label = 1;</code> */ java.lang.String getLabel(); /** * <code>required string label = 1;</code> */ com.google.protobuf.ByteString getLabelBytes(); // repeated .pl.edu.icm.coansys.models.KeyValue field = 2; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getFieldList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getField(int index); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ int getFieldCount(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFieldOrBuilderList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getFieldOrBuilder( int index); } /** * Protobuf type {@code pl.edu.icm.coansys.models.InputEntry} */ public static final class InputEntry extends com.google.protobuf.GeneratedMessage implements InputEntryOrBuilder { // Use InputEntry.newBuilder() to construct. private InputEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InputEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InputEntry defaultInstance; public static InputEntry getDefaultInstance() { return defaultInstance; } public InputEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InputEntry( 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: { bitField0_ |= 0x00000001; label_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { field_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(); mutable_bitField0_ |= 0x00000002; } field_.add(input.readMessage(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.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_ & 0x00000002) == 0x00000002)) { field_ = java.util.Collections.unmodifiableList(field_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_InputEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_InputEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.class, pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.Builder.class); } public static com.google.protobuf.Parser<InputEntry> PARSER = new com.google.protobuf.AbstractParser<InputEntry>() { public InputEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InputEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InputEntry> getParserForType() { return PARSER; } private int bitField0_; // required string label = 1; public static final int LABEL_FIELD_NUMBER = 1; private java.lang.Object label_; /** * <code>required string label = 1;</code> */ public boolean hasLabel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string label = 1;</code> */ public java.lang.String getLabel() { java.lang.Object ref = label_; 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()) { label_ = s; } return s; } } /** * <code>required string label = 1;</code> */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .pl.edu.icm.coansys.models.KeyValue field = 2; public static final int FIELD_FIELD_NUMBER = 2; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> field_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getFieldList() { return field_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFieldOrBuilderList() { return field_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public int getFieldCount() { return field_.size(); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getField(int index) { return field_.get(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getFieldOrBuilder( int index) { return field_.get(index); } private void initFields() { label_ = ""; field_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasLabel()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getFieldCount(); i++) { if (!getField(i).isInitialized()) { memoizedIsInitialized = 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, getLabelBytes()); } for (int i = 0; i < field_.size(); i++) { output.writeMessage(2, field_.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, getLabelBytes()); } for (int i = 0; i < field_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, field_.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 pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.InputEntry 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(pl.edu.icm.coansys.models.StatisticsProtos.InputEntry 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 pl.edu.icm.coansys.models.InputEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements pl.edu.icm.coansys.models.StatisticsProtos.InputEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_InputEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_InputEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.class, pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.Builder.class); } // Construct using pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFieldFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); label_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (fieldBuilder_ == null) { field_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { fieldBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_InputEntry_descriptor; } public pl.edu.icm.coansys.models.StatisticsProtos.InputEntry getDefaultInstanceForType() { return pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.getDefaultInstance(); } public pl.edu.icm.coansys.models.StatisticsProtos.InputEntry build() { pl.edu.icm.coansys.models.StatisticsProtos.InputEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public pl.edu.icm.coansys.models.StatisticsProtos.InputEntry buildPartial() { pl.edu.icm.coansys.models.StatisticsProtos.InputEntry result = new pl.edu.icm.coansys.models.StatisticsProtos.InputEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.label_ = label_; if (fieldBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { field_ = java.util.Collections.unmodifiableList(field_); bitField0_ = (bitField0_ & ~0x00000002); } result.field_ = field_; } else { result.field_ = fieldBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof pl.edu.icm.coansys.models.StatisticsProtos.InputEntry) { return mergeFrom((pl.edu.icm.coansys.models.StatisticsProtos.InputEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(pl.edu.icm.coansys.models.StatisticsProtos.InputEntry other) { if (other == pl.edu.icm.coansys.models.StatisticsProtos.InputEntry.getDefaultInstance()) return this; if (other.hasLabel()) { bitField0_ |= 0x00000001; label_ = other.label_; onChanged(); } if (fieldBuilder_ == null) { if (!other.field_.isEmpty()) { if (field_.isEmpty()) { field_ = other.field_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFieldIsMutable(); field_.addAll(other.field_); } onChanged(); } } else { if (!other.field_.isEmpty()) { if (fieldBuilder_.isEmpty()) { fieldBuilder_.dispose(); fieldBuilder_ = null; field_ = other.field_; bitField0_ = (bitField0_ & ~0x00000002); fieldBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFieldFieldBuilder() : null; } else { fieldBuilder_.addAllMessages(other.field_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLabel()) { return false; } for (int i = 0; i < getFieldCount(); i++) { if (!getField(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { pl.edu.icm.coansys.models.StatisticsProtos.InputEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (pl.edu.icm.coansys.models.StatisticsProtos.InputEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string label = 1; private java.lang.Object label_ = ""; /** * <code>required string label = 1;</code> */ public boolean hasLabel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string label = 1;</code> */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string label = 1;</code> */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; label_ = value; onChanged(); return this; } /** * <code>required string label = 1;</code> */ public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000001); label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>required string label = 1;</code> */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; label_ = value; onChanged(); return this; } // repeated .pl.edu.icm.coansys.models.KeyValue field = 2; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> field_ = java.util.Collections.emptyList(); private void ensureFieldIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { field_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(field_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> fieldBuilder_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getFieldList() { if (fieldBuilder_ == null) { return java.util.Collections.unmodifiableList(field_); } else { return fieldBuilder_.getMessageList(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public int getFieldCount() { if (fieldBuilder_ == null) { return field_.size(); } else { return fieldBuilder_.getCount(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getField(int index) { if (fieldBuilder_ == null) { return field_.get(index); } else { return fieldBuilder_.getMessage(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder setField( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.set(index, value); onChanged(); } else { fieldBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder setField( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.set(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder addField(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.add(value); onChanged(); } else { fieldBuilder_.addMessage(value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder addField( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.add(index, value); onChanged(); } else { fieldBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder addField( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder addField( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder addAllField( java.lang.Iterable<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> values) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); super.addAll(values, field_); onChanged(); } else { fieldBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder clearField() { if (fieldBuilder_ == null) { field_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { fieldBuilder_.clear(); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public Builder removeField(int index) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.remove(index); onChanged(); } else { fieldBuilder_.remove(index); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder getFieldBuilder( int index) { return getFieldFieldBuilder().getBuilder(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getFieldOrBuilder( int index) { if (fieldBuilder_ == null) { return field_.get(index); } else { return fieldBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFieldOrBuilderList() { if (fieldBuilder_ != null) { return fieldBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field_); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addFieldBuilder() { return getFieldFieldBuilder().addBuilder( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addFieldBuilder( int index) { return getFieldFieldBuilder().addBuilder( index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue field = 2;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder> getFieldBuilderList() { return getFieldFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFieldFieldBuilder() { if (fieldBuilder_ == null) { fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder>( field_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); field_ = null; } return fieldBuilder_; } // @@protoc_insertion_point(builder_scope:pl.edu.icm.coansys.models.InputEntry) } static { defaultInstance = new InputEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:pl.edu.icm.coansys.models.InputEntry) } public interface StatisticsOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 timestamp = 1; /** * <code>required int64 timestamp = 1;</code> */ boolean hasTimestamp(); /** * <code>required int64 timestamp = 1;</code> */ long getTimestamp(); // repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getPartitionsList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getPartitions(int index); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ int getPartitionsCount(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getPartitionsOrBuilderList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getPartitionsOrBuilder( int index); // repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getStatisticsList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getStatistics(int index); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ int getStatisticsCount(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getStatisticsOrBuilderList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getStatisticsOrBuilder( int index); } /** * Protobuf type {@code pl.edu.icm.coansys.models.Statistics} */ public static final class Statistics extends com.google.protobuf.GeneratedMessage implements StatisticsOrBuilder { // Use Statistics.newBuilder() to construct. private Statistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Statistics(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Statistics defaultInstance; public static Statistics getDefaultInstance() { return defaultInstance; } public Statistics getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Statistics( 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; timestamp_ = input.readInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { partitions_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(); mutable_bitField0_ |= 0x00000002; } partitions_.add(input.readMessage(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { statistics_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(); mutable_bitField0_ |= 0x00000004; } statistics_.add(input.readMessage(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.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_ & 0x00000002) == 0x00000002)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { statistics_ = java.util.Collections.unmodifiableList(statistics_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.Statistics.class, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder.class); } public static com.google.protobuf.Parser<Statistics> PARSER = new com.google.protobuf.AbstractParser<Statistics>() { public Statistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statistics(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Statistics> getParserForType() { return PARSER; } private int bitField0_; // required int64 timestamp = 1; public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** * <code>required int64 timestamp = 1;</code> */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int64 timestamp = 1;</code> */ public long getTimestamp() { return timestamp_; } // repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> partitions_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getPartitionsList() { return partitions_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getPartitionsOrBuilderList() { return partitions_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public int getPartitionsCount() { return partitions_.size(); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getPartitions(int index) { return partitions_.get(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getPartitionsOrBuilder( int index) { return partitions_.get(index); } // repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3; public static final int STATISTICS_FIELD_NUMBER = 3; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> statistics_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getStatisticsList() { return statistics_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getStatisticsOrBuilderList() { return statistics_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public int getStatisticsCount() { return statistics_.size(); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getStatistics(int index) { return statistics_.get(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getStatisticsOrBuilder( int index) { return statistics_.get(index); } private void initFields() { timestamp_ = 0L; partitions_ = java.util.Collections.emptyList(); statistics_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTimestamp()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getPartitionsCount(); i++) { if (!getPartitions(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getStatisticsCount(); i++) { if (!getStatistics(i).isInitialized()) { memoizedIsInitialized = 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.writeInt64(1, timestamp_); } for (int i = 0; i < partitions_.size(); i++) { output.writeMessage(2, partitions_.get(i)); } for (int i = 0; i < statistics_.size(); i++) { output.writeMessage(3, statistics_.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 .computeInt64Size(1, timestamp_); } for (int i = 0; i < partitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, partitions_.get(i)); } for (int i = 0; i < statistics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, statistics_.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 pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.Statistics 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(pl.edu.icm.coansys.models.StatisticsProtos.Statistics 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 pl.edu.icm.coansys.models.Statistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.Statistics.class, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder.class); } // Construct using pl.edu.icm.coansys.models.StatisticsProtos.Statistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPartitionsFieldBuilder(); getStatisticsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { partitionsBuilder_.clear(); } if (statisticsBuilder_ == null) { statistics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { statisticsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_Statistics_descriptor; } public pl.edu.icm.coansys.models.StatisticsProtos.Statistics getDefaultInstanceForType() { return pl.edu.icm.coansys.models.StatisticsProtos.Statistics.getDefaultInstance(); } public pl.edu.icm.coansys.models.StatisticsProtos.Statistics build() { pl.edu.icm.coansys.models.StatisticsProtos.Statistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public pl.edu.icm.coansys.models.StatisticsProtos.Statistics buildPartial() { pl.edu.icm.coansys.models.StatisticsProtos.Statistics result = new pl.edu.icm.coansys.models.StatisticsProtos.Statistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timestamp_ = timestamp_; if (partitionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000002); } result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } if (statisticsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { statistics_ = java.util.Collections.unmodifiableList(statistics_); bitField0_ = (bitField0_ & ~0x00000004); } result.statistics_ = statistics_; } else { result.statistics_ = statisticsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof pl.edu.icm.coansys.models.StatisticsProtos.Statistics) { return mergeFrom((pl.edu.icm.coansys.models.StatisticsProtos.Statistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(pl.edu.icm.coansys.models.StatisticsProtos.Statistics other) { if (other == pl.edu.icm.coansys.models.StatisticsProtos.Statistics.getDefaultInstance()) return this; if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (partitionsBuilder_ == null) { if (!other.partitions_.isEmpty()) { if (partitions_.isEmpty()) { partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); } onChanged(); } } else { if (!other.partitions_.isEmpty()) { if (partitionsBuilder_.isEmpty()) { partitionsBuilder_.dispose(); partitionsBuilder_ = null; partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000002); partitionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPartitionsFieldBuilder() : null; } else { partitionsBuilder_.addAllMessages(other.partitions_); } } } if (statisticsBuilder_ == null) { if (!other.statistics_.isEmpty()) { if (statistics_.isEmpty()) { statistics_ = other.statistics_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureStatisticsIsMutable(); statistics_.addAll(other.statistics_); } onChanged(); } } else { if (!other.statistics_.isEmpty()) { if (statisticsBuilder_.isEmpty()) { statisticsBuilder_.dispose(); statisticsBuilder_ = null; statistics_ = other.statistics_; bitField0_ = (bitField0_ & ~0x00000004); statisticsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStatisticsFieldBuilder() : null; } else { statisticsBuilder_.addAllMessages(other.statistics_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTimestamp()) { return false; } for (int i = 0; i < getPartitionsCount(); i++) { if (!getPartitions(i).isInitialized()) { return false; } } for (int i = 0; i < getStatisticsCount(); i++) { if (!getStatistics(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { pl.edu.icm.coansys.models.StatisticsProtos.Statistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (pl.edu.icm.coansys.models.StatisticsProtos.Statistics) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 timestamp = 1; private long timestamp_ ; /** * <code>required int64 timestamp = 1;</code> */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int64 timestamp = 1;</code> */ public long getTimestamp() { return timestamp_; } /** * <code>required int64 timestamp = 1;</code> */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000001; timestamp_ = value; onChanged(); return this; } /** * <code>required int64 timestamp = 1;</code> */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0L; onChanged(); return this; } // repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> partitions_ = java.util.Collections.emptyList(); private void ensurePartitionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { partitions_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(partitions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> partitionsBuilder_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getPartitionsList() { if (partitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitions_); } else { return partitionsBuilder_.getMessageList(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public int getPartitionsCount() { if (partitionsBuilder_ == null) { return partitions_.size(); } else { return partitionsBuilder_.getCount(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getPartitions(int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessage(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder setPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); } else { partitionsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder setPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.set(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder addPartitions(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); } else { partitionsBuilder_.addMessage(value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder addPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(index, value); onChanged(); } else { partitionsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder addPartitions( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder addPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder addAllPartitions( java.lang.Iterable<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> values) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); super.addAll(values, partitions_); onChanged(); } else { partitionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder clearPartitions() { if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partitionsBuilder_.clear(); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public Builder removePartitions(int index) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.remove(index); onChanged(); } else { partitionsBuilder_.remove(index); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder getPartitionsBuilder( int index) { return getPartitionsFieldBuilder().getBuilder(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getPartitionsOrBuilder( int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getPartitionsOrBuilderList() { if (partitionsBuilder_ != null) { return partitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitions_); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addPartitionsBuilder() { return getPartitionsFieldBuilder().addBuilder( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addPartitionsBuilder( int index) { return getPartitionsFieldBuilder().addBuilder( index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue partitions = 2;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder> getPartitionsBuilderList() { return getPartitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getPartitionsFieldBuilder() { if (partitionsBuilder_ == null) { partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder>( partitions_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); partitions_ = null; } return partitionsBuilder_; } // repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> statistics_ = java.util.Collections.emptyList(); private void ensureStatisticsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { statistics_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(statistics_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> statisticsBuilder_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getStatisticsList() { if (statisticsBuilder_ == null) { return java.util.Collections.unmodifiableList(statistics_); } else { return statisticsBuilder_.getMessageList(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public int getStatisticsCount() { if (statisticsBuilder_ == null) { return statistics_.size(); } else { return statisticsBuilder_.getCount(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getStatistics(int index) { if (statisticsBuilder_ == null) { return statistics_.get(index); } else { return statisticsBuilder_.getMessage(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder setStatistics( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (statisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatisticsIsMutable(); statistics_.set(index, value); onChanged(); } else { statisticsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder setStatistics( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (statisticsBuilder_ == null) { ensureStatisticsIsMutable(); statistics_.set(index, builderForValue.build()); onChanged(); } else { statisticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder addStatistics(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (statisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatisticsIsMutable(); statistics_.add(value); onChanged(); } else { statisticsBuilder_.addMessage(value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder addStatistics( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (statisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatisticsIsMutable(); statistics_.add(index, value); onChanged(); } else { statisticsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder addStatistics( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (statisticsBuilder_ == null) { ensureStatisticsIsMutable(); statistics_.add(builderForValue.build()); onChanged(); } else { statisticsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder addStatistics( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (statisticsBuilder_ == null) { ensureStatisticsIsMutable(); statistics_.add(index, builderForValue.build()); onChanged(); } else { statisticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder addAllStatistics( java.lang.Iterable<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> values) { if (statisticsBuilder_ == null) { ensureStatisticsIsMutable(); super.addAll(values, statistics_); onChanged(); } else { statisticsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder clearStatistics() { if (statisticsBuilder_ == null) { statistics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { statisticsBuilder_.clear(); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public Builder removeStatistics(int index) { if (statisticsBuilder_ == null) { ensureStatisticsIsMutable(); statistics_.remove(index); onChanged(); } else { statisticsBuilder_.remove(index); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder getStatisticsBuilder( int index) { return getStatisticsFieldBuilder().getBuilder(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getStatisticsOrBuilder( int index) { if (statisticsBuilder_ == null) { return statistics_.get(index); } else { return statisticsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getStatisticsOrBuilderList() { if (statisticsBuilder_ != null) { return statisticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(statistics_); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addStatisticsBuilder() { return getStatisticsFieldBuilder().addBuilder( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addStatisticsBuilder( int index) { return getStatisticsFieldBuilder().addBuilder( index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue statistics = 3;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder> getStatisticsBuilderList() { return getStatisticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getStatisticsFieldBuilder() { if (statisticsBuilder_ == null) { statisticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder>( statistics_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); statistics_ = null; } return statisticsBuilder_; } // @@protoc_insertion_point(builder_scope:pl.edu.icm.coansys.models.Statistics) } static { defaultInstance = new Statistics(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:pl.edu.icm.coansys.models.Statistics) } public interface SelectedStatisticsOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string selected_stat = 1; /** * <code>required string selected_stat = 1;</code> */ boolean hasSelectedStat(); /** * <code>required string selected_stat = 1;</code> */ java.lang.String getSelectedStat(); /** * <code>required string selected_stat = 1;</code> */ com.google.protobuf.ByteString getSelectedStatBytes(); // required string sort_order = 2; /** * <code>required string sort_order = 2;</code> */ boolean hasSortOrder(); /** * <code>required string sort_order = 2;</code> */ java.lang.String getSortOrder(); /** * <code>required string sort_order = 2;</code> */ com.google.protobuf.ByteString getSortOrderBytes(); // required int32 limit = 3; /** * <code>required int32 limit = 3;</code> */ boolean hasLimit(); /** * <code>required int32 limit = 3;</code> */ int getLimit(); // repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getFixedPartitionsList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getFixedPartitions(int index); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ int getFixedPartitionsCount(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFixedPartitionsOrBuilderList(); /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getFixedPartitionsOrBuilder( int index); // repeated .pl.edu.icm.coansys.models.Statistics stats = 5; /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.Statistics> getStatsList(); /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.Statistics getStats(int index); /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ int getStatsCount(); /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder> getStatsOrBuilderList(); /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder getStatsOrBuilder( int index); } /** * Protobuf type {@code pl.edu.icm.coansys.models.SelectedStatistics} */ public static final class SelectedStatistics extends com.google.protobuf.GeneratedMessage implements SelectedStatisticsOrBuilder { // Use SelectedStatistics.newBuilder() to construct. private SelectedStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SelectedStatistics(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SelectedStatistics defaultInstance; public static SelectedStatistics getDefaultInstance() { return defaultInstance; } public SelectedStatistics getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SelectedStatistics( 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: { bitField0_ |= 0x00000001; selectedStat_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; sortOrder_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; limit_ = input.readInt32(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { fixedPartitions_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(); mutable_bitField0_ |= 0x00000008; } fixedPartitions_.add(input.readMessage(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { stats_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.Statistics>(); mutable_bitField0_ |= 0x00000010; } stats_.add(input.readMessage(pl.edu.icm.coansys.models.StatisticsProtos.Statistics.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_ & 0x00000008) == 0x00000008)) { fixedPartitions_ = java.util.Collections.unmodifiableList(fixedPartitions_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { stats_ = java.util.Collections.unmodifiableList(stats_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_SelectedStatistics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_SelectedStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.class, pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.Builder.class); } public static com.google.protobuf.Parser<SelectedStatistics> PARSER = new com.google.protobuf.AbstractParser<SelectedStatistics>() { public SelectedStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SelectedStatistics(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<SelectedStatistics> getParserForType() { return PARSER; } private int bitField0_; // required string selected_stat = 1; public static final int SELECTED_STAT_FIELD_NUMBER = 1; private java.lang.Object selectedStat_; /** * <code>required string selected_stat = 1;</code> */ public boolean hasSelectedStat() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string selected_stat = 1;</code> */ public java.lang.String getSelectedStat() { java.lang.Object ref = selectedStat_; 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()) { selectedStat_ = s; } return s; } } /** * <code>required string selected_stat = 1;</code> */ public com.google.protobuf.ByteString getSelectedStatBytes() { java.lang.Object ref = selectedStat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selectedStat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string sort_order = 2; public static final int SORT_ORDER_FIELD_NUMBER = 2; private java.lang.Object sortOrder_; /** * <code>required string sort_order = 2;</code> */ public boolean hasSortOrder() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string sort_order = 2;</code> */ public java.lang.String getSortOrder() { java.lang.Object ref = sortOrder_; 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()) { sortOrder_ = s; } return s; } } /** * <code>required string sort_order = 2;</code> */ public com.google.protobuf.ByteString getSortOrderBytes() { java.lang.Object ref = sortOrder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sortOrder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 limit = 3; public static final int LIMIT_FIELD_NUMBER = 3; private int limit_; /** * <code>required int32 limit = 3;</code> */ public boolean hasLimit() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required int32 limit = 3;</code> */ public int getLimit() { return limit_; } // repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4; public static final int FIXED_PARTITIONS_FIELD_NUMBER = 4; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> fixedPartitions_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getFixedPartitionsList() { return fixedPartitions_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFixedPartitionsOrBuilderList() { return fixedPartitions_; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public int getFixedPartitionsCount() { return fixedPartitions_.size(); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getFixedPartitions(int index) { return fixedPartitions_.get(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getFixedPartitionsOrBuilder( int index) { return fixedPartitions_.get(index); } // repeated .pl.edu.icm.coansys.models.Statistics stats = 5; public static final int STATS_FIELD_NUMBER = 5; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.Statistics> stats_; /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.Statistics> getStatsList() { return stats_; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder> getStatsOrBuilderList() { return stats_; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public int getStatsCount() { return stats_.size(); } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.Statistics getStats(int index) { return stats_.get(index); } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder getStatsOrBuilder( int index) { return stats_.get(index); } private void initFields() { selectedStat_ = ""; sortOrder_ = ""; limit_ = 0; fixedPartitions_ = java.util.Collections.emptyList(); stats_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasSelectedStat()) { memoizedIsInitialized = 0; return false; } if (!hasSortOrder()) { memoizedIsInitialized = 0; return false; } if (!hasLimit()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getFixedPartitionsCount(); i++) { if (!getFixedPartitions(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getStatsCount(); i++) { if (!getStats(i).isInitialized()) { memoizedIsInitialized = 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, getSelectedStatBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSortOrderBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, limit_); } for (int i = 0; i < fixedPartitions_.size(); i++) { output.writeMessage(4, fixedPartitions_.get(i)); } for (int i = 0; i < stats_.size(); i++) { output.writeMessage(5, stats_.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, getSelectedStatBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSortOrderBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, limit_); } for (int i = 0; i < fixedPartitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, fixedPartitions_.get(i)); } for (int i = 0; i < stats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, stats_.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 pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics 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(pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics 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 pl.edu.icm.coansys.models.SelectedStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_SelectedStatistics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_SelectedStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.class, pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.Builder.class); } // Construct using pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFixedPartitionsFieldBuilder(); getStatsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); selectedStat_ = ""; bitField0_ = (bitField0_ & ~0x00000001); sortOrder_ = ""; bitField0_ = (bitField0_ & ~0x00000002); limit_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (fixedPartitionsBuilder_ == null) { fixedPartitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { fixedPartitionsBuilder_.clear(); } if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { statsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return pl.edu.icm.coansys.models.StatisticsProtos.internal_static_pl_edu_icm_coansys_models_SelectedStatistics_descriptor; } public pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics getDefaultInstanceForType() { return pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.getDefaultInstance(); } public pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics build() { pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics buildPartial() { pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics result = new pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.selectedStat_ = selectedStat_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.sortOrder_ = sortOrder_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.limit_ = limit_; if (fixedPartitionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { fixedPartitions_ = java.util.Collections.unmodifiableList(fixedPartitions_); bitField0_ = (bitField0_ & ~0x00000008); } result.fixedPartitions_ = fixedPartitions_; } else { result.fixedPartitions_ = fixedPartitionsBuilder_.build(); } if (statsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { stats_ = java.util.Collections.unmodifiableList(stats_); bitField0_ = (bitField0_ & ~0x00000010); } result.stats_ = stats_; } else { result.stats_ = statsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics) { return mergeFrom((pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics other) { if (other == pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics.getDefaultInstance()) return this; if (other.hasSelectedStat()) { bitField0_ |= 0x00000001; selectedStat_ = other.selectedStat_; onChanged(); } if (other.hasSortOrder()) { bitField0_ |= 0x00000002; sortOrder_ = other.sortOrder_; onChanged(); } if (other.hasLimit()) { setLimit(other.getLimit()); } if (fixedPartitionsBuilder_ == null) { if (!other.fixedPartitions_.isEmpty()) { if (fixedPartitions_.isEmpty()) { fixedPartitions_ = other.fixedPartitions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFixedPartitionsIsMutable(); fixedPartitions_.addAll(other.fixedPartitions_); } onChanged(); } } else { if (!other.fixedPartitions_.isEmpty()) { if (fixedPartitionsBuilder_.isEmpty()) { fixedPartitionsBuilder_.dispose(); fixedPartitionsBuilder_ = null; fixedPartitions_ = other.fixedPartitions_; bitField0_ = (bitField0_ & ~0x00000008); fixedPartitionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFixedPartitionsFieldBuilder() : null; } else { fixedPartitionsBuilder_.addAllMessages(other.fixedPartitions_); } } } if (statsBuilder_ == null) { if (!other.stats_.isEmpty()) { if (stats_.isEmpty()) { stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureStatsIsMutable(); stats_.addAll(other.stats_); } onChanged(); } } else { if (!other.stats_.isEmpty()) { if (statsBuilder_.isEmpty()) { statsBuilder_.dispose(); statsBuilder_ = null; stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000010); statsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStatsFieldBuilder() : null; } else { statsBuilder_.addAllMessages(other.stats_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSelectedStat()) { return false; } if (!hasSortOrder()) { return false; } if (!hasLimit()) { return false; } for (int i = 0; i < getFixedPartitionsCount(); i++) { if (!getFixedPartitions(i).isInitialized()) { return false; } } for (int i = 0; i < getStatsCount(); i++) { if (!getStats(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (pl.edu.icm.coansys.models.StatisticsProtos.SelectedStatistics) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string selected_stat = 1; private java.lang.Object selectedStat_ = ""; /** * <code>required string selected_stat = 1;</code> */ public boolean hasSelectedStat() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string selected_stat = 1;</code> */ public java.lang.String getSelectedStat() { java.lang.Object ref = selectedStat_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); selectedStat_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string selected_stat = 1;</code> */ public com.google.protobuf.ByteString getSelectedStatBytes() { java.lang.Object ref = selectedStat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selectedStat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string selected_stat = 1;</code> */ public Builder setSelectedStat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; selectedStat_ = value; onChanged(); return this; } /** * <code>required string selected_stat = 1;</code> */ public Builder clearSelectedStat() { bitField0_ = (bitField0_ & ~0x00000001); selectedStat_ = getDefaultInstance().getSelectedStat(); onChanged(); return this; } /** * <code>required string selected_stat = 1;</code> */ public Builder setSelectedStatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; selectedStat_ = value; onChanged(); return this; } // required string sort_order = 2; private java.lang.Object sortOrder_ = ""; /** * <code>required string sort_order = 2;</code> */ public boolean hasSortOrder() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string sort_order = 2;</code> */ public java.lang.String getSortOrder() { java.lang.Object ref = sortOrder_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); sortOrder_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string sort_order = 2;</code> */ public com.google.protobuf.ByteString getSortOrderBytes() { java.lang.Object ref = sortOrder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sortOrder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string sort_order = 2;</code> */ public Builder setSortOrder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; sortOrder_ = value; onChanged(); return this; } /** * <code>required string sort_order = 2;</code> */ public Builder clearSortOrder() { bitField0_ = (bitField0_ & ~0x00000002); sortOrder_ = getDefaultInstance().getSortOrder(); onChanged(); return this; } /** * <code>required string sort_order = 2;</code> */ public Builder setSortOrderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; sortOrder_ = value; onChanged(); return this; } // required int32 limit = 3; private int limit_ ; /** * <code>required int32 limit = 3;</code> */ public boolean hasLimit() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required int32 limit = 3;</code> */ public int getLimit() { return limit_; } /** * <code>required int32 limit = 3;</code> */ public Builder setLimit(int value) { bitField0_ |= 0x00000004; limit_ = value; onChanged(); return this; } /** * <code>required int32 limit = 3;</code> */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000004); limit_ = 0; onChanged(); return this; } // repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> fixedPartitions_ = java.util.Collections.emptyList(); private void ensureFixedPartitionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { fixedPartitions_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue>(fixedPartitions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> fixedPartitionsBuilder_; /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> getFixedPartitionsList() { if (fixedPartitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(fixedPartitions_); } else { return fixedPartitionsBuilder_.getMessageList(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public int getFixedPartitionsCount() { if (fixedPartitionsBuilder_ == null) { return fixedPartitions_.size(); } else { return fixedPartitionsBuilder_.getCount(); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue getFixedPartitions(int index) { if (fixedPartitionsBuilder_ == null) { return fixedPartitions_.get(index); } else { return fixedPartitionsBuilder_.getMessage(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder setFixedPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (fixedPartitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixedPartitionsIsMutable(); fixedPartitions_.set(index, value); onChanged(); } else { fixedPartitionsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder setFixedPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (fixedPartitionsBuilder_ == null) { ensureFixedPartitionsIsMutable(); fixedPartitions_.set(index, builderForValue.build()); onChanged(); } else { fixedPartitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder addFixedPartitions(pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (fixedPartitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixedPartitionsIsMutable(); fixedPartitions_.add(value); onChanged(); } else { fixedPartitionsBuilder_.addMessage(value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder addFixedPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue value) { if (fixedPartitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixedPartitionsIsMutable(); fixedPartitions_.add(index, value); onChanged(); } else { fixedPartitionsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder addFixedPartitions( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (fixedPartitionsBuilder_ == null) { ensureFixedPartitionsIsMutable(); fixedPartitions_.add(builderForValue.build()); onChanged(); } else { fixedPartitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder addFixedPartitions( int index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder builderForValue) { if (fixedPartitionsBuilder_ == null) { ensureFixedPartitionsIsMutable(); fixedPartitions_.add(index, builderForValue.build()); onChanged(); } else { fixedPartitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder addAllFixedPartitions( java.lang.Iterable<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValue> values) { if (fixedPartitionsBuilder_ == null) { ensureFixedPartitionsIsMutable(); super.addAll(values, fixedPartitions_); onChanged(); } else { fixedPartitionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder clearFixedPartitions() { if (fixedPartitionsBuilder_ == null) { fixedPartitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { fixedPartitionsBuilder_.clear(); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public Builder removeFixedPartitions(int index) { if (fixedPartitionsBuilder_ == null) { ensureFixedPartitionsIsMutable(); fixedPartitions_.remove(index); onChanged(); } else { fixedPartitionsBuilder_.remove(index); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder getFixedPartitionsBuilder( int index) { return getFixedPartitionsFieldBuilder().getBuilder(index); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder getFixedPartitionsOrBuilder( int index) { if (fixedPartitionsBuilder_ == null) { return fixedPartitions_.get(index); } else { return fixedPartitionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFixedPartitionsOrBuilderList() { if (fixedPartitionsBuilder_ != null) { return fixedPartitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fixedPartitions_); } } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addFixedPartitionsBuilder() { return getFixedPartitionsFieldBuilder().addBuilder( pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder addFixedPartitionsBuilder( int index) { return getFixedPartitionsFieldBuilder().addBuilder( index, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.KeyValue fixed_partitions = 4;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder> getFixedPartitionsBuilderList() { return getFixedPartitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder> getFixedPartitionsFieldBuilder() { if (fixedPartitionsBuilder_ == null) { fixedPartitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.KeyValue, pl.edu.icm.coansys.models.StatisticsProtos.KeyValue.Builder, pl.edu.icm.coansys.models.StatisticsProtos.KeyValueOrBuilder>( fixedPartitions_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); fixedPartitions_ = null; } return fixedPartitionsBuilder_; } // repeated .pl.edu.icm.coansys.models.Statistics stats = 5; private java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.Statistics> stats_ = java.util.Collections.emptyList(); private void ensureStatsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { stats_ = new java.util.ArrayList<pl.edu.icm.coansys.models.StatisticsProtos.Statistics>(stats_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.Statistics, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder, pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder> statsBuilder_; /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.Statistics> getStatsList() { if (statsBuilder_ == null) { return java.util.Collections.unmodifiableList(stats_); } else { return statsBuilder_.getMessageList(); } } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public int getStatsCount() { if (statsBuilder_ == null) { return stats_.size(); } else { return statsBuilder_.getCount(); } } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.Statistics getStats(int index) { if (statsBuilder_ == null) { return stats_.get(index); } else { return statsBuilder_.getMessage(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder setStats( int index, pl.edu.icm.coansys.models.StatisticsProtos.Statistics value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.set(index, value); onChanged(); } else { statsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder setStats( int index, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.set(index, builderForValue.build()); onChanged(); } else { statsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder addStats(pl.edu.icm.coansys.models.StatisticsProtos.Statistics value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.add(value); onChanged(); } else { statsBuilder_.addMessage(value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder addStats( int index, pl.edu.icm.coansys.models.StatisticsProtos.Statistics value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.add(index, value); onChanged(); } else { statsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder addStats( pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(builderForValue.build()); onChanged(); } else { statsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder addStats( int index, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(index, builderForValue.build()); onChanged(); } else { statsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder addAllStats( java.lang.Iterable<? extends pl.edu.icm.coansys.models.StatisticsProtos.Statistics> values) { if (statsBuilder_ == null) { ensureStatsIsMutable(); super.addAll(values, stats_); onChanged(); } else { statsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder clearStats() { if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { statsBuilder_.clear(); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public Builder removeStats(int index) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.remove(index); onChanged(); } else { statsBuilder_.remove(index); } return this; } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder getStatsBuilder( int index) { return getStatsFieldBuilder().getBuilder(index); } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder getStatsOrBuilder( int index) { if (statsBuilder_ == null) { return stats_.get(index); } else { return statsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public java.util.List<? extends pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder> getStatsOrBuilderList() { if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(stats_); } } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder addStatsBuilder() { return getStatsFieldBuilder().addBuilder( pl.edu.icm.coansys.models.StatisticsProtos.Statistics.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder addStatsBuilder( int index) { return getStatsFieldBuilder().addBuilder( index, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.getDefaultInstance()); } /** * <code>repeated .pl.edu.icm.coansys.models.Statistics stats = 5;</code> */ public java.util.List<pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder> getStatsBuilderList() { return getStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.Statistics, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder, pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< pl.edu.icm.coansys.models.StatisticsProtos.Statistics, pl.edu.icm.coansys.models.StatisticsProtos.Statistics.Builder, pl.edu.icm.coansys.models.StatisticsProtos.StatisticsOrBuilder>( stats_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; } // @@protoc_insertion_point(builder_scope:pl.edu.icm.coansys.models.SelectedStatistics) } static { defaultInstance = new SelectedStatistics(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:pl.edu.icm.coansys.models.SelectedStatistics) } private static com.google.protobuf.Descriptors.Descriptor internal_static_pl_edu_icm_coansys_models_KeyValue_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_pl_edu_icm_coansys_models_KeyValue_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_pl_edu_icm_coansys_models_InputEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_pl_edu_icm_coansys_models_InputEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_pl_edu_icm_coansys_models_Statistics_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_pl_edu_icm_coansys_models_Statistics_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_pl_edu_icm_coansys_models_SelectedStatistics_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_pl_edu_icm_coansys_models_SelectedStatistics_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\031statisticsgenerator.proto\022\031pl.edu.icm." + "coansys.models\"I\n\010KeyValue\022\013\n\003key\030\001 \002(\t\022" + "\r\n\005value\030\002 \002(\t\022\017\n\007comment\030\003 \001(\t\022\020\n\010langu" + "age\030\004 \001(\t\"O\n\nInputEntry\022\r\n\005label\030\001 \002(\t\0222" + "\n\005field\030\002 \003(\0132#.pl.edu.icm.coansys.model" + "s.KeyValue\"\221\001\n\nStatistics\022\021\n\ttimestamp\030\001" + " \002(\003\0227\n\npartitions\030\002 \003(\0132#.pl.edu.icm.co" + "ansys.models.KeyValue\0227\n\nstatistics\030\003 \003(" + "\0132#.pl.edu.icm.coansys.models.KeyValue\"\303" + "\001\n\022SelectedStatistics\022\025\n\rselected_stat\030\001", " \002(\t\022\022\n\nsort_order\030\002 \002(\t\022\r\n\005limit\030\003 \002(\005\022" + "=\n\020fixed_partitions\030\004 \003(\0132#.pl.edu.icm.c" + "oansys.models.KeyValue\0224\n\005stats\030\005 \003(\0132%." + "pl.edu.icm.coansys.models.StatisticsB-\n\031" + "pl.edu.icm.coansys.modelsB\020StatisticsPro" + "tos" }; 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; internal_static_pl_edu_icm_coansys_models_KeyValue_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_pl_edu_icm_coansys_models_KeyValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_pl_edu_icm_coansys_models_KeyValue_descriptor, new java.lang.String[] { "Key", "Value", "Comment", "Language", }); internal_static_pl_edu_icm_coansys_models_InputEntry_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_pl_edu_icm_coansys_models_InputEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_pl_edu_icm_coansys_models_InputEntry_descriptor, new java.lang.String[] { "Label", "Field", }); internal_static_pl_edu_icm_coansys_models_Statistics_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_pl_edu_icm_coansys_models_Statistics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_pl_edu_icm_coansys_models_Statistics_descriptor, new java.lang.String[] { "Timestamp", "Partitions", "Statistics", }); internal_static_pl_edu_icm_coansys_models_SelectedStatistics_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_pl_edu_icm_coansys_models_SelectedStatistics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_pl_edu_icm_coansys_models_SelectedStatistics_descriptor, new java.lang.String[] { "SelectedStat", "SortOrder", "Limit", "FixedPartitions", "Stats", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }