public final class CropHintsAnnotation extends GeneratedMessage implements CropHintsAnnotationOrBuilderSet of crop hints that are used to generate new crops when serving images.
Protobuf type google.cloud.vision.v1p4beta1.CropHintsAnnotation
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CropHintsAnnotationImplements
CropHintsAnnotationOrBuilderStatic Fields
CROP_HINTS_FIELD_NUMBER
public static final int CROP_HINTS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static CropHintsAnnotation getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static CropHintsAnnotation.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation.Builder |
|
newBuilder(CropHintsAnnotation prototype)
public static CropHintsAnnotation.Builder newBuilder(CropHintsAnnotation prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
CropHintsAnnotation |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation.Builder |
|
parseDelimitedFrom(InputStream input)
public static CropHintsAnnotation parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CropHintsAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static CropHintsAnnotation parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CropHintsAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static CropHintsAnnotation parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CropHintsAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static CropHintsAnnotation parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CropHintsAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static CropHintsAnnotation parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CropHintsAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static CropHintsAnnotation parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CropHintsAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<CropHintsAnnotation> parser()| Returns | |
|---|---|
| Type | Description |
Parser<CropHintsAnnotation> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCropHints(int index)
public CropHint getCropHints(int index)Crop hint results.
repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CropHint |
|
getCropHintsCount()
public int getCropHintsCount()Crop hint results.
repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getCropHintsList()
public List<CropHint> getCropHintsList()Crop hint results.
repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1;
| Returns | |
|---|---|
| Type | Description |
List<CropHint> |
|
getCropHintsOrBuilder(int index)
public CropHintOrBuilder getCropHintsOrBuilder(int index)Crop hint results.
repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CropHintOrBuilder |
|
getCropHintsOrBuilderList()
public List<? extends CropHintOrBuilder> getCropHintsOrBuilderList()Crop hint results.
repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> |
|
getDefaultInstanceForType()
public CropHintsAnnotation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation |
|
getParserForType()
public Parser<CropHintsAnnotation> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<CropHintsAnnotation> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public CropHintsAnnotation.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CropHintsAnnotation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation.Builder |
|
toBuilder()
public CropHintsAnnotation.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
CropHintsAnnotation.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|