Represents a FileDescriptorProto.
Package
@google-cloud/monitoring-dashboards!Constructors
(constructor)(properties)
constructor(properties?: google.protobuf.IFileDescriptorProto);
Constructs a new FileDescriptorProto.
Type | Name | Description |
---|---|---|
IFileDescriptorProto | properties |
Properties to set |
Properties
dependency
public dependency: string[];
FileDescriptorProto dependency.
Type | Description |
---|---|
string[] |
enumType
public enumType: google.protobuf.IEnumDescriptorProto[];
FileDescriptorProto enumType.
Type | Description |
---|---|
google.protobuf.IEnumDescriptorProto[] |
extension
public extension: google.protobuf.IFieldDescriptorProto[];
FileDescriptorProto extension.
Type | Description |
---|---|
google.protobuf.IFieldDescriptorProto[] |
messageType
public messageType: google.protobuf.IDescriptorProto[];
FileDescriptorProto messageType.
Type | Description |
---|---|
google.protobuf.IDescriptorProto[] |
name
public name: string;
FileDescriptorProto name.
Type | Description |
---|---|
string |
options
public options?: (google.protobuf.IFileOptions|null);
FileDescriptorProto options.
Type | Description |
---|---|
(google.protobuf.IFileOptions|null) |
package
public package: string;
FileDescriptorProto package.
Type | Description |
---|---|
string |
publicDependency
public publicDependency: number[];
FileDescriptorProto publicDependency.
Type | Description |
---|---|
number[] |
service
public service: google.protobuf.IServiceDescriptorProto[];
FileDescriptorProto service.
Type | Description |
---|---|
google.protobuf.IServiceDescriptorProto[] |
sourceCodeInfo
public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
FileDescriptorProto sourceCodeInfo.
Type | Description |
---|---|
(google.protobuf.ISourceCodeInfo|null) |
syntax
public syntax: string;
FileDescriptorProto syntax.
Type | Description |
---|---|
string |
weakDependency
public weakDependency: number[];
FileDescriptorProto weakDependency.
Type | Description |
---|---|
number[] |
Methods
create(properties)
public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
Creates a new FileDescriptorProto instance using the specified properties.
Type | Name | Description |
---|---|---|
IFileDescriptorProto | properties |
Properties to set |
Type | Description |
---|---|
google.protobuf.FileDescriptorProto | FileDescriptorProto instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
Decodes a FileDescriptorProto message from the specified reader or buffer.
Type | Name | Description |
---|---|---|
($protobuf.Reader|Uint8Array) | reader |
Reader or buffer to decode from |
number | length |
Message length if known beforehand |
Type | Description |
---|---|
google.protobuf.FileDescriptorProto | FileDescriptorProto |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
Type | Name | Description |
---|---|---|
($protobuf.Reader|Uint8Array) | reader |
Reader or buffer to decode from |
Type | Description |
---|---|
google.protobuf.FileDescriptorProto | FileDescriptorProto |
encode(message, writer)
public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified FileDescriptorProto message. Does not implicitly messages.
Type | Name | Description |
---|---|---|
IFileDescriptorProto | message |
FileDescriptorProto message or plain object to encode |
$protobuf.Writer | writer |
Writer to encode to |
Type | Description |
---|---|
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly messages.
Type | Name | Description |
---|---|---|
IFileDescriptorProto | message |
FileDescriptorProto message or plain object to encode |
$protobuf.Writer | writer |
Writer to encode to |
Type | Description |
---|---|
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
Type | Name | Description |
---|---|---|
{ [k: string]: any } | object |
Plain object |
Type | Description |
---|---|
google.protobuf.FileDescriptorProto | FileDescriptorProto |
toJSON()
public toJSON(): { [k: string]: any };
Converts this FileDescriptorProto to JSON.
Type | Description |
---|---|
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
Type | Name | Description |
---|---|---|
google.protobuf.FileDescriptorProto | message |
FileDescriptorProto |
$protobuf.IConversionOptions | options |
Conversion options |
Type | Description |
---|---|
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a FileDescriptorProto message.
Type | Name | Description |
---|---|---|
{ [k: string]: any } | message |
Plain object to verify |
Type | Description |
---|---|
(string|null) |
|