Send feedback
Class CropHintsAnnotation.Builder (3.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.1.0 keyboard_arrow_down
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
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
Name Description values Iterable <? extends com.google.cloud.vision.v1p3beta1.CropHint >
Returns
addCropHints(CropHint value)
public CropHintsAnnotation . Builder addCropHints ( CropHint value )
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Parameter
Returns
addCropHints(CropHint.Builder builderForValue)
public CropHintsAnnotation . Builder addCropHints ( CropHint . Builder builderForValue )
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.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.v1p3beta1.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.v1p3beta1.CropHint crop_hints = 1;
Parameters
Returns
addCropHintsBuilder()
public CropHint . Builder addCropHintsBuilder ()
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Returns
addCropHintsBuilder(int index)
public CropHint . Builder addCropHintsBuilder ( int index )
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.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.v1p3beta1.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.v1p3beta1.CropHint crop_hints = 1;
Parameter
Returns
getCropHintsBuilder(int index)
public CropHint . Builder getCropHintsBuilder ( int index )
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Parameter
Returns
getCropHintsBuilderList()
public List<CropHint . Builder > getCropHintsBuilderList ()
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Returns
getCropHintsCount()
public int getCropHintsCount ()
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Returns
getCropHintsList()
public List<CropHint> getCropHintsList ()
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Returns
getCropHintsOrBuilder(int index)
public CropHintOrBuilder getCropHintsOrBuilder ( int index )
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Parameter
Returns
getCropHintsOrBuilderList()
public List <? extends CropHintOrBuilder > getCropHintsOrBuilderList ()
Crop hint results.
repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1;
Returns
Type Description List <? extends com.google.cloud.vision.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]