Class RawDocument.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RawDocument.Builder>
com.google.cloud.documentai.v1.RawDocument.Builder
All Implemented Interfaces:
RawDocumentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RawDocument

public static final class RawDocument.Builder extends com.google.protobuf.GeneratedMessage.Builder<RawDocument.Builder> implements RawDocumentOrBuilder
 Payload message of raw document content (bytes).
 
Protobuf type google.cloud.documentai.v1.RawDocument
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Inline document content.
    The display name of the document, it supports all Unicode characters except the following: `*`, `?
    An IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1.RawDocument.content].
    com.google.protobuf.ByteString
    Inline document content.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The display name of the document, it supports all Unicode characters except the following: `*`, `?
    com.google.protobuf.ByteString
    The display name of the document, it supports all Unicode characters except the following: `*`, `?
    An IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1.RawDocument.content].
    com.google.protobuf.ByteString
    An IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1.RawDocument.content].
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setContent(com.google.protobuf.ByteString value)
    Inline document content.
    The display name of the document, it supports all Unicode characters except the following: `*`, `?
    setDisplayNameBytes(com.google.protobuf.ByteString value)
    The display name of the document, it supports all Unicode characters except the following: `*`, `?
    An IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1.RawDocument.content].
    setMimeTypeBytes(com.google.protobuf.ByteString value)
    An IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1.RawDocument.content].

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RawDocument.Builder>
    • clear

      public RawDocument.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RawDocument.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RawDocument.Builder>
    • getDefaultInstanceForType

      public RawDocument getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RawDocument build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RawDocument buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RawDocument.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RawDocument.Builder>
    • mergeFrom

      public RawDocument.Builder mergeFrom(RawDocument other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RawDocument.Builder>
    • mergeFrom

      public RawDocument.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RawDocument.Builder>
      Throws:
      IOException
    • getContent

      public com.google.protobuf.ByteString getContent()
       Inline document content.
       
      bytes content = 1;
      Specified by:
      getContent in interface RawDocumentOrBuilder
      Returns:
      The content.
    • setContent

      public RawDocument.Builder setContent(com.google.protobuf.ByteString value)
       Inline document content.
       
      bytes content = 1;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public RawDocument.Builder clearContent()
       Inline document content.
       
      bytes content = 1;
      Returns:
      This builder for chaining.
    • getMimeType

      public String getMimeType()
       An IANA MIME type (RFC6838) indicating the nature and format of the
       [content][google.cloud.documentai.v1.RawDocument.content].
       
      string mime_type = 2;
      Specified by:
      getMimeType in interface RawDocumentOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       An IANA MIME type (RFC6838) indicating the nature and format of the
       [content][google.cloud.documentai.v1.RawDocument.content].
       
      string mime_type = 2;
      Specified by:
      getMimeTypeBytes in interface RawDocumentOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public RawDocument.Builder setMimeType(String value)
       An IANA MIME type (RFC6838) indicating the nature and format of the
       [content][google.cloud.documentai.v1.RawDocument.content].
       
      string mime_type = 2;
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public RawDocument.Builder clearMimeType()
       An IANA MIME type (RFC6838) indicating the nature and format of the
       [content][google.cloud.documentai.v1.RawDocument.content].
       
      string mime_type = 2;
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public RawDocument.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       An IANA MIME type (RFC6838) indicating the nature and format of the
       [content][google.cloud.documentai.v1.RawDocument.content].
       
      string mime_type = 2;
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name of the document, it supports all Unicode characters except
       the following:
       `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
       `~`, `=` and `:` are reserved.
       If not specified, a default ID is generated.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface RawDocumentOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the document, it supports all Unicode characters except
       the following:
       `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
       `~`, `=` and `:` are reserved.
       If not specified, a default ID is generated.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface RawDocumentOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public RawDocument.Builder setDisplayName(String value)
       The display name of the document, it supports all Unicode characters except
       the following:
       `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
       `~`, `=` and `:` are reserved.
       If not specified, a default ID is generated.
       
      string display_name = 3;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public RawDocument.Builder clearDisplayName()
       The display name of the document, it supports all Unicode characters except
       the following:
       `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
       `~`, `=` and `:` are reserved.
       If not specified, a default ID is generated.
       
      string display_name = 3;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public RawDocument.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the document, it supports all Unicode characters except
       the following:
       `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
       `~`, `=` and `:` are reserved.
       If not specified, a default ID is generated.
       
      string display_name = 3;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.