Class CropHintsAnnotation (3.53.0)

public final class CropHintsAnnotation extends GeneratedMessageV3 implements CropHintsAnnotationOrBuilder

Set of crop hints that are used to generate new crops when serving images.

Protobuf type google.cloud.vision.v1.CropHintsAnnotation

Static 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
Overrides

getCropHints(int index)

public CropHint getCropHints(int index)

Crop hint results.

repeated .google.cloud.vision.v1.CropHint crop_hints = 1;

Parameter
Name Description
index int
Returns
Type Description
CropHint

getCropHintsCount()

public int getCropHintsCount()

Crop hint results.

repeated .google.cloud.vision.v1.CropHint crop_hints = 1;

Returns
Type Description
int

getCropHintsList()

public List<CropHint> getCropHintsList()

Crop hint results.

repeated .google.cloud.vision.v1.CropHint crop_hints = 1;

Returns
Type Description
List<CropHint>

getCropHintsOrBuilder(int index)

public CropHintOrBuilder getCropHintsOrBuilder(int index)

Crop hint results.

repeated .google.cloud.vision.v1.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.v1.CropHint crop_hints = 1;

Returns
Type Description
List<? extends com.google.cloud.vision.v1.CropHintOrBuilder>

getDefaultInstanceForType()

public CropHintsAnnotation getDefaultInstanceForType()
Returns
Type Description
CropHintsAnnotation

getParserForType()

public Parser<CropHintsAnnotation> getParserForType()
Returns
Type Description
Parser<CropHintsAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CropHintsAnnotation.Builder newBuilderForType()
Returns
Type Description
CropHintsAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CropHintsAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CropHintsAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CropHintsAnnotation.Builder toBuilder()
Returns
Type Description
CropHintsAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException