public final class ImageProperties extends GeneratedMessageV3 implements ImagePropertiesOrBuilder
Stores image properties, such as dominant colors.
Protobuf type google.cloud.vision.v1p2beta1.ImageProperties
Static Fields
DOMINANT_COLORS_FIELD_NUMBER
public static final int DOMINANT_COLORS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ImageProperties getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ImageProperties.Builder newBuilder()
Returns
newBuilder(ImageProperties prototype)
public static ImageProperties.Builder newBuilder(ImageProperties prototype)
Parameter
Returns
public static ImageProperties parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImageProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ImageProperties parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImageProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ImageProperties parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImageProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageProperties parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ImageProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageProperties parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImageProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ImageProperties parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImageProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ImageProperties> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ImageProperties getDefaultInstanceForType()
Returns
getDominantColors()
public DominantColorsAnnotation getDominantColors()
If present, dominant colors completed successfully.
.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1;
Returns
getDominantColorsOrBuilder()
public DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder()
If present, dominant colors completed successfully.
.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1;
Returns
getParserForType()
public Parser<ImageProperties> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDominantColors()
public boolean hasDominantColors()
If present, dominant colors completed successfully.
.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1;
Returns
Type | Description |
boolean | Whether the dominantColors field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ImageProperties.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImageProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ImageProperties.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions