Class Asset

  • All Implemented Interfaces:
    AssetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Asset
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface AssetOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface AssetOrBuilder
        Returns:
        The bytes for name.
      • 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];
        Specified by:
        hasCreateTime in interface AssetOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface AssetOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface AssetOrBuilder
      • 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];
        Specified by:
        hasUpdateTime in interface AssetOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface AssetOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface AssetOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: AssetOrBuilder
         Labels as key value pairs.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsCount in interface AssetOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels as key value pairs.
         
        map<string, string> labels = 4;
        Specified by:
        containsLabels in interface AssetOrBuilder
      • getAttributesCount

        public int getAttributesCount()
        Description copied from interface: AssetOrBuilder
         Generic asset attributes.
         
        map<string, string> attributes = 5;
        Specified by:
        getAttributesCount in interface AssetOrBuilder
      • containsAttributes

        public boolean containsAttributes​(String key)
         Generic asset attributes.
         
        map<string, string> attributes = 5;
        Specified by:
        containsAttributes in interface AssetOrBuilder
      • 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];
        Specified by:
        hasMachineDetails in interface AssetOrBuilder
        Returns:
        Whether the machineDetails field is set.
      • 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];
        Specified by:
        getMachineDetails in interface AssetOrBuilder
        Returns:
        The machineDetails.
      • 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];
        Specified by:
        getMachineDetailsOrBuilder in interface AssetOrBuilder
      • 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];
        Specified by:
        hasInsightList in interface AssetOrBuilder
        Returns:
        Whether the insightList field is set.
      • 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];
        Specified by:
        getInsightList in interface AssetOrBuilder
        Returns:
        The insightList.
      • 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];
        Specified by:
        getInsightListOrBuilder in interface AssetOrBuilder
      • 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];
        Specified by:
        hasPerformanceData in interface AssetOrBuilder
        Returns:
        Whether the performanceData field is set.
      • 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];
        Specified by:
        getPerformanceData in interface AssetOrBuilder
        Returns:
        The performanceData.
      • getSourcesList

        public com.google.protobuf.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) = { ... }
        Specified by:
        getSourcesList in interface AssetOrBuilder
        Returns:
        A list containing the sources.
      • 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) = { ... }
        Specified by:
        getSourcesCount in interface AssetOrBuilder
        Returns:
        The count of sources.
      • getSources

        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) = { ... }
        Specified by:
        getSources in interface AssetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sources at the given index.
      • getSourcesBytes

        public com.google.protobuf.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) = { ... }
        Specified by:
        getSourcesBytes in interface AssetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sources at the given index.
      • getAssignedGroupsList

        public com.google.protobuf.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) = { ... }
        Specified by:
        getAssignedGroupsList in interface AssetOrBuilder
        Returns:
        A list containing the assignedGroups.
      • 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) = { ... }
        Specified by:
        getAssignedGroupsCount in interface AssetOrBuilder
        Returns:
        The count of assignedGroups.
      • getAssignedGroups

        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) = { ... }
        Specified by:
        getAssignedGroups in interface AssetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The assignedGroups at the given index.
      • getAssignedGroupsBytes

        public com.google.protobuf.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) = { ... }
        Specified by:
        getAssignedGroupsBytes in interface AssetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the assignedGroups at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Asset parseFrom​(ByteBuffer data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Asset parseFrom​(ByteBuffer data,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Asset parseFrom​(com.google.protobuf.ByteString data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Asset parseFrom​(com.google.protobuf.ByteString data,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Asset parseFrom​(byte[] data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Asset parseFrom​(byte[] data,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Asset parseFrom​(com.google.protobuf.CodedInputStream input,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Asset.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Asset.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Asset.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Asset getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Asset> parser()
      • getParserForType

        public com.google.protobuf.Parser<Asset> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Asset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder