Copied!

A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.

Generated from protobuf message google.protobuf.FeatureSetDefaults

CloneableInstantiable
Methods
public __construct( $data = NULL)
 

Constructor.

  • param array $data { Optional. Data for populating the Message object.
    @type \Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault[] $defaults
    @type int $minimum_edition
          The minimum supported edition (inclusive) when this was constructed.
          Editions before this will not have defaults.
    @type int $maximum_edition
          The maximum known edition (inclusive) when this was constructed. Editions
          after this will not have reliable defaults.
    
    }
public Google\Protobuf\Internal\Message::__debugInfo()
public Google\Protobuf\Internal\Message::byteSize()
 
  • ignore
public Google\Protobuf\Internal\Message::clear()
 

Clear all containing fields.

  • return null
public clearMaximumEdition()
public clearMinimumEdition()
public Google\Protobuf\Internal\Message::discardUnknownFields()
 

Clear all unknown fields previously parsed.

  • return null
public getDefaults()
 

Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;

  • return \RepeatedField<\Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault>
public getMaximumEdition()
 

The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.

Generated from protobuf field optional .google.protobuf.Edition maximum_edition = 5;

  • return int one of the values in {@see \Google\Protobuf\Internal\Edition}
public getMinimumEdition()
 

The minimum supported edition (inclusive) when this was constructed.

Editions before this will not have defaults.

Generated from protobuf field optional .google.protobuf.Edition minimum_edition = 4;

  • return int one of the values in {@see \Google\Protobuf\Internal\Edition}
public hasMaximumEdition()
public hasMinimumEdition()
public Google\Protobuf\Internal\Message::jsonByteSize( $options = 0)
 
  • ignore
public Google\Protobuf\Internal\Message::mergeFrom( $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.

  • param object $msg Protobuf message to be merged from.
  • return null
public Google\Protobuf\Internal\Message::mergeFromJsonString( $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.

  • param string $data Json protobuf data.
  • param bool $ignore_unknown
  • return null
  • throws \Exception Invalid data.
public Google\Protobuf\Internal\Message::mergeFromString( $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.

  • param string $data Binary protobuf data.
  • return null
  • throws \Exception Invalid data.
public Google\Protobuf\Internal\Message::parseFromJsonStream( $input, $ignore_unknown)
 
  • ignore
public Google\Protobuf\Internal\Message::parseFromStream( $input)
 
  • ignore
public Google\Protobuf\Internal\Message::serializeToJsonStream( $output)
 
  • ignore
public Google\Protobuf\Internal\Message::serializeToJsonString( $options = 0)
 

Serialize the message to json string.

  • return string Serialized json protobuf data.
public Google\Protobuf\Internal\Message::serializeToStream( $output)
 
  • ignore
public Google\Protobuf\Internal\Message::serializeToString()
 

Serialize the message to string.

  • return string Serialized binary protobuf data.
public setDefaults(Google\Protobuf\RepeatedField|array $var)
 

Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;

  • param \Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault[] $var
  • return $this
public setMaximumEdition(int $var)
 

The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.

Generated from protobuf field optional .google.protobuf.Edition maximum_edition = 5;

  • param int $var one of the values in {@see \Google\Protobuf\Internal\Edition}
  • return $this
public setMinimumEdition(int $var)
 

The minimum supported edition (inclusive) when this was constructed.

Editions before this will not have defaults.

Generated from protobuf field optional .google.protobuf.Edition minimum_edition = 4;

  • param int $var one of the values in {@see \Google\Protobuf\Internal\Edition}
  • return $this
Properties
protected $maximum_edition = NULL
 

The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.

Generated from protobuf field optional .google.protobuf.Edition maximum_edition = 5;

protected $minimum_edition = NULL
 

The minimum supported edition (inclusive) when this was constructed.

Editions before this will not have defaults.

Generated from protobuf field optional .google.protobuf.Edition minimum_edition = 4;

Methods
protected Google\Protobuf\Internal\Message::hasOneof( $number)
protected Google\Protobuf\Internal\Message::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.

  • param array $array An array containing message properties and values.
  • return null
protected Google\Protobuf\Internal\Message::mergeFromJsonArray( $array, $ignore_unknown)
protected Google\Protobuf\Internal\Message::readOneof( $number)
protected Google\Protobuf\Internal\Message::readWrapperValue( $member)
protected Google\Protobuf\Internal\Message::whichOneof( $oneof_name)
protected Google\Protobuf\Internal\Message::writeOneof( $number, $value)
protected Google\Protobuf\Internal\Message::writeWrapperValue( $member, $value)
Properties
private $defaults = NULL
 

Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;

© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration