Constructor
new Annotation(propertiesopt)
Constructs a new Annotation.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.protobuf.GeneratedCodeInfo.IAnnotation |
<optional> |
Properties to set |
- Implements:
-
- IAnnotation
Members
begin
Annotation begin.
begin
Annotation begin.
begin
Annotation begin.
end
Annotation end.
end
Annotation end.
end
Annotation end.
path
Annotation path.
path
Annotation path.
path
Annotation path.
sourceFile
Annotation sourceFile.
sourceFile
Annotation sourceFile.
sourceFile
Annotation sourceFile.
Methods
toJSON() → {Object.<string, *>}
Converts this Annotation to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
toJSON() → {Object.<string, *>}
Converts this Annotation to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
toJSON() → {Object.<string, *>}
Converts this Annotation to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) fromObject(object) → {google.protobuf.GeneratedCodeInfo.Annotation}
Creates an Annotation 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.protobuf.GeneratedCodeInfo.Annotation |
Annotation |
(static) fromObject(object) → {google.protobuf.GeneratedCodeInfo.Annotation}
Creates an Annotation 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.protobuf.GeneratedCodeInfo.Annotation |
Annotation |
(static) fromObject(object) → {google.protobuf.GeneratedCodeInfo.Annotation}
Creates an Annotation 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.protobuf.GeneratedCodeInfo.Annotation |
Annotation |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Annotation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Annotation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Annotation
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 an Annotation message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.protobuf.GeneratedCodeInfo.Annotation |
Annotation |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from an Annotation message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.protobuf.GeneratedCodeInfo.Annotation |
Annotation |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from an Annotation message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.protobuf.GeneratedCodeInfo.Annotation |
Annotation |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |