java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.migrationcenter.v1.Asset
All Implemented Interfaces:
AssetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Asset extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • ATTRIBUTES_FIELD_NUMBER

      public static final int ATTRIBUTES_FIELD_NUMBER
      See Also:
    • MACHINE_DETAILS_FIELD_NUMBER

      public static final int MACHINE_DETAILS_FIELD_NUMBER
      See Also:
    • INSIGHT_LIST_FIELD_NUMBER

      public static final int INSIGHT_LIST_FIELD_NUMBER
      See Also:
    • PERFORMANCE_DATA_FIELD_NUMBER

      public static final int PERFORMANCE_DATA_FIELD_NUMBER
      See Also:
    • SOURCES_FIELD_NUMBER

      public static final int SOURCES_FIELD_NUMBER
      See Also:
    • ASSIGNED_GROUPS_FIELD_NUMBER

      public static final int ASSIGNED_GROUPS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAssetDetailsCase

      public Asset.AssetDetailsCase getAssetDetailsCase()
      Specified by:
      getAssetDetailsCase in interface AssetOrBuilder
    • 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
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AssetOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface AssetOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface AssetOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow 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
    • getAttributes

      @Deprecated public Map<String,String> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface AssetOrBuilder
    • getAttributesMap

      public Map<String,String> getAttributesMap()
       Generic asset attributes.
       
      map<string, string> attributes = 5;
      Specified by:
      getAttributesMap in interface AssetOrBuilder
    • getAttributesOrDefault

      public String getAttributesOrDefault(String key, String defaultValue)
       Generic asset attributes.
       
      map<string, string> attributes = 5;
      Specified by:
      getAttributesOrDefault in interface AssetOrBuilder
    • getAttributesOrThrow

      public String getAttributesOrThrow(String key)
       Generic asset attributes.
       
      map<string, string> attributes = 5;
      Specified by:
      getAttributesOrThrow 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.
    • 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];
      Specified by:
      getPerformanceDataOrBuilder in interface AssetOrBuilder
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Asset parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static Asset.Builder newBuilder()
    • newBuilder

      public static Asset.Builder newBuilder(Asset prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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