publicfinalclass ReferenceImageextendsGeneratedMessageV3implementsReferenceImageOrBuilder
A ReferenceImage represents a product image and its associated metadata,
such as bounding boxes.
Protobuf type google.cloud.vision.v1.ReferenceImage
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
BOUNDING_POLYS_FIELD_NUMBER
publicstaticfinalintBOUNDING_POLYS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
URI_FIELD_NUMBER
publicstaticfinalintURI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticReferenceImagegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticReferenceImage.BuildernewBuilder()
newBuilder(ReferenceImage prototype)
publicstaticReferenceImage.BuildernewBuilder(ReferenceImageprototype)
publicstaticReferenceImageparseDelimitedFrom(InputStreaminput)
publicstaticReferenceImageparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticReferenceImageparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticReferenceImageparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticReferenceImageparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticReferenceImageparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticReferenceImageparseFrom(CodedInputStreaminput)
publicstaticReferenceImageparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticReferenceImageparseFrom(InputStreaminput)
publicstaticReferenceImageparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticReferenceImageparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticReferenceImageparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ReferenceImage>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBoundingPolys(int index)
publicBoundingPolygetBoundingPolys(intindex)
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.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getBoundingPolysCount()
publicintgetBoundingPolysCount()
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.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
getBoundingPolysList()
publicList<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.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolysOrBuilder(int index)
publicBoundingPolyOrBuildergetBoundingPolysOrBuilder(intindex)
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.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getBoundingPolysOrBuilderList()
publicList<?extendsBoundingPolyOrBuilder>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.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.vision.v1.BoundingPolyOrBuilder> |
getDefaultInstanceForType()
publicReferenceImagegetDefaultInstanceForType()
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;
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
publicByteStringgetNameBytes()
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 |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
publicParser<ReferenceImage>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
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];
| Returns |
| Type |
Description |
String |
The uri.
|
getUriBytes()
publicByteStringgetUriBytes()
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 |
| Type |
Description |
ByteString |
The bytes for uri.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicReferenceImage.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedReferenceImage.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicReferenceImage.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides