All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.language.v1.PartOfSpeech Maven / Gradle / Ivy

There is a newer version: 2.50.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/language/v1/language_service.proto

package com.google.cloud.language.v1;

/**
 * 
 * Represents part of speech information for a token. Parts of speech
 * are as defined in
 * http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
 * 
* * Protobuf type {@code google.cloud.language.v1.PartOfSpeech} */ public final class PartOfSpeech extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.language.v1.PartOfSpeech) PartOfSpeechOrBuilder { // Use PartOfSpeech.newBuilder() to construct. private PartOfSpeech(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartOfSpeech() { tag_ = 0; aspect_ = 0; case_ = 0; form_ = 0; gender_ = 0; mood_ = 0; number_ = 0; person_ = 0; proper_ = 0; reciprocity_ = 0; tense_ = 0; voice_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PartOfSpeech( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); tag_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); aspect_ = rawValue; break; } case 24: { int rawValue = input.readEnum(); case_ = rawValue; break; } case 32: { int rawValue = input.readEnum(); form_ = rawValue; break; } case 40: { int rawValue = input.readEnum(); gender_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); mood_ = rawValue; break; } case 56: { int rawValue = input.readEnum(); number_ = rawValue; break; } case 64: { int rawValue = input.readEnum(); person_ = rawValue; break; } case 72: { int rawValue = input.readEnum(); proper_ = rawValue; break; } case 80: { int rawValue = input.readEnum(); reciprocity_ = rawValue; break; } case 88: { int rawValue = input.readEnum(); tense_ = rawValue; break; } case 96: { int rawValue = input.readEnum(); voice_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.language.v1.LanguageServiceProto.internal_static_google_cloud_language_v1_PartOfSpeech_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.language.v1.LanguageServiceProto.internal_static_google_cloud_language_v1_PartOfSpeech_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.language.v1.PartOfSpeech.class, com.google.cloud.language.v1.PartOfSpeech.Builder.class); } /** *
   * The part of speech tags enum.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Tag} */ public enum Tag implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Unknown
     * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
     * Adjective
     * 
* * ADJ = 1; */ ADJ(1), /** *
     * Adposition (preposition and postposition)
     * 
* * ADP = 2; */ ADP(2), /** *
     * Adverb
     * 
* * ADV = 3; */ ADV(3), /** *
     * Conjunction
     * 
* * CONJ = 4; */ CONJ(4), /** *
     * Determiner
     * 
* * DET = 5; */ DET(5), /** *
     * Noun (common and proper)
     * 
* * NOUN = 6; */ NOUN(6), /** *
     * Cardinal number
     * 
* * NUM = 7; */ NUM(7), /** *
     * Pronoun
     * 
* * PRON = 8; */ PRON(8), /** *
     * Particle or other function word
     * 
* * PRT = 9; */ PRT(9), /** *
     * Punctuation
     * 
* * PUNCT = 10; */ PUNCT(10), /** *
     * Verb (all tenses and modes)
     * 
* * VERB = 11; */ VERB(11), /** *
     * Other: foreign words, typos, abbreviations
     * 
* * X = 12; */ X(12), /** *
     * Affix
     * 
* * AFFIX = 13; */ AFFIX(13), UNRECOGNIZED(-1), ; /** *
     * Unknown
     * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
     * Adjective
     * 
* * ADJ = 1; */ public static final int ADJ_VALUE = 1; /** *
     * Adposition (preposition and postposition)
     * 
* * ADP = 2; */ public static final int ADP_VALUE = 2; /** *
     * Adverb
     * 
* * ADV = 3; */ public static final int ADV_VALUE = 3; /** *
     * Conjunction
     * 
* * CONJ = 4; */ public static final int CONJ_VALUE = 4; /** *
     * Determiner
     * 
* * DET = 5; */ public static final int DET_VALUE = 5; /** *
     * Noun (common and proper)
     * 
* * NOUN = 6; */ public static final int NOUN_VALUE = 6; /** *
     * Cardinal number
     * 
* * NUM = 7; */ public static final int NUM_VALUE = 7; /** *
     * Pronoun
     * 
* * PRON = 8; */ public static final int PRON_VALUE = 8; /** *
     * Particle or other function word
     * 
* * PRT = 9; */ public static final int PRT_VALUE = 9; /** *
     * Punctuation
     * 
* * PUNCT = 10; */ public static final int PUNCT_VALUE = 10; /** *
     * Verb (all tenses and modes)
     * 
* * VERB = 11; */ public static final int VERB_VALUE = 11; /** *
     * Other: foreign words, typos, abbreviations
     * 
* * X = 12; */ public static final int X_VALUE = 12; /** *
     * Affix
     * 
* * AFFIX = 13; */ public static final int AFFIX_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Tag valueOf(int value) { return forNumber(value); } public static Tag forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return ADJ; case 2: return ADP; case 3: return ADV; case 4: return CONJ; case 5: return DET; case 6: return NOUN; case 7: return NUM; case 8: return PRON; case 9: return PRT; case 10: return PUNCT; case 11: return VERB; case 12: return X; case 13: return AFFIX; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Tag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Tag findValueByNumber(int number) { return Tag.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(0); } private static final Tag[] VALUES = values(); public static Tag valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Tag(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Tag) } /** *
   * The characteristic of a verb that expresses time flow during an event.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Aspect} */ public enum Aspect implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Aspect is not applicable in the analyzed language or is not predicted.
     * 
* * ASPECT_UNKNOWN = 0; */ ASPECT_UNKNOWN(0), /** *
     * Perfective
     * 
* * PERFECTIVE = 1; */ PERFECTIVE(1), /** *
     * Imperfective
     * 
* * IMPERFECTIVE = 2; */ IMPERFECTIVE(2), /** *
     * Progressive
     * 
* * PROGRESSIVE = 3; */ PROGRESSIVE(3), UNRECOGNIZED(-1), ; /** *
     * Aspect is not applicable in the analyzed language or is not predicted.
     * 
* * ASPECT_UNKNOWN = 0; */ public static final int ASPECT_UNKNOWN_VALUE = 0; /** *
     * Perfective
     * 
* * PERFECTIVE = 1; */ public static final int PERFECTIVE_VALUE = 1; /** *
     * Imperfective
     * 
* * IMPERFECTIVE = 2; */ public static final int IMPERFECTIVE_VALUE = 2; /** *
     * Progressive
     * 
* * PROGRESSIVE = 3; */ public static final int PROGRESSIVE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Aspect valueOf(int value) { return forNumber(value); } public static Aspect forNumber(int value) { switch (value) { case 0: return ASPECT_UNKNOWN; case 1: return PERFECTIVE; case 2: return IMPERFECTIVE; case 3: return PROGRESSIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Aspect> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Aspect findValueByNumber(int number) { return Aspect.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(1); } private static final Aspect[] VALUES = values(); public static Aspect valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Aspect(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Aspect) } /** *
   * The grammatical function performed by a noun or pronoun in a phrase,
   * clause, or sentence. In some languages, other parts of speech, such as
   * adjective and determiner, take case inflection in agreement with the noun.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Case} */ public enum Case implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Case is not applicable in the analyzed language or is not predicted.
     * 
* * CASE_UNKNOWN = 0; */ CASE_UNKNOWN(0), /** *
     * Accusative
     * 
* * ACCUSATIVE = 1; */ ACCUSATIVE(1), /** *
     * Adverbial
     * 
* * ADVERBIAL = 2; */ ADVERBIAL(2), /** *
     * Complementive
     * 
* * COMPLEMENTIVE = 3; */ COMPLEMENTIVE(3), /** *
     * Dative
     * 
* * DATIVE = 4; */ DATIVE(4), /** *
     * Genitive
     * 
* * GENITIVE = 5; */ GENITIVE(5), /** *
     * Instrumental
     * 
* * INSTRUMENTAL = 6; */ INSTRUMENTAL(6), /** *
     * Locative
     * 
* * LOCATIVE = 7; */ LOCATIVE(7), /** *
     * Nominative
     * 
* * NOMINATIVE = 8; */ NOMINATIVE(8), /** *
     * Oblique
     * 
* * OBLIQUE = 9; */ OBLIQUE(9), /** *
     * Partitive
     * 
* * PARTITIVE = 10; */ PARTITIVE(10), /** *
     * Prepositional
     * 
* * PREPOSITIONAL = 11; */ PREPOSITIONAL(11), /** *
     * Reflexive
     * 
* * REFLEXIVE_CASE = 12; */ REFLEXIVE_CASE(12), /** *
     * Relative
     * 
* * RELATIVE_CASE = 13; */ RELATIVE_CASE(13), /** *
     * Vocative
     * 
* * VOCATIVE = 14; */ VOCATIVE(14), UNRECOGNIZED(-1), ; /** *
     * Case is not applicable in the analyzed language or is not predicted.
     * 
* * CASE_UNKNOWN = 0; */ public static final int CASE_UNKNOWN_VALUE = 0; /** *
     * Accusative
     * 
* * ACCUSATIVE = 1; */ public static final int ACCUSATIVE_VALUE = 1; /** *
     * Adverbial
     * 
* * ADVERBIAL = 2; */ public static final int ADVERBIAL_VALUE = 2; /** *
     * Complementive
     * 
* * COMPLEMENTIVE = 3; */ public static final int COMPLEMENTIVE_VALUE = 3; /** *
     * Dative
     * 
* * DATIVE = 4; */ public static final int DATIVE_VALUE = 4; /** *
     * Genitive
     * 
* * GENITIVE = 5; */ public static final int GENITIVE_VALUE = 5; /** *
     * Instrumental
     * 
* * INSTRUMENTAL = 6; */ public static final int INSTRUMENTAL_VALUE = 6; /** *
     * Locative
     * 
* * LOCATIVE = 7; */ public static final int LOCATIVE_VALUE = 7; /** *
     * Nominative
     * 
* * NOMINATIVE = 8; */ public static final int NOMINATIVE_VALUE = 8; /** *
     * Oblique
     * 
* * OBLIQUE = 9; */ public static final int OBLIQUE_VALUE = 9; /** *
     * Partitive
     * 
* * PARTITIVE = 10; */ public static final int PARTITIVE_VALUE = 10; /** *
     * Prepositional
     * 
* * PREPOSITIONAL = 11; */ public static final int PREPOSITIONAL_VALUE = 11; /** *
     * Reflexive
     * 
* * REFLEXIVE_CASE = 12; */ public static final int REFLEXIVE_CASE_VALUE = 12; /** *
     * Relative
     * 
* * RELATIVE_CASE = 13; */ public static final int RELATIVE_CASE_VALUE = 13; /** *
     * Vocative
     * 
* * VOCATIVE = 14; */ public static final int VOCATIVE_VALUE = 14; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Case valueOf(int value) { return forNumber(value); } public static Case forNumber(int value) { switch (value) { case 0: return CASE_UNKNOWN; case 1: return ACCUSATIVE; case 2: return ADVERBIAL; case 3: return COMPLEMENTIVE; case 4: return DATIVE; case 5: return GENITIVE; case 6: return INSTRUMENTAL; case 7: return LOCATIVE; case 8: return NOMINATIVE; case 9: return OBLIQUE; case 10: return PARTITIVE; case 11: return PREPOSITIONAL; case 12: return REFLEXIVE_CASE; case 13: return RELATIVE_CASE; case 14: return VOCATIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Case> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Case findValueByNumber(int number) { return Case.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(2); } private static final Case[] VALUES = values(); public static Case valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Case(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Case) } /** *
   * Depending on the language, Form can be categorizing different forms of
   * verbs, adjectives, adverbs, etc. For example, categorizing inflected
   * endings of verbs and adjectives or distinguishing between short and long
   * forms of adjectives and participles
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Form} */ public enum Form implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Form is not applicable in the analyzed language or is not predicted.
     * 
* * FORM_UNKNOWN = 0; */ FORM_UNKNOWN(0), /** *
     * Adnomial
     * 
* * ADNOMIAL = 1; */ ADNOMIAL(1), /** *
     * Auxiliary
     * 
* * AUXILIARY = 2; */ AUXILIARY(2), /** *
     * Complementizer
     * 
* * COMPLEMENTIZER = 3; */ COMPLEMENTIZER(3), /** *
     * Final ending
     * 
* * FINAL_ENDING = 4; */ FINAL_ENDING(4), /** *
     * Gerund
     * 
* * GERUND = 5; */ GERUND(5), /** *
     * Realis
     * 
* * REALIS = 6; */ REALIS(6), /** *
     * Irrealis
     * 
* * IRREALIS = 7; */ IRREALIS(7), /** *
     * Short form
     * 
* * SHORT = 8; */ SHORT(8), /** *
     * Long form
     * 
* * LONG = 9; */ LONG(9), /** *
     * Order form
     * 
* * ORDER = 10; */ ORDER(10), /** *
     * Specific form
     * 
* * SPECIFIC = 11; */ SPECIFIC(11), UNRECOGNIZED(-1), ; /** *
     * Form is not applicable in the analyzed language or is not predicted.
     * 
* * FORM_UNKNOWN = 0; */ public static final int FORM_UNKNOWN_VALUE = 0; /** *
     * Adnomial
     * 
* * ADNOMIAL = 1; */ public static final int ADNOMIAL_VALUE = 1; /** *
     * Auxiliary
     * 
* * AUXILIARY = 2; */ public static final int AUXILIARY_VALUE = 2; /** *
     * Complementizer
     * 
* * COMPLEMENTIZER = 3; */ public static final int COMPLEMENTIZER_VALUE = 3; /** *
     * Final ending
     * 
* * FINAL_ENDING = 4; */ public static final int FINAL_ENDING_VALUE = 4; /** *
     * Gerund
     * 
* * GERUND = 5; */ public static final int GERUND_VALUE = 5; /** *
     * Realis
     * 
* * REALIS = 6; */ public static final int REALIS_VALUE = 6; /** *
     * Irrealis
     * 
* * IRREALIS = 7; */ public static final int IRREALIS_VALUE = 7; /** *
     * Short form
     * 
* * SHORT = 8; */ public static final int SHORT_VALUE = 8; /** *
     * Long form
     * 
* * LONG = 9; */ public static final int LONG_VALUE = 9; /** *
     * Order form
     * 
* * ORDER = 10; */ public static final int ORDER_VALUE = 10; /** *
     * Specific form
     * 
* * SPECIFIC = 11; */ public static final int SPECIFIC_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Form valueOf(int value) { return forNumber(value); } public static Form forNumber(int value) { switch (value) { case 0: return FORM_UNKNOWN; case 1: return ADNOMIAL; case 2: return AUXILIARY; case 3: return COMPLEMENTIZER; case 4: return FINAL_ENDING; case 5: return GERUND; case 6: return REALIS; case 7: return IRREALIS; case 8: return SHORT; case 9: return LONG; case 10: return ORDER; case 11: return SPECIFIC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Form> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Form findValueByNumber(int number) { return Form.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(3); } private static final Form[] VALUES = values(); public static Form valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Form(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Form) } /** *
   * Gender classes of nouns reflected in the behaviour of associated words.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Gender} */ public enum Gender implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Gender is not applicable in the analyzed language or is not predicted.
     * 
* * GENDER_UNKNOWN = 0; */ GENDER_UNKNOWN(0), /** *
     * Feminine
     * 
* * FEMININE = 1; */ FEMININE(1), /** *
     * Masculine
     * 
* * MASCULINE = 2; */ MASCULINE(2), /** *
     * Neuter
     * 
* * NEUTER = 3; */ NEUTER(3), UNRECOGNIZED(-1), ; /** *
     * Gender is not applicable in the analyzed language or is not predicted.
     * 
* * GENDER_UNKNOWN = 0; */ public static final int GENDER_UNKNOWN_VALUE = 0; /** *
     * Feminine
     * 
* * FEMININE = 1; */ public static final int FEMININE_VALUE = 1; /** *
     * Masculine
     * 
* * MASCULINE = 2; */ public static final int MASCULINE_VALUE = 2; /** *
     * Neuter
     * 
* * NEUTER = 3; */ public static final int NEUTER_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Gender valueOf(int value) { return forNumber(value); } public static Gender forNumber(int value) { switch (value) { case 0: return GENDER_UNKNOWN; case 1: return FEMININE; case 2: return MASCULINE; case 3: return NEUTER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Gender> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Gender findValueByNumber(int number) { return Gender.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(4); } private static final Gender[] VALUES = values(); public static Gender valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Gender(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Gender) } /** *
   * The grammatical feature of verbs, used for showing modality and attitude.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Mood} */ public enum Mood implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Mood is not applicable in the analyzed language or is not predicted.
     * 
* * MOOD_UNKNOWN = 0; */ MOOD_UNKNOWN(0), /** *
     * Conditional
     * 
* * CONDITIONAL_MOOD = 1; */ CONDITIONAL_MOOD(1), /** *
     * Imperative
     * 
* * IMPERATIVE = 2; */ IMPERATIVE(2), /** *
     * Indicative
     * 
* * INDICATIVE = 3; */ INDICATIVE(3), /** *
     * Interrogative
     * 
* * INTERROGATIVE = 4; */ INTERROGATIVE(4), /** *
     * Jussive
     * 
* * JUSSIVE = 5; */ JUSSIVE(5), /** *
     * Subjunctive
     * 
* * SUBJUNCTIVE = 6; */ SUBJUNCTIVE(6), UNRECOGNIZED(-1), ; /** *
     * Mood is not applicable in the analyzed language or is not predicted.
     * 
* * MOOD_UNKNOWN = 0; */ public static final int MOOD_UNKNOWN_VALUE = 0; /** *
     * Conditional
     * 
* * CONDITIONAL_MOOD = 1; */ public static final int CONDITIONAL_MOOD_VALUE = 1; /** *
     * Imperative
     * 
* * IMPERATIVE = 2; */ public static final int IMPERATIVE_VALUE = 2; /** *
     * Indicative
     * 
* * INDICATIVE = 3; */ public static final int INDICATIVE_VALUE = 3; /** *
     * Interrogative
     * 
* * INTERROGATIVE = 4; */ public static final int INTERROGATIVE_VALUE = 4; /** *
     * Jussive
     * 
* * JUSSIVE = 5; */ public static final int JUSSIVE_VALUE = 5; /** *
     * Subjunctive
     * 
* * SUBJUNCTIVE = 6; */ public static final int SUBJUNCTIVE_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mood valueOf(int value) { return forNumber(value); } public static Mood forNumber(int value) { switch (value) { case 0: return MOOD_UNKNOWN; case 1: return CONDITIONAL_MOOD; case 2: return IMPERATIVE; case 3: return INDICATIVE; case 4: return INTERROGATIVE; case 5: return JUSSIVE; case 6: return SUBJUNCTIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mood> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mood findValueByNumber(int number) { return Mood.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(5); } private static final Mood[] VALUES = values(); public static Mood valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Mood(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Mood) } /** *
   * Count distinctions.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Number} */ public enum Number implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Number is not applicable in the analyzed language or is not predicted.
     * 
* * NUMBER_UNKNOWN = 0; */ NUMBER_UNKNOWN(0), /** *
     * Singular
     * 
* * SINGULAR = 1; */ SINGULAR(1), /** *
     * Plural
     * 
* * PLURAL = 2; */ PLURAL(2), /** *
     * Dual
     * 
* * DUAL = 3; */ DUAL(3), UNRECOGNIZED(-1), ; /** *
     * Number is not applicable in the analyzed language or is not predicted.
     * 
* * NUMBER_UNKNOWN = 0; */ public static final int NUMBER_UNKNOWN_VALUE = 0; /** *
     * Singular
     * 
* * SINGULAR = 1; */ public static final int SINGULAR_VALUE = 1; /** *
     * Plural
     * 
* * PLURAL = 2; */ public static final int PLURAL_VALUE = 2; /** *
     * Dual
     * 
* * DUAL = 3; */ public static final int DUAL_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Number valueOf(int value) { return forNumber(value); } public static Number forNumber(int value) { switch (value) { case 0: return NUMBER_UNKNOWN; case 1: return SINGULAR; case 2: return PLURAL; case 3: return DUAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Number> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Number findValueByNumber(int number) { return Number.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(6); } private static final Number[] VALUES = values(); public static Number valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Number(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Number) } /** *
   * The distinction between the speaker, second person, third person, etc.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Person} */ public enum Person implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Person is not applicable in the analyzed language or is not predicted.
     * 
* * PERSON_UNKNOWN = 0; */ PERSON_UNKNOWN(0), /** *
     * First
     * 
* * FIRST = 1; */ FIRST(1), /** *
     * Second
     * 
* * SECOND = 2; */ SECOND(2), /** *
     * Third
     * 
* * THIRD = 3; */ THIRD(3), /** *
     * Reflexive
     * 
* * REFLEXIVE_PERSON = 4; */ REFLEXIVE_PERSON(4), UNRECOGNIZED(-1), ; /** *
     * Person is not applicable in the analyzed language or is not predicted.
     * 
* * PERSON_UNKNOWN = 0; */ public static final int PERSON_UNKNOWN_VALUE = 0; /** *
     * First
     * 
* * FIRST = 1; */ public static final int FIRST_VALUE = 1; /** *
     * Second
     * 
* * SECOND = 2; */ public static final int SECOND_VALUE = 2; /** *
     * Third
     * 
* * THIRD = 3; */ public static final int THIRD_VALUE = 3; /** *
     * Reflexive
     * 
* * REFLEXIVE_PERSON = 4; */ public static final int REFLEXIVE_PERSON_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Person valueOf(int value) { return forNumber(value); } public static Person forNumber(int value) { switch (value) { case 0: return PERSON_UNKNOWN; case 1: return FIRST; case 2: return SECOND; case 3: return THIRD; case 4: return REFLEXIVE_PERSON; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Person> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Person findValueByNumber(int number) { return Person.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(7); } private static final Person[] VALUES = values(); public static Person valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Person(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Person) } /** *
   * This category shows if the token is part of a proper name.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Proper} */ public enum Proper implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Proper is not applicable in the analyzed language or is not predicted.
     * 
* * PROPER_UNKNOWN = 0; */ PROPER_UNKNOWN(0), /** *
     * Proper
     * 
* * PROPER = 1; */ PROPER(1), /** *
     * Not proper
     * 
* * NOT_PROPER = 2; */ NOT_PROPER(2), UNRECOGNIZED(-1), ; /** *
     * Proper is not applicable in the analyzed language or is not predicted.
     * 
* * PROPER_UNKNOWN = 0; */ public static final int PROPER_UNKNOWN_VALUE = 0; /** *
     * Proper
     * 
* * PROPER = 1; */ public static final int PROPER_VALUE = 1; /** *
     * Not proper
     * 
* * NOT_PROPER = 2; */ public static final int NOT_PROPER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Proper valueOf(int value) { return forNumber(value); } public static Proper forNumber(int value) { switch (value) { case 0: return PROPER_UNKNOWN; case 1: return PROPER; case 2: return NOT_PROPER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Proper> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Proper findValueByNumber(int number) { return Proper.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(8); } private static final Proper[] VALUES = values(); public static Proper valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Proper(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Proper) } /** *
   * Reciprocal features of a pronoun.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Reciprocity} */ public enum Reciprocity implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Reciprocity is not applicable in the analyzed language or is not
     * predicted.
     * 
* * RECIPROCITY_UNKNOWN = 0; */ RECIPROCITY_UNKNOWN(0), /** *
     * Reciprocal
     * 
* * RECIPROCAL = 1; */ RECIPROCAL(1), /** *
     * Non-reciprocal
     * 
* * NON_RECIPROCAL = 2; */ NON_RECIPROCAL(2), UNRECOGNIZED(-1), ; /** *
     * Reciprocity is not applicable in the analyzed language or is not
     * predicted.
     * 
* * RECIPROCITY_UNKNOWN = 0; */ public static final int RECIPROCITY_UNKNOWN_VALUE = 0; /** *
     * Reciprocal
     * 
* * RECIPROCAL = 1; */ public static final int RECIPROCAL_VALUE = 1; /** *
     * Non-reciprocal
     * 
* * NON_RECIPROCAL = 2; */ public static final int NON_RECIPROCAL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Reciprocity valueOf(int value) { return forNumber(value); } public static Reciprocity forNumber(int value) { switch (value) { case 0: return RECIPROCITY_UNKNOWN; case 1: return RECIPROCAL; case 2: return NON_RECIPROCAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Reciprocity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Reciprocity findValueByNumber(int number) { return Reciprocity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(9); } private static final Reciprocity[] VALUES = values(); public static Reciprocity valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Reciprocity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Reciprocity) } /** *
   * Time reference.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Tense} */ public enum Tense implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Tense is not applicable in the analyzed language or is not predicted.
     * 
* * TENSE_UNKNOWN = 0; */ TENSE_UNKNOWN(0), /** *
     * Conditional
     * 
* * CONDITIONAL_TENSE = 1; */ CONDITIONAL_TENSE(1), /** *
     * Future
     * 
* * FUTURE = 2; */ FUTURE(2), /** *
     * Past
     * 
* * PAST = 3; */ PAST(3), /** *
     * Present
     * 
* * PRESENT = 4; */ PRESENT(4), /** *
     * Imperfect
     * 
* * IMPERFECT = 5; */ IMPERFECT(5), /** *
     * Pluperfect
     * 
* * PLUPERFECT = 6; */ PLUPERFECT(6), UNRECOGNIZED(-1), ; /** *
     * Tense is not applicable in the analyzed language or is not predicted.
     * 
* * TENSE_UNKNOWN = 0; */ public static final int TENSE_UNKNOWN_VALUE = 0; /** *
     * Conditional
     * 
* * CONDITIONAL_TENSE = 1; */ public static final int CONDITIONAL_TENSE_VALUE = 1; /** *
     * Future
     * 
* * FUTURE = 2; */ public static final int FUTURE_VALUE = 2; /** *
     * Past
     * 
* * PAST = 3; */ public static final int PAST_VALUE = 3; /** *
     * Present
     * 
* * PRESENT = 4; */ public static final int PRESENT_VALUE = 4; /** *
     * Imperfect
     * 
* * IMPERFECT = 5; */ public static final int IMPERFECT_VALUE = 5; /** *
     * Pluperfect
     * 
* * PLUPERFECT = 6; */ public static final int PLUPERFECT_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Tense valueOf(int value) { return forNumber(value); } public static Tense forNumber(int value) { switch (value) { case 0: return TENSE_UNKNOWN; case 1: return CONDITIONAL_TENSE; case 2: return FUTURE; case 3: return PAST; case 4: return PRESENT; case 5: return IMPERFECT; case 6: return PLUPERFECT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Tense> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Tense findValueByNumber(int number) { return Tense.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(10); } private static final Tense[] VALUES = values(); public static Tense valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Tense(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Tense) } /** *
   * The relationship between the action that a verb expresses and the
   * participants identified by its arguments.
   * 
* * Protobuf enum {@code google.cloud.language.v1.PartOfSpeech.Voice} */ public enum Voice implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Voice is not applicable in the analyzed language or is not predicted.
     * 
* * VOICE_UNKNOWN = 0; */ VOICE_UNKNOWN(0), /** *
     * Active
     * 
* * ACTIVE = 1; */ ACTIVE(1), /** *
     * Causative
     * 
* * CAUSATIVE = 2; */ CAUSATIVE(2), /** *
     * Passive
     * 
* * PASSIVE = 3; */ PASSIVE(3), UNRECOGNIZED(-1), ; /** *
     * Voice is not applicable in the analyzed language or is not predicted.
     * 
* * VOICE_UNKNOWN = 0; */ public static final int VOICE_UNKNOWN_VALUE = 0; /** *
     * Active
     * 
* * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; /** *
     * Causative
     * 
* * CAUSATIVE = 2; */ public static final int CAUSATIVE_VALUE = 2; /** *
     * Passive
     * 
* * PASSIVE = 3; */ public static final int PASSIVE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Voice valueOf(int value) { return forNumber(value); } public static Voice forNumber(int value) { switch (value) { case 0: return VOICE_UNKNOWN; case 1: return ACTIVE; case 2: return CAUSATIVE; case 3: return PASSIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Voice> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Voice findValueByNumber(int number) { return Voice.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.language.v1.PartOfSpeech.getDescriptor().getEnumTypes().get(11); } private static final Voice[] VALUES = values(); public static Voice valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Voice(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.language.v1.PartOfSpeech.Voice) } public static final int TAG_FIELD_NUMBER = 1; private int tag_; /** *
   * The part of speech tag.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public int getTagValue() { return tag_; } /** *
   * The part of speech tag.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public com.google.cloud.language.v1.PartOfSpeech.Tag getTag() { com.google.cloud.language.v1.PartOfSpeech.Tag result = com.google.cloud.language.v1.PartOfSpeech.Tag.valueOf(tag_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Tag.UNRECOGNIZED : result; } public static final int ASPECT_FIELD_NUMBER = 2; private int aspect_; /** *
   * The grammatical aspect.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public int getAspectValue() { return aspect_; } /** *
   * The grammatical aspect.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public com.google.cloud.language.v1.PartOfSpeech.Aspect getAspect() { com.google.cloud.language.v1.PartOfSpeech.Aspect result = com.google.cloud.language.v1.PartOfSpeech.Aspect.valueOf(aspect_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Aspect.UNRECOGNIZED : result; } public static final int CASE_FIELD_NUMBER = 3; private int case_; /** *
   * The grammatical case.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public int getCaseValue() { return case_; } /** *
   * The grammatical case.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public com.google.cloud.language.v1.PartOfSpeech.Case getCase() { com.google.cloud.language.v1.PartOfSpeech.Case result = com.google.cloud.language.v1.PartOfSpeech.Case.valueOf(case_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Case.UNRECOGNIZED : result; } public static final int FORM_FIELD_NUMBER = 4; private int form_; /** *
   * The grammatical form.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public int getFormValue() { return form_; } /** *
   * The grammatical form.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public com.google.cloud.language.v1.PartOfSpeech.Form getForm() { com.google.cloud.language.v1.PartOfSpeech.Form result = com.google.cloud.language.v1.PartOfSpeech.Form.valueOf(form_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Form.UNRECOGNIZED : result; } public static final int GENDER_FIELD_NUMBER = 5; private int gender_; /** *
   * The grammatical gender.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public int getGenderValue() { return gender_; } /** *
   * The grammatical gender.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public com.google.cloud.language.v1.PartOfSpeech.Gender getGender() { com.google.cloud.language.v1.PartOfSpeech.Gender result = com.google.cloud.language.v1.PartOfSpeech.Gender.valueOf(gender_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Gender.UNRECOGNIZED : result; } public static final int MOOD_FIELD_NUMBER = 6; private int mood_; /** *
   * The grammatical mood.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public int getMoodValue() { return mood_; } /** *
   * The grammatical mood.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public com.google.cloud.language.v1.PartOfSpeech.Mood getMood() { com.google.cloud.language.v1.PartOfSpeech.Mood result = com.google.cloud.language.v1.PartOfSpeech.Mood.valueOf(mood_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Mood.UNRECOGNIZED : result; } public static final int NUMBER_FIELD_NUMBER = 7; private int number_; /** *
   * The grammatical number.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public int getNumberValue() { return number_; } /** *
   * The grammatical number.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public com.google.cloud.language.v1.PartOfSpeech.Number getNumber() { com.google.cloud.language.v1.PartOfSpeech.Number result = com.google.cloud.language.v1.PartOfSpeech.Number.valueOf(number_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Number.UNRECOGNIZED : result; } public static final int PERSON_FIELD_NUMBER = 8; private int person_; /** *
   * The grammatical person.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public int getPersonValue() { return person_; } /** *
   * The grammatical person.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public com.google.cloud.language.v1.PartOfSpeech.Person getPerson() { com.google.cloud.language.v1.PartOfSpeech.Person result = com.google.cloud.language.v1.PartOfSpeech.Person.valueOf(person_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Person.UNRECOGNIZED : result; } public static final int PROPER_FIELD_NUMBER = 9; private int proper_; /** *
   * The grammatical properness.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public int getProperValue() { return proper_; } /** *
   * The grammatical properness.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public com.google.cloud.language.v1.PartOfSpeech.Proper getProper() { com.google.cloud.language.v1.PartOfSpeech.Proper result = com.google.cloud.language.v1.PartOfSpeech.Proper.valueOf(proper_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Proper.UNRECOGNIZED : result; } public static final int RECIPROCITY_FIELD_NUMBER = 10; private int reciprocity_; /** *
   * The grammatical reciprocity.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public int getReciprocityValue() { return reciprocity_; } /** *
   * The grammatical reciprocity.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public com.google.cloud.language.v1.PartOfSpeech.Reciprocity getReciprocity() { com.google.cloud.language.v1.PartOfSpeech.Reciprocity result = com.google.cloud.language.v1.PartOfSpeech.Reciprocity.valueOf(reciprocity_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Reciprocity.UNRECOGNIZED : result; } public static final int TENSE_FIELD_NUMBER = 11; private int tense_; /** *
   * The grammatical tense.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public int getTenseValue() { return tense_; } /** *
   * The grammatical tense.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public com.google.cloud.language.v1.PartOfSpeech.Tense getTense() { com.google.cloud.language.v1.PartOfSpeech.Tense result = com.google.cloud.language.v1.PartOfSpeech.Tense.valueOf(tense_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Tense.UNRECOGNIZED : result; } public static final int VOICE_FIELD_NUMBER = 12; private int voice_; /** *
   * The grammatical voice.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public int getVoiceValue() { return voice_; } /** *
   * The grammatical voice.
   * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public com.google.cloud.language.v1.PartOfSpeech.Voice getVoice() { com.google.cloud.language.v1.PartOfSpeech.Voice result = com.google.cloud.language.v1.PartOfSpeech.Voice.valueOf(voice_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Voice.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tag_ != com.google.cloud.language.v1.PartOfSpeech.Tag.UNKNOWN.getNumber()) { output.writeEnum(1, tag_); } if (aspect_ != com.google.cloud.language.v1.PartOfSpeech.Aspect.ASPECT_UNKNOWN.getNumber()) { output.writeEnum(2, aspect_); } if (case_ != com.google.cloud.language.v1.PartOfSpeech.Case.CASE_UNKNOWN.getNumber()) { output.writeEnum(3, case_); } if (form_ != com.google.cloud.language.v1.PartOfSpeech.Form.FORM_UNKNOWN.getNumber()) { output.writeEnum(4, form_); } if (gender_ != com.google.cloud.language.v1.PartOfSpeech.Gender.GENDER_UNKNOWN.getNumber()) { output.writeEnum(5, gender_); } if (mood_ != com.google.cloud.language.v1.PartOfSpeech.Mood.MOOD_UNKNOWN.getNumber()) { output.writeEnum(6, mood_); } if (number_ != com.google.cloud.language.v1.PartOfSpeech.Number.NUMBER_UNKNOWN.getNumber()) { output.writeEnum(7, number_); } if (person_ != com.google.cloud.language.v1.PartOfSpeech.Person.PERSON_UNKNOWN.getNumber()) { output.writeEnum(8, person_); } if (proper_ != com.google.cloud.language.v1.PartOfSpeech.Proper.PROPER_UNKNOWN.getNumber()) { output.writeEnum(9, proper_); } if (reciprocity_ != com.google.cloud.language.v1.PartOfSpeech.Reciprocity.RECIPROCITY_UNKNOWN.getNumber()) { output.writeEnum(10, reciprocity_); } if (tense_ != com.google.cloud.language.v1.PartOfSpeech.Tense.TENSE_UNKNOWN.getNumber()) { output.writeEnum(11, tense_); } if (voice_ != com.google.cloud.language.v1.PartOfSpeech.Voice.VOICE_UNKNOWN.getNumber()) { output.writeEnum(12, voice_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tag_ != com.google.cloud.language.v1.PartOfSpeech.Tag.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, tag_); } if (aspect_ != com.google.cloud.language.v1.PartOfSpeech.Aspect.ASPECT_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, aspect_); } if (case_ != com.google.cloud.language.v1.PartOfSpeech.Case.CASE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, case_); } if (form_ != com.google.cloud.language.v1.PartOfSpeech.Form.FORM_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, form_); } if (gender_ != com.google.cloud.language.v1.PartOfSpeech.Gender.GENDER_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, gender_); } if (mood_ != com.google.cloud.language.v1.PartOfSpeech.Mood.MOOD_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, mood_); } if (number_ != com.google.cloud.language.v1.PartOfSpeech.Number.NUMBER_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, number_); } if (person_ != com.google.cloud.language.v1.PartOfSpeech.Person.PERSON_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, person_); } if (proper_ != com.google.cloud.language.v1.PartOfSpeech.Proper.PROPER_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, proper_); } if (reciprocity_ != com.google.cloud.language.v1.PartOfSpeech.Reciprocity.RECIPROCITY_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, reciprocity_); } if (tense_ != com.google.cloud.language.v1.PartOfSpeech.Tense.TENSE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, tense_); } if (voice_ != com.google.cloud.language.v1.PartOfSpeech.Voice.VOICE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, voice_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.PartOfSpeech)) { return super.equals(obj); } com.google.cloud.language.v1.PartOfSpeech other = (com.google.cloud.language.v1.PartOfSpeech) obj; boolean result = true; result = result && tag_ == other.tag_; result = result && aspect_ == other.aspect_; result = result && case_ == other.case_; result = result && form_ == other.form_; result = result && gender_ == other.gender_; result = result && mood_ == other.mood_; result = result && number_ == other.number_; result = result && person_ == other.person_; result = result && proper_ == other.proper_; result = result && reciprocity_ == other.reciprocity_; result = result && tense_ == other.tense_; result = result && voice_ == other.voice_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + tag_; hash = (37 * hash) + ASPECT_FIELD_NUMBER; hash = (53 * hash) + aspect_; hash = (37 * hash) + CASE_FIELD_NUMBER; hash = (53 * hash) + case_; hash = (37 * hash) + FORM_FIELD_NUMBER; hash = (53 * hash) + form_; hash = (37 * hash) + GENDER_FIELD_NUMBER; hash = (53 * hash) + gender_; hash = (37 * hash) + MOOD_FIELD_NUMBER; hash = (53 * hash) + mood_; hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + number_; hash = (37 * hash) + PERSON_FIELD_NUMBER; hash = (53 * hash) + person_; hash = (37 * hash) + PROPER_FIELD_NUMBER; hash = (53 * hash) + proper_; hash = (37 * hash) + RECIPROCITY_FIELD_NUMBER; hash = (53 * hash) + reciprocity_; hash = (37 * hash) + TENSE_FIELD_NUMBER; hash = (53 * hash) + tense_; hash = (37 * hash) + VOICE_FIELD_NUMBER; hash = (53 * hash) + voice_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.language.v1.PartOfSpeech parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.language.v1.PartOfSpeech parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.language.v1.PartOfSpeech parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.cloud.language.v1.PartOfSpeech parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.language.v1.PartOfSpeech prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Represents part of speech information for a token. Parts of speech
   * are as defined in
   * http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
   * 
* * Protobuf type {@code google.cloud.language.v1.PartOfSpeech} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.language.v1.PartOfSpeech) com.google.cloud.language.v1.PartOfSpeechOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.language.v1.LanguageServiceProto.internal_static_google_cloud_language_v1_PartOfSpeech_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.language.v1.LanguageServiceProto.internal_static_google_cloud_language_v1_PartOfSpeech_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.language.v1.PartOfSpeech.class, com.google.cloud.language.v1.PartOfSpeech.Builder.class); } // Construct using com.google.cloud.language.v1.PartOfSpeech.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); tag_ = 0; aspect_ = 0; case_ = 0; form_ = 0; gender_ = 0; mood_ = 0; number_ = 0; person_ = 0; proper_ = 0; reciprocity_ = 0; tense_ = 0; voice_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.language.v1.LanguageServiceProto.internal_static_google_cloud_language_v1_PartOfSpeech_descriptor; } public com.google.cloud.language.v1.PartOfSpeech getDefaultInstanceForType() { return com.google.cloud.language.v1.PartOfSpeech.getDefaultInstance(); } public com.google.cloud.language.v1.PartOfSpeech build() { com.google.cloud.language.v1.PartOfSpeech result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.cloud.language.v1.PartOfSpeech buildPartial() { com.google.cloud.language.v1.PartOfSpeech result = new com.google.cloud.language.v1.PartOfSpeech(this); result.tag_ = tag_; result.aspect_ = aspect_; result.case_ = case_; result.form_ = form_; result.gender_ = gender_; result.mood_ = mood_; result.number_ = number_; result.person_ = person_; result.proper_ = proper_; result.reciprocity_ = reciprocity_; result.tense_ = tense_; result.voice_ = voice_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.language.v1.PartOfSpeech) { return mergeFrom((com.google.cloud.language.v1.PartOfSpeech)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.language.v1.PartOfSpeech other) { if (other == com.google.cloud.language.v1.PartOfSpeech.getDefaultInstance()) return this; if (other.tag_ != 0) { setTagValue(other.getTagValue()); } if (other.aspect_ != 0) { setAspectValue(other.getAspectValue()); } if (other.case_ != 0) { setCaseValue(other.getCaseValue()); } if (other.form_ != 0) { setFormValue(other.getFormValue()); } if (other.gender_ != 0) { setGenderValue(other.getGenderValue()); } if (other.mood_ != 0) { setMoodValue(other.getMoodValue()); } if (other.number_ != 0) { setNumberValue(other.getNumberValue()); } if (other.person_ != 0) { setPersonValue(other.getPersonValue()); } if (other.proper_ != 0) { setProperValue(other.getProperValue()); } if (other.reciprocity_ != 0) { setReciprocityValue(other.getReciprocityValue()); } if (other.tense_ != 0) { setTenseValue(other.getTenseValue()); } if (other.voice_ != 0) { setVoiceValue(other.getVoiceValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.language.v1.PartOfSpeech parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.language.v1.PartOfSpeech) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int tag_ = 0; /** *
     * The part of speech tag.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public int getTagValue() { return tag_; } /** *
     * The part of speech tag.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public Builder setTagValue(int value) { tag_ = value; onChanged(); return this; } /** *
     * The part of speech tag.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public com.google.cloud.language.v1.PartOfSpeech.Tag getTag() { com.google.cloud.language.v1.PartOfSpeech.Tag result = com.google.cloud.language.v1.PartOfSpeech.Tag.valueOf(tag_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Tag.UNRECOGNIZED : result; } /** *
     * The part of speech tag.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public Builder setTag(com.google.cloud.language.v1.PartOfSpeech.Tag value) { if (value == null) { throw new NullPointerException(); } tag_ = value.getNumber(); onChanged(); return this; } /** *
     * The part of speech tag.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tag tag = 1; */ public Builder clearTag() { tag_ = 0; onChanged(); return this; } private int aspect_ = 0; /** *
     * The grammatical aspect.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public int getAspectValue() { return aspect_; } /** *
     * The grammatical aspect.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public Builder setAspectValue(int value) { aspect_ = value; onChanged(); return this; } /** *
     * The grammatical aspect.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public com.google.cloud.language.v1.PartOfSpeech.Aspect getAspect() { com.google.cloud.language.v1.PartOfSpeech.Aspect result = com.google.cloud.language.v1.PartOfSpeech.Aspect.valueOf(aspect_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Aspect.UNRECOGNIZED : result; } /** *
     * The grammatical aspect.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public Builder setAspect(com.google.cloud.language.v1.PartOfSpeech.Aspect value) { if (value == null) { throw new NullPointerException(); } aspect_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical aspect.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2; */ public Builder clearAspect() { aspect_ = 0; onChanged(); return this; } private int case_ = 0; /** *
     * The grammatical case.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public int getCaseValue() { return case_; } /** *
     * The grammatical case.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public Builder setCaseValue(int value) { case_ = value; onChanged(); return this; } /** *
     * The grammatical case.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public com.google.cloud.language.v1.PartOfSpeech.Case getCase() { com.google.cloud.language.v1.PartOfSpeech.Case result = com.google.cloud.language.v1.PartOfSpeech.Case.valueOf(case_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Case.UNRECOGNIZED : result; } /** *
     * The grammatical case.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public Builder setCase(com.google.cloud.language.v1.PartOfSpeech.Case value) { if (value == null) { throw new NullPointerException(); } case_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical case.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Case case = 3; */ public Builder clearCase() { case_ = 0; onChanged(); return this; } private int form_ = 0; /** *
     * The grammatical form.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public int getFormValue() { return form_; } /** *
     * The grammatical form.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public Builder setFormValue(int value) { form_ = value; onChanged(); return this; } /** *
     * The grammatical form.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public com.google.cloud.language.v1.PartOfSpeech.Form getForm() { com.google.cloud.language.v1.PartOfSpeech.Form result = com.google.cloud.language.v1.PartOfSpeech.Form.valueOf(form_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Form.UNRECOGNIZED : result; } /** *
     * The grammatical form.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public Builder setForm(com.google.cloud.language.v1.PartOfSpeech.Form value) { if (value == null) { throw new NullPointerException(); } form_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical form.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Form form = 4; */ public Builder clearForm() { form_ = 0; onChanged(); return this; } private int gender_ = 0; /** *
     * The grammatical gender.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public int getGenderValue() { return gender_; } /** *
     * The grammatical gender.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public Builder setGenderValue(int value) { gender_ = value; onChanged(); return this; } /** *
     * The grammatical gender.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public com.google.cloud.language.v1.PartOfSpeech.Gender getGender() { com.google.cloud.language.v1.PartOfSpeech.Gender result = com.google.cloud.language.v1.PartOfSpeech.Gender.valueOf(gender_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Gender.UNRECOGNIZED : result; } /** *
     * The grammatical gender.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public Builder setGender(com.google.cloud.language.v1.PartOfSpeech.Gender value) { if (value == null) { throw new NullPointerException(); } gender_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical gender.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Gender gender = 5; */ public Builder clearGender() { gender_ = 0; onChanged(); return this; } private int mood_ = 0; /** *
     * The grammatical mood.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public int getMoodValue() { return mood_; } /** *
     * The grammatical mood.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public Builder setMoodValue(int value) { mood_ = value; onChanged(); return this; } /** *
     * The grammatical mood.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public com.google.cloud.language.v1.PartOfSpeech.Mood getMood() { com.google.cloud.language.v1.PartOfSpeech.Mood result = com.google.cloud.language.v1.PartOfSpeech.Mood.valueOf(mood_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Mood.UNRECOGNIZED : result; } /** *
     * The grammatical mood.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public Builder setMood(com.google.cloud.language.v1.PartOfSpeech.Mood value) { if (value == null) { throw new NullPointerException(); } mood_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical mood.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Mood mood = 6; */ public Builder clearMood() { mood_ = 0; onChanged(); return this; } private int number_ = 0; /** *
     * The grammatical number.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public int getNumberValue() { return number_; } /** *
     * The grammatical number.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public Builder setNumberValue(int value) { number_ = value; onChanged(); return this; } /** *
     * The grammatical number.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public com.google.cloud.language.v1.PartOfSpeech.Number getNumber() { com.google.cloud.language.v1.PartOfSpeech.Number result = com.google.cloud.language.v1.PartOfSpeech.Number.valueOf(number_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Number.UNRECOGNIZED : result; } /** *
     * The grammatical number.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public Builder setNumber(com.google.cloud.language.v1.PartOfSpeech.Number value) { if (value == null) { throw new NullPointerException(); } number_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical number.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Number number = 7; */ public Builder clearNumber() { number_ = 0; onChanged(); return this; } private int person_ = 0; /** *
     * The grammatical person.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public int getPersonValue() { return person_; } /** *
     * The grammatical person.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public Builder setPersonValue(int value) { person_ = value; onChanged(); return this; } /** *
     * The grammatical person.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public com.google.cloud.language.v1.PartOfSpeech.Person getPerson() { com.google.cloud.language.v1.PartOfSpeech.Person result = com.google.cloud.language.v1.PartOfSpeech.Person.valueOf(person_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Person.UNRECOGNIZED : result; } /** *
     * The grammatical person.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public Builder setPerson(com.google.cloud.language.v1.PartOfSpeech.Person value) { if (value == null) { throw new NullPointerException(); } person_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical person.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Person person = 8; */ public Builder clearPerson() { person_ = 0; onChanged(); return this; } private int proper_ = 0; /** *
     * The grammatical properness.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public int getProperValue() { return proper_; } /** *
     * The grammatical properness.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public Builder setProperValue(int value) { proper_ = value; onChanged(); return this; } /** *
     * The grammatical properness.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public com.google.cloud.language.v1.PartOfSpeech.Proper getProper() { com.google.cloud.language.v1.PartOfSpeech.Proper result = com.google.cloud.language.v1.PartOfSpeech.Proper.valueOf(proper_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Proper.UNRECOGNIZED : result; } /** *
     * The grammatical properness.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public Builder setProper(com.google.cloud.language.v1.PartOfSpeech.Proper value) { if (value == null) { throw new NullPointerException(); } proper_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical properness.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Proper proper = 9; */ public Builder clearProper() { proper_ = 0; onChanged(); return this; } private int reciprocity_ = 0; /** *
     * The grammatical reciprocity.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public int getReciprocityValue() { return reciprocity_; } /** *
     * The grammatical reciprocity.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public Builder setReciprocityValue(int value) { reciprocity_ = value; onChanged(); return this; } /** *
     * The grammatical reciprocity.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public com.google.cloud.language.v1.PartOfSpeech.Reciprocity getReciprocity() { com.google.cloud.language.v1.PartOfSpeech.Reciprocity result = com.google.cloud.language.v1.PartOfSpeech.Reciprocity.valueOf(reciprocity_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Reciprocity.UNRECOGNIZED : result; } /** *
     * The grammatical reciprocity.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public Builder setReciprocity(com.google.cloud.language.v1.PartOfSpeech.Reciprocity value) { if (value == null) { throw new NullPointerException(); } reciprocity_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical reciprocity.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10; */ public Builder clearReciprocity() { reciprocity_ = 0; onChanged(); return this; } private int tense_ = 0; /** *
     * The grammatical tense.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public int getTenseValue() { return tense_; } /** *
     * The grammatical tense.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public Builder setTenseValue(int value) { tense_ = value; onChanged(); return this; } /** *
     * The grammatical tense.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public com.google.cloud.language.v1.PartOfSpeech.Tense getTense() { com.google.cloud.language.v1.PartOfSpeech.Tense result = com.google.cloud.language.v1.PartOfSpeech.Tense.valueOf(tense_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Tense.UNRECOGNIZED : result; } /** *
     * The grammatical tense.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public Builder setTense(com.google.cloud.language.v1.PartOfSpeech.Tense value) { if (value == null) { throw new NullPointerException(); } tense_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical tense.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Tense tense = 11; */ public Builder clearTense() { tense_ = 0; onChanged(); return this; } private int voice_ = 0; /** *
     * The grammatical voice.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public int getVoiceValue() { return voice_; } /** *
     * The grammatical voice.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public Builder setVoiceValue(int value) { voice_ = value; onChanged(); return this; } /** *
     * The grammatical voice.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public com.google.cloud.language.v1.PartOfSpeech.Voice getVoice() { com.google.cloud.language.v1.PartOfSpeech.Voice result = com.google.cloud.language.v1.PartOfSpeech.Voice.valueOf(voice_); return result == null ? com.google.cloud.language.v1.PartOfSpeech.Voice.UNRECOGNIZED : result; } /** *
     * The grammatical voice.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public Builder setVoice(com.google.cloud.language.v1.PartOfSpeech.Voice value) { if (value == null) { throw new NullPointerException(); } voice_ = value.getNumber(); onChanged(); return this; } /** *
     * The grammatical voice.
     * 
* * .google.cloud.language.v1.PartOfSpeech.Voice voice = 12; */ public Builder clearVoice() { voice_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.cloud.language.v1.PartOfSpeech) } // @@protoc_insertion_point(class_scope:google.cloud.language.v1.PartOfSpeech) private static final com.google.cloud.language.v1.PartOfSpeech DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.language.v1.PartOfSpeech(); } public static com.google.cloud.language.v1.PartOfSpeech getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PartOfSpeech parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PartOfSpeech(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.cloud.language.v1.PartOfSpeech getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy