class FileOptions extends Message (View source)

Generated from protobuf message google.protobuf.FileOptions

Properties

protected $java_package

Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.

protected $java_outer_classname

Controls the name of the wrapper Java class generated for the .proto file.

protected $java_multiple_files

If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will not be nested inside the wrapper class named by java_outer_classname. However, the wrapper class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.

protected deprecated $java_generate_equals_and_hash

This option does nothing.

protected $java_string_check_utf8

If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field.

protected $optimize_for

Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];

protected $go_package

Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following:

  • The basename of the package import path, if provided.
protected $cc_generic_services

Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins).

protected $java_generic_services

Generated from protobuf field optional bool java_generic_services = 17 [default = false];

protected $py_generic_services

Generated from protobuf field optional bool py_generic_services = 18 [default = false];

protected $php_generic_services

Generated from protobuf field optional bool php_generic_services = 42 [default = false];

protected $deprecated

Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.

protected $cc_enable_arenas

Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.

protected $objc_class_prefix

Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.

protected $csharp_namespace

Namespace for generated classes; defaults to the package.

protected $swift_prefix

By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined.

protected $php_class_prefix

Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.

protected $php_namespace

Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace.

protected $php_metadata_namespace

Use this option to change the namespace of php generated metadata classes.

protected $ruby_package

Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package.

Methods

__construct($data = NULL)

Constructor.

readWrapperValue($member)

No description

from  Message
writeWrapperValue($member, $value)

No description

from  Message
readOneof($number)

No description

from  Message
hasOneof($number)

No description

from  Message
writeOneof($number, $value)

No description

from  Message
whichOneof($oneof_name)

No description

from  Message
clear()

Clear all containing fields.

from  Message
discardUnknownFields()

Clear all unknown fields previously parsed.

from  Message
mergeFrom(object $msg)

Merges the contents of the specified message into current message.

from  Message
mergeFromString(string $data)

Parses a protocol buffer contained in a string.

from  Message
mergeFromJsonString(string $data, $ignore_unknown = false)

Parses a json string to protobuf message.

from  Message
parseFromStream($input)

No description

from  Message
mergeFromArray(array $array)

Populates the message from a user-supplied PHP array. Array keys correspond to Message properties and nested message properties.

from  Message
mergeFromJsonArray($array, $ignore_unknown)

No description

from  Message
parseFromJsonStream($input, $ignore_unknown)

No description

from  Message
serializeToStream($output)

No description

from  Message
serializeToJsonStream($output)

No description

from  Message
string
serializeToString()

Serialize the message to string.

from  Message
string
serializeToJsonString()

Serialize the message to json string.

from  Message
byteSize()

No description

from  Message
jsonByteSize()

No description

from  Message
string
getJavaPackage()

Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.

hasJavaPackage()

No description

clearJavaPackage()

No description

$this
setJavaPackage(string $var)

Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.

string
getJavaOuterClassname()

Controls the name of the wrapper Java class generated for the .proto file.

hasJavaOuterClassname()

No description

clearJavaOuterClassname()

No description

$this
setJavaOuterClassname(string $var)

Controls the name of the wrapper Java class generated for the .proto file.

bool
getJavaMultipleFiles()

If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will not be nested inside the wrapper class named by java_outer_classname. However, the wrapper class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.

hasJavaMultipleFiles()

No description

clearJavaMultipleFiles()

No description

$this
setJavaMultipleFiles(bool $var)

If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will not be nested inside the wrapper class named by java_outer_classname. However, the wrapper class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.

bool
getJavaGenerateEqualsAndHash() deprecated

This option does nothing.

hasJavaGenerateEqualsAndHash()

No description

$this
setJavaGenerateEqualsAndHash(bool $var) deprecated

This option does nothing.

bool
getJavaStringCheckUtf8()

If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field.

hasJavaStringCheckUtf8()

No description

clearJavaStringCheckUtf8()

No description

$this
setJavaStringCheckUtf8(bool $var)

If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field.

int
getOptimizeFor()

Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];

hasOptimizeFor()

No description

clearOptimizeFor()

No description

$this
setOptimizeFor(int $var)

Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];

string
getGoPackage()

Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following:

  • The basename of the package import path, if provided.

hasGoPackage()

No description

clearGoPackage()

No description

$this
setGoPackage(string $var)

Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following:

  • The basename of the package import path, if provided.

bool
getCcGenericServices()

Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins).

hasCcGenericServices()

No description

clearCcGenericServices()

No description

$this
setCcGenericServices(bool $var)

Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins).

bool
getJavaGenericServices()

Generated from protobuf field optional bool java_generic_services = 17 [default = false];

hasJavaGenericServices()

No description

clearJavaGenericServices()

No description

$this
setJavaGenericServices(bool $var)

Generated from protobuf field optional bool java_generic_services = 17 [default = false];

bool
getPyGenericServices()

Generated from protobuf field optional bool py_generic_services = 18 [default = false];

hasPyGenericServices()

No description

clearPyGenericServices()

No description

$this
setPyGenericServices(bool $var)

Generated from protobuf field optional bool py_generic_services = 18 [default = false];

bool
getPhpGenericServices()

Generated from protobuf field optional bool php_generic_services = 42 [default = false];

hasPhpGenericServices()

No description

clearPhpGenericServices()

No description

$this
setPhpGenericServices(bool $var)

Generated from protobuf field optional bool php_generic_services = 42 [default = false];

bool
getDeprecated()

Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.

hasDeprecated()

No description

clearDeprecated()

No description

$this
setDeprecated(bool $var)

Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.

bool
getCcEnableArenas()

Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.

hasCcEnableArenas()

No description

clearCcEnableArenas()

No description

$this
setCcEnableArenas(bool $var)

Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.

string
getObjcClassPrefix()

Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.

hasObjcClassPrefix()

No description

clearObjcClassPrefix()

No description

$this
setObjcClassPrefix(string $var)

Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.

string
getCsharpNamespace()

Namespace for generated classes; defaults to the package.

hasCsharpNamespace()

No description

clearCsharpNamespace()

No description

$this
setCsharpNamespace(string $var)

Namespace for generated classes; defaults to the package.

string
getSwiftPrefix()

By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined.

hasSwiftPrefix()

No description

clearSwiftPrefix()

No description

$this
setSwiftPrefix(string $var)

By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined.

string
getPhpClassPrefix()

Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.

hasPhpClassPrefix()

No description

clearPhpClassPrefix()

No description

$this
setPhpClassPrefix(string $var)

Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.

string
getPhpNamespace()

Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace.

hasPhpNamespace()

No description

clearPhpNamespace()

No description

$this
setPhpNamespace(string $var)

Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace.

string
getPhpMetadataNamespace()

Use this option to change the namespace of php generated metadata classes.

hasPhpMetadataNamespace()

No description

clearPhpMetadataNamespace()

No description

$this
setPhpMetadataNamespace(string $var)

Use this option to change the namespace of php generated metadata classes.

string
getRubyPackage()

Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package.

hasRubyPackage()

No description

clearRubyPackage()

No description

$this
setRubyPackage(string $var)

Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package.

getUninterpretedOption()

The parser stores options it doesn't recognize here.

$this
setUninterpretedOption(UninterpretedOption[]|RepeatedField $var)

The parser stores options it doesn't recognize here.

Details

__construct($data = NULL)

Constructor.

Parameters

$data

protected readWrapperValue($member)

No description

Parameters

$member

protected writeWrapperValue($member, $value)

No description

Parameters

$member
$value

protected readOneof($number)

No description

Parameters

$number

protected hasOneof($number)

No description

Parameters

$number

protected writeOneof($number, $value)

No description

Parameters

$number
$value

protected whichOneof($oneof_name)

No description

Parameters

$oneof_name

clear()

Clear all containing fields.

discardUnknownFields()

Clear all unknown fields previously parsed.

mergeFrom(object $msg)

