Class DetectedLandmark.Builder

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

public static final class DetectedLandmark.Builder extends com.google.protobuf.GeneratedMessage.Builder<DetectedLandmark.Builder> implements DetectedLandmarkOrBuilder
 A generic detected landmark represented by name in string format and a 2D
 location.
 
Protobuf type google.cloud.videointelligence.v1.DetectedLandmark
  • 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<DetectedLandmark.Builder>
    • clear

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

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

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

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

      public DetectedLandmark.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<DetectedLandmark.Builder>
    • mergeFrom

      public DetectedLandmark.Builder mergeFrom(DetectedLandmark other)
    • isInitialized

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

      public DetectedLandmark.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<DetectedLandmark.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of this landmark, for example, left_hand, right_shoulder.
       
      string name = 1;
      Specified by:
      getName in interface DetectedLandmarkOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of this landmark, for example, left_hand, right_shoulder.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DetectedLandmarkOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DetectedLandmark.Builder setName(String value)
       The name of this landmark, for example, left_hand, right_shoulder.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DetectedLandmark.Builder clearName()
       The name of this landmark, for example, left_hand, right_shoulder.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public DetectedLandmark.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of this landmark, for example, left_hand, right_shoulder.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPoint

      public boolean hasPoint()
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
      Specified by:
      hasPoint in interface DetectedLandmarkOrBuilder
      Returns:
      Whether the point field is set.
    • getPoint

      public NormalizedVertex getPoint()
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
      Specified by:
      getPoint in interface DetectedLandmarkOrBuilder
      Returns:
      The point.
    • setPoint

      public DetectedLandmark.Builder setPoint(NormalizedVertex value)
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
    • setPoint

      public DetectedLandmark.Builder setPoint(NormalizedVertex.Builder builderForValue)
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
    • mergePoint

      public DetectedLandmark.Builder mergePoint(NormalizedVertex value)
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
    • clearPoint

      public DetectedLandmark.Builder clearPoint()
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
    • getPointBuilder

      public NormalizedVertex.Builder getPointBuilder()
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
    • getPointOrBuilder

      public NormalizedVertexOrBuilder getPointOrBuilder()
       The 2D point of the detected landmark using the normalized image
       coordindate system. The normalized coordinates have the range from 0 to 1.
       
      .google.cloud.videointelligence.v1.NormalizedVertex point = 2;
      Specified by:
      getPointOrBuilder in interface DetectedLandmarkOrBuilder
    • getConfidence

      public float getConfidence()
       The confidence score of the detected landmark. Range [0, 1].
       
      float confidence = 3;
      Specified by:
      getConfidence in interface DetectedLandmarkOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public DetectedLandmark.Builder setConfidence(float value)
       The confidence score of the detected landmark. Range [0, 1].
       
      float confidence = 3;
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

      public DetectedLandmark.Builder clearConfidence()
       The confidence score of the detected landmark. Range [0, 1].
       
      float confidence = 3;
      Returns:
      This builder for chaining.