Class FaceRecognitionParams.Builder

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

public static final class FaceRecognitionParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<FaceRecognitionParams.Builder> implements FaceRecognitionParamsOrBuilder
 Parameters for a celebrity recognition request.
 
Protobuf type google.cloud.vision.v1p4beta1.FaceRecognitionParams
  • Method Summary

    Modifier and Type
    Method
    Description
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
    addCelebritySetBytes(com.google.protobuf.ByteString value)
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
     
     
     
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
    getCelebritySet(int index)
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
    com.google.protobuf.ByteString
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
    int
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
    com.google.protobuf.ProtocolStringList
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setCelebritySet(int index, String value)
    The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<FaceRecognitionParams.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<FaceRecognitionParams.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<FaceRecognitionParams.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FaceRecognitionParams.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<FaceRecognitionParams.Builder>
      Throws:
      IOException
    • getCelebritySetList

      public com.google.protobuf.ProtocolStringList getCelebritySetList()
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Specified by:
      getCelebritySetList in interface FaceRecognitionParamsOrBuilder
      Returns:
      A list containing the celebritySet.
    • getCelebritySetCount

      public int getCelebritySetCount()
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Specified by:
      getCelebritySetCount in interface FaceRecognitionParamsOrBuilder
      Returns:
      The count of celebritySet.
    • getCelebritySet

      public String getCelebritySet(int index)
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Specified by:
      getCelebritySet in interface FaceRecognitionParamsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The celebritySet at the given index.
    • getCelebritySetBytes

      public com.google.protobuf.ByteString getCelebritySetBytes(int index)
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Specified by:
      getCelebritySetBytes in interface FaceRecognitionParamsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the celebritySet at the given index.
    • setCelebritySet

      public FaceRecognitionParams.Builder setCelebritySet(int index, String value)
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Parameters:
      index - The index to set the value at.
      value - The celebritySet to set.
      Returns:
      This builder for chaining.
    • addCelebritySet

      public FaceRecognitionParams.Builder addCelebritySet(String value)
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Parameters:
      value - The celebritySet to add.
      Returns:
      This builder for chaining.
    • addAllCelebritySet

      public FaceRecognitionParams.Builder addAllCelebritySet(Iterable<String> values)
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Parameters:
      values - The celebritySet to add.
      Returns:
      This builder for chaining.
    • clearCelebritySet

      public FaceRecognitionParams.Builder clearCelebritySet()
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Returns:
      This builder for chaining.
    • addCelebritySetBytes

      public FaceRecognitionParams.Builder addCelebritySetBytes(com.google.protobuf.ByteString value)
       The resource names for one or more
       [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
       set is preloaded and can be specified as "builtin/default". If this is
       specified, the algorithm will try to match the faces detected in the input
       image to the Celebrities in the CelebritySets.
       
      repeated string celebrity_set = 1;
      Parameters:
      value - The bytes of the celebritySet to add.
      Returns:
      This builder for chaining.