Constructor
new DependencyEdge(propertiesopt)
Constructs a new DependencyEdge.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.language.v1beta2.IDependencyEdge |
<optional> |
Properties to set |
- Implements:
-
- IDependencyEdge
Members
headTokenIndex
DependencyEdge headTokenIndex.
label
DependencyEdge label.
Label
Label enum.
Properties:
Name | Type | Description |
---|---|---|
UNKNOWN |
number |
UNKNOWN value |
ABBREV |
number |
ABBREV value |
ACOMP |
number |
ACOMP value |
ADVCL |
number |
ADVCL value |
ADVMOD |
number |
ADVMOD value |
AMOD |
number |
AMOD value |
APPOS |
number |
APPOS value |
ATTR |
number |
ATTR value |
AUX |
number |
AUX value |
AUXPASS |
number |
AUXPASS value |
CC |
number |
CC value |
CCOMP |
number |
CCOMP value |
CONJ |
number |
CONJ value |
CSUBJ |
number |
CSUBJ value |
CSUBJPASS |
number |
CSUBJPASS value |
DEP |
number |
DEP value |
DET |
number |
DET value |
DISCOURSE |
number |
DISCOURSE value |
DOBJ |
number |
DOBJ value |
EXPL |
number |
EXPL value |
GOESWITH |
number |
GOESWITH value |
IOBJ |
number |
IOBJ value |
MARK |
number |
MARK value |
MWE |
number |
MWE value |
MWV |
number |
MWV value |
NEG |
number |
NEG value |
NN |
number |
NN value |
NPADVMOD |
number |
NPADVMOD value |
NSUBJ |
number |
NSUBJ value |
NSUBJPASS |
number |
NSUBJPASS value |
NUM |
number |
NUM value |
NUMBER |
number |
NUMBER value |
P |
number |
P value |
PARATAXIS |
number |
PARATAXIS value |
PARTMOD |
number |
PARTMOD value |
PCOMP |
number |
PCOMP value |
POBJ |
number |
POBJ value |
POSS |
number |
POSS value |
POSTNEG |
number |
POSTNEG value |
PRECOMP |
number |
PRECOMP value |
PRECONJ |
number |
PRECONJ value |
PREDET |
number |
PREDET value |
PREF |
number |
PREF value |
PREP |
number |
PREP value |
PRONL |
number |
PRONL value |
PRT |
number |
PRT value |
PS |
number |
PS value |
QUANTMOD |
number |
QUANTMOD value |
RCMOD |
number |
RCMOD value |
RCMODREL |
number |
RCMODREL value |
RDROP |
number |
RDROP value |
REF |
number |
REF value |
REMNANT |
number |
REMNANT value |
REPARANDUM |
number |
REPARANDUM value |
ROOT |
number |
ROOT value |
SNUM |
number |
SNUM value |
SUFF |
number |
SUFF value |
TMOD |
number |
TMOD value |
TOPIC |
number |
TOPIC value |
VMOD |
number |
VMOD value |
VOCATIVE |
number |
VOCATIVE value |
XCOMP |
number |
XCOMP value |
SUFFIX |
number |
SUFFIX value |
TITLE |
number |
TITLE value |
ADVPHMOD |
number |
ADVPHMOD value |
AUXCAUS |
number |
AUXCAUS value |
AUXVV |
number |
AUXVV value |
DTMOD |
number |
DTMOD value |
FOREIGN |
number |
FOREIGN value |
KW |
number |
KW value |
LIST |
number |
LIST value |
NOMC |
number |
NOMC value |
NOMCSUBJ |
number |
NOMCSUBJ value |
NOMCSUBJPASS |
number |
NOMCSUBJPASS value |
NUMC |
number |
NUMC value |
COP |
number |
COP value |
DISLOCATED |
number |
DISLOCATED value |
ASP |
number |
ASP value |
GMOD |
number |
GMOD value |
GOBJ |
number |
GOBJ value |
INFMOD |
number |
INFMOD value |
MES |
number |
MES value |
NCOMP |
number |
NCOMP value |
Methods
toJSON() → {Object.<string, *>}
Converts this DependencyEdge to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.cloud.language.v1beta2.DependencyEdge}
Creates a new DependencyEdge instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.language.v1beta2.IDependencyEdge |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.cloud.language.v1beta2.DependencyEdge |
DependencyEdge instance |
(static) decode(reader, lengthopt) → {google.cloud.language.v1beta2.DependencyEdge}
Decodes a DependencyEdge message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Returns:
Type | Description |
---|---|
google.cloud.language.v1beta2.DependencyEdge |
DependencyEdge |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.cloud.language.v1beta2.DependencyEdge}
Decodes a DependencyEdge message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Returns:
Type | Description |
---|---|
google.cloud.language.v1beta2.DependencyEdge |
DependencyEdge |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified DependencyEdge message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.language.v1beta2.IDependencyEdge |
DependencyEdge message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified DependencyEdge message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.language.v1beta2.IDependencyEdge |
DependencyEdge message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) fromObject(object) → {google.cloud.language.v1beta2.DependencyEdge}
Creates a DependencyEdge message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.cloud.language.v1beta2.DependencyEdge |
DependencyEdge |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for DependencyEdge
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a DependencyEdge message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.language.v1beta2.DependencyEdge |
DependencyEdge |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a DependencyEdge message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|