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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

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

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