Interface Label.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Label.Builder,Label>, SdkBuilder<Label.Builder,Label>, SdkPojo
Enclosing class:
Label

public static interface Label.Builder extends SdkPojo, CopyableBuilder<Label.Builder,Label>
  • Method Details

    • name

      Label.Builder name(String name)

      The name (label) of the object or scene.

      Parameters:
      name - The name (label) of the object or scene.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confidence

      Label.Builder confidence(Float confidence)

      Level of confidence.

      Parameters:
      confidence - Level of confidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Label.Builder instances(Collection<Instance> instances)

      If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.

      Parameters:
      instances - If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Label.Builder instances(Instance... instances)

      If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.

      Parameters:
      instances - If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Label.Builder instances(Consumer<Instance.Builder>... instances)

      If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.

      This is a convenience method that creates an instance of the Instance.Builder avoiding the need to create one manually via Instance.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instances(List<Instance>).

      Parameters:
      instances - a consumer that will call methods on Instance.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • parents

      Label.Builder parents(Collection<Parent> parents)

      The parent labels for a label. The response includes all ancestor labels.

      Parameters:
      parents - The parent labels for a label. The response includes all ancestor labels.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parents

      Label.Builder parents(Parent... parents)

      The parent labels for a label. The response includes all ancestor labels.

      Parameters:
      parents - The parent labels for a label. The response includes all ancestor labels.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parents

      Label.Builder parents(Consumer<Parent.Builder>... parents)

      The parent labels for a label. The response includes all ancestor labels.

      This is a convenience method that creates an instance of the Parent.Builder avoiding the need to create one manually via Parent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to parents(List<Parent>).

      Parameters:
      parents - a consumer that will call methods on Parent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aliases

      Label.Builder aliases(Collection<LabelAlias> aliases)

      A list of potential aliases for a given label.

      Parameters:
      aliases - A list of potential aliases for a given label.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aliases

      Label.Builder aliases(LabelAlias... aliases)

      A list of potential aliases for a given label.

      Parameters:
      aliases - A list of potential aliases for a given label.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aliases

      A list of potential aliases for a given label.

      This is a convenience method that creates an instance of the LabelAlias.Builder avoiding the need to create one manually via LabelAlias.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to aliases(List<LabelAlias>).

      Parameters:
      aliases - a consumer that will call methods on LabelAlias.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • categories

      Label.Builder categories(Collection<LabelCategory> categories)

      A list of the categories associated with a given label.

      Parameters:
      categories - A list of the categories associated with a given label.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • categories

      Label.Builder categories(LabelCategory... categories)

      A list of the categories associated with a given label.

      Parameters:
      categories - A list of the categories associated with a given label.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • categories

      Label.Builder categories(Consumer<LabelCategory.Builder>... categories)

      A list of the categories associated with a given label.

      This is a convenience method that creates an instance of the LabelCategory.Builder avoiding the need to create one manually via LabelCategory.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to categories(List<LabelCategory>).

      Parameters:
      categories - a consumer that will call methods on LabelCategory.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: