Class: Google::Cloud::DocumentAI::V1beta3::Document::Page::Token

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/document.rb

Overview

A detected token.

Defined Under Namespace

Classes: DetectedBreak

Instance Attribute Summary collapse

Instance Attribute Details

#detected_break::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::DetectedBreak

Returns Detected break at the end of a Token.



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 368

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Detected break at the end of a {::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token Token}.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::DetectedBreak::Type]
  #     Detected break type.
  class DetectedBreak
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum to denote the type of break found.
    module Type
      # Unspecified break type.
      TYPE_UNSPECIFIED = 0

      # A single whitespace.
      SPACE = 1

      # A wider whitespace.
      WIDE_SPACE = 2

      # A hyphen that indicates that a token has been split across lines.
      HYPHEN = 3
    end
  end
end

#detected_languages::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Page::DetectedLanguage>

Returns A list of detected languages together with confidence.

Returns:



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 368

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Detected break at the end of a {::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token Token}.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::DetectedBreak::Type]
  #     Detected break type.
  class DetectedBreak
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum to denote the type of break found.
    module Type
      # Unspecified break type.
      TYPE_UNSPECIFIED = 0

      # A single whitespace.
      SPACE = 1

      # A wider whitespace.
      WIDE_SPACE = 2

      # A hyphen that indicates that a token has been split across lines.
      HYPHEN = 3
    end
  end
end

#layout::Google::Cloud::DocumentAI::V1beta3::Document::Page::Layout

Returns Layout for Token.



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 368

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Detected break at the end of a {::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token Token}.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::DetectedBreak::Type]
  #     Detected break type.
  class DetectedBreak
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum to denote the type of break found.
    module Type
      # Unspecified break type.
      TYPE_UNSPECIFIED = 0

      # A single whitespace.
      SPACE = 1

      # A wider whitespace.
      WIDE_SPACE = 2

      # A hyphen that indicates that a token has been split across lines.
      HYPHEN = 3
    end
  end
end

#provenance::Google::Cloud::DocumentAI::V1beta3::Document::Provenance

Returns The history of this annotation.

Returns:



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 368

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Detected break at the end of a {::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token Token}.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::DetectedBreak::Type]
  #     Detected break type.
  class DetectedBreak
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum to denote the type of break found.
    module Type
      # Unspecified break type.
      TYPE_UNSPECIFIED = 0

      # A single whitespace.
      SPACE = 1

      # A wider whitespace.
      WIDE_SPACE = 2

      # A hyphen that indicates that a token has been split across lines.
      HYPHEN = 3
    end
  end
end