Class AssetPerformanceData.Builder (0.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation>
Returns
TypeDescription
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
NameDescription
valueDailyResourceUsageAggregation
Returns
TypeDescription
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
NameDescription
builderForValueDailyResourceUsageAggregation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDailyResourceUsageAggregation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDailyResourceUsageAggregation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AssetPerformanceData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides

build()

public AssetPerformanceData build()
Returns
TypeDescription
AssetPerformanceData

buildPartial()

public AssetPerformanceData buildPartial()
Returns
TypeDescription
AssetPerformanceData

clear()

public AssetPerformanceData.Builder clear()
Returns
TypeDescription
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
TypeDescription
AssetPerformanceData.Builder

clearField(Descriptors.FieldDescriptor field)

public AssetPerformanceData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AssetPerformanceData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides

clone()

public AssetPerformanceData.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.DailyResourceUsageAggregationOrBuilder>

getDefaultInstanceForType()

public AssetPerformanceData getDefaultInstanceForType()
Returns
TypeDescription
AssetPerformanceData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AssetPerformanceData other)

public AssetPerformanceData.Builder mergeFrom(AssetPerformanceData other)
Parameter
NameDescription
otherAssetPerformanceData
Returns
TypeDescription
AssetPerformanceData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssetPerformanceData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AssetPerformanceData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssetPerformanceData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDailyResourceUsageAggregation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDailyResourceUsageAggregation.Builder
Returns
TypeDescription
AssetPerformanceData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AssetPerformanceData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides

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

public AssetPerformanceData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AssetPerformanceData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AssetPerformanceData.Builder
Overrides