Interface ImageOrBuilder (0.19.0)

public interface ImageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAltText()

public abstract String getAltText()

Optional. The alternative text for the image.

string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The altText.

getAltTextBytes()

public abstract ByteString getAltTextBytes()

Optional. The alternative text for the image.

string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for altText.

getData()

public abstract ByteString getData()

Required. Raw bytes of the image.

bytes data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The data.

getMimeType()

public abstract String getMimeType()

Required. The IANA standard MIME type of the source data. Supported image types includes:

  • image/png
  • image/jpeg
  • image/webp

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public abstract ByteString getMimeTypeBytes()

Required. The IANA standard MIME type of the source data. Supported image types includes:

  • image/png
  • image/jpeg
  • image/webp

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for mimeType.