Merges the contents of the specified message into current message.

This method merges the contents of the specified message into the current message. Singular fields that are set in the specified message overwrite the corresponding fields in the current message. Repeated fields are appended. Map fields key-value pairs are overwritten. Singular/Oneof sub-messages are recursively merged. All overwritten sub-messages are deep-copied.

Parameters

object $msg

Protobuf message to be merged from.

mergeFromString(string $data)

Parses a protocol buffer contained in a string.

This function takes a string in the (non-human-readable) binary wire format, matching the encoding output by serializeToString(). See mergeFrom() for merging behavior, if the field is already set in the specified message.

Parameters

string $data

Binary protobuf data.

Exceptions

Exception

mergeFromJsonString(string $data, $ignore_unknown = false)

Parses a json string to protobuf message.

This function takes a string in the json wire format, matching the encoding output by serializeToJsonString(). See mergeFrom() for merging behavior, if the field is already set in the specified message.

Parameters

string $data

Json protobuf data.

$ignore_unknown

Exceptions

Exception

parseFromStream($input)

No description

Parameters

$input

protected mergeFromArray(array $array)

Populates the message from a user-supplied PHP array. Array keys correspond to Message properties and nested message properties.

Example:

$message->mergeFromArray([
    'name' => 'This is a message name',
    'interval' => [
         'startTime' => time() - 60,
         'endTime' => time(),
    ]
]);

This method will trigger an error if it is passed data that cannot be converted to the correct type. For example, a StringValue field must receive data that is either a string or a StringValue object.

Parameters

array $array

An array containing message properties and values.

protected mergeFromJsonArray($array, $ignore_unknown)

No description

Parameters

$array
$ignore_unknown

parseFromJsonStream($input, $ignore_unknown)

No description

Parameters

$input
$ignore_unknown

serializeToStream($output)

No description

Parameters

$output

serializeToJsonStream($output)

No description

Parameters

$output

string serializeToString()

Serialize the message to string.

Return Value

string

Serialized binary protobuf data.

string serializeToJsonString()

Serialize the message to json string.

Return Value

string

Serialized json protobuf data.

byteSize()

No description

jsonByteSize()

No description

string getJavaPackage()

Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.

Generated from protobuf field optional string java_package = 1;

Return Value

string

hasJavaPackage()

No description

clearJavaPackage()

No description

$this setJavaPackage(string $var)

Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.

Generated from protobuf field optional string java_package = 1;

Parameters

string $var

Return Value

$this

string getJavaOuterClassname()

Controls the name of the wrapper Java class generated for the .proto file.

That class will always contain the .proto file's getDescriptor() method as well as any top-level extensions defined in the .proto file. If java_multiple_files is disabled, then all the other classes from the .proto file will be nested inside the single wrapper outer class.

Generated from protobuf field optional string java_outer_classname = 8;

Return Value

string

hasJavaOuterClassname()

No description

clearJavaOuterClassname()

No description

$this setJavaOuterClassname(string $var)

Controls the name of the wrapper Java class generated for the .proto file.

That class will always contain the .proto file's getDescriptor() method as well as any top-level extensions defined in the .proto file. If java_multiple_files is disabled, then all the other classes from the .proto file will be nested inside the single wrapper outer class.

Generated from protobuf field optional string java_outer_classname = 8;

Parameters

string $var

Return Value

$this

bool getJavaMultipleFiles()

If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will not be nested inside the wrapper class named by java_outer_classname. However, the wrapper class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.

Generated from protobuf field optional bool java_multiple_files = 10 [default = false];

Return Value

bool

hasJavaMultipleFiles()

No description

clearJavaMultipleFiles()

No description

$this setJavaMultipleFiles(bool $var)

If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will not be nested inside the wrapper class named by java_outer_classname. However, the wrapper class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.

Generated from protobuf field optional bool java_multiple_files = 10 [default = false];

Parameters

bool $var

Return Value

$this

bool getJavaGenerateEqualsAndHash() deprecated

deprecated

This option does nothing.

Generated from protobuf field optional bool java_generate_equals_and_hash = 20 [deprecated = true];

Return Value

bool

hasJavaGenerateEqualsAndHash()

No description

clearJavaGenerateEqualsAndHash()

No description

$this setJavaGenerateEqualsAndHash(bool $var) deprecated

deprecated

This option does nothing.

Generated from protobuf field optional bool java_generate_equals_and_hash = 20 [deprecated = true];

Parameters

bool $var

Return Value

$this

bool getJavaStringCheckUtf8()

If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field.

Message reflection will do the same. However, an extension field still accepts non-UTF-8 byte sequences. This option has no effect on when used with the lite runtime.

Generated from protobuf field optional bool java_string_check_utf8 = 27 [default = false];

Return Value

bool

hasJavaStringCheckUtf8()

No description

clearJavaStringCheckUtf8()

No description

$this setJavaStringCheckUtf8(bool $var)

If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field.

Message reflection will do the same. However, an extension field still accepts non-UTF-8 byte sequences. This option has no effect on when used with the lite runtime.

Generated from protobuf field optional bool java_string_check_utf8 = 27 [default = false];

Parameters

bool $var

Return Value

$this

int getOptimizeFor()

Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];

Return Value

int

hasOptimizeFor()

No description

clearOptimizeFor()

No description

$this setOptimizeFor(int $var)

Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];

Parameters

int $var

Return Value

$this

string getGoPackage()

Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following:

  • The basename of the package import path, if provided.

  • Otherwise, the package statement in the .proto file, if present.
    • Otherwise, the basename of the .proto file, without extension.

Generated from protobuf field optional string go_package = 11;

Return Value

string

hasGoPackage()

No description

clearGoPackage()

No description

$this setGoPackage(string $var)

Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following:

  • The basename of the package import path, if provided.

  • Otherwise, the package statement in the .proto file, if present.
    • Otherwise, the basename of the .proto file, without extension.

Generated from protobuf field optional string go_package = 11;

Parameters

string $var

Return Value

$this

bool getCcGenericServices()

Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins).

Generic services were the only kind of service generation supported by early versions of google.protobuf. Generic services are now considered deprecated in favor of using plugins that generate code specific to your particular RPC system. Therefore, these default to false. Old code which depends on generic services should explicitly set them to true.

Generated from protobuf field optional bool cc_generic_services = 16 [default = false];

Return Value

bool

hasCcGenericServices()

No description

clearCcGenericServices()

No description

$this setCcGenericServices(bool $var)

Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins).

Generic services were the only kind of service generation supported by early versions of google.protobuf. Generic services are now considered deprecated in favor of using plugins that generate code specific to your particular RPC system. Therefore, these default to false. Old code which depends on generic services should explicitly set them to true.

Generated from protobuf field optional bool cc_generic_services = 16 [default = false];

Parameters

bool $var

Return Value

$this

bool getJavaGenericServices()

Generated from protobuf field optional bool java_generic_services = 17 [default = false];

Return Value

bool

hasJavaGenericServices()

No description

clearJavaGenericServices()

No description

$this setJavaGenericServices(bool $var)

Generated from protobuf field optional bool java_generic_services = 17 [default = false];

Parameters

bool $var

Return Value

$this

bool getPyGenericServices()

Generated from protobuf field optional bool py_generic_services = 18 [default = false];

Return Value

bool

hasPyGenericServices()

No description

clearPyGenericServices()

No description

$this setPyGenericServices(bool $var)

Generated from protobuf field optional bool py_generic_services = 18 [default = false];

Parameters

bool $var

Return Value

$this

bool getPhpGenericServices()

Generated from protobuf field optional bool php_generic_services = 42 [default = false];

Return Value

bool

hasPhpGenericServices()

No description

clearPhpGenericServices()

No description

$this setPhpGenericServices(bool $var)

Generated from protobuf field optional bool php_generic_services = 42 [default = false];

Parameters

bool $var

Return Value

$this

bool getDeprecated()

Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.

Generated from protobuf field optional bool deprecated = 23 [default = false];

Return Value

bool

hasDeprecated()

No description

clearDeprecated()

No description

$this setDeprecated(bool $var)

Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.

Generated from protobuf field optional bool deprecated = 23 [default = false];

Parameters

bool $var

Return Value

$this

bool getCcEnableArenas()

Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.

Generated from protobuf field optional bool cc_enable_arenas = 31 [default = true];

Return Value

bool

hasCcEnableArenas()

No description

clearCcEnableArenas()

No description

$this setCcEnableArenas(bool $var)

Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.

Generated from protobuf field optional bool cc_enable_arenas = 31 [default = true];

Parameters

bool $var

Return Value

$this

string getObjcClassPrefix()

Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.

Generated from protobuf field optional string objc_class_prefix = 36;

Return Value

string

hasObjcClassPrefix()

No description

clearObjcClassPrefix()

No description

$this setObjcClassPrefix(string $var)

Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.

Generated from protobuf field optional string objc_class_prefix = 36;

Parameters

string $var

Return Value

$this

string getCsharpNamespace()

Namespace for generated classes; defaults to the package.

Generated from protobuf field optional string csharp_namespace = 37;

Return Value

string

hasCsharpNamespace()

No description

clearCsharpNamespace()

No description

$this setCsharpNamespace(string $var)

Namespace for generated classes; defaults to the package.

Generated from protobuf field optional string csharp_namespace = 37;

Parameters

string $var

Return Value

$this

string getSwiftPrefix()

By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined.

Generated from protobuf field optional string swift_prefix = 39;

Return Value

string

hasSwiftPrefix()

No description

clearSwiftPrefix()

No description

$this setSwiftPrefix(string $var)

By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined.

Generated from protobuf field optional string swift_prefix = 39;

Parameters

string $var

Return Value

$this

string getPhpClassPrefix()

Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.

Generated from protobuf field optional string php_class_prefix = 40;

Return Value

string

hasPhpClassPrefix()

No description

clearPhpClassPrefix()

No description

$this setPhpClassPrefix(string $var)

Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.

Generated from protobuf field optional string php_class_prefix = 40;

Parameters

string $var

Return Value

$this

string getPhpNamespace()

Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace.

Generated from protobuf field optional string php_namespace = 41;

Return Value

string

hasPhpNamespace()

No description

clearPhpNamespace()

No description

$this setPhpNamespace(string $var)

Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace.

Generated from protobuf field optional string php_namespace = 41;

Parameters

string $var

Return Value

$this

string getPhpMetadataNamespace()

Use this option to change the namespace of php generated metadata classes.

Default is empty. When this option is empty, the proto file name will be used for determining the namespace.

Generated from protobuf field optional string php_metadata_namespace = 44;

Return Value

string

hasPhpMetadataNamespace()

No description

clearPhpMetadataNamespace()

No description

$this setPhpMetadataNamespace(string $var)

Use this option to change the namespace of php generated metadata classes.

Default is empty. When this option is empty, the proto file name will be used for determining the namespace.

Generated from protobuf field optional string php_metadata_namespace = 44;

Parameters

string $var

Return Value

$this

string getRubyPackage()

Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package.

Generated from protobuf field optional string ruby_package = 45;

Return Value

string

hasRubyPackage()

No description

clearRubyPackage()

No description

$this setRubyPackage(string $var)

Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package.

Generated from protobuf field optional string ruby_package = 45;

Parameters

string $var

Return Value

$this

RepeatedField getUninterpretedOption()

The parser stores options it doesn't recognize here.

See the documentation for the "Options" section above.

Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;

Return Value

RepeatedField

$this setUninterpretedOption(UninterpretedOption[]|RepeatedField $var)

The parser stores options it doesn't recognize here.

See the documentation for the "Options" section above.

Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;

Parameters

UninterpretedOption[]|RepeatedField $var

Return Value

$this