public static final class CropHintsParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder> implements CropHintsParamsOrBuilder
Parameters for crop hints annotation request.Protobuf type
google.cloud.vision.v1.CropHintsParams| Modifier and Type | Method and Description |
|---|---|
CropHintsParams.Builder |
addAllAspectRatios(java.lang.Iterable<? extends java.lang.Float> values)
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
CropHintsParams.Builder |
addAspectRatios(float value)
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
CropHintsParams.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
CropHintsParams |
build() |
CropHintsParams |
buildPartial() |
CropHintsParams.Builder |
clear() |
CropHintsParams.Builder |
clearAspectRatios()
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
CropHintsParams.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CropHintsParams.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CropHintsParams.Builder |
clone() |
float |
getAspectRatios(int index)
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
int |
getAspectRatiosCount()
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
java.util.List<java.lang.Float> |
getAspectRatiosList()
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
CropHintsParams |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CropHintsParams.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CropHintsParams.Builder |
mergeFrom(CropHintsParams other) |
CropHintsParams.Builder |
mergeFrom(com.google.protobuf.Message other) |
CropHintsParams.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CropHintsParams.Builder |
setAspectRatios(int index,
float value)
Aspect ratios in floats, representing the ratio of the width to the height
of the image.
|
CropHintsParams.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
CropHintsParams.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
CropHintsParams.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CropHintsParams build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CropHintsParams buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CropHintsParams.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CropHintsParams.Builder>public CropHintsParams.Builder mergeFrom(CropHintsParams other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public CropHintsParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CropHintsParams.Builder>java.io.IOExceptionpublic java.util.List<java.lang.Float> getAspectRatiosList()
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;getAspectRatiosList in interface CropHintsParamsOrBuilderpublic int getAspectRatiosCount()
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;getAspectRatiosCount in interface CropHintsParamsOrBuilderpublic float getAspectRatios(int index)
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;getAspectRatios in interface CropHintsParamsOrBuilderpublic CropHintsParams.Builder setAspectRatios(int index, float value)
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;public CropHintsParams.Builder addAspectRatios(float value)
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;public CropHintsParams.Builder addAllAspectRatios(java.lang.Iterable<? extends java.lang.Float> values)
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;public CropHintsParams.Builder clearAspectRatios()
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;public final CropHintsParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>public final CropHintsParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CropHintsParams.Builder>