Class ImageProperties (3.12.0)

public final class ImageProperties extends GeneratedMessageV3 implements ImagePropertiesOrBuilder

Stores image properties, such as dominant colors.

Protobuf type google.cloud.vision.v1p4beta1.ImageProperties

Static Fields

DOMINANT_COLORS_FIELD_NUMBER

public static final int DOMINANT_COLORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImageProperties getDefaultInstance()
Returns
TypeDescription
ImageProperties

getDescriptor()

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

newBuilder()

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

newBuilder(ImageProperties prototype)

public static ImageProperties.Builder newBuilder(ImageProperties prototype)
Parameter
NameDescription
prototypeImageProperties
Returns
TypeDescription
ImageProperties.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ImageProperties getDefaultInstanceForType()
Returns
TypeDescription
ImageProperties

getDominantColors()

public DominantColorsAnnotation getDominantColors()

If present, dominant colors completed successfully.

.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1;

Returns
TypeDescription
DominantColorsAnnotation

The dominantColors.

getDominantColorsOrBuilder()

public DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder()

If present, dominant colors completed successfully.

.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1;

Returns
TypeDescription
DominantColorsAnnotationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDominantColors()

public boolean hasDominantColors()

If present, dominant colors completed successfully.

.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1;

Returns
TypeDescription
boolean

Whether the dominantColors field is set.

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 ImageProperties.Builder newBuilderForType()
Returns
TypeDescription
ImageProperties.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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