Class FaceAnnotation.Landmark.Builder

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

public static final class FaceAnnotation.Landmark.Builder extends com.google.protobuf.GeneratedMessage.Builder<FaceAnnotation.Landmark.Builder> implements FaceAnnotation.LandmarkOrBuilder
 A face-specific landmark (for example, a face feature).
 
Protobuf type google.cloud.vision.v1.FaceAnnotation.Landmark
  • 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<FaceAnnotation.Landmark.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<FaceAnnotation.Landmark.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<FaceAnnotation.Landmark.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FaceAnnotation.Landmark.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<FaceAnnotation.Landmark.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       Face landmark type.
       
      .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3;
      Specified by:
      getTypeValue in interface FaceAnnotation.LandmarkOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public FaceAnnotation.Landmark.Builder setTypeValue(int value)
       Face landmark type.
       
      .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public FaceAnnotation.Landmark.Type getType()
       Face landmark type.
       
      .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3;
      Specified by:
      getType in interface FaceAnnotation.LandmarkOrBuilder
      Returns:
      The type.
    • setType

       Face landmark type.
       
      .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public FaceAnnotation.Landmark.Builder clearType()
       Face landmark type.
       
      .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3;
      Returns:
      This builder for chaining.
    • hasPosition

      public boolean hasPosition()
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
      Specified by:
      hasPosition in interface FaceAnnotation.LandmarkOrBuilder
      Returns:
      Whether the position field is set.
    • getPosition

      public Position getPosition()
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
      Specified by:
      getPosition in interface FaceAnnotation.LandmarkOrBuilder
      Returns:
      The position.
    • setPosition

      public FaceAnnotation.Landmark.Builder setPosition(Position value)
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
    • setPosition

      public FaceAnnotation.Landmark.Builder setPosition(Position.Builder builderForValue)
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
    • mergePosition

      public FaceAnnotation.Landmark.Builder mergePosition(Position value)
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
    • clearPosition

      public FaceAnnotation.Landmark.Builder clearPosition()
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
    • getPositionBuilder

      public Position.Builder getPositionBuilder()
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
    • getPositionOrBuilder

      public PositionOrBuilder getPositionOrBuilder()
       Face landmark position.
       
      .google.cloud.vision.v1.Position position = 4;
      Specified by:
      getPositionOrBuilder in interface FaceAnnotation.LandmarkOrBuilder