Class protos.google.protobuf.FileOptions (1.2.8)

Represents a FileOptions.

Package

@google/area120-tables!

Constructors

(constructor)(properties)

constructor(properties?: google.protobuf.IFileOptions);

Constructs a new FileOptions.

Parameter
NameDescription
properties IFileOptions

Properties to set

Properties

ccEnableArenas

public ccEnableArenas: boolean;

FileOptions ccEnableArenas.

Property Value
TypeDescription
boolean

ccGenericServices

public ccGenericServices: boolean;

FileOptions ccGenericServices.

Property Value
TypeDescription
boolean

csharpNamespace

public csharpNamespace: string;

FileOptions csharpNamespace.

Property Value
TypeDescription
string

deprecated

public deprecated: boolean;

FileOptions deprecated.

Property Value
TypeDescription
boolean

goPackage

public goPackage: string;

FileOptions goPackage.

Property Value
TypeDescription
string

javaGenerateEqualsAndHash

public javaGenerateEqualsAndHash: boolean;

FileOptions javaGenerateEqualsAndHash.

Property Value
TypeDescription
boolean

javaGenericServices

public javaGenericServices: boolean;

FileOptions javaGenericServices.

Property Value
TypeDescription
boolean

javaMultipleFiles

public javaMultipleFiles: boolean;

FileOptions javaMultipleFiles.

Property Value
TypeDescription
boolean

javaOuterClassname

public javaOuterClassname: string;

FileOptions javaOuterClassname.

Property Value
TypeDescription
string

javaPackage

public javaPackage: string;

FileOptions javaPackage.

Property Value
TypeDescription
string

javaStringCheckUtf8

public javaStringCheckUtf8: boolean;

FileOptions javaStringCheckUtf8.

Property Value
TypeDescription
boolean

objcClassPrefix

public objcClassPrefix: string;

FileOptions objcClassPrefix.

Property Value
TypeDescription
string

optimizeFor

public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);

FileOptions optimizeFor.

Property Value
TypeDescription
(google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode)

phpClassPrefix

public phpClassPrefix: string;

FileOptions phpClassPrefix.

Property Value
TypeDescription
string

phpGenericServices

public phpGenericServices: boolean;

FileOptions phpGenericServices.

Property Value
TypeDescription
boolean

phpMetadataNamespace

public phpMetadataNamespace: string;

FileOptions phpMetadataNamespace.

Property Value
TypeDescription
string

phpNamespace

public phpNamespace: string;

FileOptions phpNamespace.

Property Value
TypeDescription
string

pyGenericServices

public pyGenericServices: boolean;

FileOptions pyGenericServices.

Property Value
TypeDescription
boolean

rubyPackage

public rubyPackage: string;

FileOptions rubyPackage.

Property Value
TypeDescription
string

swiftPrefix

public swiftPrefix: string;

FileOptions swiftPrefix.

Property Value
TypeDescription
string

uninterpretedOption

public uninterpretedOption: google.protobuf.IUninterpretedOption[];

FileOptions uninterpretedOption.

Property Value
TypeDescription
google.protobuf.IUninterpretedOption[]

Methods

create(properties)

public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;

Creates a new FileOptions instance using the specified properties.

Parameter
NameDescription
properties IFileOptions

Properties to set

Returns
TypeDescription
google.protobuf.FileOptions

FileOptions instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;

Decodes a FileOptions message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.protobuf.FileOptions

FileOptions

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;

Decodes a FileOptions message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.protobuf.FileOptions

FileOptions

encode(message, writer)

public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified FileOptions message. Does not implicitly messages.

Parameters
NameDescription
message IFileOptions

FileOptions message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified FileOptions message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IFileOptions

FileOptions message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;

Creates a FileOptions message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.protobuf.FileOptions

FileOptions

toJSON()

public toJSON(): { [k: string]: any };

Converts this FileOptions to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a FileOptions message. Also converts values to other types if specified.

Parameters
NameDescription
message google.protobuf.FileOptions

FileOptions

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a FileOptions message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not