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

com.google.cloud.language.v1.DependencyEdge 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 dependency parse tree information for a token. (For more
 * information on dependency labels, see
 * http://www.aclweb.org/anthology/P13-2017
 * 
* * Protobuf type {@code google.cloud.language.v1.DependencyEdge} */ public final class DependencyEdge extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.language.v1.DependencyEdge) DependencyEdgeOrBuilder { // Use DependencyEdge.newBuilder() to construct. private DependencyEdge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DependencyEdge() { headTokenIndex_ = 0; label_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DependencyEdge( 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: { headTokenIndex_ = input.readInt32(); break; } case 16: { int rawValue = input.readEnum(); label_ = 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_DependencyEdge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.language.v1.LanguageServiceProto.internal_static_google_cloud_language_v1_DependencyEdge_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.language.v1.DependencyEdge.class, com.google.cloud.language.v1.DependencyEdge.Builder.class); } /** *
   * The parse label enum for the token.
   * 
* * Protobuf enum {@code google.cloud.language.v1.DependencyEdge.Label} */ public enum Label implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Unknown
     * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
     * Abbreviation modifier
     * 
* * ABBREV = 1; */ ABBREV(1), /** *
     * Adjectival complement
     * 
* * ACOMP = 2; */ ACOMP(2), /** *
     * Adverbial clause modifier
     * 
* * ADVCL = 3; */ ADVCL(3), /** *
     * Adverbial modifier
     * 
* * ADVMOD = 4; */ ADVMOD(4), /** *
     * Adjectival modifier of an NP
     * 
* * AMOD = 5; */ AMOD(5), /** *
     * Appositional modifier of an NP
     * 
* * APPOS = 6; */ APPOS(6), /** *
     * Attribute dependent of a copular verb
     * 
* * ATTR = 7; */ ATTR(7), /** *
     * Auxiliary (non-main) verb
     * 
* * AUX = 8; */ AUX(8), /** *
     * Passive auxiliary
     * 
* * AUXPASS = 9; */ AUXPASS(9), /** *
     * Coordinating conjunction
     * 
* * CC = 10; */ CC(10), /** *
     * Clausal complement of a verb or adjective
     * 
* * CCOMP = 11; */ CCOMP(11), /** *
     * Conjunct
     * 
* * CONJ = 12; */ CONJ(12), /** *
     * Clausal subject
     * 
* * CSUBJ = 13; */ CSUBJ(13), /** *
     * Clausal passive subject
     * 
* * CSUBJPASS = 14; */ CSUBJPASS(14), /** *
     * Dependency (unable to determine)
     * 
* * DEP = 15; */ DEP(15), /** *
     * Determiner
     * 
* * DET = 16; */ DET(16), /** *
     * Discourse
     * 
* * DISCOURSE = 17; */ DISCOURSE(17), /** *
     * Direct object
     * 
* * DOBJ = 18; */ DOBJ(18), /** *
     * Expletive
     * 
* * EXPL = 19; */ EXPL(19), /** *
     * Goes with (part of a word in a text not well edited)
     * 
* * GOESWITH = 20; */ GOESWITH(20), /** *
     * Indirect object
     * 
* * IOBJ = 21; */ IOBJ(21), /** *
     * Marker (word introducing a subordinate clause)
     * 
* * MARK = 22; */ MARK(22), /** *
     * Multi-word expression
     * 
* * MWE = 23; */ MWE(23), /** *
     * Multi-word verbal expression
     * 
* * MWV = 24; */ MWV(24), /** *
     * Negation modifier
     * 
* * NEG = 25; */ NEG(25), /** *
     * Noun compound modifier
     * 
* * NN = 26; */ NN(26), /** *
     * Noun phrase used as an adverbial modifier
     * 
* * NPADVMOD = 27; */ NPADVMOD(27), /** *
     * Nominal subject
     * 
* * NSUBJ = 28; */ NSUBJ(28), /** *
     * Passive nominal subject
     * 
* * NSUBJPASS = 29; */ NSUBJPASS(29), /** *
     * Numeric modifier of a noun
     * 
* * NUM = 30; */ NUM(30), /** *
     * Element of compound number
     * 
* * NUMBER = 31; */ NUMBER(31), /** *
     * Punctuation mark
     * 
* * P = 32; */ P(32), /** *
     * Parataxis relation
     * 
* * PARATAXIS = 33; */ PARATAXIS(33), /** *
     * Participial modifier
     * 
* * PARTMOD = 34; */ PARTMOD(34), /** *
     * The complement of a preposition is a clause
     * 
* * PCOMP = 35; */ PCOMP(35), /** *
     * Object of a preposition
     * 
* * POBJ = 36; */ POBJ(36), /** *
     * Possession modifier
     * 
* * POSS = 37; */ POSS(37), /** *
     * Postverbal negative particle
     * 
* * POSTNEG = 38; */ POSTNEG(38), /** *
     * Predicate complement
     * 
* * PRECOMP = 39; */ PRECOMP(39), /** *
     * Preconjunt
     * 
* * PRECONJ = 40; */ PRECONJ(40), /** *
     * Predeterminer
     * 
* * PREDET = 41; */ PREDET(41), /** *
     * Prefix
     * 
* * PREF = 42; */ PREF(42), /** *
     * Prepositional modifier
     * 
* * PREP = 43; */ PREP(43), /** *
     * The relationship between a verb and verbal morpheme
     * 
* * PRONL = 44; */ PRONL(44), /** *
     * Particle
     * 
* * PRT = 45; */ PRT(45), /** *
     * Associative or possessive marker
     * 
* * PS = 46; */ PS(46), /** *
     * Quantifier phrase modifier
     * 
* * QUANTMOD = 47; */ QUANTMOD(47), /** *
     * Relative clause modifier
     * 
* * RCMOD = 48; */ RCMOD(48), /** *
     * Complementizer in relative clause
     * 
* * RCMODREL = 49; */ RCMODREL(49), /** *
     * Ellipsis without a preceding predicate
     * 
* * RDROP = 50; */ RDROP(50), /** *
     * Referent
     * 
* * REF = 51; */ REF(51), /** *
     * Remnant
     * 
* * REMNANT = 52; */ REMNANT(52), /** *
     * Reparandum
     * 
* * REPARANDUM = 53; */ REPARANDUM(53), /** *
     * Root
     * 
* * ROOT = 54; */ ROOT(54), /** *
     * Suffix specifying a unit of number
     * 
* * SNUM = 55; */ SNUM(55), /** *
     * Suffix
     * 
* * SUFF = 56; */ SUFF(56), /** *
     * Temporal modifier
     * 
* * TMOD = 57; */ TMOD(57), /** *
     * Topic marker
     * 
* * TOPIC = 58; */ TOPIC(58), /** *
     * Clause headed by an infinite form of the verb that modifies a noun
     * 
* * VMOD = 59; */ VMOD(59), /** *
     * Vocative
     * 
* * VOCATIVE = 60; */ VOCATIVE(60), /** *
     * Open clausal complement
     * 
* * XCOMP = 61; */ XCOMP(61), /** *
     * Name suffix
     * 
* * SUFFIX = 62; */ SUFFIX(62), /** *
     * Name title
     * 
* * TITLE = 63; */ TITLE(63), /** *
     * Adverbial phrase modifier
     * 
* * ADVPHMOD = 64; */ ADVPHMOD(64), /** *
     * Causative auxiliary
     * 
* * AUXCAUS = 65; */ AUXCAUS(65), /** *
     * Helper auxiliary
     * 
* * AUXVV = 66; */ AUXVV(66), /** *
     * Rentaishi (Prenominal modifier)
     * 
* * DTMOD = 67; */ DTMOD(67), /** *
     * Foreign words
     * 
* * FOREIGN = 68; */ FOREIGN(68), /** *
     * Keyword
     * 
* * KW = 69; */ KW(69), /** *
     * List for chains of comparable items
     * 
* * LIST = 70; */ LIST(70), /** *
     * Nominalized clause
     * 
* * NOMC = 71; */ NOMC(71), /** *
     * Nominalized clausal subject
     * 
* * NOMCSUBJ = 72; */ NOMCSUBJ(72), /** *
     * Nominalized clausal passive
     * 
* * NOMCSUBJPASS = 73; */ NOMCSUBJPASS(73), /** *
     * Compound of numeric modifier
     * 
* * NUMC = 74; */ NUMC(74), /** *
     * Copula
     * 
* * COP = 75; */ COP(75), /** *
     * Dislocated relation (for fronted/topicalized elements)
     * 
* * DISLOCATED = 76; */ DISLOCATED(76), UNRECOGNIZED(-1), ; /** *
     * Unknown
     * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
     * Abbreviation modifier
     * 
* * ABBREV = 1; */ public static final int ABBREV_VALUE = 1; /** *
     * Adjectival complement
     * 
* * ACOMP = 2; */ public static final int ACOMP_VALUE = 2; /** *
     * Adverbial clause modifier
     * 
* * ADVCL = 3; */ public static final int ADVCL_VALUE = 3; /** *
     * Adverbial modifier
     * 
* * ADVMOD = 4; */ public static final int ADVMOD_VALUE = 4; /** *
     * Adjectival modifier of an NP
     * 
* * AMOD = 5; */ public static final int AMOD_VALUE = 5; /** *
     * Appositional modifier of an NP
     * 
* * APPOS = 6; */ public static final int APPOS_VALUE = 6; /** *
     * Attribute dependent of a copular verb
     * 
* * ATTR = 7; */ public static final int ATTR_VALUE = 7; /** *
     * Auxiliary (non-main) verb
     * 
* * AUX = 8; */ public static final int AUX_VALUE = 8; /** *
     * Passive auxiliary
     * 
* * AUXPASS = 9; */ public static final int AUXPASS_VALUE = 9; /** *
     * Coordinating conjunction
     * 
* * CC = 10; */ public static final int CC_VALUE = 10; /** *
     * Clausal complement of a verb or adjective
     * 
* * CCOMP = 11; */ public static final int CCOMP_VALUE = 11; /** *
     * Conjunct
     * 
* * CONJ = 12; */ public static final int CONJ_VALUE = 12; /** *
     * Clausal subject
     * 
* * CSUBJ = 13; */ public static final int CSUBJ_VALUE = 13; /** *
     * Clausal passive subject
     * 
* * CSUBJPASS = 14; */ public static final int CSUBJPASS_VALUE = 14; /** *
     * Dependency (unable to determine)
     * 
* * DEP = 15; */ public static final int DEP_VALUE = 15; /** *
     * Determiner
     * 
* * DET = 16; */ public static final int DET_VALUE = 16; /** *
     * Discourse
     * 
* * DISCOURSE = 17; */ public static final int DISCOURSE_VALUE = 17; /** *
     * Direct object
     * 
* * DOBJ = 18; */ public static final int DOBJ_VALUE = 18; /** *
     * Expletive
     * 
* * EXPL = 19; */ public static final int EXPL_VALUE = 19; /** *
     * Goes with (part of a word in a text not well edited)
     * 
* * GOESWITH = 20; */ public static final int GOESWITH_VALUE = 20; /** *
     * Indirect object
     * 
* * IOBJ = 21; */ public static final int IOBJ_VALUE = 21; /** *
     * Marker (word introducing a subordinate clause)
     * 
* * MARK = 22; */ public static final int MARK_VALUE = 22; /** *
     * Multi-word expression
     * 
* * MWE = 23; */ public static final int MWE_VALUE = 23; /** *
     * Multi-word verbal expression
     * 
* * MWV = 24; */ public static final int MWV_VALUE = 24; /** *
     * Negation modifier
     * 
* * NEG = 25; */ public static final int NEG_VALUE = 25; /** *
     * Noun compound modifier
     * 
* * NN = 26; */ public static final int NN_VALUE = 26; /** *
     * Noun phrase used as an adverbial modifier
     * 
* * NPADVMOD = 27; */ public static final int NPADVMOD_VALUE = 27; /** *
     * Nominal subject
     * 
* * NSUBJ = 28; */ public static final int NSUBJ_VALUE = 28; /** *
     * Passive nominal subject
     * 
* * NSUBJPASS = 29; */ public static final int NSUBJPASS_VALUE = 29; /** *
     * Numeric modifier of a noun
     * 
* * NUM = 30; */ public static final int NUM_VALUE = 30; /** *
     * Element of compound number
     * 
* * NUMBER = 31; */ public static final int NUMBER_VALUE = 31; /** *
     * Punctuation mark
     * 
* * P = 32; */ public static final int P_VALUE = 32; /** *
     * Parataxis relation
     * 
* * PARATAXIS = 33; */ public static final int PARATAXIS_VALUE = 33; /** *
     * Participial modifier
     * 
* * PARTMOD = 34; */ public static final int PARTMOD_VALUE = 34; /** *
     * The complement of a preposition is a clause
     * 
* * PCOMP = 35; */ public static final int PCOMP_VALUE = 35; /** *
     * Object of a preposition
     * 
* * POBJ = 36; */ public static final int POBJ_VALUE = 36; /** *
     * Possession modifier
     * 
* * POSS = 37; */ public static final int POSS_VALUE = 37; /** *
     * Postverbal negative particle
     * 
* * POSTNEG = 38; */ public static final int POSTNEG_VALUE = 38; /** *
     * Predicate complement
     * 
* * PRECOMP = 39; */ public static final int PRECOMP_VALUE = 39; /** *
     * Preconjunt
     * 
* * PRECONJ = 40; */ public static final int PRECONJ_VALUE = 40; /** *
     * Predeterminer
     * 
* * PREDET = 41; */ public static final int PREDET_VALUE = 41; /** *
     * Prefix
     * 
* * PREF = 42; */ public static final int PREF_VALUE = 42; /** *
     * Prepositional modifier
     * 
* * PREP = 43; */ public static final int PREP_VALUE = 43; /** *
     * The relationship between a verb and verbal morpheme
     * 
* * PRONL = 44; */ public static final int PRONL_VALUE = 44; /** *
     * Particle
     * 
* * PRT = 45; */ public static final int PRT_VALUE = 45; /** *
     * Associative or possessive marker
     * 
* * PS = 46; */ public static final int PS_VALUE = 46; /** *
     * Quantifier phrase modifier
     * 
* * QUANTMOD = 47; */ public static final int QUANTMOD_VALUE = 47; /** *
     * Relative clause modifier
     * 
* * RCMOD = 48; */ public static final int RCMOD_VALUE = 48; /** *
     * Complementizer in relative clause
     * 
* * RCMODREL = 49; */ public static final int RCMODREL_VALUE = 49; /** *
     * Ellipsis without a preceding predicate
     * 
* * RDROP = 50; */ public static final int RDROP_VALUE = 50; /** *
     * Referent
     * 
* * REF = 51; */ public static final int REF_VALUE = 51; /** *
     * Remnant
     * 
* * REMNANT = 52; */ public static final int REMNANT_VALUE = 52; /** *
     * Reparandum
     * 
* * REPARANDUM = 53; */ public static final int REPARANDUM_VALUE = 53; /** *
     * Root
     * 
* * ROOT = 54; */ public static final int ROOT_VALUE = 54; /** *
     * Suffix specifying a unit of number
     * 
* * SNUM = 55; */ public static final int SNUM_VALUE = 55; /** *
     * Suffix
     * 
* * SUFF = 56; */ public static final int SUFF_VALUE = 56; /** *
     * Temporal modifier
     * 
* * TMOD = 57; */ public static final int TMOD_VALUE = 57; /** *
     * Topic marker
     * 
* * TOPIC = 58; */ public static final int TOPIC_VALUE = 58; /** *
     * Clause headed by an infinite form of the verb that modifies a noun
     * 
* * VMOD = 59; */ public static final int VMOD_VALUE = 59; /** *
     * Vocative
     * 
* * VOCATIVE = 60; */ public static final int VOCATIVE_VALUE = 60; /** *
     * Open clausal complement
     * 
* * XCOMP = 61; */ public static final int XCOMP_VALUE = 61; /** *
     * Name suffix
     * 
* * SUFFIX = 62; */ public static final int SUFFIX_VALUE = 62; /** *
     * Name title
     * 
* * TITLE = 63; */ public static final int TITLE_VALUE = 63; /** *
     * Adverbial phrase modifier
     * 
* * ADVPHMOD = 64; */ public static final int ADVPHMOD_VALUE = 64; /** *
     * Causative auxiliary
     * 
* * AUXCAUS = 65; */ public static final int AUXCAUS_VALUE = 65; /** *
     * Helper auxiliary
     * 
* * AUXVV = 66; */ public static final int AUXVV_VALUE = 66; /** *
     * Rentaishi (Prenominal modifier)
     * 
* * DTMOD = 67; */ public static final int DTMOD_VALUE = 67; /** *
     * Foreign words
     * 
* * FOREIGN = 68; */ public static final int FOREIGN_VALUE = 68; /** *
     * Keyword
     * 
* * KW = 69; */ public static final int KW_VALUE = 69; /** *
     * List for chains of comparable items
     * 
* * LIST = 70; */ public static final int LIST_VALUE = 70; /** *
     * Nominalized clause
     * 
* * NOMC = 71; */ public static final int NOMC_VALUE = 71; /** *
     * Nominalized clausal subject
     * 
* * NOMCSUBJ = 72; */ public static final int NOMCSUBJ_VALUE = 72; /** *
     * Nominalized clausal passive
     * 
* * NOMCSUBJPASS = 73; */ public static final int NOMCSUBJPASS_VALUE = 73; /** *
     * Compound of numeric modifier
     * 
* * NUMC = 74; */ public static final int NUMC_VALUE = 74; /** *
     * Copula
     * 
* * COP = 75; */ public static final int COP_VALUE = 75; /** *
     * Dislocated relation (for fronted/topicalized elements)
     * 
* * DISLOCATED = 76; */ public static final int DISLOCATED_VALUE = 76; 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 Label valueOf(int value) { return forNumber(value); } public static Label forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return ABBREV; case 2: return ACOMP; case 3: return ADVCL; case 4: return ADVMOD; case 5: return AMOD; case 6: return APPOS; case 7: return ATTR; case 8: return AUX; case 9: return AUXPASS; case 10: return CC; case 11: return CCOMP; case 12: return CONJ; case 13: return CSUBJ; case 14: return CSUBJPASS; case 15: return DEP; case 16: return DET; case 17: return DISCOURSE; case 18: return DOBJ; case 19: return EXPL; case 20: return GOESWITH; case 21: return IOBJ; case 22: return MARK; case 23: return MWE; case 24: return MWV; case 25: return NEG; case 26: return NN; case 27: return NPADVMOD; case 28: return NSUBJ; case 29: return NSUBJPASS; case 30: return NUM; case 31: return NUMBER; case 32: return P; case 33: return PARATAXIS; case 34: return PARTMOD; case 35: return PCOMP; case 36: return POBJ; case 37: return POSS; case 38: return POSTNEG; case 39: return PRECOMP; case 40: return PRECONJ; case 41: return PREDET; case 42: return PREF; case 43: return PREP; case 44: return PRONL; case 45: return PRT; case 46: return PS; case 47: return QUANTMOD; case 48: return RCMOD; case 49: return RCMODREL; case 50: return RDROP; case 51: return REF; case 52: return REMNANT; case 53: return REPARANDUM; case 54: return ROOT; case 55: return SNUM; case 56: return SUFF; case 57: return TMOD; case 58: return TOPIC; case 59: return VMOD; case 60: return VOCATIVE; case 61: return XCOMP; case 62: return SUFFIX; case 63: return TITLE; case 64: return ADVPHMOD; case 65: return AUXCAUS; case 66: return AUXVV; case 67: return DTMOD; case 68: return FOREIGN; case 69: return KW; case 70: return LIST; case 71: return NOMC; case 72: return NOMCSUBJ; case 73: return NOMCSUBJPASS; case 74: return NUMC; case 75: return COP; case 76: return DISLOCATED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap




© 2015 - 2024 Weber Informatics LLC | Privacy Policy