All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.search.SearchResultsetMetadata Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: search/SearchSpec.proto

package io.bloombox.schema.search;

/**
 * 
 * Specifies metadata for a search resultset.
 * 
* * Protobuf type {@code bloombox.search.SearchResultsetMetadata} */ public final class SearchResultsetMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.search.SearchResultsetMetadata) SearchResultsetMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use SearchResultsetMetadata.newBuilder() to construct. private SearchResultsetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchResultsetMetadata() { count_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SearchResultsetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { count_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } count_.add( input.readMessage(io.bloombox.schema.search.ResultsetCategoricalCount.parser(), extensionRegistry)); break; } case 18: { io.bloombox.schema.search.ProductResultMetadata.Builder subBuilder = null; if (products_ != null) { subBuilder = products_.toBuilder(); } products_ = input.readMessage(io.bloombox.schema.search.ProductResultMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(products_); products_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { count_ = java.util.Collections.unmodifiableList(count_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.search.SearchMetadata.internal_static_bloombox_search_SearchResultsetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.search.SearchMetadata.internal_static_bloombox_search_SearchResultsetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.search.SearchResultsetMetadata.class, io.bloombox.schema.search.SearchResultsetMetadata.Builder.class); } private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private java.util.List count_; /** *
   * Count of matching records, across all categorical types.
   * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public java.util.List getCountList() { return count_; } /** *
   * Count of matching records, across all categorical types.
   * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public java.util.List getCountOrBuilderList() { return count_; } /** *
   * Count of matching records, across all categorical types.
   * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public int getCountCount() { return count_.size(); } /** *
   * Count of matching records, across all categorical types.
   * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCount getCount(int index) { return count_.get(index); } /** *
   * Count of matching records, across all categorical types.
   * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCountOrBuilder getCountOrBuilder( int index) { return count_.get(index); } public static final int PRODUCTS_FIELD_NUMBER = 2; private io.bloombox.schema.search.ProductResultMetadata products_; /** *
   * Product-specific metadata.
   * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public boolean hasProducts() { return products_ != null; } /** *
   * Product-specific metadata.
   * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public io.bloombox.schema.search.ProductResultMetadata getProducts() { return products_ == null ? io.bloombox.schema.search.ProductResultMetadata.getDefaultInstance() : products_; } /** *
   * Product-specific metadata.
   * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public io.bloombox.schema.search.ProductResultMetadataOrBuilder getProductsOrBuilder() { return getProducts(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < count_.size(); i++) { output.writeMessage(1, count_.get(i)); } if (products_ != null) { output.writeMessage(2, getProducts()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < count_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, count_.get(i)); } if (products_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getProducts()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.schema.search.SearchResultsetMetadata)) { return super.equals(obj); } io.bloombox.schema.search.SearchResultsetMetadata other = (io.bloombox.schema.search.SearchResultsetMetadata) obj; if (!getCountList() .equals(other.getCountList())) return false; if (hasProducts() != other.hasProducts()) return false; if (hasProducts()) { if (!getProducts() .equals(other.getProducts())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCountCount() > 0) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCountList().hashCode(); } if (hasProducts()) { hash = (37 * hash) + PRODUCTS_FIELD_NUMBER; hash = (53 * hash) + getProducts().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.schema.search.SearchResultsetMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.search.SearchResultsetMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.search.SearchResultsetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.schema.search.SearchResultsetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Specifies metadata for a search resultset.
   * 
* * Protobuf type {@code bloombox.search.SearchResultsetMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.search.SearchResultsetMetadata) io.bloombox.schema.search.SearchResultsetMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.search.SearchMetadata.internal_static_bloombox_search_SearchResultsetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.search.SearchMetadata.internal_static_bloombox_search_SearchResultsetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.search.SearchResultsetMetadata.class, io.bloombox.schema.search.SearchResultsetMetadata.Builder.class); } // Construct using io.bloombox.schema.search.SearchResultsetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCountFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (countBuilder_ == null) { count_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { countBuilder_.clear(); } if (productsBuilder_ == null) { products_ = null; } else { products_ = null; productsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.search.SearchMetadata.internal_static_bloombox_search_SearchResultsetMetadata_descriptor; } @java.lang.Override public io.bloombox.schema.search.SearchResultsetMetadata getDefaultInstanceForType() { return io.bloombox.schema.search.SearchResultsetMetadata.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.search.SearchResultsetMetadata build() { io.bloombox.schema.search.SearchResultsetMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.search.SearchResultsetMetadata buildPartial() { io.bloombox.schema.search.SearchResultsetMetadata result = new io.bloombox.schema.search.SearchResultsetMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (countBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { count_ = java.util.Collections.unmodifiableList(count_); bitField0_ = (bitField0_ & ~0x00000001); } result.count_ = count_; } else { result.count_ = countBuilder_.build(); } if (productsBuilder_ == null) { result.products_ = products_; } else { result.products_ = productsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.search.SearchResultsetMetadata) { return mergeFrom((io.bloombox.schema.search.SearchResultsetMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.search.SearchResultsetMetadata other) { if (other == io.bloombox.schema.search.SearchResultsetMetadata.getDefaultInstance()) return this; if (countBuilder_ == null) { if (!other.count_.isEmpty()) { if (count_.isEmpty()) { count_ = other.count_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCountIsMutable(); count_.addAll(other.count_); } onChanged(); } } else { if (!other.count_.isEmpty()) { if (countBuilder_.isEmpty()) { countBuilder_.dispose(); countBuilder_ = null; count_ = other.count_; bitField0_ = (bitField0_ & ~0x00000001); countBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCountFieldBuilder() : null; } else { countBuilder_.addAllMessages(other.count_); } } } if (other.hasProducts()) { mergeProducts(other.getProducts()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.search.SearchResultsetMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.search.SearchResultsetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List count_ = java.util.Collections.emptyList(); private void ensureCountIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { count_ = new java.util.ArrayList(count_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.search.ResultsetCategoricalCount, io.bloombox.schema.search.ResultsetCategoricalCount.Builder, io.bloombox.schema.search.ResultsetCategoricalCountOrBuilder> countBuilder_; /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public java.util.List getCountList() { if (countBuilder_ == null) { return java.util.Collections.unmodifiableList(count_); } else { return countBuilder_.getMessageList(); } } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public int getCountCount() { if (countBuilder_ == null) { return count_.size(); } else { return countBuilder_.getCount(); } } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCount getCount(int index) { if (countBuilder_ == null) { return count_.get(index); } else { return countBuilder_.getMessage(index); } } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder setCount( int index, io.bloombox.schema.search.ResultsetCategoricalCount value) { if (countBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountIsMutable(); count_.set(index, value); onChanged(); } else { countBuilder_.setMessage(index, value); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder setCount( int index, io.bloombox.schema.search.ResultsetCategoricalCount.Builder builderForValue) { if (countBuilder_ == null) { ensureCountIsMutable(); count_.set(index, builderForValue.build()); onChanged(); } else { countBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder addCount(io.bloombox.schema.search.ResultsetCategoricalCount value) { if (countBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountIsMutable(); count_.add(value); onChanged(); } else { countBuilder_.addMessage(value); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder addCount( int index, io.bloombox.schema.search.ResultsetCategoricalCount value) { if (countBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountIsMutable(); count_.add(index, value); onChanged(); } else { countBuilder_.addMessage(index, value); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder addCount( io.bloombox.schema.search.ResultsetCategoricalCount.Builder builderForValue) { if (countBuilder_ == null) { ensureCountIsMutable(); count_.add(builderForValue.build()); onChanged(); } else { countBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder addCount( int index, io.bloombox.schema.search.ResultsetCategoricalCount.Builder builderForValue) { if (countBuilder_ == null) { ensureCountIsMutable(); count_.add(index, builderForValue.build()); onChanged(); } else { countBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder addAllCount( java.lang.Iterable values) { if (countBuilder_ == null) { ensureCountIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, count_); onChanged(); } else { countBuilder_.addAllMessages(values); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder clearCount() { if (countBuilder_ == null) { count_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { countBuilder_.clear(); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public Builder removeCount(int index) { if (countBuilder_ == null) { ensureCountIsMutable(); count_.remove(index); onChanged(); } else { countBuilder_.remove(index); } return this; } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCount.Builder getCountBuilder( int index) { return getCountFieldBuilder().getBuilder(index); } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCountOrBuilder getCountOrBuilder( int index) { if (countBuilder_ == null) { return count_.get(index); } else { return countBuilder_.getMessageOrBuilder(index); } } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public java.util.List getCountOrBuilderList() { if (countBuilder_ != null) { return countBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(count_); } } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCount.Builder addCountBuilder() { return getCountFieldBuilder().addBuilder( io.bloombox.schema.search.ResultsetCategoricalCount.getDefaultInstance()); } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public io.bloombox.schema.search.ResultsetCategoricalCount.Builder addCountBuilder( int index) { return getCountFieldBuilder().addBuilder( index, io.bloombox.schema.search.ResultsetCategoricalCount.getDefaultInstance()); } /** *
     * Count of matching records, across all categorical types.
     * 
* * repeated .bloombox.search.ResultsetCategoricalCount count = 1; */ public java.util.List getCountBuilderList() { return getCountFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.search.ResultsetCategoricalCount, io.bloombox.schema.search.ResultsetCategoricalCount.Builder, io.bloombox.schema.search.ResultsetCategoricalCountOrBuilder> getCountFieldBuilder() { if (countBuilder_ == null) { countBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.search.ResultsetCategoricalCount, io.bloombox.schema.search.ResultsetCategoricalCount.Builder, io.bloombox.schema.search.ResultsetCategoricalCountOrBuilder>( count_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); count_ = null; } return countBuilder_; } private io.bloombox.schema.search.ProductResultMetadata products_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.search.ProductResultMetadata, io.bloombox.schema.search.ProductResultMetadata.Builder, io.bloombox.schema.search.ProductResultMetadataOrBuilder> productsBuilder_; /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public boolean hasProducts() { return productsBuilder_ != null || products_ != null; } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public io.bloombox.schema.search.ProductResultMetadata getProducts() { if (productsBuilder_ == null) { return products_ == null ? io.bloombox.schema.search.ProductResultMetadata.getDefaultInstance() : products_; } else { return productsBuilder_.getMessage(); } } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public Builder setProducts(io.bloombox.schema.search.ProductResultMetadata value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } products_ = value; onChanged(); } else { productsBuilder_.setMessage(value); } return this; } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public Builder setProducts( io.bloombox.schema.search.ProductResultMetadata.Builder builderForValue) { if (productsBuilder_ == null) { products_ = builderForValue.build(); onChanged(); } else { productsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public Builder mergeProducts(io.bloombox.schema.search.ProductResultMetadata value) { if (productsBuilder_ == null) { if (products_ != null) { products_ = io.bloombox.schema.search.ProductResultMetadata.newBuilder(products_).mergeFrom(value).buildPartial(); } else { products_ = value; } onChanged(); } else { productsBuilder_.mergeFrom(value); } return this; } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public Builder clearProducts() { if (productsBuilder_ == null) { products_ = null; onChanged(); } else { products_ = null; productsBuilder_ = null; } return this; } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public io.bloombox.schema.search.ProductResultMetadata.Builder getProductsBuilder() { onChanged(); return getProductsFieldBuilder().getBuilder(); } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ public io.bloombox.schema.search.ProductResultMetadataOrBuilder getProductsOrBuilder() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilder(); } else { return products_ == null ? io.bloombox.schema.search.ProductResultMetadata.getDefaultInstance() : products_; } } /** *
     * Product-specific metadata.
     * 
* * .bloombox.search.ProductResultMetadata products = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.search.ProductResultMetadata, io.bloombox.schema.search.ProductResultMetadata.Builder, io.bloombox.schema.search.ProductResultMetadataOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { productsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.search.ProductResultMetadata, io.bloombox.schema.search.ProductResultMetadata.Builder, io.bloombox.schema.search.ProductResultMetadataOrBuilder>( getProducts(), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.search.SearchResultsetMetadata) } // @@protoc_insertion_point(class_scope:bloombox.search.SearchResultsetMetadata) private static final io.bloombox.schema.search.SearchResultsetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.search.SearchResultsetMetadata(); } public static io.bloombox.schema.search.SearchResultsetMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchResultsetMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SearchResultsetMetadata(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.schema.search.SearchResultsetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy