Class AssetPerformanceData.Builder (0.35.0)

public static final class AssetPerformanceData.Builder extends GeneratedMessageV3.Builder<AssetPerformanceData.Builder> implements AssetPerformanceDataOrBuilder

Performance data for an asset.

Protobuf type google.cloud.migrationcenter.v1.AssetPerformanceData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDailyResourceUsageAggregations(Iterable<? extends DailyResourceUsageAggregation> values)

public AssetPerformanceData.Builder addAllDailyResourceUsageAggregations(Iterable<? extends DailyResourceUsageAggregation> values)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation>
Returns
Type Description
AssetPerformanceData.Builder

addDailyResourceUsageAggregations(DailyResourceUsageAggregation value)

public AssetPerformanceData.Builder addDailyResourceUsageAggregations(DailyResourceUsageAggregation value)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
value DailyResourceUsageAggregation
Returns
Type Description
AssetPerformanceData.Builder

addDailyResourceUsageAggregations(DailyResourceUsageAggregation.Builder builderForValue)

public AssetPerformanceData.Builder addDailyResourceUsageAggregations(DailyResourceUsageAggregation.Builder builderForValue)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
builderForValue DailyResourceUsageAggregation.Builder
Returns
Type Description
AssetPerformanceData.Builder

addDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation value)

public AssetPerformanceData.Builder addDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation value)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameters
Name Description
index int
value DailyResourceUsageAggregation
Returns
Type Description
AssetPerformanceData.Builder

addDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation.Builder builderForValue)

public AssetPerformanceData.Builder addDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation.Builder builderForValue)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameters
Name Description
index int
builderForValue DailyResourceUsageAggregation.Builder
Returns
Type Description
AssetPerformanceData.Builder

addDailyResourceUsageAggregationsBuilder()

public DailyResourceUsageAggregation.Builder addDailyResourceUsageAggregationsBuilder()

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Returns
Type Description
DailyResourceUsageAggregation.Builder

addDailyResourceUsageAggregationsBuilder(int index)

public DailyResourceUsageAggregation.Builder addDailyResourceUsageAggregationsBuilder(int index)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
index int
Returns
Type Description
DailyResourceUsageAggregation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AssetPerformanceData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssetPerformanceData.Builder
Overrides

build()

public AssetPerformanceData build()
Returns
Type Description
AssetPerformanceData

buildPartial()

public AssetPerformanceData buildPartial()
Returns
Type Description
AssetPerformanceData

clear()

public AssetPerformanceData.Builder clear()
Returns
Type Description
AssetPerformanceData.Builder
Overrides

clearDailyResourceUsageAggregations()

public AssetPerformanceData.Builder clearDailyResourceUsageAggregations()

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Returns
Type Description
AssetPerformanceData.Builder

clearField(Descriptors.FieldDescriptor field)

public AssetPerformanceData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AssetPerformanceData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AssetPerformanceData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AssetPerformanceData.Builder
Overrides

clone()

public AssetPerformanceData.Builder clone()
Returns
Type Description
AssetPerformanceData.Builder
Overrides

getDailyResourceUsageAggregations(int index)

public DailyResourceUsageAggregation getDailyResourceUsageAggregations(int index)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
index int
Returns
Type Description
DailyResourceUsageAggregation

getDailyResourceUsageAggregationsBuilder(int index)

public DailyResourceUsageAggregation.Builder getDailyResourceUsageAggregationsBuilder(int index)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
index int
Returns
Type Description
DailyResourceUsageAggregation.Builder

getDailyResourceUsageAggregationsBuilderList()

public List<DailyResourceUsageAggregation.Builder> getDailyResourceUsageAggregationsBuilderList()

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Returns
Type Description
List<Builder>

getDailyResourceUsageAggregationsCount()

public int getDailyResourceUsageAggregationsCount()

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Returns
Type Description
int

getDailyResourceUsageAggregationsList()

public List<DailyResourceUsageAggregation> getDailyResourceUsageAggregationsList()

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Returns
Type Description
List<DailyResourceUsageAggregation>

getDailyResourceUsageAggregationsOrBuilder(int index)

public DailyResourceUsageAggregationOrBuilder getDailyResourceUsageAggregationsOrBuilder(int index)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
index int
Returns
Type Description
DailyResourceUsageAggregationOrBuilder

getDailyResourceUsageAggregationsOrBuilderList()

public List<? extends DailyResourceUsageAggregationOrBuilder> getDailyResourceUsageAggregationsOrBuilderList()

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.DailyResourceUsageAggregationOrBuilder>

getDefaultInstanceForType()

public AssetPerformanceData getDefaultInstanceForType()
Returns
Type Description
AssetPerformanceData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssetPerformanceData other)

public AssetPerformanceData.Builder mergeFrom(AssetPerformanceData other)
Parameter
Name Description
other AssetPerformanceData
Returns
Type Description
AssetPerformanceData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssetPerformanceData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetPerformanceData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssetPerformanceData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssetPerformanceData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssetPerformanceData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssetPerformanceData.Builder
Overrides

removeDailyResourceUsageAggregations(int index)

public AssetPerformanceData.Builder removeDailyResourceUsageAggregations(int index)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameter
Name Description
index int
Returns
Type Description
AssetPerformanceData.Builder

setDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation value)

public AssetPerformanceData.Builder setDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation value)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameters
Name Description
index int
value DailyResourceUsageAggregation
Returns
Type Description
AssetPerformanceData.Builder

setDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation.Builder builderForValue)

public AssetPerformanceData.Builder setDailyResourceUsageAggregations(int index, DailyResourceUsageAggregation.Builder builderForValue)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

repeated .google.cloud.migrationcenter.v1.DailyResourceUsageAggregation daily_resource_usage_aggregations = 1;

Parameters
Name Description
index int
builderForValue DailyResourceUsageAggregation.Builder
Returns
Type Description
AssetPerformanceData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AssetPerformanceData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssetPerformanceData.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AssetPerformanceData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AssetPerformanceData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AssetPerformanceData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssetPerformanceData.Builder
Overrides