Interface TokenOrBuilder

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

    public interface TokenOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasText

        boolean hasText()
         The token text.
         
        .google.cloud.language.v1beta2.TextSpan text = 1;
        Returns:
        Whether the text field is set.
      • getText

        TextSpan getText()
         The token text.
         
        .google.cloud.language.v1beta2.TextSpan text = 1;
        Returns:
        The text.
      • getTextOrBuilder

        TextSpanOrBuilder getTextOrBuilder()
         The token text.
         
        .google.cloud.language.v1beta2.TextSpan text = 1;
      • hasPartOfSpeech

        boolean hasPartOfSpeech()
         Parts of speech tag for this token.
         
        .google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
        Returns:
        Whether the partOfSpeech field is set.
      • getPartOfSpeech

        PartOfSpeech getPartOfSpeech()
         Parts of speech tag for this token.
         
        .google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
        Returns:
        The partOfSpeech.
      • getPartOfSpeechOrBuilder

        PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
         Parts of speech tag for this token.
         
        .google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
      • hasDependencyEdge

        boolean hasDependencyEdge()
         Dependency tree parse for this token.
         
        .google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
        Returns:
        Whether the dependencyEdge field is set.
      • getDependencyEdge

        DependencyEdge getDependencyEdge()
         Dependency tree parse for this token.
         
        .google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
        Returns:
        The dependencyEdge.
      • getDependencyEdgeOrBuilder

        DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
         Dependency tree parse for this token.
         
        .google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
      • getLemma

        String getLemma()
         [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
         
        string lemma = 4;
        Returns:
        The lemma.
      • getLemmaBytes

        com.google.protobuf.ByteString getLemmaBytes()
         [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
         
        string lemma = 4;
        Returns:
        The bytes for lemma.