Class WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • clear

        public WebDetection.WebEntity.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<WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • getDefaultInstanceForType

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

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

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

        public WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • clearField

        public WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • clearOneof

        public WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • setRepeatedField

        public WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • addRepeatedField

        public WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • isInitialized

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

        public WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
        Throws:
        IOException
      • setEntityId

        public WebDetection.WebEntity.Builder setEntityId​(String value)
         Opaque entity ID.
         
        string entity_id = 1;
        Parameters:
        value - The entityId to set.
        Returns:
        This builder for chaining.
      • setEntityIdBytes

        public WebDetection.WebEntity.Builder setEntityIdBytes​(com.google.protobuf.ByteString value)
         Opaque entity ID.
         
        string entity_id = 1;
        Parameters:
        value - The bytes for entityId to set.
        Returns:
        This builder for chaining.
      • getScore

        public float getScore()
         Overall relevancy score for the entity.
         Not normalized and not comparable across different image queries.
         
        float score = 2;
        Specified by:
        getScore in interface WebDetection.WebEntityOrBuilder
        Returns:
        The score.
      • setScore

        public WebDetection.WebEntity.Builder setScore​(float value)
         Overall relevancy score for the entity.
         Not normalized and not comparable across different image queries.
         
        float score = 2;
        Parameters:
        value - The score to set.
        Returns:
        This builder for chaining.
      • clearScore

        public WebDetection.WebEntity.Builder clearScore()
         Overall relevancy score for the entity.
         Not normalized and not comparable across different image queries.
         
        float score = 2;
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Canonical description of the entity, in English.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface WebDetection.WebEntityOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public WebDetection.WebEntity.Builder setDescription​(String value)
         Canonical description of the entity, in English.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public WebDetection.WebEntity.Builder clearDescription()
         Canonical description of the entity, in English.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public WebDetection.WebEntity.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Canonical description of the entity, in English.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>
      • mergeUnknownFields

        public final WebDetection.WebEntity.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<WebDetection.WebEntity.Builder>