Class ReferenceImage.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
- com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder
-
- All Implemented Interfaces:
ReferenceImageOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ReferenceImage
public static final class ReferenceImage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder> implements ReferenceImageOrBuilder
A `ReferenceImage` represents a product image and its associated metadata, such as bounding boxes.
Protobuf typegoogle.cloud.vision.v1p4beta1.ReferenceImage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceImage.Builder
addAllBoundingPolys(Iterable<? extends BoundingPoly> values)
Optional.ReferenceImage.Builder
addBoundingPolys(int index, BoundingPoly value)
Optional.ReferenceImage.Builder
addBoundingPolys(int index, BoundingPoly.Builder builderForValue)
Optional.ReferenceImage.Builder
addBoundingPolys(BoundingPoly value)
Optional.ReferenceImage.Builder
addBoundingPolys(BoundingPoly.Builder builderForValue)
Optional.BoundingPoly.Builder
addBoundingPolysBuilder()
Optional.BoundingPoly.Builder
addBoundingPolysBuilder(int index)
Optional.ReferenceImage.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ReferenceImage
build()
ReferenceImage
buildPartial()
ReferenceImage.Builder
clear()
ReferenceImage.Builder
clearBoundingPolys()
Optional.ReferenceImage.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ReferenceImage.Builder
clearName()
The resource name of the reference image.ReferenceImage.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ReferenceImage.Builder
clearUri()
Required.ReferenceImage.Builder
clone()
BoundingPoly
getBoundingPolys(int index)
Optional.BoundingPoly.Builder
getBoundingPolysBuilder(int index)
Optional.List<BoundingPoly.Builder>
getBoundingPolysBuilderList()
Optional.int
getBoundingPolysCount()
Optional.List<BoundingPoly>
getBoundingPolysList()
Optional.BoundingPolyOrBuilder
getBoundingPolysOrBuilder(int index)
Optional.List<? extends BoundingPolyOrBuilder>
getBoundingPolysOrBuilderList()
Optional.ReferenceImage
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
The resource name of the reference image.com.google.protobuf.ByteString
getNameBytes()
The resource name of the reference image.String
getUri()
Required.com.google.protobuf.ByteString
getUriBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ReferenceImage.Builder
mergeFrom(ReferenceImage other)
ReferenceImage.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ReferenceImage.Builder
mergeFrom(com.google.protobuf.Message other)
ReferenceImage.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ReferenceImage.Builder
removeBoundingPolys(int index)
Optional.ReferenceImage.Builder
setBoundingPolys(int index, BoundingPoly value)
Optional.ReferenceImage.Builder
setBoundingPolys(int index, BoundingPoly.Builder builderForValue)
Optional.ReferenceImage.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ReferenceImage.Builder
setName(String value)
The resource name of the reference image.ReferenceImage.Builder
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the reference image.ReferenceImage.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ReferenceImage.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ReferenceImage.Builder
setUri(String value)
Required.ReferenceImage.Builder
setUriBytes(com.google.protobuf.ByteString value)
Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
clear
public ReferenceImage.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
getDefaultInstanceForType
public ReferenceImage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReferenceImage build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReferenceImage buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReferenceImage.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
setField
public ReferenceImage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
clearField
public ReferenceImage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
clearOneof
public ReferenceImage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
setRepeatedField
public ReferenceImage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
addRepeatedField
public ReferenceImage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
mergeFrom
public ReferenceImage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReferenceImage.Builder>
-
mergeFrom
public ReferenceImage.Builder mergeFrom(ReferenceImage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
mergeFrom
public ReferenceImage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReferenceImage.Builder>
- Throws:
IOException
-
getName
public String getName()
The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
string name = 1;
- Specified by:
getName
in interfaceReferenceImageOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
string name = 1;
- Specified by:
getNameBytes
in interfaceReferenceImageOrBuilder
- Returns:
- The bytes for name.
-
setName
public ReferenceImage.Builder setName(String value)
The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ReferenceImage.Builder clearName()
The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public ReferenceImage.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUri
public String getUri()
Required. The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUri
in interfaceReferenceImageOrBuilder
- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Required. The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUriBytes
in interfaceReferenceImageOrBuilder
- Returns:
- The bytes for uri.
-
setUri
public ReferenceImage.Builder setUri(String value)
Required. The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public ReferenceImage.Builder clearUri()
Required. The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setUriBytes
public ReferenceImage.Builder setUriBytes(com.google.protobuf.ByteString value)
Required. The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getBoundingPolysList
public List<BoundingPoly> getBoundingPolysList()
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBoundingPolysList
in interfaceReferenceImageOrBuilder
-
getBoundingPolysCount
public int getBoundingPolysCount()
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBoundingPolysCount
in interfaceReferenceImageOrBuilder
-
getBoundingPolys
public BoundingPoly getBoundingPolys(int index)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBoundingPolys
in interfaceReferenceImageOrBuilder
-
setBoundingPolys
public ReferenceImage.Builder setBoundingPolys(int index, BoundingPoly value)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
setBoundingPolys
public ReferenceImage.Builder setBoundingPolys(int index, BoundingPoly.Builder builderForValue)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addBoundingPolys
public ReferenceImage.Builder addBoundingPolys(BoundingPoly value)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addBoundingPolys
public ReferenceImage.Builder addBoundingPolys(int index, BoundingPoly value)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addBoundingPolys
public ReferenceImage.Builder addBoundingPolys(BoundingPoly.Builder builderForValue)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addBoundingPolys
public ReferenceImage.Builder addBoundingPolys(int index, BoundingPoly.Builder builderForValue)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addAllBoundingPolys
public ReferenceImage.Builder addAllBoundingPolys(Iterable<? extends BoundingPoly> values)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
clearBoundingPolys
public ReferenceImage.Builder clearBoundingPolys()
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
removeBoundingPolys
public ReferenceImage.Builder removeBoundingPolys(int index)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getBoundingPolysBuilder
public BoundingPoly.Builder getBoundingPolysBuilder(int index)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getBoundingPolysOrBuilder
public BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBoundingPolysOrBuilder
in interfaceReferenceImageOrBuilder
-
getBoundingPolysOrBuilderList
public List<? extends BoundingPolyOrBuilder> getBoundingPolysOrBuilderList()
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBoundingPolysOrBuilderList
in interfaceReferenceImageOrBuilder
-
addBoundingPolysBuilder
public BoundingPoly.Builder addBoundingPolysBuilder()
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addBoundingPolysBuilder
public BoundingPoly.Builder addBoundingPolysBuilder(int index)
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getBoundingPolysBuilderList
public List<BoundingPoly.Builder> getBoundingPolysBuilderList()
Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final ReferenceImage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
mergeUnknownFields
public final ReferenceImage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReferenceImage.Builder>
-
-