Interface AssetOrBuilder (0.24.0)

public interface AssetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsAttributes(String key)

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

getAssignedGroups(int index)

public abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the assignedGroups.

getAttributes() (deprecated)

public abstract Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,String>

getAttributesCount()

public abstract int getAttributesCount()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
Type Description
int

getAttributesMap()

public abstract Map<String,String> getAttributesMap()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
Type Description
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public abstract 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 abstract String getAttributesOrThrow(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getCreateTime()

public abstract 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.

getCreateTimeOrBuilder()

public abstract 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

getInsightList()

public abstract 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.

getInsightListOrBuilder()

public abstract 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 abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public abstract 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 abstract 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 abstract 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 abstract 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.

getMachineDetailsOrBuilder()

public abstract 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

getName()

public abstract 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 abstract 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 abstract 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.

getPerformanceDataOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the sources.

getUpdateTime()

public abstract 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.

getUpdateTimeOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.