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