Interface AssetOrBuilder (0.18.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
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public abstract boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAssetDetailsCase()

public abstract Asset.AssetDetailsCase getAssetDetailsCase()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the assignedGroups.

getAttributes() (deprecated)

public abstract Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
TypeDescription
Map<String,String>

getAttributesCount()

public abstract int getAttributesCount()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
TypeDescription
int

getAttributesMap()

public abstract Map<String,String> getAttributesMap()

Generic asset attributes.

map<string, string> attributes = 5;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAttributesOrThrow(String key)

public abstract String getAttributesOrThrow(String key)

Generic asset attributes.

map<string, string> attributes = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InsightListOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

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

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MachineDetailsOrBuilder

getName()

public abstract 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 abstract 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 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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.