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
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
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p1beta1.CropHint>
|
Returns
addCropHints(CropHint value)
public CropHintsAnnotation.Builder addCropHints(CropHint value)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
addCropHints(CropHint.Builder builderForValue)
public CropHintsAnnotation.Builder addCropHints(CropHint.Builder builderForValue)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
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
Returns
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
Returns
addCropHintsBuilder()
public CropHint.Builder addCropHintsBuilder()
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Returns
addCropHintsBuilder(int index)
public CropHint.Builder addCropHintsBuilder(int index)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CropHintsAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CropHintsAnnotation build()
Returns
buildPartial()
public CropHintsAnnotation buildPartial()
Returns
clear()
public CropHintsAnnotation.Builder clear()
Returns
Overrides
clearCropHints()
public CropHintsAnnotation.Builder clearCropHints()
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public CropHintsAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CropHintsAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public CropHintsAnnotation.Builder clone()
Returns
Overrides
getCropHints(int index)
public CropHint getCropHints(int index)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
getCropHintsBuilder(int index)
public CropHint.Builder getCropHintsBuilder(int index)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
getCropHintsBuilderList()
public List<CropHint.Builder> getCropHintsBuilderList()
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Returns
getCropHintsCount()
public int getCropHintsCount()
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Returns
getCropHintsList()
public List<CropHint> getCropHintsList()
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Returns
getCropHintsOrBuilder(int index)
public CropHintOrBuilder getCropHintsOrBuilder(int index)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
getCropHintsOrBuilderList()
public List<? extends CropHintOrBuilder> getCropHintsOrBuilderList()
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> | |
getDefaultInstanceForType()
public CropHintsAnnotation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CropHintsAnnotation other)
public CropHintsAnnotation.Builder mergeFrom(CropHintsAnnotation other)
Parameter
Returns
public CropHintsAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CropHintsAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CropHintsAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeCropHints(int index)
public CropHintsAnnotation.Builder removeCropHints(int index)
Crop hint results.
repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1;
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CropHintsAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CropHintsAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CropHintsAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides