Class WebDetection.WebEntity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebDetection.WebEntity.Builder>
com.google.cloud.vision.v1.WebDetection.WebEntity.Builder
All Implemented Interfaces:
WebDetection.WebEntityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WebDetection.WebEntity

public static final class WebDetection.WebEntity.Builder extends com.google.protobuf.GeneratedMessage.Builder<WebDetection.WebEntity.Builder> implements WebDetection.WebEntityOrBuilder
 Entity deduced from similar images on the Internet.
 
Protobuf type google.cloud.vision.v1.WebDetection.WebEntity
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public WebDetection.WebEntity.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WebDetection.WebEntity.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getEntityId

      public String getEntityId()
       Opaque entity ID.
       
      string entity_id = 1;
      Specified by:
      getEntityId in interface WebDetection.WebEntityOrBuilder
      Returns:
      The entityId.
    • getEntityIdBytes

      public com.google.protobuf.ByteString getEntityIdBytes()
       Opaque entity ID.
       
      string entity_id = 1;
      Specified by:
      getEntityIdBytes in interface WebDetection.WebEntityOrBuilder
      Returns:
      The bytes for entityId.
    • 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.
    • clearEntityId

      public WebDetection.WebEntity.Builder clearEntityId()
       Opaque entity ID.
       
      string entity_id = 1;
      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.
    • getDescription

      public String getDescription()
       Canonical description of the entity, in English.
       
      string description = 3;
      Specified by:
      getDescription in interface WebDetection.WebEntityOrBuilder
      Returns:
      The description.
    • 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.