public final class Image extends GeneratedMessageV3 implements ImageOrBuilder
A representation of an image.
Only images up to 30MB in size are supported.
Protobuf type google.cloud.automl.v1beta1.Image
Static Fields
IMAGE_BYTES_FIELD_NUMBER
public static final int IMAGE_BYTES_FIELD_NUMBER
Field Value
public static final int INPUT_CONFIG_FIELD_NUMBER
Field Value
THUMBNAIL_URI_FIELD_NUMBER
public static final int THUMBNAIL_URI_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Image getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Image.Builder newBuilder()
Returns
newBuilder(Image prototype)
public static Image.Builder newBuilder(Image prototype)
Parameter
Name | Description |
prototype | Image
|
Returns
public static Image parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Image parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Image parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Image parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Image parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Image parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Image parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Image parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Image parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Image parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Image parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Image parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Image> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDataCase()
public Image.DataCase getDataCase()
Returns
getDefaultInstanceForType()
public Image getDefaultInstanceForType()
Returns
getImageBytes()
public ByteString getImageBytes()
Image content represented as a stream of bytes.
Note: As with all bytes
fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
bytes image_bytes = 1;
Returns
public InputConfig getInputConfig()
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6;
Returns
public InputConfigOrBuilder getInputConfigOrBuilder()
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6;
Returns
getParserForType()
public Parser<Image> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getThumbnailUri()
public String getThumbnailUri()
Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;
Returns
Type | Description |
String | The thumbnailUri.
|
getThumbnailUriBytes()
public ByteString getThumbnailUriBytes()
Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;
Returns
Type | Description |
ByteString | The bytes for thumbnailUri.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasImageBytes()
public boolean hasImageBytes()
Image content represented as a stream of bytes.
Note: As with all bytes
fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
bytes image_bytes = 1;
Returns
Type | Description |
boolean | Whether the imageBytes field is set.
|
public boolean hasInputConfig()
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6;
Returns
Type | Description |
boolean | Whether the inputConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Image.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Image.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Image.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions