Skip to main content

Class: FileOptions

google.protobuf.FileOptions

Represents a FileOptions.

Implements#

Constructors#

constructor#

new FileOptions(properties?)

Constructs a new FileOptions.

Parameters#

NameType
properties?IFileOptions

Properties#

ccEnableArenas#

ccEnableArenas: boolean

FileOptions ccEnableArenas.

Implementation of#

IFileOptions.ccEnableArenas


ccGenericServices#

ccGenericServices: boolean

FileOptions ccGenericServices.

Implementation of#

IFileOptions.ccGenericServices


csharpNamespace#

csharpNamespace: string

FileOptions csharpNamespace.

Implementation of#

IFileOptions.csharpNamespace


deprecated#

deprecated: boolean

FileOptions deprecated.

Implementation of#

IFileOptions.deprecated


goPackage#

goPackage: string

FileOptions goPackage.

Implementation of#

IFileOptions.goPackage


javaGenerateEqualsAndHash#

javaGenerateEqualsAndHash: boolean

FileOptions javaGenerateEqualsAndHash.

Implementation of#

IFileOptions.javaGenerateEqualsAndHash


javaGenericServices#

javaGenericServices: boolean

FileOptions javaGenericServices.

Implementation of#

IFileOptions.javaGenericServices


javaMultipleFiles#

javaMultipleFiles: boolean

FileOptions javaMultipleFiles.

Implementation of#

IFileOptions.javaMultipleFiles


javaOuterClassname#

javaOuterClassname: string

FileOptions javaOuterClassname.

Implementation of#

IFileOptions.javaOuterClassname


javaPackage#

javaPackage: string

FileOptions javaPackage.

Implementation of#

IFileOptions.javaPackage


javaStringCheckUtf8#

javaStringCheckUtf8: boolean

FileOptions javaStringCheckUtf8.

Implementation of#

IFileOptions.javaStringCheckUtf8


objcClassPrefix#

objcClassPrefix: string

FileOptions objcClassPrefix.

Implementation of#

IFileOptions.objcClassPrefix


optimizeFor#

optimizeFor: OptimizeMode

FileOptions optimizeFor.

Implementation of#

IFileOptions.optimizeFor


pyGenericServices#

pyGenericServices: boolean

FileOptions pyGenericServices.

Implementation of#

IFileOptions.pyGenericServices


uninterpretedOption#

uninterpretedOption: IUninterpretedOption[]

FileOptions uninterpretedOption.

Implementation of#

IFileOptions.uninterpretedOption

Methods#

toJSON#

toJSON(): Object

Converts this FileOptions to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): FileOptions

Decodes a FileOptions message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

FileOptions

FileOptions


decodeDelimited#

Static decodeDelimited(reader): FileOptions

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

FileOptions

FileOptions


encode#

Static encode(message, writer?): Writer

Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.

Parameters#

NameTypeDescription
messageIFileOptionsFileOptions message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.

Parameters#

NameTypeDescription
messageIFileOptionsFileOptions message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): FileOptions

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

FileOptions

FileOptions


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageFileOptionsFileOptions
options?IConversionOptions-

Returns#

Object

Plain object