Class ProductSearchResults.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • clear

        public ProductSearchResults.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • getDefaultInstanceForType

        public ProductSearchResults getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ProductSearchResults build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ProductSearchResults buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ProductSearchResults.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • setField

        public ProductSearchResults.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • clearField

        public ProductSearchResults.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • clearOneof

        public ProductSearchResults.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • setRepeatedField

        public ProductSearchResults.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • addRepeatedField

        public ProductSearchResults.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • mergeFrom

        public ProductSearchResults.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductSearchResults.Builder>
        Throws:
        IOException
      • hasIndexTime

        public boolean hasIndexTime()
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
        Specified by:
        hasIndexTime in interface ProductSearchResultsOrBuilder
        Returns:
        Whether the indexTime field is set.
      • getIndexTime

        public com.google.protobuf.Timestamp getIndexTime()
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
        Specified by:
        getIndexTime in interface ProductSearchResultsOrBuilder
        Returns:
        The indexTime.
      • setIndexTime

        public ProductSearchResults.Builder setIndexTime​(com.google.protobuf.Timestamp value)
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
      • setIndexTime

        public ProductSearchResults.Builder setIndexTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
      • mergeIndexTime

        public ProductSearchResults.Builder mergeIndexTime​(com.google.protobuf.Timestamp value)
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
      • clearIndexTime

        public ProductSearchResults.Builder clearIndexTime()
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
      • getIndexTimeBuilder

        public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder()
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
      • getIndexTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder()
         Timestamp of the index which provided these results. Products added to the
         product set and products removed from the product set after this time are
         not reflected in the current results.
         
        .google.protobuf.Timestamp index_time = 2;
        Specified by:
        getIndexTimeOrBuilder in interface ProductSearchResultsOrBuilder
      • getResultsCount

        public int getResultsCount()
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
        Specified by:
        getResultsCount in interface ProductSearchResultsOrBuilder
      • clearResults

        public ProductSearchResults.Builder clearResults()
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
      • removeResults

        public ProductSearchResults.Builder removeResults​(int index)
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
      • getResultsBuilder

        public ProductSearchResults.Result.Builder getResultsBuilder​(int index)
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
      • addResultsBuilder

        public ProductSearchResults.Result.Builder addResultsBuilder()
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
      • addResultsBuilder

        public ProductSearchResults.Result.Builder addResultsBuilder​(int index)
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
      • getResultsBuilderList

        public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
         List of results, one for each product match.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
      • getProductGroupedResultsList

        public List<ProductSearchResults.GroupedResult> getProductGroupedResultsList()
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
        Specified by:
        getProductGroupedResultsList in interface ProductSearchResultsOrBuilder
      • getProductGroupedResultsCount

        public int getProductGroupedResultsCount()
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
        Specified by:
        getProductGroupedResultsCount in interface ProductSearchResultsOrBuilder
      • getProductGroupedResults

        public ProductSearchResults.GroupedResult getProductGroupedResults​(int index)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
        Specified by:
        getProductGroupedResults in interface ProductSearchResultsOrBuilder
      • setProductGroupedResults

        public ProductSearchResults.Builder setProductGroupedResults​(int index,
                                                                     ProductSearchResults.GroupedResult value)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • setProductGroupedResults

        public ProductSearchResults.Builder setProductGroupedResults​(int index,
                                                                     ProductSearchResults.GroupedResult.Builder builderForValue)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • addProductGroupedResults

        public ProductSearchResults.Builder addProductGroupedResults​(ProductSearchResults.GroupedResult value)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • addProductGroupedResults

        public ProductSearchResults.Builder addProductGroupedResults​(int index,
                                                                     ProductSearchResults.GroupedResult value)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • addProductGroupedResults

        public ProductSearchResults.Builder addProductGroupedResults​(ProductSearchResults.GroupedResult.Builder builderForValue)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • addProductGroupedResults

        public ProductSearchResults.Builder addProductGroupedResults​(int index,
                                                                     ProductSearchResults.GroupedResult.Builder builderForValue)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • addAllProductGroupedResults

        public ProductSearchResults.Builder addAllProductGroupedResults​(Iterable<? extends ProductSearchResults.GroupedResult> values)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • clearProductGroupedResults

        public ProductSearchResults.Builder clearProductGroupedResults()
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • removeProductGroupedResults

        public ProductSearchResults.Builder removeProductGroupedResults​(int index)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • getProductGroupedResultsBuilder

        public ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder​(int index)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • getProductGroupedResultsOrBuilder

        public ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder​(int index)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
        Specified by:
        getProductGroupedResultsOrBuilder in interface ProductSearchResultsOrBuilder
      • getProductGroupedResultsOrBuilderList

        public List<? extends ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsOrBuilderList()
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
        Specified by:
        getProductGroupedResultsOrBuilderList in interface ProductSearchResultsOrBuilder
      • addProductGroupedResultsBuilder

        public ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder()
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • addProductGroupedResultsBuilder

        public ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder​(int index)
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • getProductGroupedResultsBuilderList

        public List<ProductSearchResults.GroupedResult.Builder> getProductGroupedResultsBuilderList()
         List of results grouped by products detected in the query image. Each entry
         corresponds to one bounding polygon in the query image, and contains the
         matching products specific to that region. There may be duplicate product
         matches in the union of all the per-product results.
         
        repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      • setUnknownFields

        public final ProductSearchResults.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>
      • mergeUnknownFields

        public final ProductSearchResults.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSearchResults.Builder>