Class CropHintsAnnotation.Builder (2.1.2)

public static final class CropHintsAnnotation.Builder extends GeneratedMessageV3.Builder<CropHintsAnnotation.Builder> implements CropHintsAnnotationOrBuilder

Set of crop hints that are used to generate new crops when serving images.

Protobuf type google.cloud.vision.v1p3beta1.CropHintsAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCropHints(Iterable<? extends CropHint> values)

public CropHintsAnnotation.Builder addAllCropHints(Iterable<? extends CropHint> values)

Crop hint results.

repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.CropHint>
Returns
TypeDescription
CropHintsAnnotation.Builder

addCropHints(CropHint value)

public CropHintsAnnotation.Builder addCropHints(CropHint value)

Crop hint results.

repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;

Parameter
NameDescription
valueCropHint
Returns
TypeDescription
CropHintsAnnotation.Builder

addCropHints(CropHint.Builder builderForValue)

public CropHintsAnnotation.Builder addCropHints(CropHint.Builder builderForValue)

Crop hint results.

repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;

Parameter
NameDescription
builderForValueCropHint.Builder
Returns
TypeDescription
CropHintsAnnotation.Builder

addCropHints(int index, CropHint value)

public CropHintsAnnotation.Builder addCropHints(int index, CropHint value)

Crop hint results.

repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;

Parameters
NameDescription
indexint
valueCropHint
Returns
TypeDescription
CropHintsAnnotation.Builder

addCropHints(int index, CropHint.Builder builderForValue)

public CropHintsAnnotation.Builder addCropHints(int index, CropHint.Builder builderForValue)

Crop hint results.

repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;

Parameters
NameDescription
indexint
builderForValueCropHint.Builder
Returns
TypeDescription
CropHintsAnnotation.Builder

addCropHintsBuilder()

public CropHint.Builder addCropHintsBuilder()

Crop hint results.

repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;

Returns
TypeDescription
CropHint.Builder