Class protos.google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats (2.1.0)

Represents an AssetAggregateStats.

Package

@google-cloud/migrationcenter

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.migrationcenter.v1.ReportSummary.IAssetAggregateStats);

Constructs a new AssetAggregateStats.

Parameter
Name Description
properties IAssetAggregateStats

Properties to set

Properties

coreCountHistogram

public coreCountHistogram?: (google.cloud.migrationcenter.v1.ReportSummary.IHistogramChartData|null);

AssetAggregateStats coreCountHistogram.

memoryBytesHistogram

public memoryBytesHistogram?: (google.cloud.migrationcenter.v1.ReportSummary.IHistogramChartData|null);

AssetAggregateStats memoryBytesHistogram.

memoryUtilizationChart

public memoryUtilizationChart?: (google.cloud.migrationcenter.v1.ReportSummary.IUtilizationChartData|null);

AssetAggregateStats memoryUtilizationChart.

operatingSystem

public operatingSystem?: (google.cloud.migrationcenter.v1.ReportSummary.IChartData|null);

AssetAggregateStats operatingSystem.

storageBytesHistogram

public storageBytesHistogram?: (google.cloud.migrationcenter.v1.ReportSummary.IHistogramChartData|null);

AssetAggregateStats storageBytesHistogram.

storageUtilizationChart

public storageUtilizationChart?: (google.cloud.migrationcenter.v1.ReportSummary.IUtilizationChartData|null);

AssetAggregateStats storageUtilizationChart.

totalAssets

public totalAssets: (number|Long|string);

AssetAggregateStats totalAssets.

totalCores

public totalCores: (number|Long|string);

AssetAggregateStats totalCores.

totalMemoryBytes

public totalMemoryBytes: (number|Long|string);

AssetAggregateStats totalMemoryBytes.

totalStorageBytes

public totalStorageBytes: (number|Long|string);

AssetAggregateStats totalStorageBytes.

Methods

create(properties)

public static create(properties?: google.cloud.migrationcenter.v1.ReportSummary.IAssetAggregateStats): google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats;

Creates a new AssetAggregateStats instance using the specified properties.

Parameter
Name Description
properties IAssetAggregateStats

Properties to set

Returns
Type Description
AssetAggregateStats

AssetAggregateStats instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats;

Decodes an AssetAggregateStats message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
AssetAggregateStats

AssetAggregateStats

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
AssetAggregateStats

AssetAggregateStats

encode(message, writer)

public static encode(message: google.cloud.migrationcenter.v1.ReportSummary.IAssetAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified AssetAggregateStats message. Does not implicitly messages.

Parameters
Name Description
message IAssetAggregateStats

AssetAggregateStats message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.migrationcenter.v1.ReportSummary.IAssetAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IAssetAggregateStats

AssetAggregateStats message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
AssetAggregateStats

AssetAggregateStats

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for AssetAggregateStats

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

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

Converts this AssetAggregateStats to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
Name Description
message AssetAggregateStats

AssetAggregateStats

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

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

Verifies an AssetAggregateStats message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not