Class protos.google.api.servicecontrol.v1.Distribution.ExponentialBuckets (1.1.4)

Represents an ExponentialBuckets.

Package

@google-cloud/service-control!

Constructors

(constructor)(properties)

constructor(properties?: google.api.servicecontrol.v1.Distribution.IExponentialBuckets);

Constructs a new ExponentialBuckets.

Parameter
NameDescription
properties IExponentialBuckets

Properties to set

Properties

growthFactor

public growthFactor: number;

ExponentialBuckets growthFactor.

Property Value
TypeDescription
number

numFiniteBuckets

public numFiniteBuckets: number;

ExponentialBuckets numFiniteBuckets.

Property Value
TypeDescription
number

scale

public scale: number;

ExponentialBuckets scale.

Property Value
TypeDescription
number

Methods

create(properties)

public static create(properties?: google.api.servicecontrol.v1.Distribution.IExponentialBuckets): google.api.servicecontrol.v1.Distribution.ExponentialBuckets;

Creates a new ExponentialBuckets instance using the specified properties.

Parameter
NameDescription
properties IExponentialBuckets

Properties to set

Returns
TypeDescription
google.api.servicecontrol.v1.Distribution.ExponentialBuckets

ExponentialBuckets instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.servicecontrol.v1.Distribution.ExponentialBuckets;

Decodes an ExponentialBuckets message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.api.servicecontrol.v1.Distribution.ExponentialBuckets

ExponentialBuckets

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.servicecontrol.v1.Distribution.ExponentialBuckets;

Decodes an ExponentialBuckets message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.api.servicecontrol.v1.Distribution.ExponentialBuckets

ExponentialBuckets

encode(message, writer)

public static encode(message: google.api.servicecontrol.v1.Distribution.IExponentialBuckets, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ExponentialBuckets message. Does not implicitly messages.

Parameters
NameDescription
message IExponentialBuckets

ExponentialBuckets message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.api.servicecontrol.v1.Distribution.IExponentialBuckets, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ExponentialBuckets message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IExponentialBuckets

ExponentialBuckets message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.api.servicecontrol.v1.Distribution.ExponentialBuckets;

Creates an ExponentialBuckets message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.api.servicecontrol.v1.Distribution.ExponentialBuckets

ExponentialBuckets

toJSON()

public toJSON(): { [k: string]: any };

Converts this ExponentialBuckets to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.api.servicecontrol.v1.Distribution.ExponentialBuckets, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an ExponentialBuckets message. Also converts values to other types if specified.

Parameters
NameDescription
message google.api.servicecontrol.v1.Distribution.ExponentialBuckets

ExponentialBuckets

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an ExponentialBuckets message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not