Class Asset.Builder (0.4.0)

public static final class Asset.Builder extends GeneratedMessageV3.Builder<Asset.Builder> implements AssetOrBuilder

An asset represents a resource in your environment. Asset types include virtual machines and databases.

Protobuf type google.cloud.migrationcenter.v1.Asset

Implements

AssetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAssignedGroups(Iterable<String> values)

public Asset.Builder addAllAssignedGroups(Iterable<String> values)

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The assignedGroups to add.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

addAllSources(Iterable<String> values)

public Asset.Builder addAllSources(Iterable<String> values)

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The sources to add.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

addAssignedGroups(String value)

public Asset.Builder addAssignedGroups(String value)

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The assignedGroups to add.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

addAssignedGroupsBytes(ByteString value)

public Asset.Builder addAssignedGroupsBytes(ByteString value)

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the assignedGroups to add.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSources(String value)

public Asset.Builder addSources(String value)

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The sources to add.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

addSourcesBytes(ByteString value)

public Asset.Builder addSourcesBytes(ByteString value)

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the sources to add.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

build()

public Asset build()
Returns
TypeDescription
Asset

buildPartial()

public Asset buildPartial()
Returns
TypeDescription
Asset

clear()

public Asset.Builder clear()
Returns
TypeDescription
Asset.Builder
Overrides

clearAssetDetails()

public Asset.Builder clearAssetDetails()
Returns
TypeDescription
Asset.Builder

clearAssignedGroups()

public Asset.Builder clearAssignedGroups()

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearAttributes()

public Asset.Builder clearAttributes()
Returns
TypeDescription
Asset.Builder

clearCreateTime()

public Asset.Builder clearCreateTime()

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInsightList()

public Asset.Builder clearInsightList()

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearLabels()

public Asset.Builder clearLabels()
Returns
TypeDescription
Asset.Builder

clearMachineDetails()

public Asset.Builder clearMachineDetails()

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearName()

public Asset.Builder clearName()

Output only. The full name of the asset.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPerformanceData()

public Asset.Builder clearPerformanceData()

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearSources()

public Asset.Builder clearSources()

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearUpdateTime()

public Asset.Builder clearUpdateTime()

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clone()

public Asset.Builder clone()
Returns
TypeDescription
Asset.Builder
Overrides

containsAttributes(String key)

public boolean containsAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAssetDetailsCase()

public Asset.AssetDetailsCase getAssetDetailsCase()
Returns
TypeDescription
Asset.AssetDetailsCase

getAssignedGroups(int index)

public String getAssignedGroups(int index)

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The assignedGroups at the given index.

getAssignedGroupsBytes(int index)

public ByteString getAssignedGroupsBytes(int index)

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the assignedGroups at the given index.

getAssignedGroupsCount()

public int getAssignedGroupsCount()

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of assignedGroups.

getAssignedGroupsList()

public ProtocolStringList getAssignedGroupsList()

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the assignedGroups.

getAttributes()

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
TypeDescription
Map<String,String>

getAttributesCount()

public int getAttributesCount()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
TypeDescription
int

getAttributesMap()

public Map<String,String> getAttributesMap()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
TypeDescription
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public String getAttributesOrDefault(String key, String defaultValue)

Generic asset attributes.

map<string, string> attributes = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAttributesOrThrow(String key)

public String getAttributesOrThrow(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Asset getDefaultInstanceForType()
Returns
TypeDescription
Asset

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInsightList()

public InsightList getInsightList()

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
InsightList

The insightList.

getInsightListBuilder()

public InsightList.Builder getInsightListBuilder()

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
InsightList.Builder

getInsightListOrBuilder()

public InsightListOrBuilder getInsightListOrBuilder()

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
InsightListOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMachineDetails()

public MachineDetails getMachineDetails()

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MachineDetails

The machineDetails.

getMachineDetailsBuilder()

public MachineDetails.Builder getMachineDetailsBuilder()

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MachineDetails.Builder

getMachineDetailsOrBuilder()

public MachineDetailsOrBuilder getMachineDetailsOrBuilder()

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MachineDetailsOrBuilder

getMutableAttributes()

public Map<String,String> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The full name of the asset.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The full name of the asset.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPerformanceData()

public AssetPerformanceData getPerformanceData()

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AssetPerformanceData

The performanceData.

getPerformanceDataBuilder()

public AssetPerformanceData.Builder getPerformanceDataBuilder()

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AssetPerformanceData.Builder

getPerformanceDataOrBuilder()

public AssetPerformanceDataOrBuilder getPerformanceDataOrBuilder()

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AssetPerformanceDataOrBuilder

getSources(int index)

public String getSources(int index)

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sources at the given index.

getSourcesBytes(int index)

public ByteString getSourcesBytes(int index)

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sources at the given index.

getSourcesCount()

public int getSourcesCount()

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of sources.

getSourcesList()

public ProtocolStringList getSourcesList()

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the sources.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasInsightList()

public boolean hasInsightList()

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the insightList field is set.

hasMachineDetails()

public boolean hasMachineDetails()

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the machineDetails field is set.

hasPerformanceData()

public boolean hasPerformanceData()

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the performanceData field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Asset.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

mergeFrom(Asset other)

public Asset.Builder mergeFrom(Asset other)
Parameter
NameDescription
otherAsset
Returns
TypeDescription
Asset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInsightList(InsightList value)

public Asset.Builder mergeInsightList(InsightList value)

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInsightList
Returns
TypeDescription
Asset.Builder

mergeMachineDetails(MachineDetails value)

public Asset.Builder mergeMachineDetails(MachineDetails value)

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMachineDetails
Returns
TypeDescription
Asset.Builder

mergePerformanceData(AssetPerformanceData value)

public Asset.Builder mergePerformanceData(AssetPerformanceData value)

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAssetPerformanceData
Returns
TypeDescription
Asset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Asset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Asset.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Asset.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

putAllAttributes(Map<String,String> values)

public Asset.Builder putAllAttributes(Map<String,String> values)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Asset.Builder

putAllLabels(Map<String,String> values)

public Asset.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Asset.Builder

putAttributes(String key, String value)

public Asset.Builder putAttributes(String key, String value)

Generic asset attributes.

map<string, string> attributes = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Asset.Builder

putLabels(String key, String value)

public Asset.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Asset.Builder

removeAttributes(String key)

public Asset.Builder removeAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
Asset.Builder

removeLabels(String key)

public Asset.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Asset.Builder

setAssignedGroups(int index, String value)

public Asset.Builder setAssignedGroups(int index, String value)

Output only. The list of groups that the asset is assigned to.

repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The assignedGroups to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Asset.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Asset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the asset was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Asset.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInsightList(InsightList value)

public Asset.Builder setInsightList(InsightList value)

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInsightList
Returns
TypeDescription
Asset.Builder

setInsightList(InsightList.Builder builderForValue)

public Asset.Builder setInsightList(InsightList.Builder builderForValue)

Output only. The list of insights associated with the asset.

.google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueInsightList.Builder
Returns
TypeDescription
Asset.Builder

setMachineDetails(MachineDetails value)

public Asset.Builder setMachineDetails(MachineDetails value)

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMachineDetails
Returns
TypeDescription
Asset.Builder

setMachineDetails(MachineDetails.Builder builderForValue)

public Asset.Builder setMachineDetails(MachineDetails.Builder builderForValue)

Output only. Asset information specific for virtual and physical machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueMachineDetails.Builder
Returns
TypeDescription
Asset.Builder

setName(String value)

public Asset.Builder setName(String value)

Output only. The full name of the asset.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Asset.Builder setNameBytes(ByteString value)

Output only. The full name of the asset.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setPerformanceData(AssetPerformanceData value)

public Asset.Builder setPerformanceData(AssetPerformanceData value)

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAssetPerformanceData
Returns
TypeDescription
Asset.Builder

setPerformanceData(AssetPerformanceData.Builder builderForValue)

public Asset.Builder setPerformanceData(AssetPerformanceData.Builder builderForValue)

Output only. Performance data for the asset.

.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAssetPerformanceData.Builder
Returns
TypeDescription
Asset.Builder

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

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

setSources(int index, String value)

public Asset.Builder setSources(int index, String value)

Output only. The list of sources contributing to the asset.

repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sources to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Asset.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Asset.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the asset was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Asset.Builder