Interface TextSnippetOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TextSnippet, TextSnippet.Builder

@Generated public interface TextSnippetOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    Optional.
    com.google.protobuf.ByteString
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.