Class CropHintsAnnotation (3.21.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.v1p1beta1.CropHintsAnnotation

Static Fields

CROP_HINTS_FIELD_NUMBER

public static final int CROP_HINTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CropHintsAnnotation getDefaultInstance()
Returns
TypeDescription
CropHintsAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CropHintsAnnotation.Builder newBuilder()
Returns
TypeDescription
CropHintsAnnotation.Builder

newBuilder(CropHintsAnnotation prototype)

public static CropHintsAnnotation.Builder newBuilder(CropHintsAnnotation prototype)
Parameter
NameDescription
prototypeCropHintsAnnotation
Returns
TypeDescription
CropHintsAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static CropHintsAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CropHintsAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CropHintsAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CropHintsAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CropHintsAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CropHintsAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CropHintsAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CropHintsAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CropHintsAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CropHintsAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CropHintsAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CropHintsAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CropHintsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CropHintsAnnotation> parser()
Returns
TypeDescription
Parser<CropHintsAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCropHints(int index)

public CropHint getCropHints(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHint

getCropHintsCount()

public int getCropHintsCount()

Crop hint results.

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

Returns
TypeDescription
int

getCropHintsList()

public List<CropHint> getCropHintsList()

Crop hint results.

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

Returns
TypeDescription
List<CropHint>

getCropHintsOrBuilder(int index)

public CropHintOrBuilder getCropHintsOrBuilder(int index)

Crop hint results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CropHintOrBuilder

getCropHintsOrBuilderList()

public List<? extends CropHintOrBuilder> getCropHintsOrBuilderList()

Crop hint results.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p1beta1.CropHintOrBuilder>

getDefaultInstanceForType()

public CropHintsAnnotation getDefaultInstanceForType()
Returns
TypeDescription
CropHintsAnnotation

getParserForType()

public Parser<CropHintsAnnotation> getParserForType()
Returns
TypeDescription
Parser<CropHintsAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CropHintsAnnotation.Builder newBuilderForType()
Returns
TypeDescription
CropHintsAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CropHintsAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CropHintsAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CropHintsAnnotation.Builder toBuilder()
Returns
TypeDescription
CropHintsAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException