MessageOptions

Properties

Link copied to clipboard
abstract val deprecated: Boolean

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

Link copied to clipboard

Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes json_name into account and applies to proto2 as well.

Link copied to clipboard
abstract val features: FeatureSet

Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.

Link copied to clipboard
abstract val mapEntry: Boolean?

Whether the message is an automatically generated map entry type for the maps field.

Link copied to clipboard

Set true to use the old proto1 MessageSet wire format for extensions. This is provided for backwards-compatibility with the MessageSet wire format. You should not use this for any other reason: It's less efficient, has fewer features, and is more complicated.

Link copied to clipboard

Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name. This is meant to make migration from proto1 easier; new code should avoid fields named "descriptor".

Link copied to clipboard

Returns the field-presence view for this com.google.protobuf.kotlin.MessageOptions instance.

Link copied to clipboard

The parser stores options it doesn't recognize here. See above.

Functions

Link copied to clipboard
fun MessageOptions.copy(body: ERROR CLASS: Symbol not found for MessageOptions.Builder.() -> Unit = {}): MessageOptions

Copies the original message, including unknown fields.