Represents a single metric value.

Generated from protobuf message google.api.servicecontrol.v1.MetricValue

CloneableInstantiable
ExtendsGoogle\Protobuf\Internal\Message
Methods
public __construct( $data = NULL)
 
Constructor.

    public Google\Protobuf\Internal\Message::byteSize()
     


    • ignore
    public Google\Protobuf\Internal\Message::clear()
    public Google\Protobuf\Internal\Message::discardUnknownFields()
    public getBoolValue()
     
    A boolean value.

    Generated from protobuf field bool bool_value = 4;

    • return bool
    public getDistributionValue()
     
    A distribution value.

    Generated from protobuf field .google.api.servicecontrol.v1.Distribution distribution_value = 8;

    public getDoubleValue()
     
    A double precision floating point value.

    Generated from protobuf field double double_value = 6;

    • return float
    public getEndTime()
     
    The end of the time period over which this metric value's measurement applies.

    Generated from protobuf field .google.protobuf.Timestamp end_time = 3;

    public getInt64Value()
     
    A signed 64-bit integer value.

    Generated from protobuf field int64 int64_value = 5;

    • return int|string
    public getLabels()
     
    The labels describing the metric value.

    See comments on
    [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels]
    for the overriding relationship.

    Generated from protobuf field map<string, string> labels = 1;

    public getStartTime()
     
    The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.

    Generated from protobuf field .google.protobuf.Timestamp start_time = 2;

    public getStringValue()
     
    A text string value.

    Generated from protobuf field string string_value = 7;

    • return string
    public getValue()
     


    • return string
    public Google\Protobuf\Internal\Message::jsonByteSize()
     


    • ignore
    public Google\Protobuf\Internal\Message::mergeFrom( $msg)
    public Google\Protobuf\Internal\Message::mergeFromJsonString( $data)
    public Google\Protobuf\Internal\Message::mergeFromString( $data)
    public Google\Protobuf\Internal\Message::parseFromJsonStream( $input)
     


    • ignore
    public Google\Protobuf\Internal\Message::parseFromStream( $input)
     


    • ignore
    public Google\Protobuf\Internal\Message::serializeToJsonStream( $output)
     


    • ignore
    public Google\Protobuf\Internal\Message::serializeToJsonString()
     
    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 setBoolValue( $var)
     
    A boolean value.

    Generated from protobuf field bool bool_value = 4;

    • return $this
    public setDistributionValue( $var)
     
    A distribution value.

    Generated from protobuf field .google.api.servicecontrol.v1.Distribution distribution_value = 8;

    • return $this
    public setDoubleValue( $var)
     
    A double precision floating point value.

    Generated from protobuf field double double_value = 6;

    • return $this
    public setEndTime( $var)
     
    The end of the time period over which this metric value's measurement applies.

    Generated from protobuf field .google.protobuf.Timestamp end_time = 3;

    • return $this
    public setInt64Value( $var)
     
    A signed 64-bit integer value.

    Generated from protobuf field int64 int64_value = 5;

    • return $this
    public setLabels( $var)
     
    The labels describing the metric value.

    See comments on
    [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels]
    for the overriding relationship.

    Generated from protobuf field map<string, string> labels = 1;

    • return $this
    public setStartTime( $var)
     
    The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.

    Generated from protobuf field .google.protobuf.Timestamp start_time = 2;

    • return $this
    public setStringValue( $var)
     
    A text string value.

    Generated from protobuf field string string_value = 7;

    • return $this
    Properties
    protected $value
    Methods
    protected Google\Protobuf\Internal\Message::mergeFromArray(array $array)
    protected Google\Protobuf\Internal\Message::mergeFromJsonArray( $array)
    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 $end_time
     
    The end of the time period over which this metric value's measurement applies.

    Generated from protobuf field .google.protobuf.Timestamp end_time = 3;

    private $labels
     
    The labels describing the metric value.

    See comments on
    [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels]
    for the overriding relationship.

    Generated from protobuf field map<string, string> labels = 1;

    private $start_time
     
    The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.

    Generated from protobuf field .google.protobuf.Timestamp start_time = 2;

    Methods
    private Google\Protobuf\Internal\Message::appendHelper( $field, $append_value)
    private Google\Protobuf\Internal\Message::convertJsonValueToProtoValue( $value, $field, $is_map_key = false)
    private Google\Protobuf\Internal\Message::defaultValue( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::existField( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldByteSize( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldDataOnlyByteSize( $field, $value)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldDataOnlyJsonByteSize( $field, $value)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldJsonByteSize( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::initWithDescriptor(Google\Protobuf\Internal\Descriptor $desc)
     


    • ignore
    private Google\Protobuf\Internal\Message::initWithGeneratedPool()
     


    • ignore
    private Google\Protobuf\Internal\Message::kvUpdateHelper( $field, $update_key, $update_value)
    private Google\Protobuf\Internal\Message::mergeFromArrayJsonImpl( $array)
    private static Google\Protobuf\Internal\Message::normalizeArrayElementsToMessageType( $value, $class)
     
    Tries to normalize the elements in $value into a provided protobuf wrapper type $class. If $value is any type other than array, we do not do any conversion, and instead rely on the existing protobuf type checking. If $value is an array, we process each element and try to convert it to an instance of $class.

      private static Google\Protobuf\Internal\Message::normalizeToMessageType( $value, $class)
       
      Tries to normalize $value into a provided protobuf wrapper type $class.

      If $value is any type other than an object, we attempt to construct an
      instance of $class and assign $value to it using the setValue method
      shared by all wrapper types.

      This method will raise an error if it receives a type that cannot be
      assigned to the wrapper type via setValue.

        private Google\Protobuf\Internal\Message::parseFieldFromStream( $tag, $input, $field)
         


        • ignore
        private static Google\Protobuf\Internal\Message::parseFieldFromStreamNoTag( $input, $field, $value)
         


        • ignore
        private Google\Protobuf\Internal\Message::repeatedFieldDataOnlyByteSize( $field)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeFieldToJsonStream( $output, $field)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeFieldToStream( $output, $field)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeMapFieldToStream( $field, $output)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeRepeatedFieldToStream( $field, $output)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeSingularFieldToStream( $field, $output)
         


        • ignore
        private Google\Protobuf\Internal\Message::skipField( $input, $tag)
         


        • ignore
        Methods
        private static Google\Protobuf\Internal\Message::normalizeArrayElementsToMessageType( $value, $class)
         
        Tries to normalize the elements in $value into a provided protobuf wrapper type $class. If $value is any type other than array, we do not do any conversion, and instead rely on the existing protobuf type checking. If $value is an array, we process each element and try to convert it to an instance of $class.

          private static Google\Protobuf\Internal\Message::normalizeToMessageType( $value, $class)
           
          Tries to normalize $value into a provided protobuf wrapper type $class.

          If $value is any type other than an object, we attempt to construct an
          instance of $class and assign $value to it using the setValue method
          shared by all wrapper types.

          This method will raise an error if it receives a type that cannot be
          assigned to the wrapper type via setValue.

            private static Google\Protobuf\Internal\Message::parseFieldFromStreamNoTag( $input, $field, $value)
             


            • ignore
            © 2020 Bruce Wells
            Search Namespaces \ Classes
            ConfigurationNumbers (0-9.) only