Interface TextSnippetOrBuilder (2.9.0)

public interface TextSnippetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract String getContent()

Required. The content of the text snippet as a string. Up to 250000 characters long.

string content = 1;

Returns
TypeDescription
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

Required. The content of the text snippet as a string. Up to 250000 characters long.

string content = 1;

Returns
TypeDescription
ByteString

The bytes for content.

getContentUri()

public abstract String getContentUri()

Output only. HTTP URI where you can download the content.

string content_uri = 4;

Returns
TypeDescription
String

The contentUri.

getContentUriBytes()

public abstract ByteString getContentUriBytes()

Output only. HTTP URI where you can download the content.

string content_uri = 4;

Returns
TypeDescription
ByteString

The bytes for contentUri.

getMimeType()

public abstract String getMimeType()

Optional. The format of content. Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded content.

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public abstract ByteString getMimeTypeBytes()

Optional. The format of content. Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded content.

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.