Class ProductSearchResults.Result.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.Result.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.Result.Builder>
      • getDefaultInstanceForType

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

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

        public ProductSearchResults.Result buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.Result.Builder>
      • mergeFrom

        public ProductSearchResults.Result.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.Result.Builder>
        Throws:
        IOException
      • getProductBuilder

        public Product.Builder getProductBuilder()
         The Product.
         
        .google.cloud.vision.v1.Product product = 1;
      • getScore

        public float getScore()
         A confidence level on the match, ranging from 0 (no confidence) to
         1 (full confidence).
         
        float score = 2;
        Specified by:
        getScore in interface ProductSearchResults.ResultOrBuilder
        Returns:
        The score.
      • setScore

        public ProductSearchResults.Result.Builder setScore​(float value)
         A confidence level on the match, ranging from 0 (no confidence) to
         1 (full confidence).
         
        float score = 2;
        Parameters:
        value - The score to set.
        Returns:
        This builder for chaining.
      • clearScore

        public ProductSearchResults.Result.Builder clearScore()
         A confidence level on the match, ranging from 0 (no confidence) to
         1 (full confidence).
         
        float score = 2;
        Returns:
        This builder for chaining.
      • getImageBytes

        public com.google.protobuf.ByteString getImageBytes()
         The resource name of the image from the product that is the closest match
         to the query.
         
        string image = 3;
        Specified by:
        getImageBytes in interface ProductSearchResults.ResultOrBuilder
        Returns:
        The bytes for image.
      • setImage

        public ProductSearchResults.Result.Builder setImage​(String value)
         The resource name of the image from the product that is the closest match
         to the query.
         
        string image = 3;
        Parameters:
        value - The image to set.
        Returns:
        This builder for chaining.
      • clearImage

        public ProductSearchResults.Result.Builder clearImage()
         The resource name of the image from the product that is the closest match
         to the query.
         
        string image = 3;
        Returns:
        This builder for chaining.
      • setImageBytes

        public ProductSearchResults.Result.Builder setImageBytes​(com.google.protobuf.ByteString value)
         The resource name of the image from the product that is the closest match
         to the query.
         
        string image = 3;
        Parameters:
        value - The bytes for image to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final ProductSearchResults.Result.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.Result.Builder>