// Generated by the protocol buffer compiler. DO NOT EDIT! // source: sensei-protos.proto package com.sensei.search.req.protobuf; public final class SenseiProtos { private SenseiProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public enum BooleanOperator implements com.google.protobuf.ProtocolMessageEnum { OR(0, 1), AND(1, 2), ; public static final int OR_VALUE = 1; public static final int AND_VALUE = 2; public final int getNumber() { return value; } public static BooleanOperator valueOf(int value) { switch (value) { case 1: return OR; case 2: return AND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<BooleanOperator> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<BooleanOperator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<BooleanOperator>() { public BooleanOperator findValueByNumber(int number) { return BooleanOperator.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.getDescriptor().getEnumTypes().get(0); } private static final BooleanOperator[] VALUES = { OR, AND, }; public static BooleanOperator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private BooleanOperator(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.sensei.search.req.protobuf.BooleanOperator) } public enum SortOrder implements com.google.protobuf.ProtocolMessageEnum { ASCENDING(0, 1), DESCENDING(1, 2), CUSTOM(2, 3), ; public static final int ASCENDING_VALUE = 1; public static final int DESCENDING_VALUE = 2; public static final int CUSTOM_VALUE = 3; public final int getNumber() { return value; } public static SortOrder valueOf(int value) { switch (value) { case 1: return ASCENDING; case 2: return DESCENDING; case 3: return CUSTOM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<SortOrder> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<SortOrder> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<SortOrder>() { public SortOrder findValueByNumber(int number) { return SortOrder.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.getDescriptor().getEnumTypes().get(1); } private static final SortOrder[] VALUES = { ASCENDING, DESCENDING, CUSTOM, }; public static SortOrder valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private SortOrder(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.sensei.search.req.protobuf.SortOrder) } public enum FacetComparator implements com.google.protobuf.ProtocolMessageEnum { HIT_COUNT(0, 1), VALUE(1, 2), ; public static final int HIT_COUNT_VALUE = 1; public static final int VALUE_VALUE = 2; public final int getNumber() { return value; } public static FacetComparator valueOf(int value) { switch (value) { case 1: return HIT_COUNT; case 2: return VALUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<FacetComparator> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<FacetComparator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<FacetComparator>() { public FacetComparator findValueByNumber(int number) { return FacetComparator.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.getDescriptor().getEnumTypes().get(2); } private static final FacetComparator[] VALUES = { HIT_COUNT, VALUE, }; public static FacetComparator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private FacetComparator(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.sensei.search.req.protobuf.FacetComparator) } public enum SenseiMapReduceFunction implements com.google.protobuf.ProtocolMessageEnum { AVG(0, 1), COUNT_GROUP_BY(1, 2), DISTINCT_COUNT(2, 3), DISTINCT_UID(3, 4), FACET_COUNTS(4, 5), HASH_SET_DISTINCT_COUNT(5, 6), MAX(6, 7), MIN(7, 8), SUM(8, 9), UNKNOWN(9, 100), ; public static final int AVG_VALUE = 1; public static final int COUNT_GROUP_BY_VALUE = 2; public static final int DISTINCT_COUNT_VALUE = 3; public static final int DISTINCT_UID_VALUE = 4; public static final int FACET_COUNTS_VALUE = 5; public static final int HASH_SET_DISTINCT_COUNT_VALUE = 6; public static final int MAX_VALUE = 7; public static final int MIN_VALUE = 8; public static final int SUM_VALUE = 9; public static final int UNKNOWN_VALUE = 100; public final int getNumber() { return value; } public static SenseiMapReduceFunction valueOf(int value) { switch (value) { case 1: return AVG; case 2: return COUNT_GROUP_BY; case 3: return DISTINCT_COUNT; case 4: return DISTINCT_UID; case 5: return FACET_COUNTS; case 6: return HASH_SET_DISTINCT_COUNT; case 7: return MAX; case 8: return MIN; case 9: return SUM; case 100: return UNKNOWN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<SenseiMapReduceFunction> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<SenseiMapReduceFunction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<SenseiMapReduceFunction>() { public SenseiMapReduceFunction findValueByNumber(int number) { return SenseiMapReduceFunction.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.getDescriptor().getEnumTypes().get(3); } private static final SenseiMapReduceFunction[] VALUES = { AVG, COUNT_GROUP_BY, DISTINCT_COUNT, DISTINCT_UID, FACET_COUNTS, HASH_SET_DISTINCT_COUNT, MAX, MIN, SUM, UNKNOWN, }; public static SenseiMapReduceFunction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private SenseiMapReduceFunction(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.sensei.search.req.protobuf.SenseiMapReduceFunction) } public enum ErrorType implements com.google.protobuf.ProtocolMessageEnum { JsonParsingError(0, 100), JsonCompilationError(1, 101), BQLParsingError(2, 150), BoboExecutionError(3, 200), ExecutionTimeout(4, 250), BrokerGatherError(5, 300), PartitionCallError(6, 350), BrokerTimeout(7, 400), InternalError(8, 450), MergePartitionError(9, 500), FederatedBrokerUnavailable(10, 550), UnknownError(11, 1000), ; public static final int JsonParsingError_VALUE = 100; public static final int JsonCompilationError_VALUE = 101; public static final int BQLParsingError_VALUE = 150; public static final int BoboExecutionError_VALUE = 200; public static final int ExecutionTimeout_VALUE = 250; public static final int BrokerGatherError_VALUE = 300; public static final int PartitionCallError_VALUE = 350; public static final int BrokerTimeout_VALUE = 400; public static final int InternalError_VALUE = 450; public static final int MergePartitionError_VALUE = 500; public static final int FederatedBrokerUnavailable_VALUE = 550; public static final int UnknownError_VALUE = 1000; public final int getNumber() { return value; } public static ErrorType valueOf(int value) { switch (value) { case 100: return JsonParsingError; case 101: return JsonCompilationError; case 150: return BQLParsingError; case 200: return BoboExecutionError; case 250: return ExecutionTimeout; case 300: return BrokerGatherError; case 350: return PartitionCallError; case 400: return BrokerTimeout; case 450: return InternalError; case 500: return MergePartitionError; case 550: return FederatedBrokerUnavailable; case 1000: return UnknownError; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ErrorType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ErrorType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ErrorType>() { public ErrorType findValueByNumber(int number) { return ErrorType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.getDescriptor().getEnumTypes().get(4); } private static final ErrorType[] VALUES = { JsonParsingError, JsonCompilationError, BQLParsingError, BoboExecutionError, ExecutionTimeout, BrokerGatherError, PartitionCallError, BrokerTimeout, InternalError, MergePartitionError, FederatedBrokerUnavailable, UnknownError, }; public static ErrorType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private ErrorType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.sensei.search.req.protobuf.ErrorType) } public enum JavaPrimitives implements com.google.protobuf.ProtocolMessageEnum { BYTE(0, 1), CHAR(1, 2), INT(2, 3), LONG(3, 4), FLOAT(4, 5), DOUBLE(5, 6), BOOLEAN(6, 7), SHORT(7, 8), STRING(8, 9), OBJECT(9, 10), ; public static final int BYTE_VALUE = 1; public static final int CHAR_VALUE = 2; public static final int INT_VALUE = 3; public static final int LONG_VALUE = 4; public static final int FLOAT_VALUE = 5; public static final int DOUBLE_VALUE = 6; public static final int BOOLEAN_VALUE = 7; public static final int SHORT_VALUE = 8; public static final int STRING_VALUE = 9; public static final int OBJECT_VALUE = 10; public final int getNumber() { return value; } public static JavaPrimitives valueOf(int value) { switch (value) { case 1: return BYTE; case 2: return CHAR; case 3: return INT; case 4: return LONG; case 5: return FLOAT; case 6: return DOUBLE; case 7: return BOOLEAN; case 8: return SHORT; case 9: return STRING; case 10: return OBJECT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<JavaPrimitives> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<JavaPrimitives> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<JavaPrimitives>() { public JavaPrimitives findValueByNumber(int number) { return JavaPrimitives.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.getDescriptor().getEnumTypes().get(5); } private static final JavaPrimitives[] VALUES = { BYTE, CHAR, INT, LONG, FLOAT, DOUBLE, BOOLEAN, SHORT, STRING, OBJECT, }; public static JavaPrimitives valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private JavaPrimitives(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.sensei.search.req.protobuf.JavaPrimitives) } public interface StringPropertiesOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string key = 1; java.util.List<String> getKeyList(); int getKeyCount(); String getKey(int index); // repeated string value = 2; java.util.List<String> getValueList(); int getValueCount(); String getValue(int index); } public static final class StringProperties extends com.google.protobuf.GeneratedMessage implements StringPropertiesOrBuilder { // Use StringProperties.newBuilder() to construct. private StringProperties(Builder builder) { super(builder); } private StringProperties(boolean noInit) {} private static final StringProperties defaultInstance; public static StringProperties getDefaultInstance() { return defaultInstance; } public StringProperties getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringProperties_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringProperties_fieldAccessorTable; } // repeated string key = 1; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; public java.util.List<String> getKeyList() { return key_; } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } // repeated string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList value_; public java.util.List<String> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public String getValue(int index) { return value_.get(index); } private void initFields() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < value_.size(); i++) { output.writeBytes(2, value_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(value_.getByteString(i)); } size += dataSize; size += 1 * getValueList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.StringProperties 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringProperties_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringProperties_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.StringProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties build() { com.sensei.search.req.protobuf.SenseiProtos.StringProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.StringProperties buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.StringProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.StringProperties result = new com.sensei.search.req.protobuf.SenseiProtos.StringProperties(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList( key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.UnmodifiableLazyStringList( value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.StringProperties) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.StringProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.StringProperties other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureKeyIsMutable(); key_.add(input.readBytes()); break; } case 18: { ensureValueIsMutable(); value_.add(input.readBytes()); break; } } } } private int bitField0_; // repeated string key = 1; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } public java.util.List<String> getKeyList() { return java.util.Collections.unmodifiableList(key_); } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } public Builder setKey( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } public Builder addKey(String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } public Builder addAllKey( java.lang.Iterable<String> values) { ensureKeyIsMutable(); super.addAll(values, key_); onChanged(); return this; } public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addKey(com.google.protobuf.ByteString value) { ensureKeyIsMutable(); key_.add(value); onChanged(); } // repeated string value = 2; private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000002; } } public java.util.List<String> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public String getValue(int index) { return value_.get(index); } public Builder setValue( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<String> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } void addValue(com.google.protobuf.ByteString value) { ensureValueIsMutable(); value_.add(value); onChanged(); } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.StringProperties) } static { defaultInstance = new StringProperties(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.StringProperties) } public interface BrowseSelectionOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .com.sensei.search.req.protobuf.BooleanOperator operator = 1; boolean hasOperator(); com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator getOperator(); // optional string field_name = 2; boolean hasFieldName(); String getFieldName(); // repeated string value = 3; java.util.List<String> getValueList(); int getValueCount(); String getValue(int index); // repeated string not_value = 4; java.util.List<String> getNotValueList(); int getNotValueCount(); String getNotValue(int index); // optional .com.sensei.search.req.protobuf.StringProperties properties = 5; boolean hasProperties(); com.sensei.search.req.protobuf.SenseiProtos.StringProperties getProperties(); com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder getPropertiesOrBuilder(); } public static final class BrowseSelection extends com.google.protobuf.GeneratedMessage implements BrowseSelectionOrBuilder { // Use BrowseSelection.newBuilder() to construct. private BrowseSelection(Builder builder) { super(builder); } private BrowseSelection(boolean noInit) {} private static final BrowseSelection defaultInstance; public static BrowseSelection getDefaultInstance() { return defaultInstance; } public BrowseSelection getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseSelection_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseSelection_fieldAccessorTable; } private int bitField0_; // optional .com.sensei.search.req.protobuf.BooleanOperator operator = 1; public static final int OPERATOR_FIELD_NUMBER = 1; private com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator operator_; public boolean hasOperator() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator getOperator() { return operator_; } // optional string field_name = 2; public static final int FIELD_NAME_FIELD_NUMBER = 2; private Object fieldName_; public boolean hasFieldName() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getFieldName() { Object ref = fieldName_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { fieldName_ = s; } return s; } } private com.google.protobuf.ByteString getFieldNameBytes() { Object ref = fieldName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); fieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string value = 3; public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList value_; public java.util.List<String> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public String getValue(int index) { return value_.get(index); } // repeated string not_value = 4; public static final int NOT_VALUE_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList notValue_; public java.util.List<String> getNotValueList() { return notValue_; } public int getNotValueCount() { return notValue_.size(); } public String getNotValue(int index) { return notValue_.get(index); } // optional .com.sensei.search.req.protobuf.StringProperties properties = 5; public static final int PROPERTIES_FIELD_NUMBER = 5; private com.sensei.search.req.protobuf.SenseiProtos.StringProperties properties_; public boolean hasProperties() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties getProperties() { return properties_; } public com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder getPropertiesOrBuilder() { return properties_; } private void initFields() { operator_ = com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator.OR; fieldName_ = ""; value_ = com.google.protobuf.LazyStringArrayList.EMPTY; notValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, operator_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFieldNameBytes()); } for (int i = 0; i < value_.size(); i++) { output.writeBytes(3, value_.getByteString(i)); } for (int i = 0; i < notValue_.size(); i++) { output.writeBytes(4, notValue_.getByteString(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(5, properties_); } 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 .computeEnumSize(1, operator_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFieldNameBytes()); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(value_.getByteString(i)); } size += dataSize; size += 1 * getValueList().size(); } { int dataSize = 0; for (int i = 0; i < notValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(notValue_.getByteString(i)); } size += dataSize; size += 1 * getNotValueList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, properties_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseSelection_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseSelection_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); operator_ = com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator.OR; bitField0_ = (bitField0_ & ~0x00000001); fieldName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); notValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); if (propertiesBuilder_ == null) { properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection build() { com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection result = new com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.operator_ = operator_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fieldName_ = fieldName_; if (((bitField0_ & 0x00000004) == 0x00000004)) { value_ = new com.google.protobuf.UnmodifiableLazyStringList( value_); bitField0_ = (bitField0_ & ~0x00000004); } result.value_ = value_; if (((bitField0_ & 0x00000008) == 0x00000008)) { notValue_ = new com.google.protobuf.UnmodifiableLazyStringList( notValue_); bitField0_ = (bitField0_ & ~0x00000008); } result.notValue_ = notValue_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } if (propertiesBuilder_ == null) { result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.getDefaultInstance()) return this; if (other.hasOperator()) { setOperator(other.getOperator()); } if (other.hasFieldName()) { setFieldName(other.getFieldName()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (!other.notValue_.isEmpty()) { if (notValue_.isEmpty()) { notValue_ = other.notValue_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureNotValueIsMutable(); notValue_.addAll(other.notValue_); } onChanged(); } if (other.hasProperties()) { mergeProperties(other.getProperties()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator value = com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; operator_ = value; } break; } case 18: { bitField0_ |= 0x00000002; fieldName_ = input.readBytes(); break; } case 26: { ensureValueIsMutable(); value_.add(input.readBytes()); break; } case 34: { ensureNotValueIsMutable(); notValue_.add(input.readBytes()); break; } case 42: { com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.newBuilder(); if (hasProperties()) { subBuilder.mergeFrom(getProperties()); } input.readMessage(subBuilder, extensionRegistry); setProperties(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional .com.sensei.search.req.protobuf.BooleanOperator operator = 1; private com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator operator_ = com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator.OR; public boolean hasOperator() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator getOperator() { return operator_; } public Builder setOperator(com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; operator_ = value; onChanged(); return this; } public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000001); operator_ = com.sensei.search.req.protobuf.SenseiProtos.BooleanOperator.OR; onChanged(); return this; } // optional string field_name = 2; private Object fieldName_ = ""; public boolean hasFieldName() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getFieldName() { Object ref = fieldName_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); fieldName_ = s; return s; } else { return (String) ref; } } public Builder setFieldName(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fieldName_ = value; onChanged(); return this; } public Builder clearFieldName() { bitField0_ = (bitField0_ & ~0x00000002); fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } void setFieldName(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; fieldName_ = value; onChanged(); } // repeated string value = 3; private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000004; } } public java.util.List<String> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public String getValue(int index) { return value_.get(index); } public Builder setValue( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<String> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } void addValue(com.google.protobuf.ByteString value) { ensureValueIsMutable(); value_.add(value); onChanged(); } // repeated string not_value = 4; private com.google.protobuf.LazyStringList notValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNotValueIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { notValue_ = new com.google.protobuf.LazyStringArrayList(notValue_); bitField0_ |= 0x00000008; } } public java.util.List<String> getNotValueList() { return java.util.Collections.unmodifiableList(notValue_); } public int getNotValueCount() { return notValue_.size(); } public String getNotValue(int index) { return notValue_.get(index); } public Builder setNotValue( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureNotValueIsMutable(); notValue_.set(index, value); onChanged(); return this; } public Builder addNotValue(String value) { if (value == null) { throw new NullPointerException(); } ensureNotValueIsMutable(); notValue_.add(value); onChanged(); return this; } public Builder addAllNotValue( java.lang.Iterable<String> values) { ensureNotValueIsMutable(); super.addAll(values, notValue_); onChanged(); return this; } public Builder clearNotValue() { notValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } void addNotValue(com.google.protobuf.ByteString value) { ensureNotValueIsMutable(); notValue_.add(value); onChanged(); } // optional .com.sensei.search.req.protobuf.StringProperties properties = 5; private com.sensei.search.req.protobuf.SenseiProtos.StringProperties properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringProperties, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder> propertiesBuilder_; public boolean hasProperties() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties getProperties() { if (propertiesBuilder_ == null) { return properties_; } else { return propertiesBuilder_.getMessage(); } } public Builder setProperties(com.sensei.search.req.protobuf.SenseiProtos.StringProperties value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } properties_ = value; onChanged(); } else { propertiesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } public Builder setProperties( com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder builderForValue) { if (propertiesBuilder_ == null) { properties_ = builderForValue.build(); onChanged(); } else { propertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } public Builder mergeProperties(com.sensei.search.req.protobuf.SenseiProtos.StringProperties value) { if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && properties_ != com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance()) { properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); } else { properties_ = value; } onChanged(); } else { propertiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); onChanged(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder getPropertiesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPropertiesFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder getPropertiesOrBuilder() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilder(); } else { return properties_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringProperties, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringProperties, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder>( properties_, getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.BrowseSelection) } static { defaultInstance = new BrowseSelection(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.BrowseSelection) } public interface LocaleOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string language = 1; boolean hasLanguage(); String getLanguage(); // optional string country = 2; boolean hasCountry(); String getCountry(); // optional string variant = 3; boolean hasVariant(); String getVariant(); } public static final class Locale extends com.google.protobuf.GeneratedMessage implements LocaleOrBuilder { // Use Locale.newBuilder() to construct. private Locale(Builder builder) { super(builder); } private Locale(boolean noInit) {} private static final Locale defaultInstance; public static Locale getDefaultInstance() { return defaultInstance; } public Locale getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Locale_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Locale_fieldAccessorTable; } private int bitField0_; // optional string language = 1; public static final int LANGUAGE_FIELD_NUMBER = 1; private Object language_; public boolean hasLanguage() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getLanguage() { Object ref = language_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { language_ = s; } return s; } } private com.google.protobuf.ByteString getLanguageBytes() { Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string country = 2; public static final int COUNTRY_FIELD_NUMBER = 2; private Object country_; public boolean hasCountry() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getCountry() { Object ref = country_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { country_ = s; } return s; } } private com.google.protobuf.ByteString getCountryBytes() { Object ref = country_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); country_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string variant = 3; public static final int VARIANT_FIELD_NUMBER = 3; private Object variant_; public boolean hasVariant() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getVariant() { Object ref = variant_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { variant_ = s; } return s; } } private com.google.protobuf.ByteString getVariantBytes() { Object ref = variant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); variant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { language_ = ""; country_ = ""; variant_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getLanguageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getCountryBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getVariantBytes()); } 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, getLanguageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getCountryBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getVariantBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Locale parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.Locale 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Locale_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Locale_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.Locale.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); language_ = ""; bitField0_ = (bitField0_ & ~0x00000001); country_ = ""; bitField0_ = (bitField0_ & ~0x00000002); variant_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.Locale.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.Locale getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.Locale build() { com.sensei.search.req.protobuf.SenseiProtos.Locale result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.Locale buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.Locale result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.Locale buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.Locale result = new com.sensei.search.req.protobuf.SenseiProtos.Locale(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.language_ = language_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.country_ = country_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.variant_ = variant_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.Locale) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.Locale)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.Locale other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance()) return this; if (other.hasLanguage()) { setLanguage(other.getLanguage()); } if (other.hasCountry()) { setCountry(other.getCountry()); } if (other.hasVariant()) { setVariant(other.getVariant()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; language_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; country_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; variant_ = input.readBytes(); break; } } } } private int bitField0_; // optional string language = 1; private Object language_ = ""; public boolean hasLanguage() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getLanguage() { Object ref = language_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); language_ = s; return s; } else { return (String) ref; } } public Builder setLanguage(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; language_ = value; onChanged(); return this; } public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000001); language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } void setLanguage(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; language_ = value; onChanged(); } // optional string country = 2; private Object country_ = ""; public boolean hasCountry() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getCountry() { Object ref = country_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); country_ = s; return s; } else { return (String) ref; } } public Builder setCountry(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; country_ = value; onChanged(); return this; } public Builder clearCountry() { bitField0_ = (bitField0_ & ~0x00000002); country_ = getDefaultInstance().getCountry(); onChanged(); return this; } void setCountry(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; country_ = value; onChanged(); } // optional string variant = 3; private Object variant_ = ""; public boolean hasVariant() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getVariant() { Object ref = variant_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); variant_ = s; return s; } else { return (String) ref; } } public Builder setVariant(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; variant_ = value; onChanged(); return this; } public Builder clearVariant() { bitField0_ = (bitField0_ & ~0x00000004); variant_ = getDefaultInstance().getVariant(); onChanged(); return this; } void setVariant(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; variant_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.Locale) } static { defaultInstance = new Locale(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.Locale) } public interface SortFieldOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string field = 1; boolean hasField(); String getField(); // optional int32 type = 2; boolean hasType(); int getType(); // optional .com.sensei.search.req.protobuf.Locale locale = 3; boolean hasLocale(); com.sensei.search.req.protobuf.SenseiProtos.Locale getLocale(); com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder getLocaleOrBuilder(); // optional bool reverse = 4; boolean hasReverse(); boolean getReverse(); } public static final class SortField extends com.google.protobuf.GeneratedMessage implements SortFieldOrBuilder { // Use SortField.newBuilder() to construct. private SortField(Builder builder) { super(builder); } private SortField(boolean noInit) {} private static final SortField defaultInstance; public static SortField getDefaultInstance() { return defaultInstance; } public SortField getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SortField_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SortField_fieldAccessorTable; } private int bitField0_; // optional string field = 1; public static final int FIELD_FIELD_NUMBER = 1; private Object field_; public boolean hasField() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getField() { Object ref = field_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { field_ = s; } return s; } } private com.google.protobuf.ByteString getFieldBytes() { Object ref = field_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); field_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 type = 2; public static final int TYPE_FIELD_NUMBER = 2; private int type_; public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getType() { return type_; } // optional .com.sensei.search.req.protobuf.Locale locale = 3; public static final int LOCALE_FIELD_NUMBER = 3; private com.sensei.search.req.protobuf.SenseiProtos.Locale locale_; public boolean hasLocale() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.Locale getLocale() { return locale_; } public com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder getLocaleOrBuilder() { return locale_; } // optional bool reverse = 4; public static final int REVERSE_FIELD_NUMBER = 4; private boolean reverse_; public boolean hasReverse() { return ((bitField0_ & 0x00000008) == 0x00000008); } public boolean getReverse() { return reverse_; } private void initFields() { field_ = ""; type_ = 0; locale_ = com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance(); reverse_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFieldBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, locale_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, reverse_); } 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, getFieldBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, locale_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, reverse_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SortField parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.SortField 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SortField_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SortField_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.SortField.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLocaleFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); field_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (localeBuilder_ == null) { locale_ = com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance(); } else { localeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); reverse_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.SortField.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.SortField getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.SortField.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.SortField build() { com.sensei.search.req.protobuf.SenseiProtos.SortField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.SortField buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.SortField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.SortField buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.SortField result = new com.sensei.search.req.protobuf.SenseiProtos.SortField(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.field_ = field_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (localeBuilder_ == null) { result.locale_ = locale_; } else { result.locale_ = localeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.reverse_ = reverse_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.SortField) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.SortField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.SortField other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.SortField.getDefaultInstance()) return this; if (other.hasField()) { setField(other.getField()); } if (other.hasType()) { setType(other.getType()); } if (other.hasLocale()) { mergeLocale(other.getLocale()); } if (other.hasReverse()) { setReverse(other.getReverse()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; field_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; type_ = input.readInt32(); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.Locale.newBuilder(); if (hasLocale()) { subBuilder.mergeFrom(getLocale()); } input.readMessage(subBuilder, extensionRegistry); setLocale(subBuilder.buildPartial()); break; } case 32: { bitField0_ |= 0x00000008; reverse_ = input.readBool(); break; } } } } private int bitField0_; // optional string field = 1; private Object field_ = ""; public boolean hasField() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getField() { Object ref = field_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); field_ = s; return s; } else { return (String) ref; } } public Builder setField(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; field_ = value; onChanged(); return this; } public Builder clearField() { bitField0_ = (bitField0_ & ~0x00000001); field_ = getDefaultInstance().getField(); onChanged(); return this; } void setField(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; field_ = value; onChanged(); } // optional int32 type = 2; private int type_ ; public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getType() { return type_; } public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // optional .com.sensei.search.req.protobuf.Locale locale = 3; private com.sensei.search.req.protobuf.SenseiProtos.Locale locale_ = com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Locale, com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder, com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder> localeBuilder_; public boolean hasLocale() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.Locale getLocale() { if (localeBuilder_ == null) { return locale_; } else { return localeBuilder_.getMessage(); } } public Builder setLocale(com.sensei.search.req.protobuf.SenseiProtos.Locale value) { if (localeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } locale_ = value; onChanged(); } else { localeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } public Builder setLocale( com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder builderForValue) { if (localeBuilder_ == null) { locale_ = builderForValue.build(); onChanged(); } else { localeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } public Builder mergeLocale(com.sensei.search.req.protobuf.SenseiProtos.Locale value) { if (localeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && locale_ != com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance()) { locale_ = com.sensei.search.req.protobuf.SenseiProtos.Locale.newBuilder(locale_).mergeFrom(value).buildPartial(); } else { locale_ = value; } onChanged(); } else { localeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } public Builder clearLocale() { if (localeBuilder_ == null) { locale_ = com.sensei.search.req.protobuf.SenseiProtos.Locale.getDefaultInstance(); onChanged(); } else { localeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder getLocaleBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLocaleFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder getLocaleOrBuilder() { if (localeBuilder_ != null) { return localeBuilder_.getMessageOrBuilder(); } else { return locale_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Locale, com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder, com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder> getLocaleFieldBuilder() { if (localeBuilder_ == null) { localeBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Locale, com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder, com.sensei.search.req.protobuf.SenseiProtos.LocaleOrBuilder>( locale_, getParentForChildren(), isClean()); locale_ = null; } return localeBuilder_; } // optional bool reverse = 4; private boolean reverse_ ; public boolean hasReverse() { return ((bitField0_ & 0x00000008) == 0x00000008); } public boolean getReverse() { return reverse_; } public Builder setReverse(boolean value) { bitField0_ |= 0x00000008; reverse_ = value; onChanged(); return this; } public Builder clearReverse() { bitField0_ = (bitField0_ & ~0x00000008); reverse_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.SortField) } static { defaultInstance = new SortField(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.SortField) } public interface FacetSpecOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .com.sensei.search.req.protobuf.SortOrder order_by = 1; boolean hasOrderBy(); com.sensei.search.req.protobuf.SenseiProtos.SortOrder getOrderBy(); // optional int32 max = 2; boolean hasMax(); int getMax(); // optional bool expand_selection = 3; boolean hasExpandSelection(); boolean getExpandSelection(); // optional int32 min_count = 4; boolean hasMinCount(); int getMinCount(); // optional .com.sensei.search.req.protobuf.StringProperties properties = 6; boolean hasProperties(); com.sensei.search.req.protobuf.SenseiProtos.StringProperties getProperties(); com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder getPropertiesOrBuilder(); // optional string field = 7; boolean hasField(); String getField(); } public static final class FacetSpec extends com.google.protobuf.GeneratedMessage implements FacetSpecOrBuilder { // Use FacetSpec.newBuilder() to construct. private FacetSpec(Builder builder) { super(builder); } private FacetSpec(boolean noInit) {} private static final FacetSpec defaultInstance; public static FacetSpec getDefaultInstance() { return defaultInstance; } public FacetSpec getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetSpec_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetSpec_fieldAccessorTable; } private int bitField0_; // optional .com.sensei.search.req.protobuf.SortOrder order_by = 1; public static final int ORDER_BY_FIELD_NUMBER = 1; private com.sensei.search.req.protobuf.SenseiProtos.SortOrder orderBy_; public boolean hasOrderBy() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.sensei.search.req.protobuf.SenseiProtos.SortOrder getOrderBy() { return orderBy_; } // optional int32 max = 2; public static final int MAX_FIELD_NUMBER = 2; private int max_; public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getMax() { return max_; } // optional bool expand_selection = 3; public static final int EXPAND_SELECTION_FIELD_NUMBER = 3; private boolean expandSelection_; public boolean hasExpandSelection() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getExpandSelection() { return expandSelection_; } // optional int32 min_count = 4; public static final int MIN_COUNT_FIELD_NUMBER = 4; private int minCount_; public boolean hasMinCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getMinCount() { return minCount_; } // optional .com.sensei.search.req.protobuf.StringProperties properties = 6; public static final int PROPERTIES_FIELD_NUMBER = 6; private com.sensei.search.req.protobuf.SenseiProtos.StringProperties properties_; public boolean hasProperties() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties getProperties() { return properties_; } public com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder getPropertiesOrBuilder() { return properties_; } // optional string field = 7; public static final int FIELD_FIELD_NUMBER = 7; private Object field_; public boolean hasField() { return ((bitField0_ & 0x00000020) == 0x00000020); } public String getField() { Object ref = field_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { field_ = s; } return s; } } private com.google.protobuf.ByteString getFieldBytes() { Object ref = field_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); field_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { orderBy_ = com.sensei.search.req.protobuf.SenseiProtos.SortOrder.ASCENDING; max_ = 0; expandSelection_ = false; minCount_ = 0; properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); field_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, orderBy_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, max_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, expandSelection_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, minCount_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, properties_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(7, getFieldBytes()); } 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 .computeEnumSize(1, orderBy_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, max_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, expandSelection_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, minCount_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, properties_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getFieldBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FacetSpec 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetSpec_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetSpec_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); orderBy_ = com.sensei.search.req.protobuf.SenseiProtos.SortOrder.ASCENDING; bitField0_ = (bitField0_ & ~0x00000001); max_ = 0; bitField0_ = (bitField0_ & ~0x00000002); expandSelection_ = false; bitField0_ = (bitField0_ & ~0x00000004); minCount_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (propertiesBuilder_ == null) { properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); field_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec build() { com.sensei.search.req.protobuf.SenseiProtos.FacetSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FacetSpec buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FacetSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FacetSpec result = new com.sensei.search.req.protobuf.SenseiProtos.FacetSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.orderBy_ = orderBy_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.max_ = max_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.expandSelection_ = expandSelection_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.minCount_ = minCount_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (propertiesBuilder_ == null) { result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.field_ = field_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FacetSpec) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FacetSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FacetSpec other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.getDefaultInstance()) return this; if (other.hasOrderBy()) { setOrderBy(other.getOrderBy()); } if (other.hasMax()) { setMax(other.getMax()); } if (other.hasExpandSelection()) { setExpandSelection(other.getExpandSelection()); } if (other.hasMinCount()) { setMinCount(other.getMinCount()); } if (other.hasProperties()) { mergeProperties(other.getProperties()); } if (other.hasField()) { setField(other.getField()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.SortOrder value = com.sensei.search.req.protobuf.SenseiProtos.SortOrder.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; orderBy_ = value; } break; } case 16: { bitField0_ |= 0x00000002; max_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; expandSelection_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; minCount_ = input.readInt32(); break; } case 50: { com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.newBuilder(); if (hasProperties()) { subBuilder.mergeFrom(getProperties()); } input.readMessage(subBuilder, extensionRegistry); setProperties(subBuilder.buildPartial()); break; } case 58: { bitField0_ |= 0x00000020; field_ = input.readBytes(); break; } } } } private int bitField0_; // optional .com.sensei.search.req.protobuf.SortOrder order_by = 1; private com.sensei.search.req.protobuf.SenseiProtos.SortOrder orderBy_ = com.sensei.search.req.protobuf.SenseiProtos.SortOrder.ASCENDING; public boolean hasOrderBy() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.sensei.search.req.protobuf.SenseiProtos.SortOrder getOrderBy() { return orderBy_; } public Builder setOrderBy(com.sensei.search.req.protobuf.SenseiProtos.SortOrder value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; orderBy_ = value; onChanged(); return this; } public Builder clearOrderBy() { bitField0_ = (bitField0_ & ~0x00000001); orderBy_ = com.sensei.search.req.protobuf.SenseiProtos.SortOrder.ASCENDING; onChanged(); return this; } // optional int32 max = 2; private int max_ ; public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getMax() { return max_; } public Builder setMax(int value) { bitField0_ |= 0x00000002; max_ = value; onChanged(); return this; } public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000002); max_ = 0; onChanged(); return this; } // optional bool expand_selection = 3; private boolean expandSelection_ ; public boolean hasExpandSelection() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getExpandSelection() { return expandSelection_; } public Builder setExpandSelection(boolean value) { bitField0_ |= 0x00000004; expandSelection_ = value; onChanged(); return this; } public Builder clearExpandSelection() { bitField0_ = (bitField0_ & ~0x00000004); expandSelection_ = false; onChanged(); return this; } // optional int32 min_count = 4; private int minCount_ ; public boolean hasMinCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getMinCount() { return minCount_; } public Builder setMinCount(int value) { bitField0_ |= 0x00000008; minCount_ = value; onChanged(); return this; } public Builder clearMinCount() { bitField0_ = (bitField0_ & ~0x00000008); minCount_ = 0; onChanged(); return this; } // optional .com.sensei.search.req.protobuf.StringProperties properties = 6; private com.sensei.search.req.protobuf.SenseiProtos.StringProperties properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringProperties, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder> propertiesBuilder_; public boolean hasProperties() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties getProperties() { if (propertiesBuilder_ == null) { return properties_; } else { return propertiesBuilder_.getMessage(); } } public Builder setProperties(com.sensei.search.req.protobuf.SenseiProtos.StringProperties value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } properties_ = value; onChanged(); } else { propertiesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } public Builder setProperties( com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder builderForValue) { if (propertiesBuilder_ == null) { properties_ = builderForValue.build(); onChanged(); } else { propertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } public Builder mergeProperties(com.sensei.search.req.protobuf.SenseiProtos.StringProperties value) { if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && properties_ != com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance()) { properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); } else { properties_ = value; } onChanged(); } else { propertiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = com.sensei.search.req.protobuf.SenseiProtos.StringProperties.getDefaultInstance(); onChanged(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder getPropertiesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPropertiesFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder getPropertiesOrBuilder() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilder(); } else { return properties_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringProperties, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringProperties, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringPropertiesOrBuilder>( properties_, getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } // optional string field = 7; private Object field_ = ""; public boolean hasField() { return ((bitField0_ & 0x00000020) == 0x00000020); } public String getField() { Object ref = field_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); field_ = s; return s; } else { return (String) ref; } } public Builder setField(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; field_ = value; onChanged(); return this; } public Builder clearField() { bitField0_ = (bitField0_ & ~0x00000020); field_ = getDefaultInstance().getField(); onChanged(); return this; } void setField(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000020; field_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FacetSpec) } static { defaultInstance = new FacetSpec(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FacetSpec) } public interface BooleanParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // repeated bool value = 2; java.util.List<java.lang.Boolean> getValueList(); int getValueCount(); boolean getValue(int index); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class BooleanParams extends com.google.protobuf.GeneratedMessage implements BooleanParamsOrBuilder { // Use BooleanParams.newBuilder() to construct. private BooleanParams(Builder builder) { super(builder); } private BooleanParams(boolean noInit) {} private static final BooleanParams defaultInstance; public static BooleanParams getDefaultInstance() { return defaultInstance; } public BooleanParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BooleanParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BooleanParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated bool value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<java.lang.Boolean> value_; public java.util.List<java.lang.Boolean> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public boolean getValue(int index) { return value_.get(index); } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000002) == 0x00000002); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = java.util.Collections.emptyList();; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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()); } for (int i = 0; i < value_.size(); i++) { output.writeBool(2, value_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, isNull_); } 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()); } { int dataSize = 0; dataSize = 1 * getValueList().size(); size += dataSize; size += 1 * getValueList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BooleanParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.BooleanParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BooleanParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BooleanParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams build() { com.sensei.search.req.protobuf.SenseiProtos.BooleanParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.BooleanParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.BooleanParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.BooleanParams result = new com.sensei.search.req.protobuf.SenseiProtos.BooleanParams(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.BooleanParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.BooleanParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.BooleanParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 16: { ensureValueIsMutable(); value_.add(input.readBool()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addValue(input.readBool()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // repeated bool value = 2; private java.util.List<java.lang.Boolean> value_ = java.util.Collections.emptyList();; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<java.lang.Boolean>(value_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Boolean> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public boolean getValue(int index) { return value_.get(index); } public Builder setValue( int index, boolean value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(boolean value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<? extends java.lang.Boolean> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.BooleanParams) } static { defaultInstance = new BooleanParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.BooleanParams) } public interface IntParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // repeated int32 value = 2; java.util.List<java.lang.Integer> getValueList(); int getValueCount(); int getValue(int index); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class IntParams extends com.google.protobuf.GeneratedMessage implements IntParamsOrBuilder { // Use IntParams.newBuilder() to construct. private IntParams(Builder builder) { super(builder); } private IntParams(boolean noInit) {} private static final IntParams defaultInstance; public static IntParams getDefaultInstance() { return defaultInstance; } public IntParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_IntParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_IntParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> value_; public java.util.List<java.lang.Integer> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public int getValue(int index) { return value_.get(index); } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000002) == 0x00000002); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = java.util.Collections.emptyList();; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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()); } for (int i = 0; i < value_.size(); i++) { output.writeInt32(2, value_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, isNull_); } 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()); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(value_.get(i)); } size += dataSize; size += 1 * getValueList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.IntParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.IntParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_IntParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_IntParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.IntParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.IntParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.IntParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.IntParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.IntParams build() { com.sensei.search.req.protobuf.SenseiProtos.IntParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.IntParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.IntParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.IntParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.IntParams result = new com.sensei.search.req.protobuf.SenseiProtos.IntParams(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.IntParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.IntParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.IntParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.IntParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 16: { ensureValueIsMutable(); value_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addValue(input.readInt32()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // repeated int32 value = 2; private java.util.List<java.lang.Integer> value_ = java.util.Collections.emptyList();; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<java.lang.Integer>(value_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Integer> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public int getValue(int index) { return value_.get(index); } public Builder setValue( int index, int value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(int value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<? extends java.lang.Integer> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.IntParams) } static { defaultInstance = new IntParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.IntParams) } public interface LongParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // repeated int64 value = 2; java.util.List<java.lang.Long> getValueList(); int getValueCount(); long getValue(int index); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class LongParams extends com.google.protobuf.GeneratedMessage implements LongParamsOrBuilder { // Use LongParams.newBuilder() to construct. private LongParams(Builder builder) { super(builder); } private LongParams(boolean noInit) {} private static final LongParams defaultInstance; public static LongParams getDefaultInstance() { return defaultInstance; } public LongParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int64 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<java.lang.Long> value_; public java.util.List<java.lang.Long> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public long getValue(int index) { return value_.get(index); } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000002) == 0x00000002); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = java.util.Collections.emptyList();; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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()); } for (int i = 0; i < value_.size(); i++) { output.writeInt64(2, value_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, isNull_); } 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()); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(value_.get(i)); } size += dataSize; size += 1 * getValueList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.LongParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.LongParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.LongParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.LongParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.LongParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.LongParams build() { com.sensei.search.req.protobuf.SenseiProtos.LongParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.LongParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.LongParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.LongParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.LongParams result = new com.sensei.search.req.protobuf.SenseiProtos.LongParams(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.LongParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.LongParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.LongParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.LongParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 16: { ensureValueIsMutable(); value_.add(input.readInt64()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addValue(input.readInt64()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // repeated int64 value = 2; private java.util.List<java.lang.Long> value_ = java.util.Collections.emptyList();; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<java.lang.Long>(value_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Long> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public long getValue(int index) { return value_.get(index); } public Builder setValue( int index, long value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(long value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<? extends java.lang.Long> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.LongParams) } static { defaultInstance = new LongParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.LongParams) } public interface StringParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // repeated string value = 2; java.util.List<String> getValueList(); int getValueCount(); String getValue(int index); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class StringParams extends com.google.protobuf.GeneratedMessage implements StringParamsOrBuilder { // Use StringParams.newBuilder() to construct. private StringParams(Builder builder) { super(builder); } private StringParams(boolean noInit) {} private static final StringParams defaultInstance; public static StringParams getDefaultInstance() { return defaultInstance; } public StringParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList value_; public java.util.List<String> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public String getValue(int index) { return value_.get(index); } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000002) == 0x00000002); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = com.google.protobuf.LazyStringArrayList.EMPTY; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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()); } for (int i = 0; i < value_.size(); i++) { output.writeBytes(2, value_.getByteString(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, isNull_); } 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()); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(value_.getByteString(i)); } size += dataSize; size += 1 * getValueList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.StringParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.StringParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.StringParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.StringParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.StringParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.StringParams build() { com.sensei.search.req.protobuf.SenseiProtos.StringParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.StringParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.StringParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.StringParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.StringParams result = new com.sensei.search.req.protobuf.SenseiProtos.StringParams(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.UnmodifiableLazyStringList( value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.StringParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.StringParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.StringParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.StringParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { ensureValueIsMutable(); value_.add(input.readBytes()); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // repeated string value = 2; private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000002; } } public java.util.List<String> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public String getValue(int index) { return value_.get(index); } public Builder setValue( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<String> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } void addValue(com.google.protobuf.ByteString value) { ensureValueIsMutable(); value_.add(value); onChanged(); } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.StringParams) } static { defaultInstance = new StringParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.StringParams) } public interface FloatParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // repeated float value = 2; java.util.List<java.lang.Float> getValueList(); int getValueCount(); float getValue(int index); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class FloatParams extends com.google.protobuf.GeneratedMessage implements FloatParamsOrBuilder { // Use FloatParams.newBuilder() to construct. private FloatParams(Builder builder) { super(builder); } private FloatParams(boolean noInit) {} private static final FloatParams defaultInstance; public static FloatParams getDefaultInstance() { return defaultInstance; } public FloatParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FloatParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FloatParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated float value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<java.lang.Float> value_; public java.util.List<java.lang.Float> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public float getValue(int index) { return value_.get(index); } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000002) == 0x00000002); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = java.util.Collections.emptyList();; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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()); } for (int i = 0; i < value_.size(); i++) { output.writeFloat(2, value_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, isNull_); } 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()); } { int dataSize = 0; dataSize = 4 * getValueList().size(); size += dataSize; size += 1 * getValueList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FloatParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FloatParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FloatParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FloatParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FloatParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FloatParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FloatParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FloatParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FloatParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FloatParams build() { com.sensei.search.req.protobuf.SenseiProtos.FloatParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FloatParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FloatParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FloatParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FloatParams result = new com.sensei.search.req.protobuf.SenseiProtos.FloatParams(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FloatParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FloatParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FloatParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FloatParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 21: { ensureValueIsMutable(); value_.add(input.readFloat()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addValue(input.readFloat()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // repeated float value = 2; private java.util.List<java.lang.Float> value_ = java.util.Collections.emptyList();; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<java.lang.Float>(value_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Float> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public float getValue(int index) { return value_.get(index); } public Builder setValue( int index, float value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(float value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<? extends java.lang.Float> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FloatParams) } static { defaultInstance = new FloatParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FloatParams) } public interface DoubleParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // repeated double value = 2; java.util.List<java.lang.Double> getValueList(); int getValueCount(); double getValue(int index); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class DoubleParams extends com.google.protobuf.GeneratedMessage implements DoubleParamsOrBuilder { // Use DoubleParams.newBuilder() to construct. private DoubleParams(Builder builder) { super(builder); } private DoubleParams(boolean noInit) {} private static final DoubleParams defaultInstance; public static DoubleParams getDefaultInstance() { return defaultInstance; } public DoubleParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_DoubleParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_DoubleParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated double value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<java.lang.Double> value_; public java.util.List<java.lang.Double> getValueList() { return value_; } public int getValueCount() { return value_.size(); } public double getValue(int index) { return value_.get(index); } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000002) == 0x00000002); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = java.util.Collections.emptyList();; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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()); } for (int i = 0; i < value_.size(); i++) { output.writeDouble(2, value_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, isNull_); } 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()); } { int dataSize = 0; dataSize = 8 * getValueList().size(); size += dataSize; size += 1 * getValueList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.DoubleParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.DoubleParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_DoubleParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_DoubleParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams build() { com.sensei.search.req.protobuf.SenseiProtos.DoubleParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.DoubleParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.DoubleParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.DoubleParams result = new com.sensei.search.req.protobuf.SenseiProtos.DoubleParams(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.DoubleParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.DoubleParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.DoubleParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 17: { ensureValueIsMutable(); value_.add(input.readDouble()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addValue(input.readDouble()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // repeated double value = 2; private java.util.List<java.lang.Double> value_ = java.util.Collections.emptyList();; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<java.lang.Double>(value_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Double> getValueList() { return java.util.Collections.unmodifiableList(value_); } public int getValueCount() { return value_.size(); } public double getValue(int index) { return value_.get(index); } public Builder setValue( int index, double value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } public Builder addValue(double value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public Builder addAllValue( java.lang.Iterable<? extends java.lang.Double> values) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); return this; } public Builder clearValue() { value_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.DoubleParams) } static { defaultInstance = new DoubleParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.DoubleParams) } public interface ByteArrayParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // optional bytes value = 2; boolean hasValue(); com.google.protobuf.ByteString getValue(); // optional bool is_null = 3; boolean hasIsNull(); boolean getIsNull(); } public static final class ByteArrayParams extends com.google.protobuf.GeneratedMessage implements ByteArrayParamsOrBuilder { // Use ByteArrayParams.newBuilder() to construct. private ByteArrayParams(Builder builder) { super(builder); } private ByteArrayParams(boolean noInit) {} private static final ByteArrayParams defaultInstance; public static ByteArrayParams getDefaultInstance() { return defaultInstance; } public ByteArrayParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ByteArrayParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ByteArrayParams_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getValue() { return value_; } // optional bool is_null = 3; public static final int IS_NULL_FIELD_NUMBER = 3; private boolean isNull_; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } private void initFields() { key_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; isNull_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; 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, value_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isNull_); } 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, value_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isNull_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ByteArrayParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ByteArrayParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); isNull_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams build() { com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams result = new com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams(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.isNull_ = isNull_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasIsNull()) { setIsNull(other.getIsNull()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; value_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; isNull_ = input.readBool(); break; } } } } private int bitField0_; // optional string key = 1; private Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // optional bytes value = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getValue() { return value_; } public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } // optional bool is_null = 3; private boolean isNull_ ; public boolean hasIsNull() { return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsNull() { return isNull_; } public Builder setIsNull(boolean value) { bitField0_ |= 0x00000004; isNull_ = value; onChanged(); return this; } public Builder clearIsNull() { bitField0_ = (bitField0_ & ~0x00000004); isNull_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.ByteArrayParams) } static { defaultInstance = new ByteArrayParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.ByteArrayParams) } public interface FacetHandlerInitializerParamOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .com.sensei.search.req.protobuf.BooleanParams boolean_param = 1; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams> getBooleanParamList(); com.sensei.search.req.protobuf.SenseiProtos.BooleanParams getBooleanParam(int index); int getBooleanParamCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder> getBooleanParamOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder getBooleanParamOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.IntParams int_param = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.IntParams> getIntParamList(); com.sensei.search.req.protobuf.SenseiProtos.IntParams getIntParam(int index); int getIntParamCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder> getIntParamOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder getIntParamOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.LongParams long_param = 3; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongParams> getLongParamList(); com.sensei.search.req.protobuf.SenseiProtos.LongParams getLongParam(int index); int getLongParamCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder> getLongParamOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder getLongParamOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.StringParams string_param = 4; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringParams> getStringParamList(); com.sensei.search.req.protobuf.SenseiProtos.StringParams getStringParam(int index); int getStringParamCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder> getStringParamOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder getStringParamOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.DoubleParams double_param = 5; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams> getDoubleParamList(); com.sensei.search.req.protobuf.SenseiProtos.DoubleParams getDoubleParam(int index); int getDoubleParamCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder> getDoubleParamOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder getDoubleParamOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.ByteArrayParams byte_param = 6; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams> getByteParamList(); com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams getByteParam(int index); int getByteParamCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder> getByteParamOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder getByteParamOrBuilder( int index); } public static final class FacetHandlerInitializerParam extends com.google.protobuf.GeneratedMessage implements FacetHandlerInitializerParamOrBuilder { // Use FacetHandlerInitializerParam.newBuilder() to construct. private FacetHandlerInitializerParam(Builder builder) { super(builder); } private FacetHandlerInitializerParam(boolean noInit) {} private static final FacetHandlerInitializerParam defaultInstance; public static FacetHandlerInitializerParam getDefaultInstance() { return defaultInstance; } public FacetHandlerInitializerParam getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_fieldAccessorTable; } // repeated .com.sensei.search.req.protobuf.BooleanParams boolean_param = 1; public static final int BOOLEAN_PARAM_FIELD_NUMBER = 1; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams> booleanParam_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams> getBooleanParamList() { return booleanParam_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder> getBooleanParamOrBuilderList() { return booleanParam_; } public int getBooleanParamCount() { return booleanParam_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams getBooleanParam(int index) { return booleanParam_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder getBooleanParamOrBuilder( int index) { return booleanParam_.get(index); } // repeated .com.sensei.search.req.protobuf.IntParams int_param = 2; public static final int INT_PARAM_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.IntParams> intParam_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.IntParams> getIntParamList() { return intParam_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder> getIntParamOrBuilderList() { return intParam_; } public int getIntParamCount() { return intParam_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.IntParams getIntParam(int index) { return intParam_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder getIntParamOrBuilder( int index) { return intParam_.get(index); } // repeated .com.sensei.search.req.protobuf.LongParams long_param = 3; public static final int LONG_PARAM_FIELD_NUMBER = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongParams> longParam_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongParams> getLongParamList() { return longParam_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder> getLongParamOrBuilderList() { return longParam_; } public int getLongParamCount() { return longParam_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.LongParams getLongParam(int index) { return longParam_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder getLongParamOrBuilder( int index) { return longParam_.get(index); } // repeated .com.sensei.search.req.protobuf.StringParams string_param = 4; public static final int STRING_PARAM_FIELD_NUMBER = 4; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringParams> stringParam_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringParams> getStringParamList() { return stringParam_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder> getStringParamOrBuilderList() { return stringParam_; } public int getStringParamCount() { return stringParam_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.StringParams getStringParam(int index) { return stringParam_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder getStringParamOrBuilder( int index) { return stringParam_.get(index); } // repeated .com.sensei.search.req.protobuf.DoubleParams double_param = 5; public static final int DOUBLE_PARAM_FIELD_NUMBER = 5; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams> doubleParam_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams> getDoubleParamList() { return doubleParam_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder> getDoubleParamOrBuilderList() { return doubleParam_; } public int getDoubleParamCount() { return doubleParam_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams getDoubleParam(int index) { return doubleParam_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder getDoubleParamOrBuilder( int index) { return doubleParam_.get(index); } // repeated .com.sensei.search.req.protobuf.ByteArrayParams byte_param = 6; public static final int BYTE_PARAM_FIELD_NUMBER = 6; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams> byteParam_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams> getByteParamList() { return byteParam_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder> getByteParamOrBuilderList() { return byteParam_; } public int getByteParamCount() { return byteParam_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams getByteParam(int index) { return byteParam_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder getByteParamOrBuilder( int index) { return byteParam_.get(index); } private void initFields() { booleanParam_ = java.util.Collections.emptyList(); intParam_ = java.util.Collections.emptyList(); longParam_ = java.util.Collections.emptyList(); stringParam_ = java.util.Collections.emptyList(); doubleParam_ = java.util.Collections.emptyList(); byteParam_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < booleanParam_.size(); i++) { output.writeMessage(1, booleanParam_.get(i)); } for (int i = 0; i < intParam_.size(); i++) { output.writeMessage(2, intParam_.get(i)); } for (int i = 0; i < longParam_.size(); i++) { output.writeMessage(3, longParam_.get(i)); } for (int i = 0; i < stringParam_.size(); i++) { output.writeMessage(4, stringParam_.get(i)); } for (int i = 0; i < doubleParam_.size(); i++) { output.writeMessage(5, doubleParam_.get(i)); } for (int i = 0; i < byteParam_.size(); i++) { output.writeMessage(6, byteParam_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < booleanParam_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, booleanParam_.get(i)); } for (int i = 0; i < intParam_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, intParam_.get(i)); } for (int i = 0; i < longParam_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, longParam_.get(i)); } for (int i = 0; i < stringParam_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, stringParam_.get(i)); } for (int i = 0; i < doubleParam_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, doubleParam_.get(i)); } for (int i = 0; i < byteParam_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, byteParam_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBooleanParamFieldBuilder(); getIntParamFieldBuilder(); getLongParamFieldBuilder(); getStringParamFieldBuilder(); getDoubleParamFieldBuilder(); getByteParamFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (booleanParamBuilder_ == null) { booleanParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { booleanParamBuilder_.clear(); } if (intParamBuilder_ == null) { intParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { intParamBuilder_.clear(); } if (longParamBuilder_ == null) { longParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { longParamBuilder_.clear(); } if (stringParamBuilder_ == null) { stringParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { stringParamBuilder_.clear(); } if (doubleParamBuilder_ == null) { doubleParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { doubleParamBuilder_.clear(); } if (byteParamBuilder_ == null) { byteParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { byteParamBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam build() { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam result = new com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam(this); int from_bitField0_ = bitField0_; if (booleanParamBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { booleanParam_ = java.util.Collections.unmodifiableList(booleanParam_); bitField0_ = (bitField0_ & ~0x00000001); } result.booleanParam_ = booleanParam_; } else { result.booleanParam_ = booleanParamBuilder_.build(); } if (intParamBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { intParam_ = java.util.Collections.unmodifiableList(intParam_); bitField0_ = (bitField0_ & ~0x00000002); } result.intParam_ = intParam_; } else { result.intParam_ = intParamBuilder_.build(); } if (longParamBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { longParam_ = java.util.Collections.unmodifiableList(longParam_); bitField0_ = (bitField0_ & ~0x00000004); } result.longParam_ = longParam_; } else { result.longParam_ = longParamBuilder_.build(); } if (stringParamBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { stringParam_ = java.util.Collections.unmodifiableList(stringParam_); bitField0_ = (bitField0_ & ~0x00000008); } result.stringParam_ = stringParam_; } else { result.stringParam_ = stringParamBuilder_.build(); } if (doubleParamBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { doubleParam_ = java.util.Collections.unmodifiableList(doubleParam_); bitField0_ = (bitField0_ & ~0x00000010); } result.doubleParam_ = doubleParam_; } else { result.doubleParam_ = doubleParamBuilder_.build(); } if (byteParamBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { byteParam_ = java.util.Collections.unmodifiableList(byteParam_); bitField0_ = (bitField0_ & ~0x00000020); } result.byteParam_ = byteParam_; } else { result.byteParam_ = byteParamBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.getDefaultInstance()) return this; if (booleanParamBuilder_ == null) { if (!other.booleanParam_.isEmpty()) { if (booleanParam_.isEmpty()) { booleanParam_ = other.booleanParam_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBooleanParamIsMutable(); booleanParam_.addAll(other.booleanParam_); } onChanged(); } } else { if (!other.booleanParam_.isEmpty()) { if (booleanParamBuilder_.isEmpty()) { booleanParamBuilder_.dispose(); booleanParamBuilder_ = null; booleanParam_ = other.booleanParam_; bitField0_ = (bitField0_ & ~0x00000001); booleanParamBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBooleanParamFieldBuilder() : null; } else { booleanParamBuilder_.addAllMessages(other.booleanParam_); } } } if (intParamBuilder_ == null) { if (!other.intParam_.isEmpty()) { if (intParam_.isEmpty()) { intParam_ = other.intParam_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIntParamIsMutable(); intParam_.addAll(other.intParam_); } onChanged(); } } else { if (!other.intParam_.isEmpty()) { if (intParamBuilder_.isEmpty()) { intParamBuilder_.dispose(); intParamBuilder_ = null; intParam_ = other.intParam_; bitField0_ = (bitField0_ & ~0x00000002); intParamBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getIntParamFieldBuilder() : null; } else { intParamBuilder_.addAllMessages(other.intParam_); } } } if (longParamBuilder_ == null) { if (!other.longParam_.isEmpty()) { if (longParam_.isEmpty()) { longParam_ = other.longParam_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLongParamIsMutable(); longParam_.addAll(other.longParam_); } onChanged(); } } else { if (!other.longParam_.isEmpty()) { if (longParamBuilder_.isEmpty()) { longParamBuilder_.dispose(); longParamBuilder_ = null; longParam_ = other.longParam_; bitField0_ = (bitField0_ & ~0x00000004); longParamBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLongParamFieldBuilder() : null; } else { longParamBuilder_.addAllMessages(other.longParam_); } } } if (stringParamBuilder_ == null) { if (!other.stringParam_.isEmpty()) { if (stringParam_.isEmpty()) { stringParam_ = other.stringParam_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureStringParamIsMutable(); stringParam_.addAll(other.stringParam_); } onChanged(); } } else { if (!other.stringParam_.isEmpty()) { if (stringParamBuilder_.isEmpty()) { stringParamBuilder_.dispose(); stringParamBuilder_ = null; stringParam_ = other.stringParam_; bitField0_ = (bitField0_ & ~0x00000008); stringParamBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStringParamFieldBuilder() : null; } else { stringParamBuilder_.addAllMessages(other.stringParam_); } } } if (doubleParamBuilder_ == null) { if (!other.doubleParam_.isEmpty()) { if (doubleParam_.isEmpty()) { doubleParam_ = other.doubleParam_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureDoubleParamIsMutable(); doubleParam_.addAll(other.doubleParam_); } onChanged(); } } else { if (!other.doubleParam_.isEmpty()) { if (doubleParamBuilder_.isEmpty()) { doubleParamBuilder_.dispose(); doubleParamBuilder_ = null; doubleParam_ = other.doubleParam_; bitField0_ = (bitField0_ & ~0x00000010); doubleParamBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDoubleParamFieldBuilder() : null; } else { doubleParamBuilder_.addAllMessages(other.doubleParam_); } } } if (byteParamBuilder_ == null) { if (!other.byteParam_.isEmpty()) { if (byteParam_.isEmpty()) { byteParam_ = other.byteParam_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureByteParamIsMutable(); byteParam_.addAll(other.byteParam_); } onChanged(); } } else { if (!other.byteParam_.isEmpty()) { if (byteParamBuilder_.isEmpty()) { byteParamBuilder_.dispose(); byteParamBuilder_ = null; byteParam_ = other.byteParam_; bitField0_ = (bitField0_ & ~0x00000020); byteParamBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getByteParamFieldBuilder() : null; } else { byteParamBuilder_.addAllMessages(other.byteParam_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addBooleanParam(subBuilder.buildPartial()); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.IntParams.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addIntParam(subBuilder.buildPartial()); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.LongParams.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addLongParam(subBuilder.buildPartial()); break; } case 34: { com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.StringParams.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addStringParam(subBuilder.buildPartial()); break; } case 42: { com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addDoubleParam(subBuilder.buildPartial()); break; } case 50: { com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addByteParam(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated .com.sensei.search.req.protobuf.BooleanParams boolean_param = 1; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams> booleanParam_ = java.util.Collections.emptyList(); private void ensureBooleanParamIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { booleanParam_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams>(booleanParam_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BooleanParams, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder> booleanParamBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams> getBooleanParamList() { if (booleanParamBuilder_ == null) { return java.util.Collections.unmodifiableList(booleanParam_); } else { return booleanParamBuilder_.getMessageList(); } } public int getBooleanParamCount() { if (booleanParamBuilder_ == null) { return booleanParam_.size(); } else { return booleanParamBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams getBooleanParam(int index) { if (booleanParamBuilder_ == null) { return booleanParam_.get(index); } else { return booleanParamBuilder_.getMessage(index); } } public Builder setBooleanParam( int index, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams value) { if (booleanParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBooleanParamIsMutable(); booleanParam_.set(index, value); onChanged(); } else { booleanParamBuilder_.setMessage(index, value); } return this; } public Builder setBooleanParam( int index, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder builderForValue) { if (booleanParamBuilder_ == null) { ensureBooleanParamIsMutable(); booleanParam_.set(index, builderForValue.build()); onChanged(); } else { booleanParamBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addBooleanParam(com.sensei.search.req.protobuf.SenseiProtos.BooleanParams value) { if (booleanParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBooleanParamIsMutable(); booleanParam_.add(value); onChanged(); } else { booleanParamBuilder_.addMessage(value); } return this; } public Builder addBooleanParam( int index, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams value) { if (booleanParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBooleanParamIsMutable(); booleanParam_.add(index, value); onChanged(); } else { booleanParamBuilder_.addMessage(index, value); } return this; } public Builder addBooleanParam( com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder builderForValue) { if (booleanParamBuilder_ == null) { ensureBooleanParamIsMutable(); booleanParam_.add(builderForValue.build()); onChanged(); } else { booleanParamBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addBooleanParam( int index, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder builderForValue) { if (booleanParamBuilder_ == null) { ensureBooleanParamIsMutable(); booleanParam_.add(index, builderForValue.build()); onChanged(); } else { booleanParamBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllBooleanParam( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.BooleanParams> values) { if (booleanParamBuilder_ == null) { ensureBooleanParamIsMutable(); super.addAll(values, booleanParam_); onChanged(); } else { booleanParamBuilder_.addAllMessages(values); } return this; } public Builder clearBooleanParam() { if (booleanParamBuilder_ == null) { booleanParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { booleanParamBuilder_.clear(); } return this; } public Builder removeBooleanParam(int index) { if (booleanParamBuilder_ == null) { ensureBooleanParamIsMutable(); booleanParam_.remove(index); onChanged(); } else { booleanParamBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder getBooleanParamBuilder( int index) { return getBooleanParamFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder getBooleanParamOrBuilder( int index) { if (booleanParamBuilder_ == null) { return booleanParam_.get(index); } else { return booleanParamBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder> getBooleanParamOrBuilderList() { if (booleanParamBuilder_ != null) { return booleanParamBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(booleanParam_); } } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder addBooleanParamBuilder() { return getBooleanParamFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder addBooleanParamBuilder( int index) { return getBooleanParamFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder> getBooleanParamBuilderList() { return getBooleanParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BooleanParams, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder> getBooleanParamFieldBuilder() { if (booleanParamBuilder_ == null) { booleanParamBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BooleanParams, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.BooleanParamsOrBuilder>( booleanParam_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); booleanParam_ = null; } return booleanParamBuilder_; } // repeated .com.sensei.search.req.protobuf.IntParams int_param = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.IntParams> intParam_ = java.util.Collections.emptyList(); private void ensureIntParamIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { intParam_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.IntParams>(intParam_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.IntParams, com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder> intParamBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.IntParams> getIntParamList() { if (intParamBuilder_ == null) { return java.util.Collections.unmodifiableList(intParam_); } else { return intParamBuilder_.getMessageList(); } } public int getIntParamCount() { if (intParamBuilder_ == null) { return intParam_.size(); } else { return intParamBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.IntParams getIntParam(int index) { if (intParamBuilder_ == null) { return intParam_.get(index); } else { return intParamBuilder_.getMessage(index); } } public Builder setIntParam( int index, com.sensei.search.req.protobuf.SenseiProtos.IntParams value) { if (intParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIntParamIsMutable(); intParam_.set(index, value); onChanged(); } else { intParamBuilder_.setMessage(index, value); } return this; } public Builder setIntParam( int index, com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder builderForValue) { if (intParamBuilder_ == null) { ensureIntParamIsMutable(); intParam_.set(index, builderForValue.build()); onChanged(); } else { intParamBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addIntParam(com.sensei.search.req.protobuf.SenseiProtos.IntParams value) { if (intParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIntParamIsMutable(); intParam_.add(value); onChanged(); } else { intParamBuilder_.addMessage(value); } return this; } public Builder addIntParam( int index, com.sensei.search.req.protobuf.SenseiProtos.IntParams value) { if (intParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIntParamIsMutable(); intParam_.add(index, value); onChanged(); } else { intParamBuilder_.addMessage(index, value); } return this; } public Builder addIntParam( com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder builderForValue) { if (intParamBuilder_ == null) { ensureIntParamIsMutable(); intParam_.add(builderForValue.build()); onChanged(); } else { intParamBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addIntParam( int index, com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder builderForValue) { if (intParamBuilder_ == null) { ensureIntParamIsMutable(); intParam_.add(index, builderForValue.build()); onChanged(); } else { intParamBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllIntParam( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.IntParams> values) { if (intParamBuilder_ == null) { ensureIntParamIsMutable(); super.addAll(values, intParam_); onChanged(); } else { intParamBuilder_.addAllMessages(values); } return this; } public Builder clearIntParam() { if (intParamBuilder_ == null) { intParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { intParamBuilder_.clear(); } return this; } public Builder removeIntParam(int index) { if (intParamBuilder_ == null) { ensureIntParamIsMutable(); intParam_.remove(index); onChanged(); } else { intParamBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder getIntParamBuilder( int index) { return getIntParamFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder getIntParamOrBuilder( int index) { if (intParamBuilder_ == null) { return intParam_.get(index); } else { return intParamBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder> getIntParamOrBuilderList() { if (intParamBuilder_ != null) { return intParamBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(intParam_); } } public com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder addIntParamBuilder() { return getIntParamFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.IntParams.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder addIntParamBuilder( int index) { return getIntParamFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.IntParams.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder> getIntParamBuilderList() { return getIntParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.IntParams, com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder> getIntParamFieldBuilder() { if (intParamBuilder_ == null) { intParamBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.IntParams, com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.IntParamsOrBuilder>( intParam_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); intParam_ = null; } return intParamBuilder_; } // repeated .com.sensei.search.req.protobuf.LongParams long_param = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongParams> longParam_ = java.util.Collections.emptyList(); private void ensureLongParamIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { longParam_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.LongParams>(longParam_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.LongParams, com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder> longParamBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongParams> getLongParamList() { if (longParamBuilder_ == null) { return java.util.Collections.unmodifiableList(longParam_); } else { return longParamBuilder_.getMessageList(); } } public int getLongParamCount() { if (longParamBuilder_ == null) { return longParam_.size(); } else { return longParamBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.LongParams getLongParam(int index) { if (longParamBuilder_ == null) { return longParam_.get(index); } else { return longParamBuilder_.getMessage(index); } } public Builder setLongParam( int index, com.sensei.search.req.protobuf.SenseiProtos.LongParams value) { if (longParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLongParamIsMutable(); longParam_.set(index, value); onChanged(); } else { longParamBuilder_.setMessage(index, value); } return this; } public Builder setLongParam( int index, com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder builderForValue) { if (longParamBuilder_ == null) { ensureLongParamIsMutable(); longParam_.set(index, builderForValue.build()); onChanged(); } else { longParamBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addLongParam(com.sensei.search.req.protobuf.SenseiProtos.LongParams value) { if (longParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLongParamIsMutable(); longParam_.add(value); onChanged(); } else { longParamBuilder_.addMessage(value); } return this; } public Builder addLongParam( int index, com.sensei.search.req.protobuf.SenseiProtos.LongParams value) { if (longParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLongParamIsMutable(); longParam_.add(index, value); onChanged(); } else { longParamBuilder_.addMessage(index, value); } return this; } public Builder addLongParam( com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder builderForValue) { if (longParamBuilder_ == null) { ensureLongParamIsMutable(); longParam_.add(builderForValue.build()); onChanged(); } else { longParamBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addLongParam( int index, com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder builderForValue) { if (longParamBuilder_ == null) { ensureLongParamIsMutable(); longParam_.add(index, builderForValue.build()); onChanged(); } else { longParamBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllLongParam( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.LongParams> values) { if (longParamBuilder_ == null) { ensureLongParamIsMutable(); super.addAll(values, longParam_); onChanged(); } else { longParamBuilder_.addAllMessages(values); } return this; } public Builder clearLongParam() { if (longParamBuilder_ == null) { longParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { longParamBuilder_.clear(); } return this; } public Builder removeLongParam(int index) { if (longParamBuilder_ == null) { ensureLongParamIsMutable(); longParam_.remove(index); onChanged(); } else { longParamBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder getLongParamBuilder( int index) { return getLongParamFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder getLongParamOrBuilder( int index) { if (longParamBuilder_ == null) { return longParam_.get(index); } else { return longParamBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder> getLongParamOrBuilderList() { if (longParamBuilder_ != null) { return longParamBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(longParam_); } } public com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder addLongParamBuilder() { return getLongParamFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.LongParams.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder addLongParamBuilder( int index) { return getLongParamFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.LongParams.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder> getLongParamBuilderList() { return getLongParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.LongParams, com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder> getLongParamFieldBuilder() { if (longParamBuilder_ == null) { longParamBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.LongParams, com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.LongParamsOrBuilder>( longParam_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); longParam_ = null; } return longParamBuilder_; } // repeated .com.sensei.search.req.protobuf.StringParams string_param = 4; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringParams> stringParam_ = java.util.Collections.emptyList(); private void ensureStringParamIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { stringParam_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.StringParams>(stringParam_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringParams, com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder> stringParamBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringParams> getStringParamList() { if (stringParamBuilder_ == null) { return java.util.Collections.unmodifiableList(stringParam_); } else { return stringParamBuilder_.getMessageList(); } } public int getStringParamCount() { if (stringParamBuilder_ == null) { return stringParam_.size(); } else { return stringParamBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.StringParams getStringParam(int index) { if (stringParamBuilder_ == null) { return stringParam_.get(index); } else { return stringParamBuilder_.getMessage(index); } } public Builder setStringParam( int index, com.sensei.search.req.protobuf.SenseiProtos.StringParams value) { if (stringParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStringParamIsMutable(); stringParam_.set(index, value); onChanged(); } else { stringParamBuilder_.setMessage(index, value); } return this; } public Builder setStringParam( int index, com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder builderForValue) { if (stringParamBuilder_ == null) { ensureStringParamIsMutable(); stringParam_.set(index, builderForValue.build()); onChanged(); } else { stringParamBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addStringParam(com.sensei.search.req.protobuf.SenseiProtos.StringParams value) { if (stringParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStringParamIsMutable(); stringParam_.add(value); onChanged(); } else { stringParamBuilder_.addMessage(value); } return this; } public Builder addStringParam( int index, com.sensei.search.req.protobuf.SenseiProtos.StringParams value) { if (stringParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStringParamIsMutable(); stringParam_.add(index, value); onChanged(); } else { stringParamBuilder_.addMessage(index, value); } return this; } public Builder addStringParam( com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder builderForValue) { if (stringParamBuilder_ == null) { ensureStringParamIsMutable(); stringParam_.add(builderForValue.build()); onChanged(); } else { stringParamBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addStringParam( int index, com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder builderForValue) { if (stringParamBuilder_ == null) { ensureStringParamIsMutable(); stringParam_.add(index, builderForValue.build()); onChanged(); } else { stringParamBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllStringParam( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.StringParams> values) { if (stringParamBuilder_ == null) { ensureStringParamIsMutable(); super.addAll(values, stringParam_); onChanged(); } else { stringParamBuilder_.addAllMessages(values); } return this; } public Builder clearStringParam() { if (stringParamBuilder_ == null) { stringParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { stringParamBuilder_.clear(); } return this; } public Builder removeStringParam(int index) { if (stringParamBuilder_ == null) { ensureStringParamIsMutable(); stringParam_.remove(index); onChanged(); } else { stringParamBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder getStringParamBuilder( int index) { return getStringParamFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder getStringParamOrBuilder( int index) { if (stringParamBuilder_ == null) { return stringParam_.get(index); } else { return stringParamBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder> getStringParamOrBuilderList() { if (stringParamBuilder_ != null) { return stringParamBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(stringParam_); } } public com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder addStringParamBuilder() { return getStringParamFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.StringParams.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder addStringParamBuilder( int index) { return getStringParamFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.StringParams.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder> getStringParamBuilderList() { return getStringParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringParams, com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder> getStringParamFieldBuilder() { if (stringParamBuilder_ == null) { stringParamBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringParams, com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringParamsOrBuilder>( stringParam_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); stringParam_ = null; } return stringParamBuilder_; } // repeated .com.sensei.search.req.protobuf.DoubleParams double_param = 5; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams> doubleParam_ = java.util.Collections.emptyList(); private void ensureDoubleParamIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { doubleParam_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams>(doubleParam_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.DoubleParams, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder> doubleParamBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams> getDoubleParamList() { if (doubleParamBuilder_ == null) { return java.util.Collections.unmodifiableList(doubleParam_); } else { return doubleParamBuilder_.getMessageList(); } } public int getDoubleParamCount() { if (doubleParamBuilder_ == null) { return doubleParam_.size(); } else { return doubleParamBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams getDoubleParam(int index) { if (doubleParamBuilder_ == null) { return doubleParam_.get(index); } else { return doubleParamBuilder_.getMessage(index); } } public Builder setDoubleParam( int index, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams value) { if (doubleParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDoubleParamIsMutable(); doubleParam_.set(index, value); onChanged(); } else { doubleParamBuilder_.setMessage(index, value); } return this; } public Builder setDoubleParam( int index, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder builderForValue) { if (doubleParamBuilder_ == null) { ensureDoubleParamIsMutable(); doubleParam_.set(index, builderForValue.build()); onChanged(); } else { doubleParamBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addDoubleParam(com.sensei.search.req.protobuf.SenseiProtos.DoubleParams value) { if (doubleParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDoubleParamIsMutable(); doubleParam_.add(value); onChanged(); } else { doubleParamBuilder_.addMessage(value); } return this; } public Builder addDoubleParam( int index, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams value) { if (doubleParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDoubleParamIsMutable(); doubleParam_.add(index, value); onChanged(); } else { doubleParamBuilder_.addMessage(index, value); } return this; } public Builder addDoubleParam( com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder builderForValue) { if (doubleParamBuilder_ == null) { ensureDoubleParamIsMutable(); doubleParam_.add(builderForValue.build()); onChanged(); } else { doubleParamBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addDoubleParam( int index, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder builderForValue) { if (doubleParamBuilder_ == null) { ensureDoubleParamIsMutable(); doubleParam_.add(index, builderForValue.build()); onChanged(); } else { doubleParamBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllDoubleParam( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.DoubleParams> values) { if (doubleParamBuilder_ == null) { ensureDoubleParamIsMutable(); super.addAll(values, doubleParam_); onChanged(); } else { doubleParamBuilder_.addAllMessages(values); } return this; } public Builder clearDoubleParam() { if (doubleParamBuilder_ == null) { doubleParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { doubleParamBuilder_.clear(); } return this; } public Builder removeDoubleParam(int index) { if (doubleParamBuilder_ == null) { ensureDoubleParamIsMutable(); doubleParam_.remove(index); onChanged(); } else { doubleParamBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder getDoubleParamBuilder( int index) { return getDoubleParamFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder getDoubleParamOrBuilder( int index) { if (doubleParamBuilder_ == null) { return doubleParam_.get(index); } else { return doubleParamBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder> getDoubleParamOrBuilderList() { if (doubleParamBuilder_ != null) { return doubleParamBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(doubleParam_); } } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder addDoubleParamBuilder() { return getDoubleParamFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder addDoubleParamBuilder( int index) { return getDoubleParamFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder> getDoubleParamBuilderList() { return getDoubleParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.DoubleParams, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder> getDoubleParamFieldBuilder() { if (doubleParamBuilder_ == null) { doubleParamBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.DoubleParams, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.DoubleParamsOrBuilder>( doubleParam_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); doubleParam_ = null; } return doubleParamBuilder_; } // repeated .com.sensei.search.req.protobuf.ByteArrayParams byte_param = 6; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams> byteParam_ = java.util.Collections.emptyList(); private void ensureByteParamIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { byteParam_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams>(byteParam_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder> byteParamBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams> getByteParamList() { if (byteParamBuilder_ == null) { return java.util.Collections.unmodifiableList(byteParam_); } else { return byteParamBuilder_.getMessageList(); } } public int getByteParamCount() { if (byteParamBuilder_ == null) { return byteParam_.size(); } else { return byteParamBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams getByteParam(int index) { if (byteParamBuilder_ == null) { return byteParam_.get(index); } else { return byteParamBuilder_.getMessage(index); } } public Builder setByteParam( int index, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams value) { if (byteParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureByteParamIsMutable(); byteParam_.set(index, value); onChanged(); } else { byteParamBuilder_.setMessage(index, value); } return this; } public Builder setByteParam( int index, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder builderForValue) { if (byteParamBuilder_ == null) { ensureByteParamIsMutable(); byteParam_.set(index, builderForValue.build()); onChanged(); } else { byteParamBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addByteParam(com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams value) { if (byteParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureByteParamIsMutable(); byteParam_.add(value); onChanged(); } else { byteParamBuilder_.addMessage(value); } return this; } public Builder addByteParam( int index, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams value) { if (byteParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureByteParamIsMutable(); byteParam_.add(index, value); onChanged(); } else { byteParamBuilder_.addMessage(index, value); } return this; } public Builder addByteParam( com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder builderForValue) { if (byteParamBuilder_ == null) { ensureByteParamIsMutable(); byteParam_.add(builderForValue.build()); onChanged(); } else { byteParamBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addByteParam( int index, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder builderForValue) { if (byteParamBuilder_ == null) { ensureByteParamIsMutable(); byteParam_.add(index, builderForValue.build()); onChanged(); } else { byteParamBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllByteParam( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams> values) { if (byteParamBuilder_ == null) { ensureByteParamIsMutable(); super.addAll(values, byteParam_); onChanged(); } else { byteParamBuilder_.addAllMessages(values); } return this; } public Builder clearByteParam() { if (byteParamBuilder_ == null) { byteParam_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { byteParamBuilder_.clear(); } return this; } public Builder removeByteParam(int index) { if (byteParamBuilder_ == null) { ensureByteParamIsMutable(); byteParam_.remove(index); onChanged(); } else { byteParamBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder getByteParamBuilder( int index) { return getByteParamFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder getByteParamOrBuilder( int index) { if (byteParamBuilder_ == null) { return byteParam_.get(index); } else { return byteParamBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder> getByteParamOrBuilderList() { if (byteParamBuilder_ != null) { return byteParamBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(byteParam_); } } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder addByteParamBuilder() { return getByteParamFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder addByteParamBuilder( int index) { return getByteParamFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder> getByteParamBuilderList() { return getByteParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder> getByteParamFieldBuilder() { if (byteParamBuilder_ == null) { byteParamBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParamsOrBuilder>( byteParam_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); byteParam_ = null; } return byteParamBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FacetHandlerInitializerParam) } static { defaultInstance = new FacetHandlerInitializerParam(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FacetHandlerInitializerParam) } public interface FacetHandlerInitializerParamsOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string key = 1; java.util.List<String> getKeyList(); int getKeyCount(); String getKey(int index); // repeated .com.sensei.search.req.protobuf.FacetHandlerInitializerParam value = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam> getValueList(); com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam getValue(int index); int getValueCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder> getValueOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder getValueOrBuilder( int index); } public static final class FacetHandlerInitializerParams extends com.google.protobuf.GeneratedMessage implements FacetHandlerInitializerParamsOrBuilder { // Use FacetHandlerInitializerParams.newBuilder() to construct. private FacetHandlerInitializerParams(Builder builder) { super(builder); } private FacetHandlerInitializerParams(boolean noInit) {} private static final FacetHandlerInitializerParams defaultInstance; public static FacetHandlerInitializerParams getDefaultInstance() { return defaultInstance; } public FacetHandlerInitializerParams getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_fieldAccessorTable; } // repeated string key = 1; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; public java.util.List<String> getKeyList() { return key_; } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } // repeated .com.sensei.search.req.protobuf.FacetHandlerInitializerParam value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam> value_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam> getValueList() { return value_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder> getValueOrBuilderList() { return value_; } public int getValueCount() { return value_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam getValue(int index) { return value_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder getValueOrBuilder( int index) { return value_.get(index); } private void initFields() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(2, value_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, value_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getValueFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valueBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams build() { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams result = new com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList( key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); valueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureKeyIsMutable(); key_.add(input.readBytes()); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addValue(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated string key = 1; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } public java.util.List<String> getKeyList() { return java.util.Collections.unmodifiableList(key_); } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } public Builder setKey( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } public Builder addKey(String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } public Builder addAllKey( java.lang.Iterable<String> values) { ensureKeyIsMutable(); super.addAll(values, key_); onChanged(); return this; } public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addKey(com.google.protobuf.ByteString value) { ensureKeyIsMutable(); key_.add(value); onChanged(); } // repeated .com.sensei.search.req.protobuf.FacetHandlerInitializerParam value = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam> value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam>(value_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder> valueBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam> getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addValue(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } public Builder addValue( com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllValue( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam> values) { if (valueBuilder_ == null) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valueBuilder_.clear(); } return this; } public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder> getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder> getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamOrBuilder>( value_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FacetHandlerInitializerParams) } static { defaultInstance = new FacetHandlerInitializerParams(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FacetHandlerInitializerParams) } public interface SenseiProtoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .com.sensei.search.req.protobuf.BrowseSelection selection = 1; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection> getSelectionList(); com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection getSelection(int index); int getSelectionCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder> getSelectionOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder getSelectionOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.SortField sort_spec = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SortField> getSortSpecList(); com.sensei.search.req.protobuf.SenseiProtos.SortField getSortSpec(int index); int getSortSpecCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder> getSortSpecOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder getSortSpecOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.FacetSpec facet_spec = 3; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec> getFacetSpecList(); com.sensei.search.req.protobuf.SenseiProtos.FacetSpec getFacetSpec(int index); int getFacetSpecCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder> getFacetSpecOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder getFacetSpecOrBuilder( int index); // optional string sensei_query = 4; boolean hasSenseiQuery(); String getSenseiQuery(); // optional int32 offset = 5; boolean hasOffset(); int getOffset(); // optional int32 count = 6; boolean hasCount(); int getCount(); // optional bool fetch_stored_fields = 7; boolean hasFetchStoredFields(); boolean getFetchStoredFields(); // optional bool fetch_stored_value = 8; boolean hasFetchStoredValue(); boolean getFetchStoredValue(); // optional .com.sensei.search.req.protobuf.FacetHandlerInitializerParams facet_handler_param = 9; boolean hasFacetHandlerParam(); com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams getFacetHandlerParam(); com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder getFacetHandlerParamOrBuilder(); // repeated int32 partitions = 10; java.util.List<java.lang.Integer> getPartitionsList(); int getPartitionsCount(); int getPartitions(int index); // optional bool explain = 11; boolean hasExplain(); boolean getExplain(); // optional string route_param = 12; boolean hasRouteParam(); String getRouteParam(); // repeated string group_by = 13; java.util.List<String> getGroupByList(); int getGroupByCount(); String getGroupBy(int index); // repeated string distinct = 15; java.util.List<String> getDistinctList(); int getDistinctCount(); String getDistinct(int index); // optional int32 max_per_group = 16; boolean hasMaxPerGroup(); int getMaxPerGroup(); // repeated string term_vectors_to_fetch = 17; java.util.List<String> getTermVectorsToFetchList(); int getTermVectorsToFetchCount(); String getTermVectorsToFetch(int index); // repeated string select_list = 18; java.util.List<String> getSelectListList(); int getSelectListCount(); String getSelectList(int index); // optional .com.sensei.search.req.protobuf.SenseiMapReduceFunction map_reduce = 19; boolean hasMapReduce(); com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction getMapReduce(); // repeated string map_reduce_columns = 20; java.util.List<String> getMapReduceColumnsList(); int getMapReduceColumnsCount(); String getMapReduceColumns(int index); // optional bytes map_reduce_bytes = 21; boolean hasMapReduceBytes(); com.google.protobuf.ByteString getMapReduceBytes(); } public static final class SenseiProtoRequest extends com.google.protobuf.GeneratedMessage implements SenseiProtoRequestOrBuilder { // Use SenseiProtoRequest.newBuilder() to construct. private SenseiProtoRequest(Builder builder) { super(builder); } private SenseiProtoRequest(boolean noInit) {} private static final SenseiProtoRequest defaultInstance; public static SenseiProtoRequest getDefaultInstance() { return defaultInstance; } public SenseiProtoRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_fieldAccessorTable; } private int bitField0_; // repeated .com.sensei.search.req.protobuf.BrowseSelection selection = 1; public static final int SELECTION_FIELD_NUMBER = 1; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection> selection_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection> getSelectionList() { return selection_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder> getSelectionOrBuilderList() { return selection_; } public int getSelectionCount() { return selection_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection getSelection(int index) { return selection_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder getSelectionOrBuilder( int index) { return selection_.get(index); } // repeated .com.sensei.search.req.protobuf.SortField sort_spec = 2; public static final int SORT_SPEC_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SortField> sortSpec_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SortField> getSortSpecList() { return sortSpec_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder> getSortSpecOrBuilderList() { return sortSpec_; } public int getSortSpecCount() { return sortSpec_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.SortField getSortSpec(int index) { return sortSpec_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder getSortSpecOrBuilder( int index) { return sortSpec_.get(index); } // repeated .com.sensei.search.req.protobuf.FacetSpec facet_spec = 3; public static final int FACET_SPEC_FIELD_NUMBER = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec> facetSpec_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec> getFacetSpecList() { return facetSpec_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder> getFacetSpecOrBuilderList() { return facetSpec_; } public int getFacetSpecCount() { return facetSpec_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec getFacetSpec(int index) { return facetSpec_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder getFacetSpecOrBuilder( int index) { return facetSpec_.get(index); } // optional string sensei_query = 4; public static final int SENSEI_QUERY_FIELD_NUMBER = 4; private Object senseiQuery_; public boolean hasSenseiQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getSenseiQuery() { Object ref = senseiQuery_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { senseiQuery_ = s; } return s; } } private com.google.protobuf.ByteString getSenseiQueryBytes() { Object ref = senseiQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); senseiQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 offset = 5; public static final int OFFSET_FIELD_NUMBER = 5; private int offset_; public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getOffset() { return offset_; } // optional int32 count = 6; public static final int COUNT_FIELD_NUMBER = 6; private int count_; public boolean hasCount() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getCount() { return count_; } // optional bool fetch_stored_fields = 7; public static final int FETCH_STORED_FIELDS_FIELD_NUMBER = 7; private boolean fetchStoredFields_; public boolean hasFetchStoredFields() { return ((bitField0_ & 0x00000008) == 0x00000008); } public boolean getFetchStoredFields() { return fetchStoredFields_; } // optional bool fetch_stored_value = 8; public static final int FETCH_STORED_VALUE_FIELD_NUMBER = 8; private boolean fetchStoredValue_; public boolean hasFetchStoredValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } public boolean getFetchStoredValue() { return fetchStoredValue_; } // optional .com.sensei.search.req.protobuf.FacetHandlerInitializerParams facet_handler_param = 9; public static final int FACET_HANDLER_PARAM_FIELD_NUMBER = 9; private com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams facetHandlerParam_; public boolean hasFacetHandlerParam() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams getFacetHandlerParam() { return facetHandlerParam_; } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder getFacetHandlerParamOrBuilder() { return facetHandlerParam_; } // repeated int32 partitions = 10; public static final int PARTITIONS_FIELD_NUMBER = 10; private java.util.List<java.lang.Integer> partitions_; public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } // optional bool explain = 11; public static final int EXPLAIN_FIELD_NUMBER = 11; private boolean explain_; public boolean hasExplain() { return ((bitField0_ & 0x00000040) == 0x00000040); } public boolean getExplain() { return explain_; } // optional string route_param = 12; public static final int ROUTE_PARAM_FIELD_NUMBER = 12; private Object routeParam_; public boolean hasRouteParam() { return ((bitField0_ & 0x00000080) == 0x00000080); } public String getRouteParam() { Object ref = routeParam_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { routeParam_ = s; } return s; } } private com.google.protobuf.ByteString getRouteParamBytes() { Object ref = routeParam_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); routeParam_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string group_by = 13; public static final int GROUP_BY_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList groupBy_; public java.util.List<String> getGroupByList() { return groupBy_; } public int getGroupByCount() { return groupBy_.size(); } public String getGroupBy(int index) { return groupBy_.get(index); } // repeated string distinct = 15; public static final int DISTINCT_FIELD_NUMBER = 15; private com.google.protobuf.LazyStringList distinct_; public java.util.List<String> getDistinctList() { return distinct_; } public int getDistinctCount() { return distinct_.size(); } public String getDistinct(int index) { return distinct_.get(index); } // optional int32 max_per_group = 16; public static final int MAX_PER_GROUP_FIELD_NUMBER = 16; private int maxPerGroup_; public boolean hasMaxPerGroup() { return ((bitField0_ & 0x00000100) == 0x00000100); } public int getMaxPerGroup() { return maxPerGroup_; } // repeated string term_vectors_to_fetch = 17; public static final int TERM_VECTORS_TO_FETCH_FIELD_NUMBER = 17; private com.google.protobuf.LazyStringList termVectorsToFetch_; public java.util.List<String> getTermVectorsToFetchList() { return termVectorsToFetch_; } public int getTermVectorsToFetchCount() { return termVectorsToFetch_.size(); } public String getTermVectorsToFetch(int index) { return termVectorsToFetch_.get(index); } // repeated string select_list = 18; public static final int SELECT_LIST_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList selectList_; public java.util.List<String> getSelectListList() { return selectList_; } public int getSelectListCount() { return selectList_.size(); } public String getSelectList(int index) { return selectList_.get(index); } // optional .com.sensei.search.req.protobuf.SenseiMapReduceFunction map_reduce = 19; public static final int MAP_REDUCE_FIELD_NUMBER = 19; private com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction mapReduce_; public boolean hasMapReduce() { return ((bitField0_ & 0x00000200) == 0x00000200); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction getMapReduce() { return mapReduce_; } // repeated string map_reduce_columns = 20; public static final int MAP_REDUCE_COLUMNS_FIELD_NUMBER = 20; private com.google.protobuf.LazyStringList mapReduceColumns_; public java.util.List<String> getMapReduceColumnsList() { return mapReduceColumns_; } public int getMapReduceColumnsCount() { return mapReduceColumns_.size(); } public String getMapReduceColumns(int index) { return mapReduceColumns_.get(index); } // optional bytes map_reduce_bytes = 21; public static final int MAP_REDUCE_BYTES_FIELD_NUMBER = 21; private com.google.protobuf.ByteString mapReduceBytes_; public boolean hasMapReduceBytes() { return ((bitField0_ & 0x00000400) == 0x00000400); } public com.google.protobuf.ByteString getMapReduceBytes() { return mapReduceBytes_; } private void initFields() { selection_ = java.util.Collections.emptyList(); sortSpec_ = java.util.Collections.emptyList(); facetSpec_ = java.util.Collections.emptyList(); senseiQuery_ = ""; offset_ = 0; count_ = 0; fetchStoredFields_ = false; fetchStoredValue_ = false; facetHandlerParam_ = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance(); partitions_ = java.util.Collections.emptyList();; explain_ = false; routeParam_ = ""; groupBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; distinct_ = com.google.protobuf.LazyStringArrayList.EMPTY; maxPerGroup_ = 0; termVectorsToFetch_ = com.google.protobuf.LazyStringArrayList.EMPTY; selectList_ = com.google.protobuf.LazyStringArrayList.EMPTY; mapReduce_ = com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction.AVG; mapReduceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; mapReduceBytes_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < selection_.size(); i++) { output.writeMessage(1, selection_.get(i)); } for (int i = 0; i < sortSpec_.size(); i++) { output.writeMessage(2, sortSpec_.get(i)); } for (int i = 0; i < facetSpec_.size(); i++) { output.writeMessage(3, facetSpec_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(4, getSenseiQueryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(5, offset_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(6, count_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(7, fetchStoredFields_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(8, fetchStoredValue_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(9, facetHandlerParam_); } for (int i = 0; i < partitions_.size(); i++) { output.writeInt32(10, partitions_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(11, explain_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(12, getRouteParamBytes()); } for (int i = 0; i < groupBy_.size(); i++) { output.writeBytes(13, groupBy_.getByteString(i)); } for (int i = 0; i < distinct_.size(); i++) { output.writeBytes(15, distinct_.getByteString(i)); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(16, maxPerGroup_); } for (int i = 0; i < termVectorsToFetch_.size(); i++) { output.writeBytes(17, termVectorsToFetch_.getByteString(i)); } for (int i = 0; i < selectList_.size(); i++) { output.writeBytes(18, selectList_.getByteString(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeEnum(19, mapReduce_.getNumber()); } for (int i = 0; i < mapReduceColumns_.size(); i++) { output.writeBytes(20, mapReduceColumns_.getByteString(i)); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(21, mapReduceBytes_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < selection_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, selection_.get(i)); } for (int i = 0; i < sortSpec_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, sortSpec_.get(i)); } for (int i = 0; i < facetSpec_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, facetSpec_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getSenseiQueryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, offset_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, count_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, fetchStoredFields_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, fetchStoredValue_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, facetHandlerParam_); } { int dataSize = 0; for (int i = 0; i < partitions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(partitions_.get(i)); } size += dataSize; size += 1 * getPartitionsList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, explain_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, getRouteParamBytes()); } { int dataSize = 0; for (int i = 0; i < groupBy_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(groupBy_.getByteString(i)); } size += dataSize; size += 1 * getGroupByList().size(); } { int dataSize = 0; for (int i = 0; i < distinct_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(distinct_.getByteString(i)); } size += dataSize; size += 1 * getDistinctList().size(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, maxPerGroup_); } { int dataSize = 0; for (int i = 0; i < termVectorsToFetch_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(termVectorsToFetch_.getByteString(i)); } size += dataSize; size += 2 * getTermVectorsToFetchList().size(); } { int dataSize = 0; for (int i = 0; i < selectList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(selectList_.getByteString(i)); } size += dataSize; size += 2 * getSelectListList().size(); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(19, mapReduce_.getNumber()); } { int dataSize = 0; for (int i = 0; i < mapReduceColumns_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(mapReduceColumns_.getByteString(i)); } size += dataSize; size += 2 * getMapReduceColumnsList().size(); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(21, mapReduceBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSelectionFieldBuilder(); getSortSpecFieldBuilder(); getFacetSpecFieldBuilder(); getFacetHandlerParamFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (selectionBuilder_ == null) { selection_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { selectionBuilder_.clear(); } if (sortSpecBuilder_ == null) { sortSpec_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { sortSpecBuilder_.clear(); } if (facetSpecBuilder_ == null) { facetSpec_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { facetSpecBuilder_.clear(); } senseiQuery_ = ""; bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0; bitField0_ = (bitField0_ & ~0x00000010); count_ = 0; bitField0_ = (bitField0_ & ~0x00000020); fetchStoredFields_ = false; bitField0_ = (bitField0_ & ~0x00000040); fetchStoredValue_ = false; bitField0_ = (bitField0_ & ~0x00000080); if (facetHandlerParamBuilder_ == null) { facetHandlerParam_ = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance(); } else { facetHandlerParamBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); partitions_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000200); explain_ = false; bitField0_ = (bitField0_ & ~0x00000400); routeParam_ = ""; bitField0_ = (bitField0_ & ~0x00000800); groupBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); distinct_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00002000); maxPerGroup_ = 0; bitField0_ = (bitField0_ & ~0x00004000); termVectorsToFetch_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00008000); selectList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00010000); mapReduce_ = com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction.AVG; bitField0_ = (bitField0_ & ~0x00020000); mapReduceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00040000); mapReduceBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00080000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest build() { com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest result = new com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (selectionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { selection_ = java.util.Collections.unmodifiableList(selection_); bitField0_ = (bitField0_ & ~0x00000001); } result.selection_ = selection_; } else { result.selection_ = selectionBuilder_.build(); } if (sortSpecBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { sortSpec_ = java.util.Collections.unmodifiableList(sortSpec_); bitField0_ = (bitField0_ & ~0x00000002); } result.sortSpec_ = sortSpec_; } else { result.sortSpec_ = sortSpecBuilder_.build(); } if (facetSpecBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { facetSpec_ = java.util.Collections.unmodifiableList(facetSpec_); bitField0_ = (bitField0_ & ~0x00000004); } result.facetSpec_ = facetSpec_; } else { result.facetSpec_ = facetSpecBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000001; } result.senseiQuery_ = senseiQuery_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000002; } result.offset_ = offset_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000004; } result.count_ = count_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000008; } result.fetchStoredFields_ = fetchStoredFields_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000010; } result.fetchStoredValue_ = fetchStoredValue_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000020; } if (facetHandlerParamBuilder_ == null) { result.facetHandlerParam_ = facetHandlerParam_; } else { result.facetHandlerParam_ = facetHandlerParamBuilder_.build(); } if (((bitField0_ & 0x00000200) == 0x00000200)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000200); } result.partitions_ = partitions_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000040; } result.explain_ = explain_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000080; } result.routeParam_ = routeParam_; if (((bitField0_ & 0x00001000) == 0x00001000)) { groupBy_ = new com.google.protobuf.UnmodifiableLazyStringList( groupBy_); bitField0_ = (bitField0_ & ~0x00001000); } result.groupBy_ = groupBy_; if (((bitField0_ & 0x00002000) == 0x00002000)) { distinct_ = new com.google.protobuf.UnmodifiableLazyStringList( distinct_); bitField0_ = (bitField0_ & ~0x00002000); } result.distinct_ = distinct_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000100; } result.maxPerGroup_ = maxPerGroup_; if (((bitField0_ & 0x00008000) == 0x00008000)) { termVectorsToFetch_ = new com.google.protobuf.UnmodifiableLazyStringList( termVectorsToFetch_); bitField0_ = (bitField0_ & ~0x00008000); } result.termVectorsToFetch_ = termVectorsToFetch_; if (((bitField0_ & 0x00010000) == 0x00010000)) { selectList_ = new com.google.protobuf.UnmodifiableLazyStringList( selectList_); bitField0_ = (bitField0_ & ~0x00010000); } result.selectList_ = selectList_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00000200; } result.mapReduce_ = mapReduce_; if (((bitField0_ & 0x00040000) == 0x00040000)) { mapReduceColumns_ = new com.google.protobuf.UnmodifiableLazyStringList( mapReduceColumns_); bitField0_ = (bitField0_ & ~0x00040000); } result.mapReduceColumns_ = mapReduceColumns_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00000400; } result.mapReduceBytes_ = mapReduceBytes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest.getDefaultInstance()) return this; if (selectionBuilder_ == null) { if (!other.selection_.isEmpty()) { if (selection_.isEmpty()) { selection_ = other.selection_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSelectionIsMutable(); selection_.addAll(other.selection_); } onChanged(); } } else { if (!other.selection_.isEmpty()) { if (selectionBuilder_.isEmpty()) { selectionBuilder_.dispose(); selectionBuilder_ = null; selection_ = other.selection_; bitField0_ = (bitField0_ & ~0x00000001); selectionBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSelectionFieldBuilder() : null; } else { selectionBuilder_.addAllMessages(other.selection_); } } } if (sortSpecBuilder_ == null) { if (!other.sortSpec_.isEmpty()) { if (sortSpec_.isEmpty()) { sortSpec_ = other.sortSpec_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSortSpecIsMutable(); sortSpec_.addAll(other.sortSpec_); } onChanged(); } } else { if (!other.sortSpec_.isEmpty()) { if (sortSpecBuilder_.isEmpty()) { sortSpecBuilder_.dispose(); sortSpecBuilder_ = null; sortSpec_ = other.sortSpec_; bitField0_ = (bitField0_ & ~0x00000002); sortSpecBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSortSpecFieldBuilder() : null; } else { sortSpecBuilder_.addAllMessages(other.sortSpec_); } } } if (facetSpecBuilder_ == null) { if (!other.facetSpec_.isEmpty()) { if (facetSpec_.isEmpty()) { facetSpec_ = other.facetSpec_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFacetSpecIsMutable(); facetSpec_.addAll(other.facetSpec_); } onChanged(); } } else { if (!other.facetSpec_.isEmpty()) { if (facetSpecBuilder_.isEmpty()) { facetSpecBuilder_.dispose(); facetSpecBuilder_ = null; facetSpec_ = other.facetSpec_; bitField0_ = (bitField0_ & ~0x00000004); facetSpecBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFacetSpecFieldBuilder() : null; } else { facetSpecBuilder_.addAllMessages(other.facetSpec_); } } } if (other.hasSenseiQuery()) { setSenseiQuery(other.getSenseiQuery()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasFetchStoredFields()) { setFetchStoredFields(other.getFetchStoredFields()); } if (other.hasFetchStoredValue()) { setFetchStoredValue(other.getFetchStoredValue()); } if (other.hasFacetHandlerParam()) { mergeFacetHandlerParam(other.getFacetHandlerParam()); } if (!other.partitions_.isEmpty()) { if (partitions_.isEmpty()) { partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); } onChanged(); } if (other.hasExplain()) { setExplain(other.getExplain()); } if (other.hasRouteParam()) { setRouteParam(other.getRouteParam()); } if (!other.groupBy_.isEmpty()) { if (groupBy_.isEmpty()) { groupBy_ = other.groupBy_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureGroupByIsMutable(); groupBy_.addAll(other.groupBy_); } onChanged(); } if (!other.distinct_.isEmpty()) { if (distinct_.isEmpty()) { distinct_ = other.distinct_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureDistinctIsMutable(); distinct_.addAll(other.distinct_); } onChanged(); } if (other.hasMaxPerGroup()) { setMaxPerGroup(other.getMaxPerGroup()); } if (!other.termVectorsToFetch_.isEmpty()) { if (termVectorsToFetch_.isEmpty()) { termVectorsToFetch_ = other.termVectorsToFetch_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureTermVectorsToFetchIsMutable(); termVectorsToFetch_.addAll(other.termVectorsToFetch_); } onChanged(); } if (!other.selectList_.isEmpty()) { if (selectList_.isEmpty()) { selectList_ = other.selectList_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureSelectListIsMutable(); selectList_.addAll(other.selectList_); } onChanged(); } if (other.hasMapReduce()) { setMapReduce(other.getMapReduce()); } if (!other.mapReduceColumns_.isEmpty()) { if (mapReduceColumns_.isEmpty()) { mapReduceColumns_ = other.mapReduceColumns_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureMapReduceColumnsIsMutable(); mapReduceColumns_.addAll(other.mapReduceColumns_); } onChanged(); } if (other.hasMapReduceBytes()) { setMapReduceBytes(other.getMapReduceBytes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addSelection(subBuilder.buildPartial()); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.SortField.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addSortSpec(subBuilder.buildPartial()); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addFacetSpec(subBuilder.buildPartial()); break; } case 34: { bitField0_ |= 0x00000008; senseiQuery_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; offset_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; count_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; fetchStoredFields_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000080; fetchStoredValue_ = input.readBool(); break; } case 74: { com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.newBuilder(); if (hasFacetHandlerParam()) { subBuilder.mergeFrom(getFacetHandlerParam()); } input.readMessage(subBuilder, extensionRegistry); setFacetHandlerParam(subBuilder.buildPartial()); break; } case 80: { ensurePartitionsIsMutable(); partitions_.add(input.readInt32()); break; } case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 88: { bitField0_ |= 0x00000400; explain_ = input.readBool(); break; } case 98: { bitField0_ |= 0x00000800; routeParam_ = input.readBytes(); break; } case 106: { ensureGroupByIsMutable(); groupBy_.add(input.readBytes()); break; } case 122: { ensureDistinctIsMutable(); distinct_.add(input.readBytes()); break; } case 128: { bitField0_ |= 0x00004000; maxPerGroup_ = input.readInt32(); break; } case 138: { ensureTermVectorsToFetchIsMutable(); termVectorsToFetch_.add(input.readBytes()); break; } case 146: { ensureSelectListIsMutable(); selectList_.add(input.readBytes()); break; } case 152: { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction value = com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(19, rawValue); } else { bitField0_ |= 0x00020000; mapReduce_ = value; } break; } case 162: { ensureMapReduceColumnsIsMutable(); mapReduceColumns_.add(input.readBytes()); break; } case 170: { bitField0_ |= 0x00080000; mapReduceBytes_ = input.readBytes(); break; } } } } private int bitField0_; // repeated .com.sensei.search.req.protobuf.BrowseSelection selection = 1; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection> selection_ = java.util.Collections.emptyList(); private void ensureSelectionIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { selection_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection>(selection_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder> selectionBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection> getSelectionList() { if (selectionBuilder_ == null) { return java.util.Collections.unmodifiableList(selection_); } else { return selectionBuilder_.getMessageList(); } } public int getSelectionCount() { if (selectionBuilder_ == null) { return selection_.size(); } else { return selectionBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection getSelection(int index) { if (selectionBuilder_ == null) { return selection_.get(index); } else { return selectionBuilder_.getMessage(index); } } public Builder setSelection( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectionIsMutable(); selection_.set(index, value); onChanged(); } else { selectionBuilder_.setMessage(index, value); } return this; } public Builder setSelection( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder builderForValue) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.set(index, builderForValue.build()); onChanged(); } else { selectionBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addSelection(com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectionIsMutable(); selection_.add(value); onChanged(); } else { selectionBuilder_.addMessage(value); } return this; } public Builder addSelection( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectionIsMutable(); selection_.add(index, value); onChanged(); } else { selectionBuilder_.addMessage(index, value); } return this; } public Builder addSelection( com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder builderForValue) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.add(builderForValue.build()); onChanged(); } else { selectionBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addSelection( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder builderForValue) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.add(index, builderForValue.build()); onChanged(); } else { selectionBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllSelection( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection> values) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); super.addAll(values, selection_); onChanged(); } else { selectionBuilder_.addAllMessages(values); } return this; } public Builder clearSelection() { if (selectionBuilder_ == null) { selection_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { selectionBuilder_.clear(); } return this; } public Builder removeSelection(int index) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.remove(index); onChanged(); } else { selectionBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder getSelectionBuilder( int index) { return getSelectionFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder getSelectionOrBuilder( int index) { if (selectionBuilder_ == null) { return selection_.get(index); } else { return selectionBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder> getSelectionOrBuilderList() { if (selectionBuilder_ != null) { return selectionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(selection_); } } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder addSelectionBuilder() { return getSelectionFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder addSelectionBuilder( int index) { return getSelectionFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder> getSelectionBuilderList() { return getSelectionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder> getSelectionFieldBuilder() { if (selectionBuilder_ == null) { selectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelectionOrBuilder>( selection_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); selection_ = null; } return selectionBuilder_; } // repeated .com.sensei.search.req.protobuf.SortField sort_spec = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SortField> sortSpec_ = java.util.Collections.emptyList(); private void ensureSortSpecIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { sortSpec_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.SortField>(sortSpec_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SortField, com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder, com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder> sortSpecBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SortField> getSortSpecList() { if (sortSpecBuilder_ == null) { return java.util.Collections.unmodifiableList(sortSpec_); } else { return sortSpecBuilder_.getMessageList(); } } public int getSortSpecCount() { if (sortSpecBuilder_ == null) { return sortSpec_.size(); } else { return sortSpecBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.SortField getSortSpec(int index) { if (sortSpecBuilder_ == null) { return sortSpec_.get(index); } else { return sortSpecBuilder_.getMessage(index); } } public Builder setSortSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.SortField value) { if (sortSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortSpecIsMutable(); sortSpec_.set(index, value); onChanged(); } else { sortSpecBuilder_.setMessage(index, value); } return this; } public Builder setSortSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder builderForValue) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.set(index, builderForValue.build()); onChanged(); } else { sortSpecBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addSortSpec(com.sensei.search.req.protobuf.SenseiProtos.SortField value) { if (sortSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortSpecIsMutable(); sortSpec_.add(value); onChanged(); } else { sortSpecBuilder_.addMessage(value); } return this; } public Builder addSortSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.SortField value) { if (sortSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortSpecIsMutable(); sortSpec_.add(index, value); onChanged(); } else { sortSpecBuilder_.addMessage(index, value); } return this; } public Builder addSortSpec( com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder builderForValue) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.add(builderForValue.build()); onChanged(); } else { sortSpecBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addSortSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder builderForValue) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.add(index, builderForValue.build()); onChanged(); } else { sortSpecBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllSortSpec( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.SortField> values) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); super.addAll(values, sortSpec_); onChanged(); } else { sortSpecBuilder_.addAllMessages(values); } return this; } public Builder clearSortSpec() { if (sortSpecBuilder_ == null) { sortSpec_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { sortSpecBuilder_.clear(); } return this; } public Builder removeSortSpec(int index) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.remove(index); onChanged(); } else { sortSpecBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder getSortSpecBuilder( int index) { return getSortSpecFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder getSortSpecOrBuilder( int index) { if (sortSpecBuilder_ == null) { return sortSpec_.get(index); } else { return sortSpecBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder> getSortSpecOrBuilderList() { if (sortSpecBuilder_ != null) { return sortSpecBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sortSpec_); } } public com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder addSortSpecBuilder() { return getSortSpecFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.SortField.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder addSortSpecBuilder( int index) { return getSortSpecFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.SortField.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder> getSortSpecBuilderList() { return getSortSpecFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SortField, com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder, com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder> getSortSpecFieldBuilder() { if (sortSpecBuilder_ == null) { sortSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SortField, com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder, com.sensei.search.req.protobuf.SenseiProtos.SortFieldOrBuilder>( sortSpec_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); sortSpec_ = null; } return sortSpecBuilder_; } // repeated .com.sensei.search.req.protobuf.FacetSpec facet_spec = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec> facetSpec_ = java.util.Collections.emptyList(); private void ensureFacetSpecIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { facetSpec_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec>(facetSpec_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetSpec, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder> facetSpecBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec> getFacetSpecList() { if (facetSpecBuilder_ == null) { return java.util.Collections.unmodifiableList(facetSpec_); } else { return facetSpecBuilder_.getMessageList(); } } public int getFacetSpecCount() { if (facetSpecBuilder_ == null) { return facetSpec_.size(); } else { return facetSpecBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec getFacetSpec(int index) { if (facetSpecBuilder_ == null) { return facetSpec_.get(index); } else { return facetSpecBuilder_.getMessage(index); } } public Builder setFacetSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec value) { if (facetSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetSpecIsMutable(); facetSpec_.set(index, value); onChanged(); } else { facetSpecBuilder_.setMessage(index, value); } return this; } public Builder setFacetSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder builderForValue) { if (facetSpecBuilder_ == null) { ensureFacetSpecIsMutable(); facetSpec_.set(index, builderForValue.build()); onChanged(); } else { facetSpecBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addFacetSpec(com.sensei.search.req.protobuf.SenseiProtos.FacetSpec value) { if (facetSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetSpecIsMutable(); facetSpec_.add(value); onChanged(); } else { facetSpecBuilder_.addMessage(value); } return this; } public Builder addFacetSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec value) { if (facetSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetSpecIsMutable(); facetSpec_.add(index, value); onChanged(); } else { facetSpecBuilder_.addMessage(index, value); } return this; } public Builder addFacetSpec( com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder builderForValue) { if (facetSpecBuilder_ == null) { ensureFacetSpecIsMutable(); facetSpec_.add(builderForValue.build()); onChanged(); } else { facetSpecBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addFacetSpec( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder builderForValue) { if (facetSpecBuilder_ == null) { ensureFacetSpecIsMutable(); facetSpec_.add(index, builderForValue.build()); onChanged(); } else { facetSpecBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllFacetSpec( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetSpec> values) { if (facetSpecBuilder_ == null) { ensureFacetSpecIsMutable(); super.addAll(values, facetSpec_); onChanged(); } else { facetSpecBuilder_.addAllMessages(values); } return this; } public Builder clearFacetSpec() { if (facetSpecBuilder_ == null) { facetSpec_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { facetSpecBuilder_.clear(); } return this; } public Builder removeFacetSpec(int index) { if (facetSpecBuilder_ == null) { ensureFacetSpecIsMutable(); facetSpec_.remove(index); onChanged(); } else { facetSpecBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder getFacetSpecBuilder( int index) { return getFacetSpecFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder getFacetSpecOrBuilder( int index) { if (facetSpecBuilder_ == null) { return facetSpec_.get(index); } else { return facetSpecBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder> getFacetSpecOrBuilderList() { if (facetSpecBuilder_ != null) { return facetSpecBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(facetSpec_); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder addFacetSpecBuilder() { return getFacetSpecFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder addFacetSpecBuilder( int index) { return getFacetSpecFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder> getFacetSpecBuilderList() { return getFacetSpecFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetSpec, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder> getFacetSpecFieldBuilder() { if (facetSpecBuilder_ == null) { facetSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetSpec, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetSpecOrBuilder>( facetSpec_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); facetSpec_ = null; } return facetSpecBuilder_; } // optional string sensei_query = 4; private Object senseiQuery_ = ""; public boolean hasSenseiQuery() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getSenseiQuery() { Object ref = senseiQuery_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); senseiQuery_ = s; return s; } else { return (String) ref; } } public Builder setSenseiQuery(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; senseiQuery_ = value; onChanged(); return this; } public Builder clearSenseiQuery() { bitField0_ = (bitField0_ & ~0x00000008); senseiQuery_ = getDefaultInstance().getSenseiQuery(); onChanged(); return this; } void setSenseiQuery(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000008; senseiQuery_ = value; onChanged(); } // optional int32 offset = 5; private int offset_ ; public boolean hasOffset() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getOffset() { return offset_; } public Builder setOffset(int value) { bitField0_ |= 0x00000010; offset_ = value; onChanged(); return this; } public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000010); offset_ = 0; onChanged(); return this; } // optional int32 count = 6; private int count_ ; public boolean hasCount() { return ((bitField0_ & 0x00000020) == 0x00000020); } public int getCount() { return count_; } public Builder setCount(int value) { bitField0_ |= 0x00000020; count_ = value; onChanged(); return this; } public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000020); count_ = 0; onChanged(); return this; } // optional bool fetch_stored_fields = 7; private boolean fetchStoredFields_ ; public boolean hasFetchStoredFields() { return ((bitField0_ & 0x00000040) == 0x00000040); } public boolean getFetchStoredFields() { return fetchStoredFields_; } public Builder setFetchStoredFields(boolean value) { bitField0_ |= 0x00000040; fetchStoredFields_ = value; onChanged(); return this; } public Builder clearFetchStoredFields() { bitField0_ = (bitField0_ & ~0x00000040); fetchStoredFields_ = false; onChanged(); return this; } // optional bool fetch_stored_value = 8; private boolean fetchStoredValue_ ; public boolean hasFetchStoredValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } public boolean getFetchStoredValue() { return fetchStoredValue_; } public Builder setFetchStoredValue(boolean value) { bitField0_ |= 0x00000080; fetchStoredValue_ = value; onChanged(); return this; } public Builder clearFetchStoredValue() { bitField0_ = (bitField0_ & ~0x00000080); fetchStoredValue_ = false; onChanged(); return this; } // optional .com.sensei.search.req.protobuf.FacetHandlerInitializerParams facet_handler_param = 9; private com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams facetHandlerParam_ = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder> facetHandlerParamBuilder_; public boolean hasFacetHandlerParam() { return ((bitField0_ & 0x00000100) == 0x00000100); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams getFacetHandlerParam() { if (facetHandlerParamBuilder_ == null) { return facetHandlerParam_; } else { return facetHandlerParamBuilder_.getMessage(); } } public Builder setFacetHandlerParam(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams value) { if (facetHandlerParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } facetHandlerParam_ = value; onChanged(); } else { facetHandlerParamBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } public Builder setFacetHandlerParam( com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder builderForValue) { if (facetHandlerParamBuilder_ == null) { facetHandlerParam_ = builderForValue.build(); onChanged(); } else { facetHandlerParamBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } public Builder mergeFacetHandlerParam(com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams value) { if (facetHandlerParamBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && facetHandlerParam_ != com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance()) { facetHandlerParam_ = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.newBuilder(facetHandlerParam_).mergeFrom(value).buildPartial(); } else { facetHandlerParam_ = value; } onChanged(); } else { facetHandlerParamBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } public Builder clearFacetHandlerParam() { if (facetHandlerParamBuilder_ == null) { facetHandlerParam_ = com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.getDefaultInstance(); onChanged(); } else { facetHandlerParamBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder getFacetHandlerParamBuilder() { bitField0_ |= 0x00000100; onChanged(); return getFacetHandlerParamFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder getFacetHandlerParamOrBuilder() { if (facetHandlerParamBuilder_ != null) { return facetHandlerParamBuilder_.getMessageOrBuilder(); } else { return facetHandlerParam_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder> getFacetHandlerParamFieldBuilder() { if (facetHandlerParamBuilder_ == null) { facetHandlerParamBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParamsOrBuilder>( facetHandlerParam_, getParentForChildren(), isClean()); facetHandlerParam_ = null; } return facetHandlerParamBuilder_; } // repeated int32 partitions = 10; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList();; private void ensurePartitionsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { partitions_ = new java.util.ArrayList<java.lang.Integer>(partitions_); bitField0_ |= 0x00000200; } } public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(partitions_); } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } public Builder setPartitions( int index, int value) { ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); return this; } public Builder addPartitions(int value) { ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { ensurePartitionsIsMutable(); super.addAll(values, partitions_); onChanged(); return this; } public Builder clearPartitions() { partitions_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } // optional bool explain = 11; private boolean explain_ ; public boolean hasExplain() { return ((bitField0_ & 0x00000400) == 0x00000400); } public boolean getExplain() { return explain_; } public Builder setExplain(boolean value) { bitField0_ |= 0x00000400; explain_ = value; onChanged(); return this; } public Builder clearExplain() { bitField0_ = (bitField0_ & ~0x00000400); explain_ = false; onChanged(); return this; } // optional string route_param = 12; private Object routeParam_ = ""; public boolean hasRouteParam() { return ((bitField0_ & 0x00000800) == 0x00000800); } public String getRouteParam() { Object ref = routeParam_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); routeParam_ = s; return s; } else { return (String) ref; } } public Builder setRouteParam(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; routeParam_ = value; onChanged(); return this; } public Builder clearRouteParam() { bitField0_ = (bitField0_ & ~0x00000800); routeParam_ = getDefaultInstance().getRouteParam(); onChanged(); return this; } void setRouteParam(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000800; routeParam_ = value; onChanged(); } // repeated string group_by = 13; private com.google.protobuf.LazyStringList groupBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupByIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { groupBy_ = new com.google.protobuf.LazyStringArrayList(groupBy_); bitField0_ |= 0x00001000; } } public java.util.List<String> getGroupByList() { return java.util.Collections.unmodifiableList(groupBy_); } public int getGroupByCount() { return groupBy_.size(); } public String getGroupBy(int index) { return groupBy_.get(index); } public Builder setGroupBy( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureGroupByIsMutable(); groupBy_.set(index, value); onChanged(); return this; } public Builder addGroupBy(String value) { if (value == null) { throw new NullPointerException(); } ensureGroupByIsMutable(); groupBy_.add(value); onChanged(); return this; } public Builder addAllGroupBy( java.lang.Iterable<String> values) { ensureGroupByIsMutable(); super.addAll(values, groupBy_); onChanged(); return this; } public Builder clearGroupBy() { groupBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } void addGroupBy(com.google.protobuf.ByteString value) { ensureGroupByIsMutable(); groupBy_.add(value); onChanged(); } // repeated string distinct = 15; private com.google.protobuf.LazyStringList distinct_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDistinctIsMutable() { if (!((bitField0_ & 0x00002000) == 0x00002000)) { distinct_ = new com.google.protobuf.LazyStringArrayList(distinct_); bitField0_ |= 0x00002000; } } public java.util.List<String> getDistinctList() { return java.util.Collections.unmodifiableList(distinct_); } public int getDistinctCount() { return distinct_.size(); } public String getDistinct(int index) { return distinct_.get(index); } public Builder setDistinct( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureDistinctIsMutable(); distinct_.set(index, value); onChanged(); return this; } public Builder addDistinct(String value) { if (value == null) { throw new NullPointerException(); } ensureDistinctIsMutable(); distinct_.add(value); onChanged(); return this; } public Builder addAllDistinct( java.lang.Iterable<String> values) { ensureDistinctIsMutable(); super.addAll(values, distinct_); onChanged(); return this; } public Builder clearDistinct() { distinct_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } void addDistinct(com.google.protobuf.ByteString value) { ensureDistinctIsMutable(); distinct_.add(value); onChanged(); } // optional int32 max_per_group = 16; private int maxPerGroup_ ; public boolean hasMaxPerGroup() { return ((bitField0_ & 0x00004000) == 0x00004000); } public int getMaxPerGroup() { return maxPerGroup_; } public Builder setMaxPerGroup(int value) { bitField0_ |= 0x00004000; maxPerGroup_ = value; onChanged(); return this; } public Builder clearMaxPerGroup() { bitField0_ = (bitField0_ & ~0x00004000); maxPerGroup_ = 0; onChanged(); return this; } // repeated string term_vectors_to_fetch = 17; private com.google.protobuf.LazyStringList termVectorsToFetch_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTermVectorsToFetchIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { termVectorsToFetch_ = new com.google.protobuf.LazyStringArrayList(termVectorsToFetch_); bitField0_ |= 0x00008000; } } public java.util.List<String> getTermVectorsToFetchList() { return java.util.Collections.unmodifiableList(termVectorsToFetch_); } public int getTermVectorsToFetchCount() { return termVectorsToFetch_.size(); } public String getTermVectorsToFetch(int index) { return termVectorsToFetch_.get(index); } public Builder setTermVectorsToFetch( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureTermVectorsToFetchIsMutable(); termVectorsToFetch_.set(index, value); onChanged(); return this; } public Builder addTermVectorsToFetch(String value) { if (value == null) { throw new NullPointerException(); } ensureTermVectorsToFetchIsMutable(); termVectorsToFetch_.add(value); onChanged(); return this; } public Builder addAllTermVectorsToFetch( java.lang.Iterable<String> values) { ensureTermVectorsToFetchIsMutable(); super.addAll(values, termVectorsToFetch_); onChanged(); return this; } public Builder clearTermVectorsToFetch() { termVectorsToFetch_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } void addTermVectorsToFetch(com.google.protobuf.ByteString value) { ensureTermVectorsToFetchIsMutable(); termVectorsToFetch_.add(value); onChanged(); } // repeated string select_list = 18; private com.google.protobuf.LazyStringList selectList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSelectListIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { selectList_ = new com.google.protobuf.LazyStringArrayList(selectList_); bitField0_ |= 0x00010000; } } public java.util.List<String> getSelectListList() { return java.util.Collections.unmodifiableList(selectList_); } public int getSelectListCount() { return selectList_.size(); } public String getSelectList(int index) { return selectList_.get(index); } public Builder setSelectList( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureSelectListIsMutable(); selectList_.set(index, value); onChanged(); return this; } public Builder addSelectList(String value) { if (value == null) { throw new NullPointerException(); } ensureSelectListIsMutable(); selectList_.add(value); onChanged(); return this; } public Builder addAllSelectList( java.lang.Iterable<String> values) { ensureSelectListIsMutable(); super.addAll(values, selectList_); onChanged(); return this; } public Builder clearSelectList() { selectList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } void addSelectList(com.google.protobuf.ByteString value) { ensureSelectListIsMutable(); selectList_.add(value); onChanged(); } // optional .com.sensei.search.req.protobuf.SenseiMapReduceFunction map_reduce = 19; private com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction mapReduce_ = com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction.AVG; public boolean hasMapReduce() { return ((bitField0_ & 0x00020000) == 0x00020000); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction getMapReduce() { return mapReduce_; } public Builder setMapReduce(com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; mapReduce_ = value; onChanged(); return this; } public Builder clearMapReduce() { bitField0_ = (bitField0_ & ~0x00020000); mapReduce_ = com.sensei.search.req.protobuf.SenseiProtos.SenseiMapReduceFunction.AVG; onChanged(); return this; } // repeated string map_reduce_columns = 20; private com.google.protobuf.LazyStringList mapReduceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMapReduceColumnsIsMutable() { if (!((bitField0_ & 0x00040000) == 0x00040000)) { mapReduceColumns_ = new com.google.protobuf.LazyStringArrayList(mapReduceColumns_); bitField0_ |= 0x00040000; } } public java.util.List<String> getMapReduceColumnsList() { return java.util.Collections.unmodifiableList(mapReduceColumns_); } public int getMapReduceColumnsCount() { return mapReduceColumns_.size(); } public String getMapReduceColumns(int index) { return mapReduceColumns_.get(index); } public Builder setMapReduceColumns( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureMapReduceColumnsIsMutable(); mapReduceColumns_.set(index, value); onChanged(); return this; } public Builder addMapReduceColumns(String value) { if (value == null) { throw new NullPointerException(); } ensureMapReduceColumnsIsMutable(); mapReduceColumns_.add(value); onChanged(); return this; } public Builder addAllMapReduceColumns( java.lang.Iterable<String> values) { ensureMapReduceColumnsIsMutable(); super.addAll(values, mapReduceColumns_); onChanged(); return this; } public Builder clearMapReduceColumns() { mapReduceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } void addMapReduceColumns(com.google.protobuf.ByteString value) { ensureMapReduceColumnsIsMutable(); mapReduceColumns_.add(value); onChanged(); } // optional bytes map_reduce_bytes = 21; private com.google.protobuf.ByteString mapReduceBytes_ = com.google.protobuf.ByteString.EMPTY; public boolean hasMapReduceBytes() { return ((bitField0_ & 0x00080000) == 0x00080000); } public com.google.protobuf.ByteString getMapReduceBytes() { return mapReduceBytes_; } public Builder setMapReduceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; mapReduceBytes_ = value; onChanged(); return this; } public Builder clearMapReduceBytes() { bitField0_ = (bitField0_ & ~0x00080000); mapReduceBytes_ = getDefaultInstance().getMapReduceBytes(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.SenseiProtoRequest) } static { defaultInstance = new SenseiProtoRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.SenseiProtoRequest) } public interface SenseiErrorOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 code = 1; boolean hasCode(); int getCode(); // optional string message = 2; boolean hasMessage(); String getMessage(); // optional .com.sensei.search.req.protobuf.ErrorType type = 3; boolean hasType(); com.sensei.search.req.protobuf.SenseiProtos.ErrorType getType(); } public static final class SenseiError extends com.google.protobuf.GeneratedMessage implements SenseiErrorOrBuilder { // Use SenseiError.newBuilder() to construct. private SenseiError(Builder builder) { super(builder); } private SenseiError(boolean noInit) {} private static final SenseiError defaultInstance; public static SenseiError getDefaultInstance() { return defaultInstance; } public SenseiError getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiError_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiError_fieldAccessorTable; } private int bitField0_; // optional int32 code = 1; public static final int CODE_FIELD_NUMBER = 1; private int code_; public boolean hasCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getCode() { return code_; } // optional string message = 2; public static final int MESSAGE_FIELD_NUMBER = 2; private Object message_; public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getMessage() { Object ref = message_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { message_ = s; } return s; } } private com.google.protobuf.ByteString getMessageBytes() { Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .com.sensei.search.req.protobuf.ErrorType type = 3; public static final int TYPE_FIELD_NUMBER = 3; private com.sensei.search.req.protobuf.SenseiProtos.ErrorType type_; public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.ErrorType getType() { return type_; } private void initFields() { code_ = 0; message_ = ""; type_ = com.sensei.search.req.protobuf.SenseiProtos.ErrorType.JsonParsingError; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, code_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getMessageBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, type_.getNumber()); } 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 .computeInt32Size(1, code_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getMessageBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.SenseiError 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiError_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiError_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.SenseiError.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); code_ = 0; bitField0_ = (bitField0_ & ~0x00000001); message_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = com.sensei.search.req.protobuf.SenseiProtos.ErrorType.JsonParsingError; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError build() { com.sensei.search.req.protobuf.SenseiProtos.SenseiError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.SenseiError buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.SenseiError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.SenseiError result = new com.sensei.search.req.protobuf.SenseiProtos.SenseiError(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.code_ = code_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.message_ = message_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.SenseiError) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.SenseiError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.SenseiError other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDefaultInstance()) return this; if (other.hasCode()) { setCode(other.getCode()); } if (other.hasMessage()) { setMessage(other.getMessage()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { bitField0_ |= 0x00000001; code_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; message_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.ErrorType value = com.sensei.search.req.protobuf.SenseiProtos.ErrorType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; type_ = value; } break; } } } } private int bitField0_; // optional int32 code = 1; private int code_ ; public boolean hasCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getCode() { return code_; } public Builder setCode(int value) { bitField0_ |= 0x00000001; code_ = value; onChanged(); return this; } public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); code_ = 0; onChanged(); return this; } // optional string message = 2; private Object message_ = ""; public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getMessage() { Object ref = message_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); message_ = s; return s; } else { return (String) ref; } } public Builder setMessage(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; message_ = value; onChanged(); return this; } public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } void setMessage(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; message_ = value; onChanged(); } // optional .com.sensei.search.req.protobuf.ErrorType type = 3; private com.sensei.search.req.protobuf.SenseiProtos.ErrorType type_ = com.sensei.search.req.protobuf.SenseiProtos.ErrorType.JsonParsingError; public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.ErrorType getType() { return type_; } public Builder setType(com.sensei.search.req.protobuf.SenseiProtos.ErrorType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = com.sensei.search.req.protobuf.SenseiProtos.ErrorType.JsonParsingError; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.SenseiError) } static { defaultInstance = new SenseiError(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.SenseiError) } public interface ExplanationOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional float value = 1; boolean hasValue(); float getValue(); // optional string description = 2; boolean hasDescription(); String getDescription(); // repeated .com.sensei.search.req.protobuf.Explanation details = 3; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Explanation> getDetailsList(); com.sensei.search.req.protobuf.SenseiProtos.Explanation getDetails(int index); int getDetailsCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> getDetailsOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder getDetailsOrBuilder( int index); } public static final class Explanation extends com.google.protobuf.GeneratedMessage implements ExplanationOrBuilder { // Use Explanation.newBuilder() to construct. private Explanation(Builder builder) { super(builder); } private Explanation(boolean noInit) {} private static final Explanation defaultInstance; public static Explanation getDefaultInstance() { return defaultInstance; } public Explanation getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Explanation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Explanation_fieldAccessorTable; } private int bitField0_; // optional float value = 1; public static final int VALUE_FIELD_NUMBER = 1; private float value_; public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getValue() { return value_; } // optional string description = 2; public static final int DESCRIPTION_FIELD_NUMBER = 2; private Object description_; public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getDescription() { Object ref = description_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { description_ = s; } return s; } } private com.google.protobuf.ByteString getDescriptionBytes() { Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .com.sensei.search.req.protobuf.Explanation details = 3; public static final int DETAILS_FIELD_NUMBER = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Explanation> details_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Explanation> getDetailsList() { return details_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> getDetailsOrBuilderList() { return details_; } public int getDetailsCount() { return details_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.Explanation getDetails(int index) { return details_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder getDetailsOrBuilder( int index) { return details_.get(index); } private void initFields() { value_ = 0F; description_ = ""; details_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDescriptionBytes()); } for (int i = 0; i < details_.size(); i++) { output.writeMessage(3, details_.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 .computeFloatSize(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDescriptionBytes()); } for (int i = 0; i < details_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, details_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Explanation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.Explanation 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Explanation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Explanation_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.Explanation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDetailsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); value_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); description_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { detailsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.Explanation getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.Explanation build() { com.sensei.search.req.protobuf.SenseiProtos.Explanation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.Explanation buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.Explanation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.Explanation buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.Explanation result = new com.sensei.search.req.protobuf.SenseiProtos.Explanation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.description_ = description_; if (detailsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { details_ = java.util.Collections.unmodifiableList(details_); bitField0_ = (bitField0_ & ~0x00000004); } result.details_ = details_; } else { result.details_ = detailsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.Explanation) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.Explanation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.Explanation other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } if (other.hasDescription()) { setDescription(other.getDescription()); } if (detailsBuilder_ == null) { if (!other.details_.isEmpty()) { if (details_.isEmpty()) { details_ = other.details_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDetailsIsMutable(); details_.addAll(other.details_); } onChanged(); } } else { if (!other.details_.isEmpty()) { if (detailsBuilder_.isEmpty()) { detailsBuilder_.dispose(); detailsBuilder_ = null; details_ = other.details_; bitField0_ = (bitField0_ & ~0x00000004); detailsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDetailsFieldBuilder() : null; } else { detailsBuilder_.addAllMessages(other.details_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 13: { bitField0_ |= 0x00000001; value_ = input.readFloat(); break; } case 18: { bitField0_ |= 0x00000002; description_ = input.readBytes(); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.Explanation.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addDetails(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional float value = 1; private float value_ ; public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getValue() { return value_; } public Builder setValue(float value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0F; onChanged(); return this; } // optional string description = 2; private Object description_ = ""; public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getDescription() { Object ref = description_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); description_ = s; return s; } else { return (String) ref; } } public Builder setDescription(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; onChanged(); return this; } public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } void setDescription(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; description_ = value; onChanged(); } // repeated .com.sensei.search.req.protobuf.Explanation details = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Explanation> details_ = java.util.Collections.emptyList(); private void ensureDetailsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { details_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.Explanation>(details_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Explanation, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder, com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> detailsBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Explanation> getDetailsList() { if (detailsBuilder_ == null) { return java.util.Collections.unmodifiableList(details_); } else { return detailsBuilder_.getMessageList(); } } public int getDetailsCount() { if (detailsBuilder_ == null) { return details_.size(); } else { return detailsBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.Explanation getDetails(int index) { if (detailsBuilder_ == null) { return details_.get(index); } else { return detailsBuilder_.getMessage(index); } } public Builder setDetails( int index, com.sensei.search.req.protobuf.SenseiProtos.Explanation value) { if (detailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailsIsMutable(); details_.set(index, value); onChanged(); } else { detailsBuilder_.setMessage(index, value); } return this; } public Builder setDetails( int index, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder builderForValue) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.set(index, builderForValue.build()); onChanged(); } else { detailsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addDetails(com.sensei.search.req.protobuf.SenseiProtos.Explanation value) { if (detailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailsIsMutable(); details_.add(value); onChanged(); } else { detailsBuilder_.addMessage(value); } return this; } public Builder addDetails( int index, com.sensei.search.req.protobuf.SenseiProtos.Explanation value) { if (detailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailsIsMutable(); details_.add(index, value); onChanged(); } else { detailsBuilder_.addMessage(index, value); } return this; } public Builder addDetails( com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder builderForValue) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.add(builderForValue.build()); onChanged(); } else { detailsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addDetails( int index, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder builderForValue) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.add(index, builderForValue.build()); onChanged(); } else { detailsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllDetails( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.Explanation> values) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); super.addAll(values, details_); onChanged(); } else { detailsBuilder_.addAllMessages(values); } return this; } public Builder clearDetails() { if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { detailsBuilder_.clear(); } return this; } public Builder removeDetails(int index) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.remove(index); onChanged(); } else { detailsBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder getDetailsBuilder( int index) { return getDetailsFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder getDetailsOrBuilder( int index) { if (detailsBuilder_ == null) { return details_.get(index); } else { return detailsBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> getDetailsOrBuilderList() { if (detailsBuilder_ != null) { return detailsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(details_); } } public com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder addDetailsBuilder() { return getDetailsFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder addDetailsBuilder( int index) { return getDetailsFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder> getDetailsBuilderList() { return getDetailsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Explanation, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder, com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> getDetailsFieldBuilder() { if (detailsBuilder_ == null) { detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Explanation, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder, com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder>( details_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); details_ = null; } return detailsBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.Explanation) } static { defaultInstance = new Explanation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.Explanation) } public interface TermFrequencyVectorOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string terms = 1; java.util.List<String> getTermsList(); int getTermsCount(); String getTerms(int index); // repeated int32 freq = 2; java.util.List<java.lang.Integer> getFreqList(); int getFreqCount(); int getFreq(int index); } public static final class TermFrequencyVector extends com.google.protobuf.GeneratedMessage implements TermFrequencyVectorOrBuilder { // Use TermFrequencyVector.newBuilder() to construct. private TermFrequencyVector(Builder builder) { super(builder); } private TermFrequencyVector(boolean noInit) {} private static final TermFrequencyVector defaultInstance; public static TermFrequencyVector getDefaultInstance() { return defaultInstance; } public TermFrequencyVector getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_fieldAccessorTable; } // repeated string terms = 1; public static final int TERMS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList terms_; public java.util.List<String> getTermsList() { return terms_; } public int getTermsCount() { return terms_.size(); } public String getTerms(int index) { return terms_.get(index); } // repeated int32 freq = 2; public static final int FREQ_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> freq_; public java.util.List<java.lang.Integer> getFreqList() { return freq_; } public int getFreqCount() { return freq_.size(); } public int getFreq(int index) { return freq_.get(index); } private void initFields() { terms_ = com.google.protobuf.LazyStringArrayList.EMPTY; freq_ = java.util.Collections.emptyList();; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < terms_.size(); i++) { output.writeBytes(1, terms_.getByteString(i)); } for (int i = 0; i < freq_.size(); i++) { output.writeInt32(2, freq_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < terms_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(terms_.getByteString(i)); } size += dataSize; size += 1 * getTermsList().size(); } { int dataSize = 0; for (int i = 0; i < freq_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(freq_.get(i)); } size += dataSize; size += 1 * getFreqList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); terms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); freq_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector build() { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector result = new com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { terms_ = new com.google.protobuf.UnmodifiableLazyStringList( terms_); bitField0_ = (bitField0_ & ~0x00000001); } result.terms_ = terms_; if (((bitField0_ & 0x00000002) == 0x00000002)) { freq_ = java.util.Collections.unmodifiableList(freq_); bitField0_ = (bitField0_ & ~0x00000002); } result.freq_ = freq_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.getDefaultInstance()) return this; if (!other.terms_.isEmpty()) { if (terms_.isEmpty()) { terms_ = other.terms_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTermsIsMutable(); terms_.addAll(other.terms_); } onChanged(); } if (!other.freq_.isEmpty()) { if (freq_.isEmpty()) { freq_ = other.freq_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFreqIsMutable(); freq_.addAll(other.freq_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureTermsIsMutable(); terms_.add(input.readBytes()); break; } case 16: { ensureFreqIsMutable(); freq_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addFreq(input.readInt32()); } input.popLimit(limit); break; } } } } private int bitField0_; // repeated string terms = 1; private com.google.protobuf.LazyStringList terms_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTermsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { terms_ = new com.google.protobuf.LazyStringArrayList(terms_); bitField0_ |= 0x00000001; } } public java.util.List<String> getTermsList() { return java.util.Collections.unmodifiableList(terms_); } public int getTermsCount() { return terms_.size(); } public String getTerms(int index) { return terms_.get(index); } public Builder setTerms( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureTermsIsMutable(); terms_.set(index, value); onChanged(); return this; } public Builder addTerms(String value) { if (value == null) { throw new NullPointerException(); } ensureTermsIsMutable(); terms_.add(value); onChanged(); return this; } public Builder addAllTerms( java.lang.Iterable<String> values) { ensureTermsIsMutable(); super.addAll(values, terms_); onChanged(); return this; } public Builder clearTerms() { terms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addTerms(com.google.protobuf.ByteString value) { ensureTermsIsMutable(); terms_.add(value); onChanged(); } // repeated int32 freq = 2; private java.util.List<java.lang.Integer> freq_ = java.util.Collections.emptyList();; private void ensureFreqIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { freq_ = new java.util.ArrayList<java.lang.Integer>(freq_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Integer> getFreqList() { return java.util.Collections.unmodifiableList(freq_); } public int getFreqCount() { return freq_.size(); } public int getFreq(int index) { return freq_.get(index); } public Builder setFreq( int index, int value) { ensureFreqIsMutable(); freq_.set(index, value); onChanged(); return this; } public Builder addFreq(int value) { ensureFreqIsMutable(); freq_.add(value); onChanged(); return this; } public Builder addAllFreq( java.lang.Iterable<? extends java.lang.Integer> values) { ensureFreqIsMutable(); super.addAll(values, freq_); onChanged(); return this; } public Builder clearFreq() { freq_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.TermFrequencyVector) } static { defaultInstance = new TermFrequencyVector(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.TermFrequencyVector) } public interface LongArrayOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated int64 item = 1; java.util.List<java.lang.Long> getItemList(); int getItemCount(); long getItem(int index); } public static final class LongArray extends com.google.protobuf.GeneratedMessage implements LongArrayOrBuilder { // Use LongArray.newBuilder() to construct. private LongArray(Builder builder) { super(builder); } private LongArray(boolean noInit) {} private static final LongArray defaultInstance; public static LongArray getDefaultInstance() { return defaultInstance; } public LongArray getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongArray_fieldAccessorTable; } // repeated int64 item = 1; public static final int ITEM_FIELD_NUMBER = 1; private java.util.List<java.lang.Long> item_; public java.util.List<java.lang.Long> getItemList() { return item_; } public int getItemCount() { return item_.size(); } public long getItem(int index) { return item_.get(index); } private void initFields() { item_ = java.util.Collections.emptyList();; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < item_.size(); i++) { output.writeInt64(1, item_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < item_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(item_.get(i)); } size += dataSize; size += 1 * getItemList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.LongArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.LongArray 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_LongArray_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.LongArray.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); item_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.LongArray.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.LongArray getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.LongArray.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.LongArray build() { com.sensei.search.req.protobuf.SenseiProtos.LongArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.LongArray buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.LongArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.LongArray buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.LongArray result = new com.sensei.search.req.protobuf.SenseiProtos.LongArray(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { item_ = java.util.Collections.unmodifiableList(item_); bitField0_ = (bitField0_ & ~0x00000001); } result.item_ = item_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.LongArray) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.LongArray)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.LongArray other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.LongArray.getDefaultInstance()) return this; if (!other.item_.isEmpty()) { if (item_.isEmpty()) { item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemIsMutable(); item_.addAll(other.item_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { ensureItemIsMutable(); item_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addItem(input.readInt64()); } input.popLimit(limit); break; } } } } private int bitField0_; // repeated int64 item = 1; private java.util.List<java.lang.Long> item_ = java.util.Collections.emptyList();; private void ensureItemIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { item_ = new java.util.ArrayList<java.lang.Long>(item_); bitField0_ |= 0x00000001; } } public java.util.List<java.lang.Long> getItemList() { return java.util.Collections.unmodifiableList(item_); } public int getItemCount() { return item_.size(); } public long getItem(int index) { return item_.get(index); } public Builder setItem( int index, long value) { ensureItemIsMutable(); item_.set(index, value); onChanged(); return this; } public Builder addItem(long value) { ensureItemIsMutable(); item_.add(value); onChanged(); return this; } public Builder addAllItem( java.lang.Iterable<? extends java.lang.Long> values) { ensureItemIsMutable(); super.addAll(values, item_); onChanged(); return this; } public Builder clearItem() { item_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.LongArray) } static { defaultInstance = new LongArray(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.LongArray) } public interface StringArrayOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string item = 1; java.util.List<String> getItemList(); int getItemCount(); String getItem(int index); } public static final class StringArray extends com.google.protobuf.GeneratedMessage implements StringArrayOrBuilder { // Use StringArray.newBuilder() to construct. private StringArray(Builder builder) { super(builder); } private StringArray(boolean noInit) {} private static final StringArray defaultInstance; public static StringArray getDefaultInstance() { return defaultInstance; } public StringArray getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringArray_fieldAccessorTable; } // repeated string item = 1; public static final int ITEM_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList item_; public java.util.List<String> getItemList() { return item_; } public int getItemCount() { return item_.size(); } public String getItem(int index) { return item_.get(index); } private void initFields() { item_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < item_.size(); i++) { output.writeBytes(1, item_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < item_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(item_.getByteString(i)); } size += dataSize; size += 1 * getItemList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.StringArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.StringArray 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_StringArray_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.StringArray.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); item_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.StringArray.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.StringArray getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.StringArray.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.StringArray build() { com.sensei.search.req.protobuf.SenseiProtos.StringArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.StringArray buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.StringArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.StringArray buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.StringArray result = new com.sensei.search.req.protobuf.SenseiProtos.StringArray(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { item_ = new com.google.protobuf.UnmodifiableLazyStringList( item_); bitField0_ = (bitField0_ & ~0x00000001); } result.item_ = item_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.StringArray) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.StringArray)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.StringArray other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.StringArray.getDefaultInstance()) return this; if (!other.item_.isEmpty()) { if (item_.isEmpty()) { item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemIsMutable(); item_.addAll(other.item_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureItemIsMutable(); item_.add(input.readBytes()); break; } } } } private int bitField0_; // repeated string item = 1; private com.google.protobuf.LazyStringList item_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureItemIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { item_ = new com.google.protobuf.LazyStringArrayList(item_); bitField0_ |= 0x00000001; } } public java.util.List<String> getItemList() { return java.util.Collections.unmodifiableList(item_); } public int getItemCount() { return item_.size(); } public String getItem(int index) { return item_.get(index); } public Builder setItem( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.set(index, value); onChanged(); return this; } public Builder addItem(String value) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.add(value); onChanged(); return this; } public Builder addAllItem( java.lang.Iterable<String> values) { ensureItemIsMutable(); super.addAll(values, item_); onChanged(); return this; } public Builder clearItem() { item_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addItem(com.google.protobuf.ByteString value) { ensureItemIsMutable(); item_.add(value); onChanged(); } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.StringArray) } static { defaultInstance = new StringArray(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.StringArray) } public interface ObjectArrayOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .com.sensei.search.req.protobuf.JavaPrimitives type = 1; boolean hasType(); com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives getType(); // repeated int32 int_value = 2; java.util.List<java.lang.Integer> getIntValueList(); int getIntValueCount(); int getIntValue(int index); // repeated int64 long_value = 3; java.util.List<java.lang.Long> getLongValueList(); int getLongValueCount(); long getLongValue(int index); // repeated float float_value = 4; java.util.List<java.lang.Float> getFloatValueList(); int getFloatValueCount(); float getFloatValue(int index); // repeated double double_value = 5; java.util.List<java.lang.Double> getDoubleValueList(); int getDoubleValueCount(); double getDoubleValue(int index); // repeated bool boolean_value = 6; java.util.List<java.lang.Boolean> getBooleanValueList(); int getBooleanValueCount(); boolean getBooleanValue(int index); // repeated string string_value = 7; java.util.List<String> getStringValueList(); int getStringValueCount(); String getStringValue(int index); // repeated .com.sensei.search.req.protobuf.LongArray long_array = 8; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongArray> getLongArrayList(); com.sensei.search.req.protobuf.SenseiProtos.LongArray getLongArray(int index); int getLongArrayCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder> getLongArrayOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder getLongArrayOrBuilder( int index); // repeated bytes object_value = 9; java.util.List<com.google.protobuf.ByteString> getObjectValueList(); int getObjectValueCount(); com.google.protobuf.ByteString getObjectValue(int index); } public static final class ObjectArray extends com.google.protobuf.GeneratedMessage implements ObjectArrayOrBuilder { // Use ObjectArray.newBuilder() to construct. private ObjectArray(Builder builder) { super(builder); } private ObjectArray(boolean noInit) {} private static final ObjectArray defaultInstance; public static ObjectArray getDefaultInstance() { return defaultInstance; } public ObjectArray getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ObjectArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ObjectArray_fieldAccessorTable; } private int bitField0_; // optional .com.sensei.search.req.protobuf.JavaPrimitives type = 1; public static final int TYPE_FIELD_NUMBER = 1; private com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives type_; public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives getType() { return type_; } // repeated int32 int_value = 2; public static final int INT_VALUE_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> intValue_; public java.util.List<java.lang.Integer> getIntValueList() { return intValue_; } public int getIntValueCount() { return intValue_.size(); } public int getIntValue(int index) { return intValue_.get(index); } // repeated int64 long_value = 3; public static final int LONG_VALUE_FIELD_NUMBER = 3; private java.util.List<java.lang.Long> longValue_; public java.util.List<java.lang.Long> getLongValueList() { return longValue_; } public int getLongValueCount() { return longValue_.size(); } public long getLongValue(int index) { return longValue_.get(index); } // repeated float float_value = 4; public static final int FLOAT_VALUE_FIELD_NUMBER = 4; private java.util.List<java.lang.Float> floatValue_; public java.util.List<java.lang.Float> getFloatValueList() { return floatValue_; } public int getFloatValueCount() { return floatValue_.size(); } public float getFloatValue(int index) { return floatValue_.get(index); } // repeated double double_value = 5; public static final int DOUBLE_VALUE_FIELD_NUMBER = 5; private java.util.List<java.lang.Double> doubleValue_; public java.util.List<java.lang.Double> getDoubleValueList() { return doubleValue_; } public int getDoubleValueCount() { return doubleValue_.size(); } public double getDoubleValue(int index) { return doubleValue_.get(index); } // repeated bool boolean_value = 6; public static final int BOOLEAN_VALUE_FIELD_NUMBER = 6; private java.util.List<java.lang.Boolean> booleanValue_; public java.util.List<java.lang.Boolean> getBooleanValueList() { return booleanValue_; } public int getBooleanValueCount() { return booleanValue_.size(); } public boolean getBooleanValue(int index) { return booleanValue_.get(index); } // repeated string string_value = 7; public static final int STRING_VALUE_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList stringValue_; public java.util.List<String> getStringValueList() { return stringValue_; } public int getStringValueCount() { return stringValue_.size(); } public String getStringValue(int index) { return stringValue_.get(index); } // repeated .com.sensei.search.req.protobuf.LongArray long_array = 8; public static final int LONG_ARRAY_FIELD_NUMBER = 8; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongArray> longArray_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongArray> getLongArrayList() { return longArray_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder> getLongArrayOrBuilderList() { return longArray_; } public int getLongArrayCount() { return longArray_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.LongArray getLongArray(int index) { return longArray_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder getLongArrayOrBuilder( int index) { return longArray_.get(index); } // repeated bytes object_value = 9; public static final int OBJECT_VALUE_FIELD_NUMBER = 9; private java.util.List<com.google.protobuf.ByteString> objectValue_; public java.util.List<com.google.protobuf.ByteString> getObjectValueList() { return objectValue_; } public int getObjectValueCount() { return objectValue_.size(); } public com.google.protobuf.ByteString getObjectValue(int index) { return objectValue_.get(index); } private void initFields() { type_ = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.BYTE; intValue_ = java.util.Collections.emptyList();; longValue_ = java.util.Collections.emptyList();; floatValue_ = java.util.Collections.emptyList();; doubleValue_ = java.util.Collections.emptyList();; booleanValue_ = java.util.Collections.emptyList();; stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; longArray_ = java.util.Collections.emptyList(); objectValue_ = java.util.Collections.emptyList();; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_.getNumber()); } for (int i = 0; i < intValue_.size(); i++) { output.writeInt32(2, intValue_.get(i)); } for (int i = 0; i < longValue_.size(); i++) { output.writeInt64(3, longValue_.get(i)); } for (int i = 0; i < floatValue_.size(); i++) { output.writeFloat(4, floatValue_.get(i)); } for (int i = 0; i < doubleValue_.size(); i++) { output.writeDouble(5, doubleValue_.get(i)); } for (int i = 0; i < booleanValue_.size(); i++) { output.writeBool(6, booleanValue_.get(i)); } for (int i = 0; i < stringValue_.size(); i++) { output.writeBytes(7, stringValue_.getByteString(i)); } for (int i = 0; i < longArray_.size(); i++) { output.writeMessage(8, longArray_.get(i)); } for (int i = 0; i < objectValue_.size(); i++) { output.writeBytes(9, objectValue_.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 .computeEnumSize(1, type_.getNumber()); } { int dataSize = 0; for (int i = 0; i < intValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(intValue_.get(i)); } size += dataSize; size += 1 * getIntValueList().size(); } { int dataSize = 0; for (int i = 0; i < longValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(longValue_.get(i)); } size += dataSize; size += 1 * getLongValueList().size(); } { int dataSize = 0; dataSize = 4 * getFloatValueList().size(); size += dataSize; size += 1 * getFloatValueList().size(); } { int dataSize = 0; dataSize = 8 * getDoubleValueList().size(); size += dataSize; size += 1 * getDoubleValueList().size(); } { int dataSize = 0; dataSize = 1 * getBooleanValueList().size(); size += dataSize; size += 1 * getBooleanValueList().size(); } { int dataSize = 0; for (int i = 0; i < stringValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(stringValue_.getByteString(i)); } size += dataSize; size += 1 * getStringValueList().size(); } for (int i = 0; i < longArray_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, longArray_.get(i)); } { int dataSize = 0; for (int i = 0; i < objectValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(objectValue_.get(i)); } size += dataSize; size += 1 * getObjectValueList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.ObjectArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.ObjectArray 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ObjectArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_ObjectArray_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLongArrayFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.BYTE; bitField0_ = (bitField0_ & ~0x00000001); intValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); longValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000004); floatValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000008); doubleValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000010); booleanValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000020); stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); if (longArrayBuilder_ == null) { longArray_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { longArrayBuilder_.clear(); } objectValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray build() { com.sensei.search.req.protobuf.SenseiProtos.ObjectArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.ObjectArray buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.ObjectArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.ObjectArray result = new com.sensei.search.req.protobuf.SenseiProtos.ObjectArray(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((bitField0_ & 0x00000002) == 0x00000002)) { intValue_ = java.util.Collections.unmodifiableList(intValue_); bitField0_ = (bitField0_ & ~0x00000002); } result.intValue_ = intValue_; if (((bitField0_ & 0x00000004) == 0x00000004)) { longValue_ = java.util.Collections.unmodifiableList(longValue_); bitField0_ = (bitField0_ & ~0x00000004); } result.longValue_ = longValue_; if (((bitField0_ & 0x00000008) == 0x00000008)) { floatValue_ = java.util.Collections.unmodifiableList(floatValue_); bitField0_ = (bitField0_ & ~0x00000008); } result.floatValue_ = floatValue_; if (((bitField0_ & 0x00000010) == 0x00000010)) { doubleValue_ = java.util.Collections.unmodifiableList(doubleValue_); bitField0_ = (bitField0_ & ~0x00000010); } result.doubleValue_ = doubleValue_; if (((bitField0_ & 0x00000020) == 0x00000020)) { booleanValue_ = java.util.Collections.unmodifiableList(booleanValue_); bitField0_ = (bitField0_ & ~0x00000020); } result.booleanValue_ = booleanValue_; if (((bitField0_ & 0x00000040) == 0x00000040)) { stringValue_ = new com.google.protobuf.UnmodifiableLazyStringList( stringValue_); bitField0_ = (bitField0_ & ~0x00000040); } result.stringValue_ = stringValue_; if (longArrayBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { longArray_ = java.util.Collections.unmodifiableList(longArray_); bitField0_ = (bitField0_ & ~0x00000080); } result.longArray_ = longArray_; } else { result.longArray_ = longArrayBuilder_.build(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { objectValue_ = java.util.Collections.unmodifiableList(objectValue_); bitField0_ = (bitField0_ & ~0x00000100); } result.objectValue_ = objectValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.ObjectArray) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.ObjectArray)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.ObjectArray other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (!other.intValue_.isEmpty()) { if (intValue_.isEmpty()) { intValue_ = other.intValue_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIntValueIsMutable(); intValue_.addAll(other.intValue_); } onChanged(); } if (!other.longValue_.isEmpty()) { if (longValue_.isEmpty()) { longValue_ = other.longValue_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLongValueIsMutable(); longValue_.addAll(other.longValue_); } onChanged(); } if (!other.floatValue_.isEmpty()) { if (floatValue_.isEmpty()) { floatValue_ = other.floatValue_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFloatValueIsMutable(); floatValue_.addAll(other.floatValue_); } onChanged(); } if (!other.doubleValue_.isEmpty()) { if (doubleValue_.isEmpty()) { doubleValue_ = other.doubleValue_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureDoubleValueIsMutable(); doubleValue_.addAll(other.doubleValue_); } onChanged(); } if (!other.booleanValue_.isEmpty()) { if (booleanValue_.isEmpty()) { booleanValue_ = other.booleanValue_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureBooleanValueIsMutable(); booleanValue_.addAll(other.booleanValue_); } onChanged(); } if (!other.stringValue_.isEmpty()) { if (stringValue_.isEmpty()) { stringValue_ = other.stringValue_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureStringValueIsMutable(); stringValue_.addAll(other.stringValue_); } onChanged(); } if (longArrayBuilder_ == null) { if (!other.longArray_.isEmpty()) { if (longArray_.isEmpty()) { longArray_ = other.longArray_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureLongArrayIsMutable(); longArray_.addAll(other.longArray_); } onChanged(); } } else { if (!other.longArray_.isEmpty()) { if (longArrayBuilder_.isEmpty()) { longArrayBuilder_.dispose(); longArrayBuilder_ = null; longArray_ = other.longArray_; bitField0_ = (bitField0_ & ~0x00000080); longArrayBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLongArrayFieldBuilder() : null; } else { longArrayBuilder_.addAllMessages(other.longArray_); } } } if (!other.objectValue_.isEmpty()) { if (objectValue_.isEmpty()) { objectValue_ = other.objectValue_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureObjectValueIsMutable(); objectValue_.addAll(other.objectValue_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives value = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 16: { ensureIntValueIsMutable(); intValue_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addIntValue(input.readInt32()); } input.popLimit(limit); break; } case 24: { ensureLongValueIsMutable(); longValue_.add(input.readInt64()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addLongValue(input.readInt64()); } input.popLimit(limit); break; } case 37: { ensureFloatValueIsMutable(); floatValue_.add(input.readFloat()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addFloatValue(input.readFloat()); } input.popLimit(limit); break; } case 41: { ensureDoubleValueIsMutable(); doubleValue_.add(input.readDouble()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addDoubleValue(input.readDouble()); } input.popLimit(limit); break; } case 48: { ensureBooleanValueIsMutable(); booleanValue_.add(input.readBool()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addBooleanValue(input.readBool()); } input.popLimit(limit); break; } case 58: { ensureStringValueIsMutable(); stringValue_.add(input.readBytes()); break; } case 66: { com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.LongArray.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addLongArray(subBuilder.buildPartial()); break; } case 74: { ensureObjectValueIsMutable(); objectValue_.add(input.readBytes()); break; } } } } private int bitField0_; // optional .com.sensei.search.req.protobuf.JavaPrimitives type = 1; private com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives type_ = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.BYTE; public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives getType() { return type_; } public Builder setType(com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.BYTE; onChanged(); return this; } // repeated int32 int_value = 2; private java.util.List<java.lang.Integer> intValue_ = java.util.Collections.emptyList();; private void ensureIntValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { intValue_ = new java.util.ArrayList<java.lang.Integer>(intValue_); bitField0_ |= 0x00000002; } } public java.util.List<java.lang.Integer> getIntValueList() { return java.util.Collections.unmodifiableList(intValue_); } public int getIntValueCount() { return intValue_.size(); } public int getIntValue(int index) { return intValue_.get(index); } public Builder setIntValue( int index, int value) { ensureIntValueIsMutable(); intValue_.set(index, value); onChanged(); return this; } public Builder addIntValue(int value) { ensureIntValueIsMutable(); intValue_.add(value); onChanged(); return this; } public Builder addAllIntValue( java.lang.Iterable<? extends java.lang.Integer> values) { ensureIntValueIsMutable(); super.addAll(values, intValue_); onChanged(); return this; } public Builder clearIntValue() { intValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // repeated int64 long_value = 3; private java.util.List<java.lang.Long> longValue_ = java.util.Collections.emptyList();; private void ensureLongValueIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { longValue_ = new java.util.ArrayList<java.lang.Long>(longValue_); bitField0_ |= 0x00000004; } } public java.util.List<java.lang.Long> getLongValueList() { return java.util.Collections.unmodifiableList(longValue_); } public int getLongValueCount() { return longValue_.size(); } public long getLongValue(int index) { return longValue_.get(index); } public Builder setLongValue( int index, long value) { ensureLongValueIsMutable(); longValue_.set(index, value); onChanged(); return this; } public Builder addLongValue(long value) { ensureLongValueIsMutable(); longValue_.add(value); onChanged(); return this; } public Builder addAllLongValue( java.lang.Iterable<? extends java.lang.Long> values) { ensureLongValueIsMutable(); super.addAll(values, longValue_); onChanged(); return this; } public Builder clearLongValue() { longValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // repeated float float_value = 4; private java.util.List<java.lang.Float> floatValue_ = java.util.Collections.emptyList();; private void ensureFloatValueIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { floatValue_ = new java.util.ArrayList<java.lang.Float>(floatValue_); bitField0_ |= 0x00000008; } } public java.util.List<java.lang.Float> getFloatValueList() { return java.util.Collections.unmodifiableList(floatValue_); } public int getFloatValueCount() { return floatValue_.size(); } public float getFloatValue(int index) { return floatValue_.get(index); } public Builder setFloatValue( int index, float value) { ensureFloatValueIsMutable(); floatValue_.set(index, value); onChanged(); return this; } public Builder addFloatValue(float value) { ensureFloatValueIsMutable(); floatValue_.add(value); onChanged(); return this; } public Builder addAllFloatValue( java.lang.Iterable<? extends java.lang.Float> values) { ensureFloatValueIsMutable(); super.addAll(values, floatValue_); onChanged(); return this; } public Builder clearFloatValue() { floatValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // repeated double double_value = 5; private java.util.List<java.lang.Double> doubleValue_ = java.util.Collections.emptyList();; private void ensureDoubleValueIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { doubleValue_ = new java.util.ArrayList<java.lang.Double>(doubleValue_); bitField0_ |= 0x00000010; } } public java.util.List<java.lang.Double> getDoubleValueList() { return java.util.Collections.unmodifiableList(doubleValue_); } public int getDoubleValueCount() { return doubleValue_.size(); } public double getDoubleValue(int index) { return doubleValue_.get(index); } public Builder setDoubleValue( int index, double value) { ensureDoubleValueIsMutable(); doubleValue_.set(index, value); onChanged(); return this; } public Builder addDoubleValue(double value) { ensureDoubleValueIsMutable(); doubleValue_.add(value); onChanged(); return this; } public Builder addAllDoubleValue( java.lang.Iterable<? extends java.lang.Double> values) { ensureDoubleValueIsMutable(); super.addAll(values, doubleValue_); onChanged(); return this; } public Builder clearDoubleValue() { doubleValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // repeated bool boolean_value = 6; private java.util.List<java.lang.Boolean> booleanValue_ = java.util.Collections.emptyList();; private void ensureBooleanValueIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { booleanValue_ = new java.util.ArrayList<java.lang.Boolean>(booleanValue_); bitField0_ |= 0x00000020; } } public java.util.List<java.lang.Boolean> getBooleanValueList() { return java.util.Collections.unmodifiableList(booleanValue_); } public int getBooleanValueCount() { return booleanValue_.size(); } public boolean getBooleanValue(int index) { return booleanValue_.get(index); } public Builder setBooleanValue( int index, boolean value) { ensureBooleanValueIsMutable(); booleanValue_.set(index, value); onChanged(); return this; } public Builder addBooleanValue(boolean value) { ensureBooleanValueIsMutable(); booleanValue_.add(value); onChanged(); return this; } public Builder addAllBooleanValue( java.lang.Iterable<? extends java.lang.Boolean> values) { ensureBooleanValueIsMutable(); super.addAll(values, booleanValue_); onChanged(); return this; } public Builder clearBooleanValue() { booleanValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } // repeated string string_value = 7; private com.google.protobuf.LazyStringList stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStringValueIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { stringValue_ = new com.google.protobuf.LazyStringArrayList(stringValue_); bitField0_ |= 0x00000040; } } public java.util.List<String> getStringValueList() { return java.util.Collections.unmodifiableList(stringValue_); } public int getStringValueCount() { return stringValue_.size(); } public String getStringValue(int index) { return stringValue_.get(index); } public Builder setStringValue( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureStringValueIsMutable(); stringValue_.set(index, value); onChanged(); return this; } public Builder addStringValue(String value) { if (value == null) { throw new NullPointerException(); } ensureStringValueIsMutable(); stringValue_.add(value); onChanged(); return this; } public Builder addAllStringValue( java.lang.Iterable<String> values) { ensureStringValueIsMutable(); super.addAll(values, stringValue_); onChanged(); return this; } public Builder clearStringValue() { stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } void addStringValue(com.google.protobuf.ByteString value) { ensureStringValueIsMutable(); stringValue_.add(value); onChanged(); } // repeated .com.sensei.search.req.protobuf.LongArray long_array = 8; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongArray> longArray_ = java.util.Collections.emptyList(); private void ensureLongArrayIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { longArray_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.LongArray>(longArray_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.LongArray, com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder> longArrayBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongArray> getLongArrayList() { if (longArrayBuilder_ == null) { return java.util.Collections.unmodifiableList(longArray_); } else { return longArrayBuilder_.getMessageList(); } } public int getLongArrayCount() { if (longArrayBuilder_ == null) { return longArray_.size(); } else { return longArrayBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.LongArray getLongArray(int index) { if (longArrayBuilder_ == null) { return longArray_.get(index); } else { return longArrayBuilder_.getMessage(index); } } public Builder setLongArray( int index, com.sensei.search.req.protobuf.SenseiProtos.LongArray value) { if (longArrayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLongArrayIsMutable(); longArray_.set(index, value); onChanged(); } else { longArrayBuilder_.setMessage(index, value); } return this; } public Builder setLongArray( int index, com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder builderForValue) { if (longArrayBuilder_ == null) { ensureLongArrayIsMutable(); longArray_.set(index, builderForValue.build()); onChanged(); } else { longArrayBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addLongArray(com.sensei.search.req.protobuf.SenseiProtos.LongArray value) { if (longArrayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLongArrayIsMutable(); longArray_.add(value); onChanged(); } else { longArrayBuilder_.addMessage(value); } return this; } public Builder addLongArray( int index, com.sensei.search.req.protobuf.SenseiProtos.LongArray value) { if (longArrayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLongArrayIsMutable(); longArray_.add(index, value); onChanged(); } else { longArrayBuilder_.addMessage(index, value); } return this; } public Builder addLongArray( com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder builderForValue) { if (longArrayBuilder_ == null) { ensureLongArrayIsMutable(); longArray_.add(builderForValue.build()); onChanged(); } else { longArrayBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addLongArray( int index, com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder builderForValue) { if (longArrayBuilder_ == null) { ensureLongArrayIsMutable(); longArray_.add(index, builderForValue.build()); onChanged(); } else { longArrayBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllLongArray( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.LongArray> values) { if (longArrayBuilder_ == null) { ensureLongArrayIsMutable(); super.addAll(values, longArray_); onChanged(); } else { longArrayBuilder_.addAllMessages(values); } return this; } public Builder clearLongArray() { if (longArrayBuilder_ == null) { longArray_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { longArrayBuilder_.clear(); } return this; } public Builder removeLongArray(int index) { if (longArrayBuilder_ == null) { ensureLongArrayIsMutable(); longArray_.remove(index); onChanged(); } else { longArrayBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder getLongArrayBuilder( int index) { return getLongArrayFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder getLongArrayOrBuilder( int index) { if (longArrayBuilder_ == null) { return longArray_.get(index); } else { return longArrayBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder> getLongArrayOrBuilderList() { if (longArrayBuilder_ != null) { return longArrayBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(longArray_); } } public com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder addLongArrayBuilder() { return getLongArrayFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.LongArray.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder addLongArrayBuilder( int index) { return getLongArrayFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.LongArray.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder> getLongArrayBuilderList() { return getLongArrayFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.LongArray, com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder> getLongArrayFieldBuilder() { if (longArrayBuilder_ == null) { longArrayBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.LongArray, com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.LongArrayOrBuilder>( longArray_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); longArray_ = null; } return longArrayBuilder_; } // repeated bytes object_value = 9; private java.util.List<com.google.protobuf.ByteString> objectValue_ = java.util.Collections.emptyList();; private void ensureObjectValueIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { objectValue_ = new java.util.ArrayList<com.google.protobuf.ByteString>(objectValue_); bitField0_ |= 0x00000100; } } public java.util.List<com.google.protobuf.ByteString> getObjectValueList() { return java.util.Collections.unmodifiableList(objectValue_); } public int getObjectValueCount() { return objectValue_.size(); } public com.google.protobuf.ByteString getObjectValue(int index) { return objectValue_.get(index); } public Builder setObjectValue( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureObjectValueIsMutable(); objectValue_.set(index, value); onChanged(); return this; } public Builder addObjectValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureObjectValueIsMutable(); objectValue_.add(value); onChanged(); return this; } public Builder addAllObjectValue( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureObjectValueIsMutable(); super.addAll(values, objectValue_); onChanged(); return this; } public Builder clearObjectValue() { objectValue_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.ObjectArray) } static { defaultInstance = new ObjectArray(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.ObjectArray) } public interface FieldValuesOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string key = 1; java.util.List<String> getKeyList(); int getKeyCount(); String getKey(int index); // repeated .com.sensei.search.req.protobuf.ObjectArray raw_value = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray> getRawValueList(); com.sensei.search.req.protobuf.SenseiProtos.ObjectArray getRawValue(int index); int getRawValueCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder> getRawValueOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder getRawValueOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.StringArray value = 3; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringArray> getValueList(); com.sensei.search.req.protobuf.SenseiProtos.StringArray getValue(int index); int getValueCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder> getValueOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder getValueOrBuilder( int index); } public static final class FieldValues extends com.google.protobuf.GeneratedMessage implements FieldValuesOrBuilder { // Use FieldValues.newBuilder() to construct. private FieldValues(Builder builder) { super(builder); } private FieldValues(boolean noInit) {} private static final FieldValues defaultInstance; public static FieldValues getDefaultInstance() { return defaultInstance; } public FieldValues getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FieldValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FieldValues_fieldAccessorTable; } // repeated string key = 1; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; public java.util.List<String> getKeyList() { return key_; } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } // repeated .com.sensei.search.req.protobuf.ObjectArray raw_value = 2; public static final int RAW_VALUE_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray> rawValue_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray> getRawValueList() { return rawValue_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder> getRawValueOrBuilderList() { return rawValue_; } public int getRawValueCount() { return rawValue_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray getRawValue(int index) { return rawValue_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder getRawValueOrBuilder( int index) { return rawValue_.get(index); } // repeated .com.sensei.search.req.protobuf.StringArray value = 3; public static final int VALUE_FIELD_NUMBER = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringArray> value_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringArray> getValueList() { return value_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder> getValueOrBuilderList() { return value_; } public int getValueCount() { return value_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.StringArray getValue(int index) { return value_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder getValueOrBuilder( int index) { return value_.get(index); } private void initFields() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; rawValue_ = java.util.Collections.emptyList(); value_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < rawValue_.size(); i++) { output.writeMessage(2, rawValue_.get(i)); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(3, value_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } for (int i = 0; i < rawValue_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rawValue_.get(i)); } for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, value_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FieldValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FieldValues 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FieldValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FieldValues_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FieldValues.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRawValueFieldBuilder(); getValueFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (rawValueBuilder_ == null) { rawValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rawValueBuilder_.clear(); } if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { valueBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FieldValues getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FieldValues build() { com.sensei.search.req.protobuf.SenseiProtos.FieldValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FieldValues buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FieldValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FieldValues buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FieldValues result = new com.sensei.search.req.protobuf.SenseiProtos.FieldValues(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList( key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (rawValueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { rawValue_ = java.util.Collections.unmodifiableList(rawValue_); bitField0_ = (bitField0_ & ~0x00000002); } result.rawValue_ = rawValue_; } else { result.rawValue_ = rawValueBuilder_.build(); } if (valueBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000004); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FieldValues) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FieldValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FieldValues other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (rawValueBuilder_ == null) { if (!other.rawValue_.isEmpty()) { if (rawValue_.isEmpty()) { rawValue_ = other.rawValue_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRawValueIsMutable(); rawValue_.addAll(other.rawValue_); } onChanged(); } } else { if (!other.rawValue_.isEmpty()) { if (rawValueBuilder_.isEmpty()) { rawValueBuilder_.dispose(); rawValueBuilder_ = null; rawValue_ = other.rawValue_; bitField0_ = (bitField0_ & ~0x00000002); rawValueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRawValueFieldBuilder() : null; } else { rawValueBuilder_.addAllMessages(other.rawValue_); } } } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000004); valueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureKeyIsMutable(); key_.add(input.readBytes()); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addRawValue(subBuilder.buildPartial()); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.StringArray.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addValue(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated string key = 1; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } public java.util.List<String> getKeyList() { return java.util.Collections.unmodifiableList(key_); } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } public Builder setKey( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } public Builder addKey(String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } public Builder addAllKey( java.lang.Iterable<String> values) { ensureKeyIsMutable(); super.addAll(values, key_); onChanged(); return this; } public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addKey(com.google.protobuf.ByteString value) { ensureKeyIsMutable(); key_.add(value); onChanged(); } // repeated .com.sensei.search.req.protobuf.ObjectArray raw_value = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray> rawValue_ = java.util.Collections.emptyList(); private void ensureRawValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rawValue_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray>(rawValue_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.ObjectArray, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder> rawValueBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray> getRawValueList() { if (rawValueBuilder_ == null) { return java.util.Collections.unmodifiableList(rawValue_); } else { return rawValueBuilder_.getMessageList(); } } public int getRawValueCount() { if (rawValueBuilder_ == null) { return rawValue_.size(); } else { return rawValueBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray getRawValue(int index) { if (rawValueBuilder_ == null) { return rawValue_.get(index); } else { return rawValueBuilder_.getMessage(index); } } public Builder setRawValue( int index, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray value) { if (rawValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRawValueIsMutable(); rawValue_.set(index, value); onChanged(); } else { rawValueBuilder_.setMessage(index, value); } return this; } public Builder setRawValue( int index, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder builderForValue) { if (rawValueBuilder_ == null) { ensureRawValueIsMutable(); rawValue_.set(index, builderForValue.build()); onChanged(); } else { rawValueBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addRawValue(com.sensei.search.req.protobuf.SenseiProtos.ObjectArray value) { if (rawValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRawValueIsMutable(); rawValue_.add(value); onChanged(); } else { rawValueBuilder_.addMessage(value); } return this; } public Builder addRawValue( int index, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray value) { if (rawValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRawValueIsMutable(); rawValue_.add(index, value); onChanged(); } else { rawValueBuilder_.addMessage(index, value); } return this; } public Builder addRawValue( com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder builderForValue) { if (rawValueBuilder_ == null) { ensureRawValueIsMutable(); rawValue_.add(builderForValue.build()); onChanged(); } else { rawValueBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addRawValue( int index, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder builderForValue) { if (rawValueBuilder_ == null) { ensureRawValueIsMutable(); rawValue_.add(index, builderForValue.build()); onChanged(); } else { rawValueBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllRawValue( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.ObjectArray> values) { if (rawValueBuilder_ == null) { ensureRawValueIsMutable(); super.addAll(values, rawValue_); onChanged(); } else { rawValueBuilder_.addAllMessages(values); } return this; } public Builder clearRawValue() { if (rawValueBuilder_ == null) { rawValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rawValueBuilder_.clear(); } return this; } public Builder removeRawValue(int index) { if (rawValueBuilder_ == null) { ensureRawValueIsMutable(); rawValue_.remove(index); onChanged(); } else { rawValueBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder getRawValueBuilder( int index) { return getRawValueFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder getRawValueOrBuilder( int index) { if (rawValueBuilder_ == null) { return rawValue_.get(index); } else { return rawValueBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder> getRawValueOrBuilderList() { if (rawValueBuilder_ != null) { return rawValueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rawValue_); } } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder addRawValueBuilder() { return getRawValueFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder addRawValueBuilder( int index) { return getRawValueFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder> getRawValueBuilderList() { return getRawValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.ObjectArray, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder> getRawValueFieldBuilder() { if (rawValueBuilder_ == null) { rawValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.ObjectArray, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.ObjectArrayOrBuilder>( rawValue_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); rawValue_ = null; } return rawValueBuilder_; } // repeated .com.sensei.search.req.protobuf.StringArray value = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringArray> value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { value_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.StringArray>(value_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringArray, com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder> valueBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringArray> getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.StringArray getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.StringArray value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addValue(com.sensei.search.req.protobuf.SenseiProtos.StringArray value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.StringArray value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } public Builder addValue( com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllValue( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.StringArray> values) { if (valueBuilder_ == null) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valueBuilder_.clear(); } return this; } public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder> getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } public com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.StringArray.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.StringArray.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder> getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringArray, com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.StringArray, com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder, com.sensei.search.req.protobuf.SenseiProtos.StringArrayOrBuilder>( value_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FieldValues) } static { defaultInstance = new FieldValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FieldValues) } public interface FieldableOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional float boost = 1; boolean hasBoost(); float getBoost(); // optional string name = 2; boolean hasName(); String getName(); // optional string string_value = 3; boolean hasStringValue(); String getStringValue(); // optional bool stored = 4; boolean hasStored(); boolean getStored(); // optional bool indexed = 5; boolean hasIndexed(); boolean getIndexed(); // optional bool tokenized = 6; boolean hasTokenized(); boolean getTokenized(); // optional bool term_vector_stored = 7; boolean hasTermVectorStored(); boolean getTermVectorStored(); // optional bool store_offset_with_term_vector = 8; boolean hasStoreOffsetWithTermVector(); boolean getStoreOffsetWithTermVector(); // optional bool store_position_with_term_vector = 9; boolean hasStorePositionWithTermVector(); boolean getStorePositionWithTermVector(); // optional bool binary = 10; boolean hasBinary(); boolean getBinary(); // optional bool omit_norms = 11; boolean hasOmitNorms(); boolean getOmitNorms(); // optional bool lazy = 12; boolean hasLazy(); boolean getLazy(); // optional int32 binary_offset = 13; boolean hasBinaryOffset(); int getBinaryOffset(); // optional int32 binary_length = 14; boolean hasBinaryLength(); int getBinaryLength(); // optional bytes binary_value = 15; boolean hasBinaryValue(); com.google.protobuf.ByteString getBinaryValue(); } public static final class Fieldable extends com.google.protobuf.GeneratedMessage implements FieldableOrBuilder { // Use Fieldable.newBuilder() to construct. private Fieldable(Builder builder) { super(builder); } private Fieldable(boolean noInit) {} private static final Fieldable defaultInstance; public static Fieldable getDefaultInstance() { return defaultInstance; } public Fieldable getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Fieldable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Fieldable_fieldAccessorTable; } private int bitField0_; // optional float boost = 1; public static final int BOOST_FIELD_NUMBER = 1; private float boost_; public boolean hasBoost() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getBoost() { return boost_; } // optional string name = 2; public static final int NAME_FIELD_NUMBER = 2; private Object name_; public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getName() { Object ref = name_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { name_ = s; } return s; } } private com.google.protobuf.ByteString getNameBytes() { Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string string_value = 3; public static final int STRING_VALUE_FIELD_NUMBER = 3; private Object stringValue_; public boolean hasStringValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getStringValue() { Object ref = stringValue_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { stringValue_ = s; } return s; } } private com.google.protobuf.ByteString getStringValueBytes() { Object ref = stringValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); stringValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool stored = 4; public static final int STORED_FIELD_NUMBER = 4; private boolean stored_; public boolean hasStored() { return ((bitField0_ & 0x00000008) == 0x00000008); } public boolean getStored() { return stored_; } // optional bool indexed = 5; public static final int INDEXED_FIELD_NUMBER = 5; private boolean indexed_; public boolean hasIndexed() { return ((bitField0_ & 0x00000010) == 0x00000010); } public boolean getIndexed() { return indexed_; } // optional bool tokenized = 6; public static final int TOKENIZED_FIELD_NUMBER = 6; private boolean tokenized_; public boolean hasTokenized() { return ((bitField0_ & 0x00000020) == 0x00000020); } public boolean getTokenized() { return tokenized_; } // optional bool term_vector_stored = 7; public static final int TERM_VECTOR_STORED_FIELD_NUMBER = 7; private boolean termVectorStored_; public boolean hasTermVectorStored() { return ((bitField0_ & 0x00000040) == 0x00000040); } public boolean getTermVectorStored() { return termVectorStored_; } // optional bool store_offset_with_term_vector = 8; public static final int STORE_OFFSET_WITH_TERM_VECTOR_FIELD_NUMBER = 8; private boolean storeOffsetWithTermVector_; public boolean hasStoreOffsetWithTermVector() { return ((bitField0_ & 0x00000080) == 0x00000080); } public boolean getStoreOffsetWithTermVector() { return storeOffsetWithTermVector_; } // optional bool store_position_with_term_vector = 9; public static final int STORE_POSITION_WITH_TERM_VECTOR_FIELD_NUMBER = 9; private boolean storePositionWithTermVector_; public boolean hasStorePositionWithTermVector() { return ((bitField0_ & 0x00000100) == 0x00000100); } public boolean getStorePositionWithTermVector() { return storePositionWithTermVector_; } // optional bool binary = 10; public static final int BINARY_FIELD_NUMBER = 10; private boolean binary_; public boolean hasBinary() { return ((bitField0_ & 0x00000200) == 0x00000200); } public boolean getBinary() { return binary_; } // optional bool omit_norms = 11; public static final int OMIT_NORMS_FIELD_NUMBER = 11; private boolean omitNorms_; public boolean hasOmitNorms() { return ((bitField0_ & 0x00000400) == 0x00000400); } public boolean getOmitNorms() { return omitNorms_; } // optional bool lazy = 12; public static final int LAZY_FIELD_NUMBER = 12; private boolean lazy_; public boolean hasLazy() { return ((bitField0_ & 0x00000800) == 0x00000800); } public boolean getLazy() { return lazy_; } // optional int32 binary_offset = 13; public static final int BINARY_OFFSET_FIELD_NUMBER = 13; private int binaryOffset_; public boolean hasBinaryOffset() { return ((bitField0_ & 0x00001000) == 0x00001000); } public int getBinaryOffset() { return binaryOffset_; } // optional int32 binary_length = 14; public static final int BINARY_LENGTH_FIELD_NUMBER = 14; private int binaryLength_; public boolean hasBinaryLength() { return ((bitField0_ & 0x00002000) == 0x00002000); } public int getBinaryLength() { return binaryLength_; } // optional bytes binary_value = 15; public static final int BINARY_VALUE_FIELD_NUMBER = 15; private com.google.protobuf.ByteString binaryValue_; public boolean hasBinaryValue() { return ((bitField0_ & 0x00004000) == 0x00004000); } public com.google.protobuf.ByteString getBinaryValue() { return binaryValue_; } private void initFields() { boost_ = 0F; name_ = ""; stringValue_ = ""; stored_ = false; indexed_ = false; tokenized_ = false; termVectorStored_ = false; storeOffsetWithTermVector_ = false; storePositionWithTermVector_ = false; binary_ = false; omitNorms_ = false; lazy_ = false; binaryOffset_ = 0; binaryLength_ = 0; binaryValue_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(1, boost_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getStringValueBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, stored_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, indexed_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, tokenized_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, termVectorStored_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(8, storeOffsetWithTermVector_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(9, storePositionWithTermVector_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, binary_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, omitNorms_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(12, lazy_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(13, binaryOffset_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(14, binaryLength_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBytes(15, binaryValue_); } 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 .computeFloatSize(1, boost_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getStringValueBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, stored_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, indexed_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, tokenized_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, termVectorStored_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, storeOffsetWithTermVector_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, storePositionWithTermVector_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, binary_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, omitNorms_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, lazy_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, binaryOffset_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, binaryLength_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, binaryValue_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Fieldable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.Fieldable 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Fieldable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Fieldable_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.Fieldable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); boost_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); stringValue_ = ""; bitField0_ = (bitField0_ & ~0x00000004); stored_ = false; bitField0_ = (bitField0_ & ~0x00000008); indexed_ = false; bitField0_ = (bitField0_ & ~0x00000010); tokenized_ = false; bitField0_ = (bitField0_ & ~0x00000020); termVectorStored_ = false; bitField0_ = (bitField0_ & ~0x00000040); storeOffsetWithTermVector_ = false; bitField0_ = (bitField0_ & ~0x00000080); storePositionWithTermVector_ = false; bitField0_ = (bitField0_ & ~0x00000100); binary_ = false; bitField0_ = (bitField0_ & ~0x00000200); omitNorms_ = false; bitField0_ = (bitField0_ & ~0x00000400); lazy_ = false; bitField0_ = (bitField0_ & ~0x00000800); binaryOffset_ = 0; bitField0_ = (bitField0_ & ~0x00001000); binaryLength_ = 0; bitField0_ = (bitField0_ & ~0x00002000); binaryValue_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.Fieldable.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.Fieldable.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable build() { com.sensei.search.req.protobuf.SenseiProtos.Fieldable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.Fieldable buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.Fieldable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.Fieldable result = new com.sensei.search.req.protobuf.SenseiProtos.Fieldable(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.boost_ = boost_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.stringValue_ = stringValue_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.stored_ = stored_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.indexed_ = indexed_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.tokenized_ = tokenized_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.termVectorStored_ = termVectorStored_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.storeOffsetWithTermVector_ = storeOffsetWithTermVector_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.storePositionWithTermVector_ = storePositionWithTermVector_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.binary_ = binary_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.omitNorms_ = omitNorms_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.lazy_ = lazy_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.binaryOffset_ = binaryOffset_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.binaryLength_ = binaryLength_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.binaryValue_ = binaryValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.Fieldable) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.Fieldable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.Fieldable other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.Fieldable.getDefaultInstance()) return this; if (other.hasBoost()) { setBoost(other.getBoost()); } if (other.hasName()) { setName(other.getName()); } if (other.hasStringValue()) { setStringValue(other.getStringValue()); } if (other.hasStored()) { setStored(other.getStored()); } if (other.hasIndexed()) { setIndexed(other.getIndexed()); } if (other.hasTokenized()) { setTokenized(other.getTokenized()); } if (other.hasTermVectorStored()) { setTermVectorStored(other.getTermVectorStored()); } if (other.hasStoreOffsetWithTermVector()) { setStoreOffsetWithTermVector(other.getStoreOffsetWithTermVector()); } if (other.hasStorePositionWithTermVector()) { setStorePositionWithTermVector(other.getStorePositionWithTermVector()); } if (other.hasBinary()) { setBinary(other.getBinary()); } if (other.hasOmitNorms()) { setOmitNorms(other.getOmitNorms()); } if (other.hasLazy()) { setLazy(other.getLazy()); } if (other.hasBinaryOffset()) { setBinaryOffset(other.getBinaryOffset()); } if (other.hasBinaryLength()) { setBinaryLength(other.getBinaryLength()); } if (other.hasBinaryValue()) { setBinaryValue(other.getBinaryValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 13: { bitField0_ |= 0x00000001; boost_ = input.readFloat(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; stringValue_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; stored_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000010; indexed_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; tokenized_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000040; termVectorStored_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000080; storeOffsetWithTermVector_ = input.readBool(); break; } case 72: { bitField0_ |= 0x00000100; storePositionWithTermVector_ = input.readBool(); break; } case 80: { bitField0_ |= 0x00000200; binary_ = input.readBool(); break; } case 88: { bitField0_ |= 0x00000400; omitNorms_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000800; lazy_ = input.readBool(); break; } case 104: { bitField0_ |= 0x00001000; binaryOffset_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00002000; binaryLength_ = input.readInt32(); break; } case 122: { bitField0_ |= 0x00004000; binaryValue_ = input.readBytes(); break; } } } } private int bitField0_; // optional float boost = 1; private float boost_ ; public boolean hasBoost() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getBoost() { return boost_; } public Builder setBoost(float value) { bitField0_ |= 0x00000001; boost_ = value; onChanged(); return this; } public Builder clearBoost() { bitField0_ = (bitField0_ & ~0x00000001); boost_ = 0F; onChanged(); return this; } // optional string name = 2; private Object name_ = ""; public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getName() { Object ref = name_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); name_ = s; return s; } else { return (String) ref; } } public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } void setName(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; name_ = value; onChanged(); } // optional string string_value = 3; private Object stringValue_ = ""; public boolean hasStringValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getStringValue() { Object ref = stringValue_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); stringValue_ = s; return s; } else { return (String) ref; } } public Builder setStringValue(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; stringValue_ = value; onChanged(); return this; } public Builder clearStringValue() { bitField0_ = (bitField0_ & ~0x00000004); stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; } void setStringValue(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; stringValue_ = value; onChanged(); } // optional bool stored = 4; private boolean stored_ ; public boolean hasStored() { return ((bitField0_ & 0x00000008) == 0x00000008); } public boolean getStored() { return stored_; } public Builder setStored(boolean value) { bitField0_ |= 0x00000008; stored_ = value; onChanged(); return this; } public Builder clearStored() { bitField0_ = (bitField0_ & ~0x00000008); stored_ = false; onChanged(); return this; } // optional bool indexed = 5; private boolean indexed_ ; public boolean hasIndexed() { return ((bitField0_ & 0x00000010) == 0x00000010); } public boolean getIndexed() { return indexed_; } public Builder setIndexed(boolean value) { bitField0_ |= 0x00000010; indexed_ = value; onChanged(); return this; } public Builder clearIndexed() { bitField0_ = (bitField0_ & ~0x00000010); indexed_ = false; onChanged(); return this; } // optional bool tokenized = 6; private boolean tokenized_ ; public boolean hasTokenized() { return ((bitField0_ & 0x00000020) == 0x00000020); } public boolean getTokenized() { return tokenized_; } public Builder setTokenized(boolean value) { bitField0_ |= 0x00000020; tokenized_ = value; onChanged(); return this; } public Builder clearTokenized() { bitField0_ = (bitField0_ & ~0x00000020); tokenized_ = false; onChanged(); return this; } // optional bool term_vector_stored = 7; private boolean termVectorStored_ ; public boolean hasTermVectorStored() { return ((bitField0_ & 0x00000040) == 0x00000040); } public boolean getTermVectorStored() { return termVectorStored_; } public Builder setTermVectorStored(boolean value) { bitField0_ |= 0x00000040; termVectorStored_ = value; onChanged(); return this; } public Builder clearTermVectorStored() { bitField0_ = (bitField0_ & ~0x00000040); termVectorStored_ = false; onChanged(); return this; } // optional bool store_offset_with_term_vector = 8; private boolean storeOffsetWithTermVector_ ; public boolean hasStoreOffsetWithTermVector() { return ((bitField0_ & 0x00000080) == 0x00000080); } public boolean getStoreOffsetWithTermVector() { return storeOffsetWithTermVector_; } public Builder setStoreOffsetWithTermVector(boolean value) { bitField0_ |= 0x00000080; storeOffsetWithTermVector_ = value; onChanged(); return this; } public Builder clearStoreOffsetWithTermVector() { bitField0_ = (bitField0_ & ~0x00000080); storeOffsetWithTermVector_ = false; onChanged(); return this; } // optional bool store_position_with_term_vector = 9; private boolean storePositionWithTermVector_ ; public boolean hasStorePositionWithTermVector() { return ((bitField0_ & 0x00000100) == 0x00000100); } public boolean getStorePositionWithTermVector() { return storePositionWithTermVector_; } public Builder setStorePositionWithTermVector(boolean value) { bitField0_ |= 0x00000100; storePositionWithTermVector_ = value; onChanged(); return this; } public Builder clearStorePositionWithTermVector() { bitField0_ = (bitField0_ & ~0x00000100); storePositionWithTermVector_ = false; onChanged(); return this; } // optional bool binary = 10; private boolean binary_ ; public boolean hasBinary() { return ((bitField0_ & 0x00000200) == 0x00000200); } public boolean getBinary() { return binary_; } public Builder setBinary(boolean value) { bitField0_ |= 0x00000200; binary_ = value; onChanged(); return this; } public Builder clearBinary() { bitField0_ = (bitField0_ & ~0x00000200); binary_ = false; onChanged(); return this; } // optional bool omit_norms = 11; private boolean omitNorms_ ; public boolean hasOmitNorms() { return ((bitField0_ & 0x00000400) == 0x00000400); } public boolean getOmitNorms() { return omitNorms_; } public Builder setOmitNorms(boolean value) { bitField0_ |= 0x00000400; omitNorms_ = value; onChanged(); return this; } public Builder clearOmitNorms() { bitField0_ = (bitField0_ & ~0x00000400); omitNorms_ = false; onChanged(); return this; } // optional bool lazy = 12; private boolean lazy_ ; public boolean hasLazy() { return ((bitField0_ & 0x00000800) == 0x00000800); } public boolean getLazy() { return lazy_; } public Builder setLazy(boolean value) { bitField0_ |= 0x00000800; lazy_ = value; onChanged(); return this; } public Builder clearLazy() { bitField0_ = (bitField0_ & ~0x00000800); lazy_ = false; onChanged(); return this; } // optional int32 binary_offset = 13; private int binaryOffset_ ; public boolean hasBinaryOffset() { return ((bitField0_ & 0x00001000) == 0x00001000); } public int getBinaryOffset() { return binaryOffset_; } public Builder setBinaryOffset(int value) { bitField0_ |= 0x00001000; binaryOffset_ = value; onChanged(); return this; } public Builder clearBinaryOffset() { bitField0_ = (bitField0_ & ~0x00001000); binaryOffset_ = 0; onChanged(); return this; } // optional int32 binary_length = 14; private int binaryLength_ ; public boolean hasBinaryLength() { return ((bitField0_ & 0x00002000) == 0x00002000); } public int getBinaryLength() { return binaryLength_; } public Builder setBinaryLength(int value) { bitField0_ |= 0x00002000; binaryLength_ = value; onChanged(); return this; } public Builder clearBinaryLength() { bitField0_ = (bitField0_ & ~0x00002000); binaryLength_ = 0; onChanged(); return this; } // optional bytes binary_value = 15; private com.google.protobuf.ByteString binaryValue_ = com.google.protobuf.ByteString.EMPTY; public boolean hasBinaryValue() { return ((bitField0_ & 0x00004000) == 0x00004000); } public com.google.protobuf.ByteString getBinaryValue() { return binaryValue_; } public Builder setBinaryValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; binaryValue_ = value; onChanged(); return this; } public Builder clearBinaryValue() { bitField0_ = (bitField0_ & ~0x00004000); binaryValue_ = getDefaultInstance().getBinaryValue(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.Fieldable) } static { defaultInstance = new Fieldable(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.Fieldable) } public interface DocumentOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional float boost = 1; boolean hasBoost(); float getBoost(); // repeated .com.sensei.search.req.protobuf.Fieldable fields = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Fieldable> getFieldsList(); com.sensei.search.req.protobuf.SenseiProtos.Fieldable getFields(int index); int getFieldsCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder> getFieldsOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder getFieldsOrBuilder( int index); } public static final class Document extends com.google.protobuf.GeneratedMessage implements DocumentOrBuilder { // Use Document.newBuilder() to construct. private Document(Builder builder) { super(builder); } private Document(boolean noInit) {} private static final Document defaultInstance; public static Document getDefaultInstance() { return defaultInstance; } public Document getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Document_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Document_fieldAccessorTable; } private int bitField0_; // optional float boost = 1; public static final int BOOST_FIELD_NUMBER = 1; private float boost_; public boolean hasBoost() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getBoost() { return boost_; } // repeated .com.sensei.search.req.protobuf.Fieldable fields = 2; public static final int FIELDS_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Fieldable> fields_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Fieldable> getFieldsList() { return fields_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder> getFieldsOrBuilderList() { return fields_; } public int getFieldsCount() { return fields_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable getFields(int index) { return fields_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } private void initFields() { boost_ = 0F; fields_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(1, boost_); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(2, fields_.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 .computeFloatSize(1, boost_); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.Document parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.Document 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Document_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_Document_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.Document.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); boost_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { fieldsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.Document.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.Document getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.Document build() { com.sensei.search.req.protobuf.SenseiProtos.Document result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.Document buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.Document result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.Document buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.Document result = new com.sensei.search.req.protobuf.SenseiProtos.Document(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.boost_ = boost_; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000002); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.Document) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.Document)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.Document other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance()) return this; if (other.hasBoost()) { setBoost(other.getBoost()); } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); fieldsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 13: { bitField0_ |= 0x00000001; boost_ = input.readFloat(); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.Fieldable.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addFields(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional float boost = 1; private float boost_ ; public boolean hasBoost() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getBoost() { return boost_; } public Builder setBoost(float value) { bitField0_ |= 0x00000001; boost_ = value; onChanged(); return this; } public Builder clearBoost() { bitField0_ = (bitField0_ & ~0x00000001); boost_ = 0F; onChanged(); return this; } // repeated .com.sensei.search.req.protobuf.Fieldable fields = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Fieldable> fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { fields_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.Fieldable>(fields_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Fieldable, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder, com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder> fieldsBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Fieldable> getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } public Builder setFields( int index, com.sensei.search.req.protobuf.SenseiProtos.Fieldable value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } public Builder setFields( int index, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addFields(com.sensei.search.req.protobuf.SenseiProtos.Fieldable value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } public Builder addFields( int index, com.sensei.search.req.protobuf.SenseiProtos.Fieldable value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } public Builder addFields( com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addFields( int index, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllFields( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.Fieldable> values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); super.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { fieldsBuilder_.clear(); } return this; } public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder> getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.Fieldable.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder> getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Fieldable, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder, com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Fieldable, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder, com.sensei.search.req.protobuf.SenseiProtos.FieldableOrBuilder>( fields_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.Document) } static { defaultInstance = new Document(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.Document) } public interface TermFrequencyMapOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string key = 1; java.util.List<String> getKeyList(); int getKeyCount(); String getKey(int index); // repeated .com.sensei.search.req.protobuf.TermFrequencyVector value = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector> getValueList(); com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector getValue(int index); int getValueCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder> getValueOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder getValueOrBuilder( int index); } public static final class TermFrequencyMap extends com.google.protobuf.GeneratedMessage implements TermFrequencyMapOrBuilder { // Use TermFrequencyMap.newBuilder() to construct. private TermFrequencyMap(Builder builder) { super(builder); } private TermFrequencyMap(boolean noInit) {} private static final TermFrequencyMap defaultInstance; public static TermFrequencyMap getDefaultInstance() { return defaultInstance; } public TermFrequencyMap getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_fieldAccessorTable; } // repeated string key = 1; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; public java.util.List<String> getKeyList() { return key_; } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } // repeated .com.sensei.search.req.protobuf.TermFrequencyVector value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector> value_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector> getValueList() { return value_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder> getValueOrBuilderList() { return value_; } public int getValueCount() { return value_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector getValue(int index) { return value_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder getValueOrBuilder( int index) { return value_.get(index); } private void initFields() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(2, value_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, value_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getValueFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valueBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap build() { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap result = new com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList( key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); valueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureKeyIsMutable(); key_.add(input.readBytes()); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addValue(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated string key = 1; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } public java.util.List<String> getKeyList() { return java.util.Collections.unmodifiableList(key_); } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } public Builder setKey( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } public Builder addKey(String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } public Builder addAllKey( java.lang.Iterable<String> values) { ensureKeyIsMutable(); super.addAll(values, key_); onChanged(); return this; } public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addKey(com.google.protobuf.ByteString value) { ensureKeyIsMutable(); key_.add(value); onChanged(); } // repeated .com.sensei.search.req.protobuf.TermFrequencyVector value = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector> value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector>(value_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder> valueBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector> getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addValue(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } public Builder addValue( com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllValue( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector> values) { if (valueBuilder_ == null) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valueBuilder_.clear(); } return this; } public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder> getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder> getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVectorOrBuilder>( value_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.TermFrequencyMap) } static { defaultInstance = new TermFrequencyMap(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.TermFrequencyMap) } public interface SenseiHitOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional float score = 1; boolean hasScore(); float getScore(); // optional int32 doc_id = 2; boolean hasDocId(); int getDocId(); // optional .com.sensei.search.req.protobuf.FieldValues field_values = 3; boolean hasFieldValues(); com.sensei.search.req.protobuf.SenseiProtos.FieldValues getFieldValues(); com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder getFieldValuesOrBuilder(); // repeated .com.sensei.search.req.protobuf.JavaPrimitives field_type = 4; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives> getFieldTypeList(); int getFieldTypeCount(); com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives getFieldType(int index); // optional int32 group_position = 5; boolean hasGroupPosition(); int getGroupPosition(); // optional .com.sensei.search.req.protobuf.Document stored_fields = 6; boolean hasStoredFields(); com.sensei.search.req.protobuf.SenseiProtos.Document getStoredFields(); com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder getStoredFieldsOrBuilder(); // optional string group_field = 7; boolean hasGroupField(); String getGroupField(); // optional string group_value = 8; boolean hasGroupValue(); String getGroupValue(); // optional bytes raw_group_value = 9; boolean hasRawGroupValue(); com.google.protobuf.ByteString getRawGroupValue(); // optional int32 total_group_hit_count = 10; boolean hasTotalGroupHitCount(); int getTotalGroupHitCount(); // repeated .com.sensei.search.req.protobuf.SenseiHit group_hit = 11; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> getGroupHitList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getGroupHit(int index); int getGroupHitCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getGroupHitOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder getGroupHitOrBuilder( int index); // optional .com.sensei.search.req.protobuf.Explanation explanation = 12; boolean hasExplanation(); com.sensei.search.req.protobuf.SenseiProtos.Explanation getExplanation(); com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder getExplanationOrBuilder(); // optional int64 uid = 13; boolean hasUid(); long getUid(); // optional string src_data = 14; boolean hasSrcData(); String getSrcData(); // optional bytes stored_value = 15; boolean hasStoredValue(); com.google.protobuf.ByteString getStoredValue(); // optional .com.sensei.search.req.protobuf.TermFrequencyMap term_frequency_map = 16; boolean hasTermFrequencyMap(); com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap getTermFrequencyMap(); com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder getTermFrequencyMapOrBuilder(); // repeated float features = 17; java.util.List<java.lang.Float> getFeaturesList(); int getFeaturesCount(); float getFeatures(int index); } public static final class SenseiHit extends com.google.protobuf.GeneratedMessage implements SenseiHitOrBuilder { // Use SenseiHit.newBuilder() to construct. private SenseiHit(Builder builder) { super(builder); } private SenseiHit(boolean noInit) {} private static final SenseiHit defaultInstance; public static SenseiHit getDefaultInstance() { return defaultInstance; } public SenseiHit getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiHit_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiHit_fieldAccessorTable; } private int bitField0_; // optional float score = 1; public static final int SCORE_FIELD_NUMBER = 1; private float score_; public boolean hasScore() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getScore() { return score_; } // optional int32 doc_id = 2; public static final int DOC_ID_FIELD_NUMBER = 2; private int docId_; public boolean hasDocId() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getDocId() { return docId_; } // optional .com.sensei.search.req.protobuf.FieldValues field_values = 3; public static final int FIELD_VALUES_FIELD_NUMBER = 3; private com.sensei.search.req.protobuf.SenseiProtos.FieldValues fieldValues_; public boolean hasFieldValues() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.FieldValues getFieldValues() { return fieldValues_; } public com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder getFieldValuesOrBuilder() { return fieldValues_; } // repeated .com.sensei.search.req.protobuf.JavaPrimitives field_type = 4; public static final int FIELD_TYPE_FIELD_NUMBER = 4; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives> fieldType_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives> getFieldTypeList() { return fieldType_; } public int getFieldTypeCount() { return fieldType_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives getFieldType(int index) { return fieldType_.get(index); } // optional int32 group_position = 5; public static final int GROUP_POSITION_FIELD_NUMBER = 5; private int groupPosition_; public boolean hasGroupPosition() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getGroupPosition() { return groupPosition_; } // optional .com.sensei.search.req.protobuf.Document stored_fields = 6; public static final int STORED_FIELDS_FIELD_NUMBER = 6; private com.sensei.search.req.protobuf.SenseiProtos.Document storedFields_; public boolean hasStoredFields() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.sensei.search.req.protobuf.SenseiProtos.Document getStoredFields() { return storedFields_; } public com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder getStoredFieldsOrBuilder() { return storedFields_; } // optional string group_field = 7; public static final int GROUP_FIELD_FIELD_NUMBER = 7; private Object groupField_; public boolean hasGroupField() { return ((bitField0_ & 0x00000020) == 0x00000020); } public String getGroupField() { Object ref = groupField_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { groupField_ = s; } return s; } } private com.google.protobuf.ByteString getGroupFieldBytes() { Object ref = groupField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); groupField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string group_value = 8; public static final int GROUP_VALUE_FIELD_NUMBER = 8; private Object groupValue_; public boolean hasGroupValue() { return ((bitField0_ & 0x00000040) == 0x00000040); } public String getGroupValue() { Object ref = groupValue_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { groupValue_ = s; } return s; } } private com.google.protobuf.ByteString getGroupValueBytes() { Object ref = groupValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); groupValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes raw_group_value = 9; public static final int RAW_GROUP_VALUE_FIELD_NUMBER = 9; private com.google.protobuf.ByteString rawGroupValue_; public boolean hasRawGroupValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } public com.google.protobuf.ByteString getRawGroupValue() { return rawGroupValue_; } // optional int32 total_group_hit_count = 10; public static final int TOTAL_GROUP_HIT_COUNT_FIELD_NUMBER = 10; private int totalGroupHitCount_; public boolean hasTotalGroupHitCount() { return ((bitField0_ & 0x00000100) == 0x00000100); } public int getTotalGroupHitCount() { return totalGroupHitCount_; } // repeated .com.sensei.search.req.protobuf.SenseiHit group_hit = 11; public static final int GROUP_HIT_FIELD_NUMBER = 11; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> groupHit_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> getGroupHitList() { return groupHit_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getGroupHitOrBuilderList() { return groupHit_; } public int getGroupHitCount() { return groupHit_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getGroupHit(int index) { return groupHit_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder getGroupHitOrBuilder( int index) { return groupHit_.get(index); } // optional .com.sensei.search.req.protobuf.Explanation explanation = 12; public static final int EXPLANATION_FIELD_NUMBER = 12; private com.sensei.search.req.protobuf.SenseiProtos.Explanation explanation_; public boolean hasExplanation() { return ((bitField0_ & 0x00000200) == 0x00000200); } public com.sensei.search.req.protobuf.SenseiProtos.Explanation getExplanation() { return explanation_; } public com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder getExplanationOrBuilder() { return explanation_; } // optional int64 uid = 13; public static final int UID_FIELD_NUMBER = 13; private long uid_; public boolean hasUid() { return ((bitField0_ & 0x00000400) == 0x00000400); } public long getUid() { return uid_; } // optional string src_data = 14; public static final int SRC_DATA_FIELD_NUMBER = 14; private Object srcData_; public boolean hasSrcData() { return ((bitField0_ & 0x00000800) == 0x00000800); } public String getSrcData() { Object ref = srcData_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { srcData_ = s; } return s; } } private com.google.protobuf.ByteString getSrcDataBytes() { Object ref = srcData_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); srcData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes stored_value = 15; public static final int STORED_VALUE_FIELD_NUMBER = 15; private com.google.protobuf.ByteString storedValue_; public boolean hasStoredValue() { return ((bitField0_ & 0x00001000) == 0x00001000); } public com.google.protobuf.ByteString getStoredValue() { return storedValue_; } // optional .com.sensei.search.req.protobuf.TermFrequencyMap term_frequency_map = 16; public static final int TERM_FREQUENCY_MAP_FIELD_NUMBER = 16; private com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap termFrequencyMap_; public boolean hasTermFrequencyMap() { return ((bitField0_ & 0x00002000) == 0x00002000); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap getTermFrequencyMap() { return termFrequencyMap_; } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder getTermFrequencyMapOrBuilder() { return termFrequencyMap_; } // repeated float features = 17; public static final int FEATURES_FIELD_NUMBER = 17; private java.util.List<java.lang.Float> features_; public java.util.List<java.lang.Float> getFeaturesList() { return features_; } public int getFeaturesCount() { return features_.size(); } public float getFeatures(int index) { return features_.get(index); } private void initFields() { score_ = 0F; docId_ = 0; fieldValues_ = com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance(); fieldType_ = java.util.Collections.emptyList(); groupPosition_ = 0; storedFields_ = com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance(); groupField_ = ""; groupValue_ = ""; rawGroupValue_ = com.google.protobuf.ByteString.EMPTY; totalGroupHitCount_ = 0; groupHit_ = java.util.Collections.emptyList(); explanation_ = com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance(); uid_ = 0L; srcData_ = ""; storedValue_ = com.google.protobuf.ByteString.EMPTY; termFrequencyMap_ = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance(); features_ = java.util.Collections.emptyList();; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(1, score_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, docId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, fieldValues_); } for (int i = 0; i < fieldType_.size(); i++) { output.writeEnum(4, fieldType_.get(i).getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(5, groupPosition_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, storedFields_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(7, getGroupFieldBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(8, getGroupValueBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(9, rawGroupValue_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(10, totalGroupHitCount_); } for (int i = 0; i < groupHit_.size(); i++) { output.writeMessage(11, groupHit_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(12, explanation_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(13, uid_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBytes(14, getSrcDataBytes()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(15, storedValue_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeMessage(16, termFrequencyMap_); } for (int i = 0; i < features_.size(); i++) { output.writeFloat(17, features_.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 .computeFloatSize(1, score_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, docId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fieldValues_); } { int dataSize = 0; for (int i = 0; i < fieldType_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(fieldType_.get(i).getNumber()); } size += dataSize; size += 1 * fieldType_.size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, groupPosition_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, storedFields_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getGroupFieldBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getGroupValueBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, rawGroupValue_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, totalGroupHitCount_); } for (int i = 0; i < groupHit_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, groupHit_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, explanation_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, uid_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, getSrcDataBytes()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, storedValue_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, termFrequencyMap_); } { int dataSize = 0; dataSize = 4 * getFeaturesList().size(); size += dataSize; size += 2 * getFeaturesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiHit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.SenseiHit 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiHit_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiHit_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFieldValuesFieldBuilder(); getStoredFieldsFieldBuilder(); getGroupHitFieldBuilder(); getExplanationFieldBuilder(); getTermFrequencyMapFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); score_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); docId_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (fieldValuesBuilder_ == null) { fieldValues_ = com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance(); } else { fieldValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); fieldType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); groupPosition_ = 0; bitField0_ = (bitField0_ & ~0x00000010); if (storedFieldsBuilder_ == null) { storedFields_ = com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance(); } else { storedFieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); groupField_ = ""; bitField0_ = (bitField0_ & ~0x00000040); groupValue_ = ""; bitField0_ = (bitField0_ & ~0x00000080); rawGroupValue_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); totalGroupHitCount_ = 0; bitField0_ = (bitField0_ & ~0x00000200); if (groupHitBuilder_ == null) { groupHit_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { groupHitBuilder_.clear(); } if (explanationBuilder_ == null) { explanation_ = com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance(); } else { explanationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); uid_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); srcData_ = ""; bitField0_ = (bitField0_ & ~0x00002000); storedValue_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); if (termFrequencyMapBuilder_ == null) { termFrequencyMap_ = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance(); } else { termFrequencyMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); features_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00010000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit build() { com.sensei.search.req.protobuf.SenseiProtos.SenseiHit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.SenseiHit buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.SenseiHit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.SenseiHit result = new com.sensei.search.req.protobuf.SenseiProtos.SenseiHit(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.score_ = score_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.docId_ = docId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (fieldValuesBuilder_ == null) { result.fieldValues_ = fieldValues_; } else { result.fieldValues_ = fieldValuesBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { fieldType_ = java.util.Collections.unmodifiableList(fieldType_); bitField0_ = (bitField0_ & ~0x00000008); } result.fieldType_ = fieldType_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.groupPosition_ = groupPosition_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (storedFieldsBuilder_ == null) { result.storedFields_ = storedFields_; } else { result.storedFields_ = storedFieldsBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.groupField_ = groupField_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.groupValue_ = groupValue_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.rawGroupValue_ = rawGroupValue_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } result.totalGroupHitCount_ = totalGroupHitCount_; if (groupHitBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { groupHit_ = java.util.Collections.unmodifiableList(groupHit_); bitField0_ = (bitField0_ & ~0x00000400); } result.groupHit_ = groupHit_; } else { result.groupHit_ = groupHitBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000200; } if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000400; } result.uid_ = uid_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000800; } result.srcData_ = srcData_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00001000; } result.storedValue_ = storedValue_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00002000; } if (termFrequencyMapBuilder_ == null) { result.termFrequencyMap_ = termFrequencyMap_; } else { result.termFrequencyMap_ = termFrequencyMapBuilder_.build(); } if (((bitField0_ & 0x00010000) == 0x00010000)) { features_ = java.util.Collections.unmodifiableList(features_); bitField0_ = (bitField0_ & ~0x00010000); } result.features_ = features_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.SenseiHit) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.SenseiHit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.SenseiHit other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDefaultInstance()) return this; if (other.hasScore()) { setScore(other.getScore()); } if (other.hasDocId()) { setDocId(other.getDocId()); } if (other.hasFieldValues()) { mergeFieldValues(other.getFieldValues()); } if (!other.fieldType_.isEmpty()) { if (fieldType_.isEmpty()) { fieldType_ = other.fieldType_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFieldTypeIsMutable(); fieldType_.addAll(other.fieldType_); } onChanged(); } if (other.hasGroupPosition()) { setGroupPosition(other.getGroupPosition()); } if (other.hasStoredFields()) { mergeStoredFields(other.getStoredFields()); } if (other.hasGroupField()) { setGroupField(other.getGroupField()); } if (other.hasGroupValue()) { setGroupValue(other.getGroupValue()); } if (other.hasRawGroupValue()) { setRawGroupValue(other.getRawGroupValue()); } if (other.hasTotalGroupHitCount()) { setTotalGroupHitCount(other.getTotalGroupHitCount()); } if (groupHitBuilder_ == null) { if (!other.groupHit_.isEmpty()) { if (groupHit_.isEmpty()) { groupHit_ = other.groupHit_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureGroupHitIsMutable(); groupHit_.addAll(other.groupHit_); } onChanged(); } } else { if (!other.groupHit_.isEmpty()) { if (groupHitBuilder_.isEmpty()) { groupHitBuilder_.dispose(); groupHitBuilder_ = null; groupHit_ = other.groupHit_; bitField0_ = (bitField0_ & ~0x00000400); groupHitBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getGroupHitFieldBuilder() : null; } else { groupHitBuilder_.addAllMessages(other.groupHit_); } } } if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } if (other.hasUid()) { setUid(other.getUid()); } if (other.hasSrcData()) { setSrcData(other.getSrcData()); } if (other.hasStoredValue()) { setStoredValue(other.getStoredValue()); } if (other.hasTermFrequencyMap()) { mergeTermFrequencyMap(other.getTermFrequencyMap()); } if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 13: { bitField0_ |= 0x00000001; score_ = input.readFloat(); break; } case 16: { bitField0_ |= 0x00000002; docId_ = input.readInt32(); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FieldValues.newBuilder(); if (hasFieldValues()) { subBuilder.mergeFrom(getFieldValues()); } input.readMessage(subBuilder, extensionRegistry); setFieldValues(subBuilder.buildPartial()); break; } case 32: { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives value = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { addFieldType(value); } break; } case 34: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives value = com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { addFieldType(value); } } input.popLimit(oldLimit); break; } case 40: { bitField0_ |= 0x00000010; groupPosition_ = input.readInt32(); break; } case 50: { com.sensei.search.req.protobuf.SenseiProtos.Document.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.Document.newBuilder(); if (hasStoredFields()) { subBuilder.mergeFrom(getStoredFields()); } input.readMessage(subBuilder, extensionRegistry); setStoredFields(subBuilder.buildPartial()); break; } case 58: { bitField0_ |= 0x00000040; groupField_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000080; groupValue_ = input.readBytes(); break; } case 74: { bitField0_ |= 0x00000100; rawGroupValue_ = input.readBytes(); break; } case 80: { bitField0_ |= 0x00000200; totalGroupHitCount_ = input.readInt32(); break; } case 90: { com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addGroupHit(subBuilder.buildPartial()); break; } case 98: { com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.Explanation.newBuilder(); if (hasExplanation()) { subBuilder.mergeFrom(getExplanation()); } input.readMessage(subBuilder, extensionRegistry); setExplanation(subBuilder.buildPartial()); break; } case 104: { bitField0_ |= 0x00001000; uid_ = input.readInt64(); break; } case 114: { bitField0_ |= 0x00002000; srcData_ = input.readBytes(); break; } case 122: { bitField0_ |= 0x00004000; storedValue_ = input.readBytes(); break; } case 130: { com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.newBuilder(); if (hasTermFrequencyMap()) { subBuilder.mergeFrom(getTermFrequencyMap()); } input.readMessage(subBuilder, extensionRegistry); setTermFrequencyMap(subBuilder.buildPartial()); break; } case 141: { ensureFeaturesIsMutable(); features_.add(input.readFloat()); break; } case 138: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addFeatures(input.readFloat()); } input.popLimit(limit); break; } } } } private int bitField0_; // optional float score = 1; private float score_ ; public boolean hasScore() { return ((bitField0_ & 0x00000001) == 0x00000001); } public float getScore() { return score_; } public Builder setScore(float value) { bitField0_ |= 0x00000001; score_ = value; onChanged(); return this; } public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; onChanged(); return this; } // optional int32 doc_id = 2; private int docId_ ; public boolean hasDocId() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getDocId() { return docId_; } public Builder setDocId(int value) { bitField0_ |= 0x00000002; docId_ = value; onChanged(); return this; } public Builder clearDocId() { bitField0_ = (bitField0_ & ~0x00000002); docId_ = 0; onChanged(); return this; } // optional .com.sensei.search.req.protobuf.FieldValues field_values = 3; private com.sensei.search.req.protobuf.SenseiProtos.FieldValues fieldValues_ = com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FieldValues, com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder, com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder> fieldValuesBuilder_; public boolean hasFieldValues() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.sensei.search.req.protobuf.SenseiProtos.FieldValues getFieldValues() { if (fieldValuesBuilder_ == null) { return fieldValues_; } else { return fieldValuesBuilder_.getMessage(); } } public Builder setFieldValues(com.sensei.search.req.protobuf.SenseiProtos.FieldValues value) { if (fieldValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldValues_ = value; onChanged(); } else { fieldValuesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } public Builder setFieldValues( com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder builderForValue) { if (fieldValuesBuilder_ == null) { fieldValues_ = builderForValue.build(); onChanged(); } else { fieldValuesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } public Builder mergeFieldValues(com.sensei.search.req.protobuf.SenseiProtos.FieldValues value) { if (fieldValuesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && fieldValues_ != com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance()) { fieldValues_ = com.sensei.search.req.protobuf.SenseiProtos.FieldValues.newBuilder(fieldValues_).mergeFrom(value).buildPartial(); } else { fieldValues_ = value; } onChanged(); } else { fieldValuesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } public Builder clearFieldValues() { if (fieldValuesBuilder_ == null) { fieldValues_ = com.sensei.search.req.protobuf.SenseiProtos.FieldValues.getDefaultInstance(); onChanged(); } else { fieldValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder getFieldValuesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFieldValuesFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder getFieldValuesOrBuilder() { if (fieldValuesBuilder_ != null) { return fieldValuesBuilder_.getMessageOrBuilder(); } else { return fieldValues_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FieldValues, com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder, com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder> getFieldValuesFieldBuilder() { if (fieldValuesBuilder_ == null) { fieldValuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FieldValues, com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder, com.sensei.search.req.protobuf.SenseiProtos.FieldValuesOrBuilder>( fieldValues_, getParentForChildren(), isClean()); fieldValues_ = null; } return fieldValuesBuilder_; } // repeated .com.sensei.search.req.protobuf.JavaPrimitives field_type = 4; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives> fieldType_ = java.util.Collections.emptyList(); private void ensureFieldTypeIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { fieldType_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives>(fieldType_); bitField0_ |= 0x00000008; } } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives> getFieldTypeList() { return java.util.Collections.unmodifiableList(fieldType_); } public int getFieldTypeCount() { return fieldType_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives getFieldType(int index) { return fieldType_.get(index); } public Builder setFieldType( int index, com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives value) { if (value == null) { throw new NullPointerException(); } ensureFieldTypeIsMutable(); fieldType_.set(index, value); onChanged(); return this; } public Builder addFieldType(com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives value) { if (value == null) { throw new NullPointerException(); } ensureFieldTypeIsMutable(); fieldType_.add(value); onChanged(); return this; } public Builder addAllFieldType( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.JavaPrimitives> values) { ensureFieldTypeIsMutable(); super.addAll(values, fieldType_); onChanged(); return this; } public Builder clearFieldType() { fieldType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // optional int32 group_position = 5; private int groupPosition_ ; public boolean hasGroupPosition() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getGroupPosition() { return groupPosition_; } public Builder setGroupPosition(int value) { bitField0_ |= 0x00000010; groupPosition_ = value; onChanged(); return this; } public Builder clearGroupPosition() { bitField0_ = (bitField0_ & ~0x00000010); groupPosition_ = 0; onChanged(); return this; } // optional .com.sensei.search.req.protobuf.Document stored_fields = 6; private com.sensei.search.req.protobuf.SenseiProtos.Document storedFields_ = com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Document, com.sensei.search.req.protobuf.SenseiProtos.Document.Builder, com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder> storedFieldsBuilder_; public boolean hasStoredFields() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.sensei.search.req.protobuf.SenseiProtos.Document getStoredFields() { if (storedFieldsBuilder_ == null) { return storedFields_; } else { return storedFieldsBuilder_.getMessage(); } } public Builder setStoredFields(com.sensei.search.req.protobuf.SenseiProtos.Document value) { if (storedFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storedFields_ = value; onChanged(); } else { storedFieldsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } public Builder setStoredFields( com.sensei.search.req.protobuf.SenseiProtos.Document.Builder builderForValue) { if (storedFieldsBuilder_ == null) { storedFields_ = builderForValue.build(); onChanged(); } else { storedFieldsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } public Builder mergeStoredFields(com.sensei.search.req.protobuf.SenseiProtos.Document value) { if (storedFieldsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && storedFields_ != com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance()) { storedFields_ = com.sensei.search.req.protobuf.SenseiProtos.Document.newBuilder(storedFields_).mergeFrom(value).buildPartial(); } else { storedFields_ = value; } onChanged(); } else { storedFieldsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } public Builder clearStoredFields() { if (storedFieldsBuilder_ == null) { storedFields_ = com.sensei.search.req.protobuf.SenseiProtos.Document.getDefaultInstance(); onChanged(); } else { storedFieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.sensei.search.req.protobuf.SenseiProtos.Document.Builder getStoredFieldsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getStoredFieldsFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder getStoredFieldsOrBuilder() { if (storedFieldsBuilder_ != null) { return storedFieldsBuilder_.getMessageOrBuilder(); } else { return storedFields_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Document, com.sensei.search.req.protobuf.SenseiProtos.Document.Builder, com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder> getStoredFieldsFieldBuilder() { if (storedFieldsBuilder_ == null) { storedFieldsBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Document, com.sensei.search.req.protobuf.SenseiProtos.Document.Builder, com.sensei.search.req.protobuf.SenseiProtos.DocumentOrBuilder>( storedFields_, getParentForChildren(), isClean()); storedFields_ = null; } return storedFieldsBuilder_; } // optional string group_field = 7; private Object groupField_ = ""; public boolean hasGroupField() { return ((bitField0_ & 0x00000040) == 0x00000040); } public String getGroupField() { Object ref = groupField_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); groupField_ = s; return s; } else { return (String) ref; } } public Builder setGroupField(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; groupField_ = value; onChanged(); return this; } public Builder clearGroupField() { bitField0_ = (bitField0_ & ~0x00000040); groupField_ = getDefaultInstance().getGroupField(); onChanged(); return this; } void setGroupField(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000040; groupField_ = value; onChanged(); } // optional string group_value = 8; private Object groupValue_ = ""; public boolean hasGroupValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } public String getGroupValue() { Object ref = groupValue_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); groupValue_ = s; return s; } else { return (String) ref; } } public Builder setGroupValue(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; groupValue_ = value; onChanged(); return this; } public Builder clearGroupValue() { bitField0_ = (bitField0_ & ~0x00000080); groupValue_ = getDefaultInstance().getGroupValue(); onChanged(); return this; } void setGroupValue(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000080; groupValue_ = value; onChanged(); } // optional bytes raw_group_value = 9; private com.google.protobuf.ByteString rawGroupValue_ = com.google.protobuf.ByteString.EMPTY; public boolean hasRawGroupValue() { return ((bitField0_ & 0x00000100) == 0x00000100); } public com.google.protobuf.ByteString getRawGroupValue() { return rawGroupValue_; } public Builder setRawGroupValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; rawGroupValue_ = value; onChanged(); return this; } public Builder clearRawGroupValue() { bitField0_ = (bitField0_ & ~0x00000100); rawGroupValue_ = getDefaultInstance().getRawGroupValue(); onChanged(); return this; } // optional int32 total_group_hit_count = 10; private int totalGroupHitCount_ ; public boolean hasTotalGroupHitCount() { return ((bitField0_ & 0x00000200) == 0x00000200); } public int getTotalGroupHitCount() { return totalGroupHitCount_; } public Builder setTotalGroupHitCount(int value) { bitField0_ |= 0x00000200; totalGroupHitCount_ = value; onChanged(); return this; } public Builder clearTotalGroupHitCount() { bitField0_ = (bitField0_ & ~0x00000200); totalGroupHitCount_ = 0; onChanged(); return this; } // repeated .com.sensei.search.req.protobuf.SenseiHit group_hit = 11; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> groupHit_ = java.util.Collections.emptyList(); private void ensureGroupHitIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { groupHit_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit>(groupHit_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiHit, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> groupHitBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> getGroupHitList() { if (groupHitBuilder_ == null) { return java.util.Collections.unmodifiableList(groupHit_); } else { return groupHitBuilder_.getMessageList(); } } public int getGroupHitCount() { if (groupHitBuilder_ == null) { return groupHit_.size(); } else { return groupHitBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getGroupHit(int index) { if (groupHitBuilder_ == null) { return groupHit_.get(index); } else { return groupHitBuilder_.getMessage(index); } } public Builder setGroupHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit value) { if (groupHitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupHitIsMutable(); groupHit_.set(index, value); onChanged(); } else { groupHitBuilder_.setMessage(index, value); } return this; } public Builder setGroupHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder builderForValue) { if (groupHitBuilder_ == null) { ensureGroupHitIsMutable(); groupHit_.set(index, builderForValue.build()); onChanged(); } else { groupHitBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addGroupHit(com.sensei.search.req.protobuf.SenseiProtos.SenseiHit value) { if (groupHitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupHitIsMutable(); groupHit_.add(value); onChanged(); } else { groupHitBuilder_.addMessage(value); } return this; } public Builder addGroupHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit value) { if (groupHitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupHitIsMutable(); groupHit_.add(index, value); onChanged(); } else { groupHitBuilder_.addMessage(index, value); } return this; } public Builder addGroupHit( com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder builderForValue) { if (groupHitBuilder_ == null) { ensureGroupHitIsMutable(); groupHit_.add(builderForValue.build()); onChanged(); } else { groupHitBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addGroupHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder builderForValue) { if (groupHitBuilder_ == null) { ensureGroupHitIsMutable(); groupHit_.add(index, builderForValue.build()); onChanged(); } else { groupHitBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllGroupHit( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> values) { if (groupHitBuilder_ == null) { ensureGroupHitIsMutable(); super.addAll(values, groupHit_); onChanged(); } else { groupHitBuilder_.addAllMessages(values); } return this; } public Builder clearGroupHit() { if (groupHitBuilder_ == null) { groupHit_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { groupHitBuilder_.clear(); } return this; } public Builder removeGroupHit(int index) { if (groupHitBuilder_ == null) { ensureGroupHitIsMutable(); groupHit_.remove(index); onChanged(); } else { groupHitBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder getGroupHitBuilder( int index) { return getGroupHitFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder getGroupHitOrBuilder( int index) { if (groupHitBuilder_ == null) { return groupHit_.get(index); } else { return groupHitBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getGroupHitOrBuilderList() { if (groupHitBuilder_ != null) { return groupHitBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupHit_); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder addGroupHitBuilder() { return getGroupHitFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder addGroupHitBuilder( int index) { return getGroupHitFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder> getGroupHitBuilderList() { return getGroupHitFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiHit, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getGroupHitFieldBuilder() { if (groupHitBuilder_ == null) { groupHitBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiHit, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder>( groupHit_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); groupHit_ = null; } return groupHitBuilder_; } // optional .com.sensei.search.req.protobuf.Explanation explanation = 12; private com.sensei.search.req.protobuf.SenseiProtos.Explanation explanation_ = com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Explanation, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder, com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> explanationBuilder_; public boolean hasExplanation() { return ((bitField0_ & 0x00000800) == 0x00000800); } public com.sensei.search.req.protobuf.SenseiProtos.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_; } else { return explanationBuilder_.getMessage(); } } public Builder setExplanation(com.sensei.search.req.protobuf.SenseiProtos.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } public Builder setExplanation( com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } public Builder mergeExplanation(com.sensei.search.req.protobuf.SenseiProtos.Explanation value) { if (explanationBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && explanation_ != com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance()) { explanation_ = com.sensei.search.req.protobuf.SenseiProtos.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = com.sensei.search.req.protobuf.SenseiProtos.Explanation.getDefaultInstance(); onChanged(); } else { explanationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } public com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder getExplanationBuilder() { bitField0_ |= 0x00000800; onChanged(); return getExplanationFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Explanation, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder, com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.Explanation, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder, com.sensei.search.req.protobuf.SenseiProtos.ExplanationOrBuilder>( explanation_, getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } // optional int64 uid = 13; private long uid_ ; public boolean hasUid() { return ((bitField0_ & 0x00001000) == 0x00001000); } public long getUid() { return uid_; } public Builder setUid(long value) { bitField0_ |= 0x00001000; uid_ = value; onChanged(); return this; } public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00001000); uid_ = 0L; onChanged(); return this; } // optional string src_data = 14; private Object srcData_ = ""; public boolean hasSrcData() { return ((bitField0_ & 0x00002000) == 0x00002000); } public String getSrcData() { Object ref = srcData_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); srcData_ = s; return s; } else { return (String) ref; } } public Builder setSrcData(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; srcData_ = value; onChanged(); return this; } public Builder clearSrcData() { bitField0_ = (bitField0_ & ~0x00002000); srcData_ = getDefaultInstance().getSrcData(); onChanged(); return this; } void setSrcData(com.google.protobuf.ByteString value) { bitField0_ |= 0x00002000; srcData_ = value; onChanged(); } // optional bytes stored_value = 15; private com.google.protobuf.ByteString storedValue_ = com.google.protobuf.ByteString.EMPTY; public boolean hasStoredValue() { return ((bitField0_ & 0x00004000) == 0x00004000); } public com.google.protobuf.ByteString getStoredValue() { return storedValue_; } public Builder setStoredValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; storedValue_ = value; onChanged(); return this; } public Builder clearStoredValue() { bitField0_ = (bitField0_ & ~0x00004000); storedValue_ = getDefaultInstance().getStoredValue(); onChanged(); return this; } // optional .com.sensei.search.req.protobuf.TermFrequencyMap term_frequency_map = 16; private com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap termFrequencyMap_ = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder> termFrequencyMapBuilder_; public boolean hasTermFrequencyMap() { return ((bitField0_ & 0x00008000) == 0x00008000); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap getTermFrequencyMap() { if (termFrequencyMapBuilder_ == null) { return termFrequencyMap_; } else { return termFrequencyMapBuilder_.getMessage(); } } public Builder setTermFrequencyMap(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap value) { if (termFrequencyMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } termFrequencyMap_ = value; onChanged(); } else { termFrequencyMapBuilder_.setMessage(value); } bitField0_ |= 0x00008000; return this; } public Builder setTermFrequencyMap( com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder builderForValue) { if (termFrequencyMapBuilder_ == null) { termFrequencyMap_ = builderForValue.build(); onChanged(); } else { termFrequencyMapBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; return this; } public Builder mergeTermFrequencyMap(com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap value) { if (termFrequencyMapBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000) && termFrequencyMap_ != com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance()) { termFrequencyMap_ = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.newBuilder(termFrequencyMap_).mergeFrom(value).buildPartial(); } else { termFrequencyMap_ = value; } onChanged(); } else { termFrequencyMapBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } public Builder clearTermFrequencyMap() { if (termFrequencyMapBuilder_ == null) { termFrequencyMap_ = com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.getDefaultInstance(); onChanged(); } else { termFrequencyMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder getTermFrequencyMapBuilder() { bitField0_ |= 0x00008000; onChanged(); return getTermFrequencyMapFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder getTermFrequencyMapOrBuilder() { if (termFrequencyMapBuilder_ != null) { return termFrequencyMapBuilder_.getMessageOrBuilder(); } else { return termFrequencyMap_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder> getTermFrequencyMapFieldBuilder() { if (termFrequencyMapBuilder_ == null) { termFrequencyMapBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMapOrBuilder>( termFrequencyMap_, getParentForChildren(), isClean()); termFrequencyMap_ = null; } return termFrequencyMapBuilder_; } // repeated float features = 17; private java.util.List<java.lang.Float> features_ = java.util.Collections.emptyList();; private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { features_ = new java.util.ArrayList<java.lang.Float>(features_); bitField0_ |= 0x00010000; } } public java.util.List<java.lang.Float> getFeaturesList() { return java.util.Collections.unmodifiableList(features_); } public int getFeaturesCount() { return features_.size(); } public float getFeatures(int index) { return features_.get(index); } public Builder setFeatures( int index, float value) { ensureFeaturesIsMutable(); features_.set(index, value); onChanged(); return this; } public Builder addFeatures(float value) { ensureFeaturesIsMutable(); features_.add(value); onChanged(); return this; } public Builder addAllFeatures( java.lang.Iterable<? extends java.lang.Float> values) { ensureFeaturesIsMutable(); super.addAll(values, features_); onChanged(); return this; } public Builder clearFeatures() { features_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.SenseiHit) } static { defaultInstance = new SenseiHit(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.SenseiHit) } public interface BrowseFacetOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string value = 1; boolean hasValue(); String getValue(); // optional int32 hit_count = 2; boolean hasHitCount(); int getHitCount(); } public static final class BrowseFacet extends com.google.protobuf.GeneratedMessage implements BrowseFacetOrBuilder { // Use BrowseFacet.newBuilder() to construct. private BrowseFacet(Builder builder) { super(builder); } private BrowseFacet(boolean noInit) {} private static final BrowseFacet defaultInstance; public static BrowseFacet getDefaultInstance() { return defaultInstance; } public BrowseFacet getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseFacet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseFacet_fieldAccessorTable; } private int bitField0_; // optional string value = 1; public static final int VALUE_FIELD_NUMBER = 1; private Object value_; public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getValue() { Object ref = value_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { value_ = s; } return s; } } private com.google.protobuf.ByteString getValueBytes() { Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 hit_count = 2; public static final int HIT_COUNT_FIELD_NUMBER = 2; private int hitCount_; public boolean hasHitCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getHitCount() { return hitCount_; } private void initFields() { value_ = ""; hitCount_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getValueBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, hitCount_); } 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, getValueBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, hitCount_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseFacet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_BrowseFacet_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); hitCount_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet build() { com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet result = new com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.hitCount_ = hitCount_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } if (other.hasHitCount()) { setHitCount(other.getHitCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; value_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; hitCount_ = input.readInt32(); break; } } } } private int bitField0_; // optional string value = 1; private Object value_ = ""; public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getValue() { Object ref = value_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); value_ = s; return s; } else { return (String) ref; } } public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } void setValue(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); } // optional int32 hit_count = 2; private int hitCount_ ; public boolean hasHitCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getHitCount() { return hitCount_; } public Builder setHitCount(int value) { bitField0_ |= 0x00000002; hitCount_ = value; onChanged(); return this; } public Builder clearHitCount() { bitField0_ = (bitField0_ & ~0x00000002); hitCount_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.BrowseFacet) } static { defaultInstance = new BrowseFacet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.BrowseFacet) } public interface FacetAccessibleOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .com.sensei.search.req.protobuf.BrowseFacet facets = 1; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet> getFacetsList(); com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet getFacets(int index); int getFacetsCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder> getFacetsOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder getFacetsOrBuilder( int index); // optional bytes facet_accessible_bytes = 2; boolean hasFacetAccessibleBytes(); com.google.protobuf.ByteString getFacetAccessibleBytes(); } public static final class FacetAccessible extends com.google.protobuf.GeneratedMessage implements FacetAccessibleOrBuilder { // Use FacetAccessible.newBuilder() to construct. private FacetAccessible(Builder builder) { super(builder); } private FacetAccessible(boolean noInit) {} private static final FacetAccessible defaultInstance; public static FacetAccessible getDefaultInstance() { return defaultInstance; } public FacetAccessible getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetAccessible_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetAccessible_fieldAccessorTable; } private int bitField0_; // repeated .com.sensei.search.req.protobuf.BrowseFacet facets = 1; public static final int FACETS_FIELD_NUMBER = 1; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet> facets_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet> getFacetsList() { return facets_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder> getFacetsOrBuilderList() { return facets_; } public int getFacetsCount() { return facets_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet getFacets(int index) { return facets_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder getFacetsOrBuilder( int index) { return facets_.get(index); } // optional bytes facet_accessible_bytes = 2; public static final int FACET_ACCESSIBLE_BYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString facetAccessibleBytes_; public boolean hasFacetAccessibleBytes() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.google.protobuf.ByteString getFacetAccessibleBytes() { return facetAccessibleBytes_; } private void initFields() { facets_ = java.util.Collections.emptyList(); facetAccessibleBytes_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < facets_.size(); i++) { output.writeMessage(1, facets_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, facetAccessibleBytes_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < facets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, facets_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, facetAccessibleBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetAccessible_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetAccessible_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFacetsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (facetsBuilder_ == null) { facets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { facetsBuilder_.clear(); } facetAccessibleBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible build() { com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible result = new com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (facetsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { facets_ = java.util.Collections.unmodifiableList(facets_); bitField0_ = (bitField0_ & ~0x00000001); } result.facets_ = facets_; } else { result.facets_ = facetsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.facetAccessibleBytes_ = facetAccessibleBytes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDefaultInstance()) return this; if (facetsBuilder_ == null) { if (!other.facets_.isEmpty()) { if (facets_.isEmpty()) { facets_ = other.facets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFacetsIsMutable(); facets_.addAll(other.facets_); } onChanged(); } } else { if (!other.facets_.isEmpty()) { if (facetsBuilder_.isEmpty()) { facetsBuilder_.dispose(); facetsBuilder_ = null; facets_ = other.facets_; bitField0_ = (bitField0_ & ~0x00000001); facetsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFacetsFieldBuilder() : null; } else { facetsBuilder_.addAllMessages(other.facets_); } } } if (other.hasFacetAccessibleBytes()) { setFacetAccessibleBytes(other.getFacetAccessibleBytes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addFacets(subBuilder.buildPartial()); break; } case 18: { bitField0_ |= 0x00000002; facetAccessibleBytes_ = input.readBytes(); break; } } } } private int bitField0_; // repeated .com.sensei.search.req.protobuf.BrowseFacet facets = 1; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet> facets_ = java.util.Collections.emptyList(); private void ensureFacetsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { facets_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet>(facets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder> facetsBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet> getFacetsList() { if (facetsBuilder_ == null) { return java.util.Collections.unmodifiableList(facets_); } else { return facetsBuilder_.getMessageList(); } } public int getFacetsCount() { if (facetsBuilder_ == null) { return facets_.size(); } else { return facetsBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet getFacets(int index) { if (facetsBuilder_ == null) { return facets_.get(index); } else { return facetsBuilder_.getMessage(index); } } public Builder setFacets( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet value) { if (facetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetsIsMutable(); facets_.set(index, value); onChanged(); } else { facetsBuilder_.setMessage(index, value); } return this; } public Builder setFacets( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.set(index, builderForValue.build()); onChanged(); } else { facetsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addFacets(com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet value) { if (facetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetsIsMutable(); facets_.add(value); onChanged(); } else { facetsBuilder_.addMessage(value); } return this; } public Builder addFacets( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet value) { if (facetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetsIsMutable(); facets_.add(index, value); onChanged(); } else { facetsBuilder_.addMessage(index, value); } return this; } public Builder addFacets( com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.add(builderForValue.build()); onChanged(); } else { facetsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addFacets( int index, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.add(index, builderForValue.build()); onChanged(); } else { facetsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllFacets( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet> values) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); super.addAll(values, facets_); onChanged(); } else { facetsBuilder_.addAllMessages(values); } return this; } public Builder clearFacets() { if (facetsBuilder_ == null) { facets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { facetsBuilder_.clear(); } return this; } public Builder removeFacets(int index) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.remove(index); onChanged(); } else { facetsBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder getFacetsBuilder( int index) { return getFacetsFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder getFacetsOrBuilder( int index) { if (facetsBuilder_ == null) { return facets_.get(index); } else { return facetsBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder> getFacetsOrBuilderList() { if (facetsBuilder_ != null) { return facetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(facets_); } } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder addFacetsBuilder() { return getFacetsFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder addFacetsBuilder( int index) { return getFacetsFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder> getFacetsBuilderList() { return getFacetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder> getFacetsFieldBuilder() { if (facetsBuilder_ == null) { facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacetOrBuilder>( facets_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); facets_ = null; } return facetsBuilder_; } // optional bytes facet_accessible_bytes = 2; private com.google.protobuf.ByteString facetAccessibleBytes_ = com.google.protobuf.ByteString.EMPTY; public boolean hasFacetAccessibleBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getFacetAccessibleBytes() { return facetAccessibleBytes_; } public Builder setFacetAccessibleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; facetAccessibleBytes_ = value; onChanged(); return this; } public Builder clearFacetAccessibleBytes() { bitField0_ = (bitField0_ & ~0x00000002); facetAccessibleBytes_ = getDefaultInstance().getFacetAccessibleBytes(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FacetAccessible) } static { defaultInstance = new FacetAccessible(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FacetAccessible) } public interface MapReduceResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated bytes mapResult = 1; java.util.List<com.google.protobuf.ByteString> getMapResultList(); int getMapResultCount(); com.google.protobuf.ByteString getMapResult(int index); // optional bytes reduceResult = 2; boolean hasReduceResult(); com.google.protobuf.ByteString getReduceResult(); } public static final class MapReduceResult extends com.google.protobuf.GeneratedMessage implements MapReduceResultOrBuilder { // Use MapReduceResult.newBuilder() to construct. private MapReduceResult(Builder builder) { super(builder); } private MapReduceResult(boolean noInit) {} private static final MapReduceResult defaultInstance; public static MapReduceResult getDefaultInstance() { return defaultInstance; } public MapReduceResult getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_MapReduceResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_MapReduceResult_fieldAccessorTable; } private int bitField0_; // repeated bytes mapResult = 1; public static final int MAPRESULT_FIELD_NUMBER = 1; private java.util.List<com.google.protobuf.ByteString> mapResult_; public java.util.List<com.google.protobuf.ByteString> getMapResultList() { return mapResult_; } public int getMapResultCount() { return mapResult_.size(); } public com.google.protobuf.ByteString getMapResult(int index) { return mapResult_.get(index); } // optional bytes reduceResult = 2; public static final int REDUCERESULT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString reduceResult_; public boolean hasReduceResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.google.protobuf.ByteString getReduceResult() { return reduceResult_; } private void initFields() { mapResult_ = java.util.Collections.emptyList();; reduceResult_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < mapResult_.size(); i++) { output.writeBytes(1, mapResult_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, reduceResult_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < mapResult_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(mapResult_.get(i)); } size += dataSize; size += 1 * getMapResultList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, reduceResult_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_MapReduceResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_MapReduceResult_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); mapResult_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000001); reduceResult_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult build() { com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult result = new com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { mapResult_ = java.util.Collections.unmodifiableList(mapResult_); bitField0_ = (bitField0_ & ~0x00000001); } result.mapResult_ = mapResult_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.reduceResult_ = reduceResult_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance()) return this; if (!other.mapResult_.isEmpty()) { if (mapResult_.isEmpty()) { mapResult_ = other.mapResult_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMapResultIsMutable(); mapResult_.addAll(other.mapResult_); } onChanged(); } if (other.hasReduceResult()) { setReduceResult(other.getReduceResult()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureMapResultIsMutable(); mapResult_.add(input.readBytes()); break; } case 18: { bitField0_ |= 0x00000002; reduceResult_ = input.readBytes(); break; } } } } private int bitField0_; // repeated bytes mapResult = 1; private java.util.List<com.google.protobuf.ByteString> mapResult_ = java.util.Collections.emptyList();; private void ensureMapResultIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { mapResult_ = new java.util.ArrayList<com.google.protobuf.ByteString>(mapResult_); bitField0_ |= 0x00000001; } } public java.util.List<com.google.protobuf.ByteString> getMapResultList() { return java.util.Collections.unmodifiableList(mapResult_); } public int getMapResultCount() { return mapResult_.size(); } public com.google.protobuf.ByteString getMapResult(int index) { return mapResult_.get(index); } public Builder setMapResult( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMapResultIsMutable(); mapResult_.set(index, value); onChanged(); return this; } public Builder addMapResult(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMapResultIsMutable(); mapResult_.add(value); onChanged(); return this; } public Builder addAllMapResult( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureMapResultIsMutable(); super.addAll(values, mapResult_); onChanged(); return this; } public Builder clearMapResult() { mapResult_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // optional bytes reduceResult = 2; private com.google.protobuf.ByteString reduceResult_ = com.google.protobuf.ByteString.EMPTY; public boolean hasReduceResult() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getReduceResult() { return reduceResult_; } public Builder setReduceResult(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; reduceResult_ = value; onChanged(); return this; } public Builder clearReduceResult() { bitField0_ = (bitField0_ & ~0x00000002); reduceResult_ = getDefaultInstance().getReduceResult(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.MapReduceResult) } static { defaultInstance = new MapReduceResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.MapReduceResult) } public interface FacetMapOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string key = 1; java.util.List<String> getKeyList(); int getKeyCount(); String getKey(int index); // repeated .com.sensei.search.req.protobuf.FacetAccessible value = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> getValueList(); com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getValue(int index); int getValueCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getValueOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder getValueOrBuilder( int index); } public static final class FacetMap extends com.google.protobuf.GeneratedMessage implements FacetMapOrBuilder { // Use FacetMap.newBuilder() to construct. private FacetMap(Builder builder) { super(builder); } private FacetMap(boolean noInit) {} private static final FacetMap defaultInstance; public static FacetMap getDefaultInstance() { return defaultInstance; } public FacetMap getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetMap_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetMap_fieldAccessorTable; } // repeated string key = 1; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; public java.util.List<String> getKeyList() { return key_; } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } // repeated .com.sensei.search.req.protobuf.FacetAccessible value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> value_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> getValueList() { return value_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getValueOrBuilderList() { return value_; } public int getValueCount() { return value_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getValue(int index) { return value_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder getValueOrBuilder( int index) { return value_.get(index); } private void initFields() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(2, value_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, value_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.FacetMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.FacetMap 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetMap_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_FacetMap_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.FacetMap.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getValueFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valueBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetMap getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetMap build() { com.sensei.search.req.protobuf.SenseiProtos.FacetMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.FacetMap buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.FacetMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.FacetMap buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.FacetMap result = new com.sensei.search.req.protobuf.SenseiProtos.FacetMap(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList( key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.FacetMap) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.FacetMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.FacetMap other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); valueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureKeyIsMutable(); key_.add(input.readBytes()); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addValue(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated string key = 1; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } public java.util.List<String> getKeyList() { return java.util.Collections.unmodifiableList(key_); } public int getKeyCount() { return key_.size(); } public String getKey(int index) { return key_.get(index); } public Builder setKey( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } public Builder addKey(String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } public Builder addAllKey( java.lang.Iterable<String> values) { ensureKeyIsMutable(); super.addAll(values, key_); onChanged(); return this; } public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addKey(com.google.protobuf.ByteString value) { ensureKeyIsMutable(); key_.add(value); onChanged(); } // repeated .com.sensei.search.req.protobuf.FacetAccessible value = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible>(value_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> valueBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } public Builder setValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addValue(com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } public Builder addValue( com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addValue( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllValue( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> values) { if (valueBuilder_ == null) { ensureValueIsMutable(); super.addAll(values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valueBuilder_.clear(); } return this; } public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder> getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder>( value_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.FacetMap) } static { defaultInstance = new FacetMap(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.FacetMap) } public interface SenseiProtoResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string parsed_query = 1; boolean hasParsedQuery(); String getParsedQuery(); // repeated .com.sensei.search.req.protobuf.SenseiError error = 2; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> getErrorList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiError getError(int index); int getErrorCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder getErrorOrBuilder( int index); // repeated .com.sensei.search.req.protobuf.SenseiHit hit = 3; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> getHitList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getHit(int index); int getHitCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getHitOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder getHitOrBuilder( int index); // optional int64 tid = 4; boolean hasTid(); long getTid(); // optional int64 num_hits = 5; boolean hasNumHits(); long getNumHits(); // optional int64 total_docs = 6; boolean hasTotalDocs(); long getTotalDocs(); // repeated .com.sensei.search.req.protobuf.FacetAccessible group_accessible = 7; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> getGroupAccessibleList(); com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getGroupAccessible(int index); int getGroupAccessibleCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getGroupAccessibleOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder getGroupAccessibleOrBuilder( int index); // optional .com.sensei.search.req.protobuf.FacetMap facet_map = 8; boolean hasFacetMap(); com.sensei.search.req.protobuf.SenseiProtos.FacetMap getFacetMap(); com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder getFacetMapOrBuilder(); // optional int64 time = 9; boolean hasTime(); long getTime(); // optional .com.sensei.search.req.protobuf.MapReduceResult mapReduceResult = 10; boolean hasMapReduceResult(); com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult getMapReduceResult(); com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder getMapReduceResultOrBuilder(); // repeated .com.sensei.search.req.protobuf.SenseiError errors = 11; java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> getErrorsList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiError getErrors(int index); int getErrorsCount(); java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorsOrBuilderList(); com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder getErrorsOrBuilder( int index); } public static final class SenseiProtoResult extends com.google.protobuf.GeneratedMessage implements SenseiProtoResultOrBuilder { // Use SenseiProtoResult.newBuilder() to construct. private SenseiProtoResult(Builder builder) { super(builder); } private SenseiProtoResult(boolean noInit) {} private static final SenseiProtoResult defaultInstance; public static SenseiProtoResult getDefaultInstance() { return defaultInstance; } public SenseiProtoResult getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_fieldAccessorTable; } private int bitField0_; // optional string parsed_query = 1; public static final int PARSED_QUERY_FIELD_NUMBER = 1; private Object parsedQuery_; public boolean hasParsedQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getParsedQuery() { Object ref = parsedQuery_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { parsedQuery_ = s; } return s; } } private com.google.protobuf.ByteString getParsedQueryBytes() { Object ref = parsedQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); parsedQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .com.sensei.search.req.protobuf.SenseiError error = 2; public static final int ERROR_FIELD_NUMBER = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> error_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> getErrorList() { return error_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorOrBuilderList() { return error_; } public int getErrorCount() { return error_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError getError(int index) { return error_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder getErrorOrBuilder( int index) { return error_.get(index); } // repeated .com.sensei.search.req.protobuf.SenseiHit hit = 3; public static final int HIT_FIELD_NUMBER = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> hit_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> getHitList() { return hit_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getHitOrBuilderList() { return hit_; } public int getHitCount() { return hit_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getHit(int index) { return hit_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder getHitOrBuilder( int index) { return hit_.get(index); } // optional int64 tid = 4; public static final int TID_FIELD_NUMBER = 4; private long tid_; public boolean hasTid() { return ((bitField0_ & 0x00000002) == 0x00000002); } public long getTid() { return tid_; } // optional int64 num_hits = 5; public static final int NUM_HITS_FIELD_NUMBER = 5; private long numHits_; public boolean hasNumHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } public long getNumHits() { return numHits_; } // optional int64 total_docs = 6; public static final int TOTAL_DOCS_FIELD_NUMBER = 6; private long totalDocs_; public boolean hasTotalDocs() { return ((bitField0_ & 0x00000008) == 0x00000008); } public long getTotalDocs() { return totalDocs_; } // repeated .com.sensei.search.req.protobuf.FacetAccessible group_accessible = 7; public static final int GROUP_ACCESSIBLE_FIELD_NUMBER = 7; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> groupAccessible_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> getGroupAccessibleList() { return groupAccessible_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getGroupAccessibleOrBuilderList() { return groupAccessible_; } public int getGroupAccessibleCount() { return groupAccessible_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getGroupAccessible(int index) { return groupAccessible_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder getGroupAccessibleOrBuilder( int index) { return groupAccessible_.get(index); } // optional .com.sensei.search.req.protobuf.FacetMap facet_map = 8; public static final int FACET_MAP_FIELD_NUMBER = 8; private com.sensei.search.req.protobuf.SenseiProtos.FacetMap facetMap_; public boolean hasFacetMap() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.sensei.search.req.protobuf.SenseiProtos.FacetMap getFacetMap() { return facetMap_; } public com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder getFacetMapOrBuilder() { return facetMap_; } // optional int64 time = 9; public static final int TIME_FIELD_NUMBER = 9; private long time_; public boolean hasTime() { return ((bitField0_ & 0x00000020) == 0x00000020); } public long getTime() { return time_; } // optional .com.sensei.search.req.protobuf.MapReduceResult mapReduceResult = 10; public static final int MAPREDUCERESULT_FIELD_NUMBER = 10; private com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult mapReduceResult_; public boolean hasMapReduceResult() { return ((bitField0_ & 0x00000040) == 0x00000040); } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult getMapReduceResult() { return mapReduceResult_; } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder getMapReduceResultOrBuilder() { return mapReduceResult_; } // repeated .com.sensei.search.req.protobuf.SenseiError errors = 11; public static final int ERRORS_FIELD_NUMBER = 11; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> errors_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> getErrorsList() { return errors_; } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorsOrBuilderList() { return errors_; } public int getErrorsCount() { return errors_.size(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError getErrors(int index) { return errors_.get(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder getErrorsOrBuilder( int index) { return errors_.get(index); } private void initFields() { parsedQuery_ = ""; error_ = java.util.Collections.emptyList(); hit_ = java.util.Collections.emptyList(); tid_ = 0L; numHits_ = 0L; totalDocs_ = 0L; groupAccessible_ = java.util.Collections.emptyList(); facetMap_ = com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance(); time_ = 0L; mapReduceResult_ = com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance(); errors_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getParsedQueryBytes()); } for (int i = 0; i < error_.size(); i++) { output.writeMessage(2, error_.get(i)); } for (int i = 0; i < hit_.size(); i++) { output.writeMessage(3, hit_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(4, tid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(5, numHits_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(6, totalDocs_); } for (int i = 0; i < groupAccessible_.size(); i++) { output.writeMessage(7, groupAccessible_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(8, facetMap_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(9, time_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(10, mapReduceResult_); } for (int i = 0; i < errors_.size(); i++) { output.writeMessage(11, errors_.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, getParsedQueryBytes()); } for (int i = 0; i < error_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, error_.get(i)); } for (int i = 0; i < hit_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, hit_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, tid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, numHits_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, totalDocs_); } for (int i = 0; i < groupAccessible_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, groupAccessible_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, facetMap_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, time_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, mapReduceResult_); } for (int i = 0; i < errors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.sensei.search.req.protobuf.SenseiProtos.internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_fieldAccessorTable; } // Construct using com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getErrorFieldBuilder(); getHitFieldBuilder(); getGroupAccessibleFieldBuilder(); getFacetMapFieldBuilder(); getMapReduceResultFieldBuilder(); getErrorsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); parsedQuery_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (errorBuilder_ == null) { error_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { errorBuilder_.clear(); } if (hitBuilder_ == null) { hit_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { hitBuilder_.clear(); } tid_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); numHits_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); totalDocs_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); if (groupAccessibleBuilder_ == null) { groupAccessible_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { groupAccessibleBuilder_.clear(); } if (facetMapBuilder_ == null) { facetMap_ = com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance(); } else { facetMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); time_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); if (mapReduceResultBuilder_ == null) { mapReduceResult_ = com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance(); } else { mapReduceResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { errorsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult.getDescriptor(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult getDefaultInstanceForType() { return com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult.getDefaultInstance(); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult build() { com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult buildPartial() { com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult result = new com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.parsedQuery_ = parsedQuery_; if (errorBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { error_ = java.util.Collections.unmodifiableList(error_); bitField0_ = (bitField0_ & ~0x00000002); } result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (hitBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { hit_ = java.util.Collections.unmodifiableList(hit_); bitField0_ = (bitField0_ & ~0x00000004); } result.hit_ = hit_; } else { result.hit_ = hitBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.tid_ = tid_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.numHits_ = numHits_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.totalDocs_ = totalDocs_; if (groupAccessibleBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { groupAccessible_ = java.util.Collections.unmodifiableList(groupAccessible_); bitField0_ = (bitField0_ & ~0x00000040); } result.groupAccessible_ = groupAccessible_; } else { result.groupAccessible_ = groupAccessibleBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000010; } if (facetMapBuilder_ == null) { result.facetMap_ = facetMap_; } else { result.facetMap_ = facetMapBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000020; } result.time_ = time_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000040; } if (mapReduceResultBuilder_ == null) { result.mapReduceResult_ = mapReduceResult_; } else { result.mapReduceResult_ = mapReduceResultBuilder_.build(); } if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { errors_ = java.util.Collections.unmodifiableList(errors_); bitField0_ = (bitField0_ & ~0x00000400); } result.errors_ = errors_; } else { result.errors_ = errorsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult) { return mergeFrom((com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult other) { if (other == com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult.getDefaultInstance()) return this; if (other.hasParsedQuery()) { setParsedQuery(other.getParsedQuery()); } if (errorBuilder_ == null) { if (!other.error_.isEmpty()) { if (error_.isEmpty()) { error_ = other.error_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureErrorIsMutable(); error_.addAll(other.error_); } onChanged(); } } else { if (!other.error_.isEmpty()) { if (errorBuilder_.isEmpty()) { errorBuilder_.dispose(); errorBuilder_ = null; error_ = other.error_; bitField0_ = (bitField0_ & ~0x00000002); errorBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getErrorFieldBuilder() : null; } else { errorBuilder_.addAllMessages(other.error_); } } } if (hitBuilder_ == null) { if (!other.hit_.isEmpty()) { if (hit_.isEmpty()) { hit_ = other.hit_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHitIsMutable(); hit_.addAll(other.hit_); } onChanged(); } } else { if (!other.hit_.isEmpty()) { if (hitBuilder_.isEmpty()) { hitBuilder_.dispose(); hitBuilder_ = null; hit_ = other.hit_; bitField0_ = (bitField0_ & ~0x00000004); hitBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getHitFieldBuilder() : null; } else { hitBuilder_.addAllMessages(other.hit_); } } } if (other.hasTid()) { setTid(other.getTid()); } if (other.hasNumHits()) { setNumHits(other.getNumHits()); } if (other.hasTotalDocs()) { setTotalDocs(other.getTotalDocs()); } if (groupAccessibleBuilder_ == null) { if (!other.groupAccessible_.isEmpty()) { if (groupAccessible_.isEmpty()) { groupAccessible_ = other.groupAccessible_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureGroupAccessibleIsMutable(); groupAccessible_.addAll(other.groupAccessible_); } onChanged(); } } else { if (!other.groupAccessible_.isEmpty()) { if (groupAccessibleBuilder_.isEmpty()) { groupAccessibleBuilder_.dispose(); groupAccessibleBuilder_ = null; groupAccessible_ = other.groupAccessible_; bitField0_ = (bitField0_ & ~0x00000040); groupAccessibleBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getGroupAccessibleFieldBuilder() : null; } else { groupAccessibleBuilder_.addAllMessages(other.groupAccessible_); } } } if (other.hasFacetMap()) { mergeFacetMap(other.getFacetMap()); } if (other.hasTime()) { setTime(other.getTime()); } if (other.hasMapReduceResult()) { mergeMapReduceResult(other.getMapReduceResult()); } if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureErrorsIsMutable(); errors_.addAll(other.errors_); } onChanged(); } } else { if (!other.errors_.isEmpty()) { if (errorsBuilder_.isEmpty()) { errorsBuilder_.dispose(); errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000400); errorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; parsedQuery_ = input.readBytes(); break; } case 18: { com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.SenseiError.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addError(subBuilder.buildPartial()); break; } case 26: { com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addHit(subBuilder.buildPartial()); break; } case 32: { bitField0_ |= 0x00000008; tid_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; numHits_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; totalDocs_ = input.readInt64(); break; } case 58: { com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addGroupAccessible(subBuilder.buildPartial()); break; } case 66: { com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.FacetMap.newBuilder(); if (hasFacetMap()) { subBuilder.mergeFrom(getFacetMap()); } input.readMessage(subBuilder, extensionRegistry); setFacetMap(subBuilder.buildPartial()); break; } case 72: { bitField0_ |= 0x00000100; time_ = input.readInt64(); break; } case 82: { com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.newBuilder(); if (hasMapReduceResult()) { subBuilder.mergeFrom(getMapReduceResult()); } input.readMessage(subBuilder, extensionRegistry); setMapReduceResult(subBuilder.buildPartial()); break; } case 90: { com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder subBuilder = com.sensei.search.req.protobuf.SenseiProtos.SenseiError.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addErrors(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional string parsed_query = 1; private Object parsedQuery_ = ""; public boolean hasParsedQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getParsedQuery() { Object ref = parsedQuery_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); parsedQuery_ = s; return s; } else { return (String) ref; } } public Builder setParsedQuery(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; parsedQuery_ = value; onChanged(); return this; } public Builder clearParsedQuery() { bitField0_ = (bitField0_ & ~0x00000001); parsedQuery_ = getDefaultInstance().getParsedQuery(); onChanged(); return this; } void setParsedQuery(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; parsedQuery_ = value; onChanged(); } // repeated .com.sensei.search.req.protobuf.SenseiError error = 2; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> error_ = java.util.Collections.emptyList(); private void ensureErrorIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { error_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.SenseiError>(error_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiError, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> errorBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> getErrorList() { if (errorBuilder_ == null) { return java.util.Collections.unmodifiableList(error_); } else { return errorBuilder_.getMessageList(); } } public int getErrorCount() { if (errorBuilder_ == null) { return error_.size(); } else { return errorBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError getError(int index) { if (errorBuilder_ == null) { return error_.get(index); } else { return errorBuilder_.getMessage(index); } } public Builder setError( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.set(index, value); onChanged(); } else { errorBuilder_.setMessage(index, value); } return this; } public Builder setError( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder builderForValue) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.set(index, builderForValue.build()); onChanged(); } else { errorBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addError(com.sensei.search.req.protobuf.SenseiProtos.SenseiError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.add(value); onChanged(); } else { errorBuilder_.addMessage(value); } return this; } public Builder addError( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.add(index, value); onChanged(); } else { errorBuilder_.addMessage(index, value); } return this; } public Builder addError( com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder builderForValue) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.add(builderForValue.build()); onChanged(); } else { errorBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addError( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder builderForValue) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.add(index, builderForValue.build()); onChanged(); } else { errorBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllError( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiError> values) { if (errorBuilder_ == null) { ensureErrorIsMutable(); super.addAll(values, error_); onChanged(); } else { errorBuilder_.addAllMessages(values); } return this; } public Builder clearError() { if (errorBuilder_ == null) { error_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { errorBuilder_.clear(); } return this; } public Builder removeError(int index) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.remove(index); onChanged(); } else { errorBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder getErrorBuilder( int index) { return getErrorFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder getErrorOrBuilder( int index) { if (errorBuilder_ == null) { return error_.get(index); } else { return errorBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorOrBuilderList() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(error_); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder addErrorBuilder() { return getErrorFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder addErrorBuilder( int index) { return getErrorFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder> getErrorBuilderList() { return getErrorFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiError, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiError, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder>( error_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // repeated .com.sensei.search.req.protobuf.SenseiHit hit = 3; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> hit_ = java.util.Collections.emptyList(); private void ensureHitIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { hit_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit>(hit_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiHit, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> hitBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> getHitList() { if (hitBuilder_ == null) { return java.util.Collections.unmodifiableList(hit_); } else { return hitBuilder_.getMessageList(); } } public int getHitCount() { if (hitBuilder_ == null) { return hit_.size(); } else { return hitBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit getHit(int index) { if (hitBuilder_ == null) { return hit_.get(index); } else { return hitBuilder_.getMessage(index); } } public Builder setHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit value) { if (hitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitIsMutable(); hit_.set(index, value); onChanged(); } else { hitBuilder_.setMessage(index, value); } return this; } public Builder setHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder builderForValue) { if (hitBuilder_ == null) { ensureHitIsMutable(); hit_.set(index, builderForValue.build()); onChanged(); } else { hitBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addHit(com.sensei.search.req.protobuf.SenseiProtos.SenseiHit value) { if (hitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitIsMutable(); hit_.add(value); onChanged(); } else { hitBuilder_.addMessage(value); } return this; } public Builder addHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit value) { if (hitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitIsMutable(); hit_.add(index, value); onChanged(); } else { hitBuilder_.addMessage(index, value); } return this; } public Builder addHit( com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder builderForValue) { if (hitBuilder_ == null) { ensureHitIsMutable(); hit_.add(builderForValue.build()); onChanged(); } else { hitBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addHit( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder builderForValue) { if (hitBuilder_ == null) { ensureHitIsMutable(); hit_.add(index, builderForValue.build()); onChanged(); } else { hitBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllHit( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHit> values) { if (hitBuilder_ == null) { ensureHitIsMutable(); super.addAll(values, hit_); onChanged(); } else { hitBuilder_.addAllMessages(values); } return this; } public Builder clearHit() { if (hitBuilder_ == null) { hit_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { hitBuilder_.clear(); } return this; } public Builder removeHit(int index) { if (hitBuilder_ == null) { ensureHitIsMutable(); hit_.remove(index); onChanged(); } else { hitBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder getHitBuilder( int index) { return getHitFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder getHitOrBuilder( int index) { if (hitBuilder_ == null) { return hit_.get(index); } else { return hitBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getHitOrBuilderList() { if (hitBuilder_ != null) { return hitBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hit_); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder addHitBuilder() { return getHitFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder addHitBuilder( int index) { return getHitFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder> getHitBuilderList() { return getHitFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiHit, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder> getHitFieldBuilder() { if (hitBuilder_ == null) { hitBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiHit, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiHitOrBuilder>( hit_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); hit_ = null; } return hitBuilder_; } // optional int64 tid = 4; private long tid_ ; public boolean hasTid() { return ((bitField0_ & 0x00000008) == 0x00000008); } public long getTid() { return tid_; } public Builder setTid(long value) { bitField0_ |= 0x00000008; tid_ = value; onChanged(); return this; } public Builder clearTid() { bitField0_ = (bitField0_ & ~0x00000008); tid_ = 0L; onChanged(); return this; } // optional int64 num_hits = 5; private long numHits_ ; public boolean hasNumHits() { return ((bitField0_ & 0x00000010) == 0x00000010); } public long getNumHits() { return numHits_; } public Builder setNumHits(long value) { bitField0_ |= 0x00000010; numHits_ = value; onChanged(); return this; } public Builder clearNumHits() { bitField0_ = (bitField0_ & ~0x00000010); numHits_ = 0L; onChanged(); return this; } // optional int64 total_docs = 6; private long totalDocs_ ; public boolean hasTotalDocs() { return ((bitField0_ & 0x00000020) == 0x00000020); } public long getTotalDocs() { return totalDocs_; } public Builder setTotalDocs(long value) { bitField0_ |= 0x00000020; totalDocs_ = value; onChanged(); return this; } public Builder clearTotalDocs() { bitField0_ = (bitField0_ & ~0x00000020); totalDocs_ = 0L; onChanged(); return this; } // repeated .com.sensei.search.req.protobuf.FacetAccessible group_accessible = 7; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> groupAccessible_ = java.util.Collections.emptyList(); private void ensureGroupAccessibleIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { groupAccessible_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible>(groupAccessible_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> groupAccessibleBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> getGroupAccessibleList() { if (groupAccessibleBuilder_ == null) { return java.util.Collections.unmodifiableList(groupAccessible_); } else { return groupAccessibleBuilder_.getMessageList(); } } public int getGroupAccessibleCount() { if (groupAccessibleBuilder_ == null) { return groupAccessible_.size(); } else { return groupAccessibleBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible getGroupAccessible(int index) { if (groupAccessibleBuilder_ == null) { return groupAccessible_.get(index); } else { return groupAccessibleBuilder_.getMessage(index); } } public Builder setGroupAccessible( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible value) { if (groupAccessibleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupAccessibleIsMutable(); groupAccessible_.set(index, value); onChanged(); } else { groupAccessibleBuilder_.setMessage(index, value); } return this; } public Builder setGroupAccessible( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder builderForValue) { if (groupAccessibleBuilder_ == null) { ensureGroupAccessibleIsMutable(); groupAccessible_.set(index, builderForValue.build()); onChanged(); } else { groupAccessibleBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addGroupAccessible(com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible value) { if (groupAccessibleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupAccessibleIsMutable(); groupAccessible_.add(value); onChanged(); } else { groupAccessibleBuilder_.addMessage(value); } return this; } public Builder addGroupAccessible( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible value) { if (groupAccessibleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupAccessibleIsMutable(); groupAccessible_.add(index, value); onChanged(); } else { groupAccessibleBuilder_.addMessage(index, value); } return this; } public Builder addGroupAccessible( com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder builderForValue) { if (groupAccessibleBuilder_ == null) { ensureGroupAccessibleIsMutable(); groupAccessible_.add(builderForValue.build()); onChanged(); } else { groupAccessibleBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addGroupAccessible( int index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder builderForValue) { if (groupAccessibleBuilder_ == null) { ensureGroupAccessibleIsMutable(); groupAccessible_.add(index, builderForValue.build()); onChanged(); } else { groupAccessibleBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllGroupAccessible( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible> values) { if (groupAccessibleBuilder_ == null) { ensureGroupAccessibleIsMutable(); super.addAll(values, groupAccessible_); onChanged(); } else { groupAccessibleBuilder_.addAllMessages(values); } return this; } public Builder clearGroupAccessible() { if (groupAccessibleBuilder_ == null) { groupAccessible_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { groupAccessibleBuilder_.clear(); } return this; } public Builder removeGroupAccessible(int index) { if (groupAccessibleBuilder_ == null) { ensureGroupAccessibleIsMutable(); groupAccessible_.remove(index); onChanged(); } else { groupAccessibleBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder getGroupAccessibleBuilder( int index) { return getGroupAccessibleFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder getGroupAccessibleOrBuilder( int index) { if (groupAccessibleBuilder_ == null) { return groupAccessible_.get(index); } else { return groupAccessibleBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getGroupAccessibleOrBuilderList() { if (groupAccessibleBuilder_ != null) { return groupAccessibleBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupAccessible_); } } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder addGroupAccessibleBuilder() { return getGroupAccessibleFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder addGroupAccessibleBuilder( int index) { return getGroupAccessibleFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder> getGroupAccessibleBuilderList() { return getGroupAccessibleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder> getGroupAccessibleFieldBuilder() { if (groupAccessibleBuilder_ == null) { groupAccessibleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessibleOrBuilder>( groupAccessible_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); groupAccessible_ = null; } return groupAccessibleBuilder_; } // optional .com.sensei.search.req.protobuf.FacetMap facet_map = 8; private com.sensei.search.req.protobuf.SenseiProtos.FacetMap facetMap_ = com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetMap, com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder> facetMapBuilder_; public boolean hasFacetMap() { return ((bitField0_ & 0x00000080) == 0x00000080); } public com.sensei.search.req.protobuf.SenseiProtos.FacetMap getFacetMap() { if (facetMapBuilder_ == null) { return facetMap_; } else { return facetMapBuilder_.getMessage(); } } public Builder setFacetMap(com.sensei.search.req.protobuf.SenseiProtos.FacetMap value) { if (facetMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } facetMap_ = value; onChanged(); } else { facetMapBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } public Builder setFacetMap( com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder builderForValue) { if (facetMapBuilder_ == null) { facetMap_ = builderForValue.build(); onChanged(); } else { facetMapBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } public Builder mergeFacetMap(com.sensei.search.req.protobuf.SenseiProtos.FacetMap value) { if (facetMapBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && facetMap_ != com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance()) { facetMap_ = com.sensei.search.req.protobuf.SenseiProtos.FacetMap.newBuilder(facetMap_).mergeFrom(value).buildPartial(); } else { facetMap_ = value; } onChanged(); } else { facetMapBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } public Builder clearFacetMap() { if (facetMapBuilder_ == null) { facetMap_ = com.sensei.search.req.protobuf.SenseiProtos.FacetMap.getDefaultInstance(); onChanged(); } else { facetMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder getFacetMapBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFacetMapFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder getFacetMapOrBuilder() { if (facetMapBuilder_ != null) { return facetMapBuilder_.getMessageOrBuilder(); } else { return facetMap_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetMap, com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder> getFacetMapFieldBuilder() { if (facetMapBuilder_ == null) { facetMapBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.FacetMap, com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder, com.sensei.search.req.protobuf.SenseiProtos.FacetMapOrBuilder>( facetMap_, getParentForChildren(), isClean()); facetMap_ = null; } return facetMapBuilder_; } // optional int64 time = 9; private long time_ ; public boolean hasTime() { return ((bitField0_ & 0x00000100) == 0x00000100); } public long getTime() { return time_; } public Builder setTime(long value) { bitField0_ |= 0x00000100; time_ = value; onChanged(); return this; } public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000100); time_ = 0L; onChanged(); return this; } // optional .com.sensei.search.req.protobuf.MapReduceResult mapReduceResult = 10; private com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult mapReduceResult_ = com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder> mapReduceResultBuilder_; public boolean hasMapReduceResult() { return ((bitField0_ & 0x00000200) == 0x00000200); } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult getMapReduceResult() { if (mapReduceResultBuilder_ == null) { return mapReduceResult_; } else { return mapReduceResultBuilder_.getMessage(); } } public Builder setMapReduceResult(com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult value) { if (mapReduceResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mapReduceResult_ = value; onChanged(); } else { mapReduceResultBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } public Builder setMapReduceResult( com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder builderForValue) { if (mapReduceResultBuilder_ == null) { mapReduceResult_ = builderForValue.build(); onChanged(); } else { mapReduceResultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } public Builder mergeMapReduceResult(com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult value) { if (mapReduceResultBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && mapReduceResult_ != com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance()) { mapReduceResult_ = com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.newBuilder(mapReduceResult_).mergeFrom(value).buildPartial(); } else { mapReduceResult_ = value; } onChanged(); } else { mapReduceResultBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } public Builder clearMapReduceResult() { if (mapReduceResultBuilder_ == null) { mapReduceResult_ = com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.getDefaultInstance(); onChanged(); } else { mapReduceResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder getMapReduceResultBuilder() { bitField0_ |= 0x00000200; onChanged(); return getMapReduceResultFieldBuilder().getBuilder(); } public com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder getMapReduceResultOrBuilder() { if (mapReduceResultBuilder_ != null) { return mapReduceResultBuilder_.getMessageOrBuilder(); } else { return mapReduceResult_; } } private com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder> getMapReduceResultFieldBuilder() { if (mapReduceResultBuilder_ == null) { mapReduceResultBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResultOrBuilder>( mapReduceResult_, getParentForChildren(), isClean()); mapReduceResult_ = null; } return mapReduceResultBuilder_; } // repeated .com.sensei.search.req.protobuf.SenseiError errors = 11; private java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> errors_ = java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { errors_ = new java.util.ArrayList<com.sensei.search.req.protobuf.SenseiProtos.SenseiError>(errors_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiError, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> errorsBuilder_; public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError> getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { return errorsBuilder_.getMessageList(); } } public int getErrorsCount() { if (errorsBuilder_ == null) { return errors_.size(); } else { return errorsBuilder_.getCount(); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError getErrors(int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessage(index); } } public Builder setErrors( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.set(index, value); onChanged(); } else { errorsBuilder_.setMessage(index, value); } return this; } public Builder setErrors( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addErrors(com.sensei.search.req.protobuf.SenseiProtos.SenseiError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); } else { errorsBuilder_.addMessage(value); } return this; } public Builder addErrors( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(index, value); onChanged(); } else { errorsBuilder_.addMessage(index, value); } return this; } public Builder addErrors( com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addErrors( int index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllErrors( java.lang.Iterable<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiError> values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); super.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); } return this; } public Builder clearErrors() { if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { errorsBuilder_.clear(); } return this; } public Builder removeErrors(int index) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.remove(index); onChanged(); } else { errorsBuilder_.remove(index); } return this; } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder getErrorsBuilder( int index) { return getErrorsFieldBuilder().getBuilder(index); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(errors_); } } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder addErrorsBuilder() { return getErrorsFieldBuilder().addBuilder( com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDefaultInstance()); } public com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder addErrorsBuilder( int index) { return getErrorsFieldBuilder().addBuilder( index, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.getDefaultInstance()); } public java.util.List<com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder> getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiError, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.sensei.search.req.protobuf.SenseiProtos.SenseiError, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder, com.sensei.search.req.protobuf.SenseiProtos.SenseiErrorOrBuilder>( errors_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } // @@protoc_insertion_point(builder_scope:com.sensei.search.req.protobuf.SenseiProtoResult) } static { defaultInstance = new SenseiProtoResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.sensei.search.req.protobuf.SenseiProtoResult) } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_StringProperties_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_StringProperties_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_BrowseSelection_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_BrowseSelection_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_Locale_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_Locale_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_SortField_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_SortField_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FacetSpec_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FacetSpec_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_BooleanParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_BooleanParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_IntParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_IntParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_LongParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_LongParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_StringParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_StringParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FloatParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FloatParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_DoubleParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_DoubleParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_ByteArrayParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_ByteArrayParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_SenseiError_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_SenseiError_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_Explanation_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_Explanation_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_LongArray_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_LongArray_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_StringArray_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_StringArray_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_ObjectArray_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_ObjectArray_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FieldValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FieldValues_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_Fieldable_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_Fieldable_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_Document_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_Document_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_SenseiHit_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_SenseiHit_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_BrowseFacet_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_BrowseFacet_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FacetAccessible_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FacetAccessible_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_MapReduceResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_MapReduceResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_FacetMap_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_FacetMap_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_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\023sensei-protos.proto\022\036com.sensei.search" + ".req.protobuf\".\n\020StringProperties\022\013\n\003key" + "\030\001 \003(\t\022\r\n\005value\030\002 \003(\t\"\320\001\n\017BrowseSelectio" + "n\022A\n\010operator\030\001 \001(\0162/.com.sensei.search." + "req.protobuf.BooleanOperator\022\022\n\nfield_na" + "me\030\002 \001(\t\022\r\n\005value\030\003 \003(\t\022\021\n\tnot_value\030\004 \003" + "(\t\022D\n\nproperties\030\005 \001(\01320.com.sensei.sear" + "ch.req.protobuf.StringProperties\"<\n\006Loca" + "le\022\020\n\010language\030\001 \001(\t\022\017\n\007country\030\002 \001(\t\022\017\n" + "\007variant\030\003 \001(\t\"q\n\tSortField\022\r\n\005field\030\001 \001", "(\t\022\014\n\004type\030\002 \001(\005\0226\n\006locale\030\003 \001(\0132&.com.s" + "ensei.search.req.protobuf.Locale\022\017\n\007reve" + "rse\030\004 \001(\010\"\327\001\n\tFacetSpec\022;\n\010order_by\030\001 \001(" + "\0162).com.sensei.search.req.protobuf.SortO" + "rder\022\013\n\003max\030\002 \001(\005\022\030\n\020expand_selection\030\003 " + "\001(\010\022\021\n\tmin_count\030\004 \001(\005\022D\n\nproperties\030\006 \001" + "(\01320.com.sensei.search.req.protobuf.Stri" + "ngProperties\022\r\n\005field\030\007 \001(\t\"<\n\rBooleanPa" + "rams\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \003(\010\022\017\n\007is_n" + "ull\030\003 \001(\010\"8\n\tIntParams\022\013\n\003key\030\001 \001(\t\022\r\n\005v", "alue\030\002 \003(\005\022\017\n\007is_null\030\003 \001(\010\"9\n\nLongParam" + "s\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \003(\003\022\017\n\007is_null" + "\030\003 \001(\010\";\n\014StringParams\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \003(\t\022\017\n\007is_null\030\003 \001(\010\":\n\013FloatPara" + "ms\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \003(\002\022\017\n\007is_nul" + "l\030\003 \001(\010\";\n\014DoubleParams\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \003(\001\022\017\n\007is_null\030\003 \001(\010\">\n\017ByteArra" + "yParams\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014\022\017\n\007i" + "s_null\030\003 \001(\010\"\257\003\n\034FacetHandlerInitializer" + "Param\022D\n\rboolean_param\030\001 \003(\0132-.com.sense", "i.search.req.protobuf.BooleanParams\022<\n\ti" + "nt_param\030\002 \003(\0132).com.sensei.search.req.p" + "rotobuf.IntParams\022>\n\nlong_param\030\003 \003(\0132*." + "com.sensei.search.req.protobuf.LongParam" + "s\022B\n\014string_param\030\004 \003(\0132,.com.sensei.sea" + "rch.req.protobuf.StringParams\022B\n\014double_" + "param\030\005 \003(\0132,.com.sensei.search.req.prot" + "obuf.DoubleParams\022C\n\nbyte_param\030\006 \003(\0132/." + "com.sensei.search.req.protobuf.ByteArray" + "Params\"y\n\035FacetHandlerInitializerParams\022", "\013\n\003key\030\001 \003(\t\022K\n\005value\030\002 \003(\0132<.com.sensei" + ".search.req.protobuf.FacetHandlerInitial" + "izerParam\"\313\005\n\022SenseiProtoRequest\022B\n\tsele" + "ction\030\001 \003(\0132/.com.sensei.search.req.prot" + "obuf.BrowseSelection\022<\n\tsort_spec\030\002 \003(\0132" + ").com.sensei.search.req.protobuf.SortFie" + "ld\022=\n\nfacet_spec\030\003 \003(\0132).com.sensei.sear" + "ch.req.protobuf.FacetSpec\022\024\n\014sensei_quer" + "y\030\004 \001(\t\022\016\n\006offset\030\005 \001(\005\022\r\n\005count\030\006 \001(\005\022\033" + "\n\023fetch_stored_fields\030\007 \001(\010\022\032\n\022fetch_sto", "red_value\030\010 \001(\010\022Z\n\023facet_handler_param\030\t" + " \001(\0132=.com.sensei.search.req.protobuf.Fa" + "cetHandlerInitializerParams\022\022\n\npartition" + "s\030\n \003(\005\022\017\n\007explain\030\013 \001(\010\022\023\n\013route_param\030" + "\014 \001(\t\022\020\n\010group_by\030\r \003(\t\022\020\n\010distinct\030\017 \003(" + "\t\022\025\n\rmax_per_group\030\020 \001(\005\022\035\n\025term_vectors" + "_to_fetch\030\021 \003(\t\022\023\n\013select_list\030\022 \003(\t\022K\n\n" + "map_reduce\030\023 \001(\01627.com.sensei.search.req" + ".protobuf.SenseiMapReduceFunction\022\032\n\022map" + "_reduce_columns\030\024 \003(\t\022\030\n\020map_reduce_byte", "s\030\025 \001(\014\"e\n\013SenseiError\022\014\n\004code\030\001 \001(\005\022\017\n\007" + "message\030\002 \001(\t\0227\n\004type\030\003 \001(\0162).com.sensei" + ".search.req.protobuf.ErrorType\"o\n\013Explan" + "ation\022\r\n\005value\030\001 \001(\002\022\023\n\013description\030\002 \001(" + "\t\022<\n\007details\030\003 \003(\0132+.com.sensei.search.r" + "eq.protobuf.Explanation\"2\n\023TermFrequency" + "Vector\022\r\n\005terms\030\001 \003(\t\022\014\n\004freq\030\002 \003(\005\"\031\n\tL" + "ongArray\022\014\n\004item\030\001 \003(\003\"\033\n\013StringArray\022\014\n" + "\004item\030\001 \003(\t\"\237\002\n\013ObjectArray\022<\n\004type\030\001 \001(" + "\0162..com.sensei.search.req.protobuf.JavaP", "rimitives\022\021\n\tint_value\030\002 \003(\005\022\022\n\nlong_val" + "ue\030\003 \003(\003\022\023\n\013float_value\030\004 \003(\002\022\024\n\014double_" + "value\030\005 \003(\001\022\025\n\rboolean_value\030\006 \003(\010\022\024\n\014st" + "ring_value\030\007 \003(\t\022=\n\nlong_array\030\010 \003(\0132).c" + "om.sensei.search.req.protobuf.LongArray\022" + "\024\n\014object_value\030\t \003(\014\"\226\001\n\013FieldValues\022\013\n" + "\003key\030\001 \003(\t\022>\n\traw_value\030\002 \003(\0132+.com.sens" + "ei.search.req.protobuf.ObjectArray\022:\n\005va" + "lue\030\003 \003(\0132+.com.sensei.search.req.protob" + "uf.StringArray\"\324\002\n\tFieldable\022\r\n\005boost\030\001 ", "\001(\002\022\014\n\004name\030\002 \001(\t\022\024\n\014string_value\030\003 \001(\t\022" + "\016\n\006stored\030\004 \001(\010\022\017\n\007indexed\030\005 \001(\010\022\021\n\ttoke" + "nized\030\006 \001(\010\022\032\n\022term_vector_stored\030\007 \001(\010\022" + "%\n\035store_offset_with_term_vector\030\010 \001(\010\022\'" + "\n\037store_position_with_term_vector\030\t \001(\010\022" + "\016\n\006binary\030\n \001(\010\022\022\n\nomit_norms\030\013 \001(\010\022\014\n\004l" + "azy\030\014 \001(\010\022\025\n\rbinary_offset\030\r \001(\005\022\025\n\rbina" + "ry_length\030\016 \001(\005\022\024\n\014binary_value\030\017 \001(\014\"T\n" + "\010Document\022\r\n\005boost\030\001 \001(\002\0229\n\006fields\030\002 \003(\013" + "2).com.sensei.search.req.protobuf.Fielda", "ble\"c\n\020TermFrequencyMap\022\013\n\003key\030\001 \003(\t\022B\n\005" + "value\030\002 \003(\01323.com.sensei.search.req.prot" + "obuf.TermFrequencyVector\"\201\005\n\tSenseiHit\022\r" + "\n\005score\030\001 \001(\002\022\016\n\006doc_id\030\002 \001(\005\022A\n\014field_v" + "alues\030\003 \001(\0132+.com.sensei.search.req.prot" + "obuf.FieldValues\022B\n\nfield_type\030\004 \003(\0162..c" + "om.sensei.search.req.protobuf.JavaPrimit" + "ives\022\026\n\016group_position\030\005 \001(\005\022?\n\rstored_f" + "ields\030\006 \001(\0132(.com.sensei.search.req.prot" + "obuf.Document\022\023\n\013group_field\030\007 \001(\t\022\023\n\013gr", "oup_value\030\010 \001(\t\022\027\n\017raw_group_value\030\t \001(\014" + "\022\035\n\025total_group_hit_count\030\n \001(\005\022<\n\tgroup" + "_hit\030\013 \003(\0132).com.sensei.search.req.proto" + "buf.SenseiHit\022@\n\013explanation\030\014 \001(\0132+.com" + ".sensei.search.req.protobuf.Explanation\022" + "\013\n\003uid\030\r \001(\003\022\020\n\010src_data\030\016 \001(\t\022\024\n\014stored" + "_value\030\017 \001(\014\022L\n\022term_frequency_map\030\020 \001(\013" + "20.com.sensei.search.req.protobuf.TermFr" + "equencyMap\022\020\n\010features\030\021 \003(\002\"/\n\013BrowseFa" + "cet\022\r\n\005value\030\001 \001(\t\022\021\n\thit_count\030\002 \001(\005\"n\n", "\017FacetAccessible\022;\n\006facets\030\001 \003(\0132+.com.s" + "ensei.search.req.protobuf.BrowseFacet\022\036\n" + "\026facet_accessible_bytes\030\002 \001(\014\":\n\017MapRedu" + "ceResult\022\021\n\tmapResult\030\001 \003(\014\022\024\n\014reduceRes" + "ult\030\002 \001(\014\"W\n\010FacetMap\022\013\n\003key\030\001 \003(\t\022>\n\005va" + "lue\030\002 \003(\0132/.com.sensei.search.req.protob" + "uf.FacetAccessible\"\355\003\n\021SenseiProtoResult" + "\022\024\n\014parsed_query\030\001 \001(\t\022:\n\005error\030\002 \003(\0132+." + "com.sensei.search.req.protobuf.SenseiErr" + "or\0226\n\003hit\030\003 \003(\0132).com.sensei.search.req.", "protobuf.SenseiHit\022\013\n\003tid\030\004 \001(\003\022\020\n\010num_h" + "its\030\005 \001(\003\022\022\n\ntotal_docs\030\006 \001(\003\022I\n\020group_a" + "ccessible\030\007 \003(\0132/.com.sensei.search.req." + "protobuf.FacetAccessible\022;\n\tfacet_map\030\010 " + "\001(\0132(.com.sensei.search.req.protobuf.Fac" + "etMap\022\014\n\004time\030\t \001(\003\022H\n\017mapReduceResult\030\n" + " \001(\0132/.com.sensei.search.req.protobuf.Ma" + "pReduceResult\022;\n\006errors\030\013 \003(\0132+.com.sens" + "ei.search.req.protobuf.SenseiError*\"\n\017Bo" + "oleanOperator\022\006\n\002OR\020\001\022\007\n\003AND\020\002*6\n\tSortOr", "der\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\022\n\n\006CU" + "STOM\020\003*+\n\017FacetComparator\022\r\n\tHIT_COUNT\020\001" + "\022\t\n\005VALUE\020\002*\263\001\n\027SenseiMapReduceFunction\022" + "\007\n\003AVG\020\001\022\022\n\016COUNT_GROUP_BY\020\002\022\022\n\016DISTINCT" + "_COUNT\020\003\022\020\n\014DISTINCT_UID\020\004\022\020\n\014FACET_COUN" + "TS\020\005\022\033\n\027HASH_SET_DISTINCT_COUNT\020\006\022\007\n\003MAX" + "\020\007\022\007\n\003MIN\020\010\022\007\n\003SUM\020\t\022\013\n\007UNKNOWN\020d*\250\002\n\tEr" + "rorType\022\024\n\020JsonParsingError\020d\022\030\n\024JsonCom" + "pilationError\020e\022\024\n\017BQLParsingError\020\226\001\022\027\n" + "\022BoboExecutionError\020\310\001\022\025\n\020ExecutionTimeo", "ut\020\372\001\022\026\n\021BrokerGatherError\020\254\002\022\027\n\022Partiti" + "onCallError\020\336\002\022\022\n\rBrokerTimeout\020\220\003\022\022\n\rIn" + "ternalError\020\302\003\022\030\n\023MergePartitionError\020\364\003" + "\022\037\n\032FederatedBrokerUnavailable\020\246\004\022\021\n\014Unk" + "nownError\020\350\007*~\n\016JavaPrimitives\022\010\n\004BYTE\020\001" + "\022\010\n\004CHAR\020\002\022\007\n\003INT\020\003\022\010\n\004LONG\020\004\022\t\n\005FLOAT\020\005" + "\022\n\n\006DOUBLE\020\006\022\013\n\007BOOLEAN\020\007\022\t\n\005SHORT\020\010\022\n\n\006" + "STRING\020\t\022\n\n\006OBJECT\020\nB0\n\036com.sensei.searc" + "h.req.protobufB\014SenseiProtosH\001" }; 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_com_sensei_search_req_protobuf_StringProperties_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_sensei_search_req_protobuf_StringProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_StringProperties_descriptor, new java.lang.String[] { "Key", "Value", }, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.class, com.sensei.search.req.protobuf.SenseiProtos.StringProperties.Builder.class); internal_static_com_sensei_search_req_protobuf_BrowseSelection_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_sensei_search_req_protobuf_BrowseSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_BrowseSelection_descriptor, new java.lang.String[] { "Operator", "FieldName", "Value", "NotValue", "Properties", }, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.class, com.sensei.search.req.protobuf.SenseiProtos.BrowseSelection.Builder.class); internal_static_com_sensei_search_req_protobuf_Locale_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_sensei_search_req_protobuf_Locale_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_Locale_descriptor, new java.lang.String[] { "Language", "Country", "Variant", }, com.sensei.search.req.protobuf.SenseiProtos.Locale.class, com.sensei.search.req.protobuf.SenseiProtos.Locale.Builder.class); internal_static_com_sensei_search_req_protobuf_SortField_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_sensei_search_req_protobuf_SortField_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_SortField_descriptor, new java.lang.String[] { "Field", "Type", "Locale", "Reverse", }, com.sensei.search.req.protobuf.SenseiProtos.SortField.class, com.sensei.search.req.protobuf.SenseiProtos.SortField.Builder.class); internal_static_com_sensei_search_req_protobuf_FacetSpec_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_sensei_search_req_protobuf_FacetSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FacetSpec_descriptor, new java.lang.String[] { "OrderBy", "Max", "ExpandSelection", "MinCount", "Properties", "Field", }, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.class, com.sensei.search.req.protobuf.SenseiProtos.FacetSpec.Builder.class); internal_static_com_sensei_search_req_protobuf_BooleanParams_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_sensei_search_req_protobuf_BooleanParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_BooleanParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.class, com.sensei.search.req.protobuf.SenseiProtos.BooleanParams.Builder.class); internal_static_com_sensei_search_req_protobuf_IntParams_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_sensei_search_req_protobuf_IntParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_IntParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.IntParams.class, com.sensei.search.req.protobuf.SenseiProtos.IntParams.Builder.class); internal_static_com_sensei_search_req_protobuf_LongParams_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_sensei_search_req_protobuf_LongParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_LongParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.LongParams.class, com.sensei.search.req.protobuf.SenseiProtos.LongParams.Builder.class); internal_static_com_sensei_search_req_protobuf_StringParams_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_sensei_search_req_protobuf_StringParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_StringParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.StringParams.class, com.sensei.search.req.protobuf.SenseiProtos.StringParams.Builder.class); internal_static_com_sensei_search_req_protobuf_FloatParams_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_sensei_search_req_protobuf_FloatParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FloatParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.FloatParams.class, com.sensei.search.req.protobuf.SenseiProtos.FloatParams.Builder.class); internal_static_com_sensei_search_req_protobuf_DoubleParams_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_com_sensei_search_req_protobuf_DoubleParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_DoubleParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.class, com.sensei.search.req.protobuf.SenseiProtos.DoubleParams.Builder.class); internal_static_com_sensei_search_req_protobuf_ByteArrayParams_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_com_sensei_search_req_protobuf_ByteArrayParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_ByteArrayParams_descriptor, new java.lang.String[] { "Key", "Value", "IsNull", }, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.class, com.sensei.search.req.protobuf.SenseiProtos.ByteArrayParams.Builder.class); internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParam_descriptor, new java.lang.String[] { "BooleanParam", "IntParam", "LongParam", "StringParam", "DoubleParam", "ByteParam", }, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.class, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParam.Builder.class); internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FacetHandlerInitializerParams_descriptor, new java.lang.String[] { "Key", "Value", }, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.class, com.sensei.search.req.protobuf.SenseiProtos.FacetHandlerInitializerParams.Builder.class); internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_SenseiProtoRequest_descriptor, new java.lang.String[] { "Selection", "SortSpec", "FacetSpec", "SenseiQuery", "Offset", "Count", "FetchStoredFields", "FetchStoredValue", "FacetHandlerParam", "Partitions", "Explain", "RouteParam", "GroupBy", "Distinct", "MaxPerGroup", "TermVectorsToFetch", "SelectList", "MapReduce", "MapReduceColumns", "MapReduceBytes", }, com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest.class, com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoRequest.Builder.class); internal_static_com_sensei_search_req_protobuf_SenseiError_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_com_sensei_search_req_protobuf_SenseiError_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_SenseiError_descriptor, new java.lang.String[] { "Code", "Message", "Type", }, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.class, com.sensei.search.req.protobuf.SenseiProtos.SenseiError.Builder.class); internal_static_com_sensei_search_req_protobuf_Explanation_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_com_sensei_search_req_protobuf_Explanation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_Explanation_descriptor, new java.lang.String[] { "Value", "Description", "Details", }, com.sensei.search.req.protobuf.SenseiProtos.Explanation.class, com.sensei.search.req.protobuf.SenseiProtos.Explanation.Builder.class); internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_TermFrequencyVector_descriptor, new java.lang.String[] { "Terms", "Freq", }, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.class, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyVector.Builder.class); internal_static_com_sensei_search_req_protobuf_LongArray_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_com_sensei_search_req_protobuf_LongArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_LongArray_descriptor, new java.lang.String[] { "Item", }, com.sensei.search.req.protobuf.SenseiProtos.LongArray.class, com.sensei.search.req.protobuf.SenseiProtos.LongArray.Builder.class); internal_static_com_sensei_search_req_protobuf_StringArray_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_com_sensei_search_req_protobuf_StringArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_StringArray_descriptor, new java.lang.String[] { "Item", }, com.sensei.search.req.protobuf.SenseiProtos.StringArray.class, com.sensei.search.req.protobuf.SenseiProtos.StringArray.Builder.class); internal_static_com_sensei_search_req_protobuf_ObjectArray_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_com_sensei_search_req_protobuf_ObjectArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_ObjectArray_descriptor, new java.lang.String[] { "Type", "IntValue", "LongValue", "FloatValue", "DoubleValue", "BooleanValue", "StringValue", "LongArray", "ObjectValue", }, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.class, com.sensei.search.req.protobuf.SenseiProtos.ObjectArray.Builder.class); internal_static_com_sensei_search_req_protobuf_FieldValues_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_com_sensei_search_req_protobuf_FieldValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FieldValues_descriptor, new java.lang.String[] { "Key", "RawValue", "Value", }, com.sensei.search.req.protobuf.SenseiProtos.FieldValues.class, com.sensei.search.req.protobuf.SenseiProtos.FieldValues.Builder.class); internal_static_com_sensei_search_req_protobuf_Fieldable_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_com_sensei_search_req_protobuf_Fieldable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_Fieldable_descriptor, new java.lang.String[] { "Boost", "Name", "StringValue", "Stored", "Indexed", "Tokenized", "TermVectorStored", "StoreOffsetWithTermVector", "StorePositionWithTermVector", "Binary", "OmitNorms", "Lazy", "BinaryOffset", "BinaryLength", "BinaryValue", }, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.class, com.sensei.search.req.protobuf.SenseiProtos.Fieldable.Builder.class); internal_static_com_sensei_search_req_protobuf_Document_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_com_sensei_search_req_protobuf_Document_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_Document_descriptor, new java.lang.String[] { "Boost", "Fields", }, com.sensei.search.req.protobuf.SenseiProtos.Document.class, com.sensei.search.req.protobuf.SenseiProtos.Document.Builder.class); internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_TermFrequencyMap_descriptor, new java.lang.String[] { "Key", "Value", }, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.class, com.sensei.search.req.protobuf.SenseiProtos.TermFrequencyMap.Builder.class); internal_static_com_sensei_search_req_protobuf_SenseiHit_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_com_sensei_search_req_protobuf_SenseiHit_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_SenseiHit_descriptor, new java.lang.String[] { "Score", "DocId", "FieldValues", "FieldType", "GroupPosition", "StoredFields", "GroupField", "GroupValue", "RawGroupValue", "TotalGroupHitCount", "GroupHit", "Explanation", "Uid", "SrcData", "StoredValue", "TermFrequencyMap", "Features", }, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.class, com.sensei.search.req.protobuf.SenseiProtos.SenseiHit.Builder.class); internal_static_com_sensei_search_req_protobuf_BrowseFacet_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_com_sensei_search_req_protobuf_BrowseFacet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_BrowseFacet_descriptor, new java.lang.String[] { "Value", "HitCount", }, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.class, com.sensei.search.req.protobuf.SenseiProtos.BrowseFacet.Builder.class); internal_static_com_sensei_search_req_protobuf_FacetAccessible_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_com_sensei_search_req_protobuf_FacetAccessible_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FacetAccessible_descriptor, new java.lang.String[] { "Facets", "FacetAccessibleBytes", }, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.class, com.sensei.search.req.protobuf.SenseiProtos.FacetAccessible.Builder.class); internal_static_com_sensei_search_req_protobuf_MapReduceResult_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_com_sensei_search_req_protobuf_MapReduceResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_MapReduceResult_descriptor, new java.lang.String[] { "MapResult", "ReduceResult", }, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.class, com.sensei.search.req.protobuf.SenseiProtos.MapReduceResult.Builder.class); internal_static_com_sensei_search_req_protobuf_FacetMap_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_com_sensei_search_req_protobuf_FacetMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_FacetMap_descriptor, new java.lang.String[] { "Key", "Value", }, com.sensei.search.req.protobuf.SenseiProtos.FacetMap.class, com.sensei.search.req.protobuf.SenseiProtos.FacetMap.Builder.class); internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_sensei_search_req_protobuf_SenseiProtoResult_descriptor, new java.lang.String[] { "ParsedQuery", "Error", "Hit", "Tid", "NumHits", "TotalDocs", "GroupAccessible", "FacetMap", "Time", "MapReduceResult", "Errors", }, com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult.class, com.sensei.search.req.protobuf.SenseiProtos.SenseiProtoResult.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }