Represents a FileOptions.
Package
@google-cloud/spanner!Constructors
(constructor)(properties)
constructor(properties?: google.protobuf.IFileOptions);
Constructs a new FileOptions.
Type | Name | Description |
---|---|---|
IFileOptions | properties |
Properties to set |
Properties
ccEnableArenas
public ccEnableArenas: boolean;
FileOptions ccEnableArenas.
Type | Description |
---|---|
boolean |
ccGenericServices
public ccGenericServices: boolean;
FileOptions ccGenericServices.
Type | Description |
---|---|
boolean |
csharpNamespace
public csharpNamespace: string;
FileOptions csharpNamespace.
Type | Description |
---|---|
string |
deprecated
public deprecated: boolean;
FileOptions deprecated.
Type | Description |
---|---|
boolean |
goPackage
public goPackage: string;
FileOptions goPackage.
Type | Description |
---|---|
string |
javaGenerateEqualsAndHash
public javaGenerateEqualsAndHash: boolean;
FileOptions javaGenerateEqualsAndHash.
Type | Description |
---|---|
boolean |
javaGenericServices
public javaGenericServices: boolean;
FileOptions javaGenericServices.
Type | Description |
---|---|
boolean |
javaMultipleFiles
public javaMultipleFiles: boolean;
FileOptions javaMultipleFiles.
Type | Description |
---|---|
boolean |
javaOuterClassname
public javaOuterClassname: string;
FileOptions javaOuterClassname.
Type | Description |
---|---|
string |
javaPackage
public javaPackage: string;
FileOptions javaPackage.
Type | Description |
---|---|
string |
javaStringCheckUtf8
public javaStringCheckUtf8: boolean;
FileOptions javaStringCheckUtf8.
Type | Description |
---|---|
boolean |
objcClassPrefix
public objcClassPrefix: string;
FileOptions objcClassPrefix.
Type | Description |
---|---|
string |
optimizeFor
public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
FileOptions optimizeFor.
Type | Description |
---|---|
(google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode) |
phpClassPrefix
public phpClassPrefix: string;
FileOptions phpClassPrefix.
Type | Description |
---|---|
string |
phpGenericServices
public phpGenericServices: boolean;
FileOptions phpGenericServices.
Type | Description |
---|---|
boolean |
phpMetadataNamespace
public phpMetadataNamespace: string;
FileOptions phpMetadataNamespace.
Type | Description |
---|---|
string |
phpNamespace
public phpNamespace: string;
FileOptions phpNamespace.
Type | Description |
---|---|
string |
pyGenericServices
public pyGenericServices: boolean;
FileOptions pyGenericServices.
Type | Description |
---|---|
boolean |
rubyPackage
public rubyPackage: string;
FileOptions rubyPackage.
Type | Description |
---|---|
string |
swiftPrefix
public swiftPrefix: string;
FileOptions swiftPrefix.
Type | Description |
---|---|
string |
uninterpretedOption
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
FileOptions uninterpretedOption.
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
IFileOptions | properties |
Properties to set |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
($protobuf.Reader|Uint8Array) | reader |
Reader or buffer to decode from |
number | length |
Message length if known beforehand |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
($protobuf.Reader|Uint8Array) | reader |
Reader or buffer to decode from |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
IFileOptions | message |
FileOptions 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.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified FileOptions message, length delimited. Does not implicitly messages.
Type | Name | Description |
---|---|---|
IFileOptions | message |
FileOptions 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.FileOptions;
Creates a FileOptions 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.FileOptions | FileOptions |
toJSON()
public toJSON(): { [k: string]: any };
Converts this FileOptions to JSON.
Type | Description |
---|---|
{ [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.
Type | Name | Description |
---|---|---|
google.protobuf.FileOptions | message |
FileOptions |
$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 FileOptions message.
Type | Name | Description |
---|---|---|
{ [k: string]: any } | message |
Plain object to verify |
Type | Description |
---|---|
(string|null) |
|