public final class Asset extends GeneratedMessageV3 implements AssetOrBuilder
An asset represents a resource in your environment. Asset types include
virtual machines and databases.
Protobuf type google.cloud.migrationcenter.v1.Asset
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ASSIGNED_GROUPS_FIELD_NUMBER
public static final int ASSIGNED_GROUPS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INSIGHT_LIST_FIELD_NUMBER
public static final int INSIGHT_LIST_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MACHINE_DETAILS_FIELD_NUMBER
public static final int MACHINE_DETAILS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PERFORMANCE_DATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SOURCES_FIELD_NUMBER
public static final int SOURCES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Asset getDefaultInstance()
Returns |
---|
Type | Description |
Asset | |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Asset.Builder newBuilder()
newBuilder(Asset prototype)
public static Asset.Builder newBuilder(Asset prototype)
Parameter |
---|
Name | Description |
prototype | Asset
|
public static Asset parseDelimitedFrom(InputStream input)
Returns |
---|
Type | Description |
Asset | |
public static Asset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Asset | |
parseFrom(byte[] data)
public static Asset parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
Returns |
---|
Type | Description |
Asset | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Asset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Asset | |
parseFrom(ByteString data)
public static Asset parseFrom(ByteString data)
Returns |
---|
Type | Description |
Asset | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Asset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Asset | |
public static Asset parseFrom(CodedInputStream input)
Returns |
---|
Type | Description |
Asset | |
public static Asset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Asset | |
public static Asset parseFrom(InputStream input)
Returns |
---|
Type | Description |
Asset | |
public static Asset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Asset | |
parseFrom(ByteBuffer data)
public static Asset parseFrom(ByteBuffer data)
Returns |
---|
Type | Description |
Asset | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Asset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Asset | |
parser()
public static Parser<Asset> parser()
Methods
containsAttributes(String key)
public boolean containsAttributes(String key)
Generic asset attributes.
map<string, string> attributes = 5;
Parameter |
---|
Name | Description |
key | String
|
containsLabels(String key)
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 4;
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAssetDetailsCase()
public Asset.AssetDetailsCase getAssetDetailsCase()
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) = { ... }
getAttributes() (deprecated)
public Map<String,String> getAttributes()
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;
getAttributesOrDefault(String key, String defaultValue)
public String getAttributesOrDefault(String key, String defaultValue)
Generic asset attributes.
map<string, string> attributes = 5;
getAttributesOrThrow(String key)
public String getAttributesOrThrow(String key)
Generic asset attributes.
map<string, string> attributes = 5;
Parameter |
---|
Name | Description |
key | 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.
|
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];
getDefaultInstanceForType()
public Asset getDefaultInstanceForType()
Returns |
---|
Type | Description |
Asset | |
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];
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];
getLabels() (deprecated)
public Map<String,String> getLabels()
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;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 4;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 4;
Parameter |
---|
Name | Description |
key | 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];
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];
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.
|
getParserForType()
public Parser<Asset> getParserForType()
Overrides
public AssetPerformanceData getPerformanceData()
Output only. Performance data for the asset.
.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AssetPerformanceDataOrBuilder getPerformanceDataOrBuilder()
Output only. Performance data for the asset.
.google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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) = { ... }
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.
|
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];
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.
|
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.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Asset.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Asset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Asset.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides