Class protos.google.api.Distribution.BucketOptions.Explicit

Represents an Explicit.

Package

@google-cloud/monitoring

Constructors

(constructor)(properties)

constructor(properties?: google.api.Distribution.BucketOptions.IExplicit);

Constructs a new Explicit.

Parameter
NameDescription
properties IExplicit

Properties to set

Properties

bounds

public bounds: number[];

Explicit bounds.

Methods

create(properties)

public static create(properties?: google.api.Distribution.BucketOptions.IExplicit): google.api.Distribution.BucketOptions.Explicit;

Creates a new Explicit instance using the specified properties.

Parameter
NameDescription
properties IExplicit

Properties to set

Returns
TypeDescription
google.api.Distribution.BucketOptions.Explicit

Explicit instance

decode(reader, length)

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

Decodes an Explicit 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.Distribution.BucketOptions.Explicit

Explicit

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Distribution.BucketOptions.Explicit;

Decodes an Explicit 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.Distribution.BucketOptions.Explicit

Explicit

encode(message, writer)

public static encode(message: google.api.Distribution.BucketOptions.IExplicit, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified Explicit message. Does not implicitly messages.

Parameters
NameDescription
message IExplicit

Explicit 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.Distribution.BucketOptions.IExplicit, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IExplicit

Explicit 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.Distribution.BucketOptions.Explicit;

Creates an Explicit 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.Distribution.BucketOptions.Explicit

Explicit

toJSON()

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

Converts this Explicit to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.api.Distribution.BucketOptions.Explicit

Explicit

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 Explicit 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