Package com.google.cloud.automl.v1
Interface TextSnippetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextSnippet
,TextSnippet.Builder
public interface TextSnippetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContent()
Required.com.google.protobuf.ByteString
getContentBytes()
Required.String
getContentUri()
Output only.com.google.protobuf.ByteString
getContentUriBytes()
Output only.String
getMimeType()
Optional.com.google.protobuf.ByteString
getMimeTypeBytes()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getContent
String getContent()
Required. The content of the text snippet as a string. Up to 250000 characters long.
string content = 1;
- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()
Required. The content of the text snippet as a string. Up to 250000 characters long.
string content = 1;
- Returns:
- The bytes for content.
-
getMimeType
String getMimeType()
Optional. The format of [content][google.cloud.automl.v1.TextSnippet.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][google.cloud.automl.v1.TextSnippet.content].
string mime_type = 2;
- Returns:
- The mimeType.
-
getMimeTypeBytes
com.google.protobuf.ByteString getMimeTypeBytes()
Optional. The format of [content][google.cloud.automl.v1.TextSnippet.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][google.cloud.automl.v1.TextSnippet.content].
string mime_type = 2;
- Returns:
- The bytes for mimeType.
-
getContentUri
String getContentUri()
Output only. HTTP URI where you can download the content.
string content_uri = 4;
- Returns:
- The contentUri.
-
getContentUriBytes
com.google.protobuf.ByteString getContentUriBytes()
Output only. HTTP URI where you can download the content.
string content_uri = 4;
- Returns:
- The bytes for contentUri.
-
-