Class CropHintsAnnotation.Builder (3.17.0)

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.v1p1beta1.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.v1p1beta1.CropHint crop_hints = 1;

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

addCropHints(CropHint value)

public CropHintsAnnotation.Builder addCropHints(CropHint value)

Crop hint results.

repeated .google.cloud.vision.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.CropHint crop_hints = 1;

Returns
TypeDescription
CropHint.Builder

addCropHintsBuilder(int index)

public CropHint.Builder addCropHintsBuilder(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CropHintsAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

build()

public CropHintsAnnotation build()
Returns
TypeDescription
CropHintsAnnotation

buildPartial()

public CropHintsAnnotation buildPartial()
Returns
TypeDescription
CropHintsAnnotation

clear()

public CropHintsAnnotation.Builder clear()
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

clearCropHints()

public CropHintsAnnotation.Builder clearCropHints()

Crop hint results.

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

Returns
TypeDescription
CropHintsAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public CropHintsAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CropHintsAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

clone()

public CropHintsAnnotation.Builder clone()
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

getCropHints(int index)

public CropHint getCropHints(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHint

getCropHintsBuilder(int index)

public CropHint.Builder getCropHintsBuilder(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHint.Builder

getCropHintsBuilderList()

public List<CropHint.Builder> getCropHintsBuilderList()

Crop hint results.

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

Returns
TypeDescription
List<Builder>

getCropHintsCount()

public int getCropHintsCount()

Crop hint results.

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

Returns
TypeDescription
int

getCropHintsList()

public List<CropHint> getCropHintsList()

Crop hint results.

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

Returns
TypeDescription
List<CropHint>

getCropHintsOrBuilder(int index)

public CropHintOrBuilder getCropHintsOrBuilder(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHintOrBuilder

getCropHintsOrBuilderList()

public List<? extends CropHintOrBuilder> getCropHintsOrBuilderList()

Crop hint results.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p1beta1.CropHintOrBuilder>

getDefaultInstanceForType()

public CropHintsAnnotation getDefaultInstanceForType()
Returns
TypeDescription
CropHintsAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CropHintsAnnotation other)

public CropHintsAnnotation.Builder mergeFrom(CropHintsAnnotation other)
Parameter
NameDescription
otherCropHintsAnnotation
Returns
TypeDescription
CropHintsAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CropHintsAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CropHintsAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CropHintsAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

removeCropHints(int index)

public CropHintsAnnotation.Builder removeCropHints(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHintsAnnotation.Builder

setCropHints(int index, CropHint value)

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

Crop hint results.

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

Parameters
NameDescription
indexint
valueCropHint
Returns
TypeDescription
CropHintsAnnotation.Builder

setCropHints(int index, CropHint.Builder builderForValue)

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

Crop hint results.

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

Parameters
NameDescription
indexint
builderForValueCropHint.Builder
Returns
TypeDescription
CropHintsAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CropHintsAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CropHintsAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CropHintsAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides