Class Asset.Builder (0.36.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
Type Description
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
Name Description
values Iterable<String>

The assignedGroups to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The sources to add.

Returns
Type Description
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
Name Description
value String

The assignedGroups to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the assignedGroups to add.

Returns
Type Description
Asset.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Asset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The sources to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the sources to add.

Returns
Type Description
Asset.Builder

This builder for chaining.

build()

public Asset build()
Returns
Type Description
Asset

buildPartial()

public Asset buildPartial()
Returns
Type Description
Asset

clear()

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

clearAssetDetails()

public Asset.Builder clearAssetDetails()
Returns
Type Description
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
Type Description
Asset.Builder

This builder for chaining.

clearAttributes()

public Asset.Builder clearAttributes()
Returns
Type Description
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
Type Description
Asset.Builder

clearField(Descriptors.FieldDescriptor field)

public Asset.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Asset.Builder

clearLabels()

public Asset.Builder clearLabels()
Returns
Type Description
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
Type Description
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
Type Description
Asset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Asset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Asset.Builder

clone()

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

containsAttributes(String key)

public boolean containsAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAssetDetailsCase()

public Asset.AssetDetailsCase getAssetDetailsCase()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the assignedGroups.

getAttributes() (deprecated)

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,String>

getAttributesCount()

public int getAttributesCount()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
Type Description
int

getAttributesMap()

public Map<String,String> getAttributesMap()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
Type Description
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public String getAttributesOrDefault(String key, String defaultValue)

Generic asset attributes.

map<string, string> attributes = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAttributesOrThrow(String key)

public String getAttributesOrThrow(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Asset getDefaultInstanceForType()
Returns
Type Description
Asset

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
InsightListOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
MachineDetailsOrBuilder

getMutableAttributes() (deprecated)

public Map<String,String> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Asset.Builder

mergeFrom(Asset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Asset.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value InsightList
Returns
Type Description
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
Name Description
value MachineDetails
Returns
Type Description
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
Name Description
value AssetPerformanceData
Returns
Type Description
Asset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Asset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Asset.Builder

putAllAttributes(Map<String,String> values)

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

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
Asset.Builder

putAttributes(String key, String value)

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

Generic asset attributes.

map<string, string> attributes = 5;

Parameters
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
Asset.Builder

removeAttributes(String key)

public Asset.Builder removeAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
Name Description
key String
Returns
Type Description
Asset.Builder

removeLabels(String key)

public Asset.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The assignedGroups to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Asset.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Asset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value InsightList
Returns
Type Description
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
Name Description
builderForValue InsightList.Builder
Returns
Type Description
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
Name Description
value MachineDetails
Returns
Type Description
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
Name Description
builderForValue MachineDetails.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value AssetPerformanceData
Returns
Type Description
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
Name Description
builderForValue AssetPerformanceData.Builder
Returns
Type Description
Asset.Builder

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

public Asset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The sources to set.

Returns
Type Description
Asset.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Asset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Asset.Builder