Class AssetFrame

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

@Generated public final class AssetFrame extends com.google.protobuf.GeneratedMessage implements AssetFrameOrBuilder
 Contains data reported from an inventory source on an asset.
 
Protobuf type google.cloud.migrationcenter.v1.AssetFrame
See Also:
  • Field Details

    • MACHINE_DETAILS_FIELD_NUMBER

      public static final int MACHINE_DETAILS_FIELD_NUMBER
      See Also:
    • REPORT_TIME_FIELD_NUMBER

      public static final int REPORT_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:
    • PERFORMANCE_SAMPLES_FIELD_NUMBER

      public static final int PERFORMANCE_SAMPLES_FIELD_NUMBER
      See Also:
    • TRACE_TOKEN_FIELD_NUMBER

      public static final int TRACE_TOKEN_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
    • getFrameDataCase

      public AssetFrame.FrameDataCase getFrameDataCase()
      Specified by:
      getFrameDataCase in interface AssetFrameOrBuilder
    • hasMachineDetails

      public boolean hasMachineDetails()
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
      Specified by:
      hasMachineDetails in interface AssetFrameOrBuilder
      Returns:
      Whether the machineDetails field is set.
    • getMachineDetails

      public MachineDetails getMachineDetails()
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
      Specified by:
      getMachineDetails in interface AssetFrameOrBuilder
      Returns:
      The machineDetails.
    • getMachineDetailsOrBuilder

      public MachineDetailsOrBuilder getMachineDetailsOrBuilder()
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
      Specified by:
      getMachineDetailsOrBuilder in interface AssetFrameOrBuilder
    • hasReportTime

      public boolean hasReportTime()
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
      Specified by:
      hasReportTime in interface AssetFrameOrBuilder
      Returns:
      Whether the reportTime field is set.
    • getReportTime

      public com.google.protobuf.Timestamp getReportTime()
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
      Specified by:
      getReportTime in interface AssetFrameOrBuilder
      Returns:
      The reportTime.
    • getReportTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder()
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
      Specified by:
      getReportTimeOrBuilder in interface AssetFrameOrBuilder
    • getLabelsCount

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

      public boolean containsLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 11;
      Specified by:
      containsLabels in interface AssetFrameOrBuilder
    • getLabels

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

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

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

      public String getLabelsOrThrow(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 11;
      Specified by:
      getLabelsOrThrow in interface AssetFrameOrBuilder
    • getAttributesCount

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

      public boolean containsAttributes(String key)
       Generic asset attributes.
       
      map<string, string> attributes = 12;
      Specified by:
      containsAttributes in interface AssetFrameOrBuilder
    • getAttributes

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

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

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

      public String getAttributesOrThrow(String key)
       Generic asset attributes.
       
      map<string, string> attributes = 12;
      Specified by:
      getAttributesOrThrow in interface AssetFrameOrBuilder
    • getPerformanceSamplesList

      public List<PerformanceSample> getPerformanceSamplesList()
       Asset performance data samples.
       Samples that are from more than 40 days ago or after tomorrow are ignored.
       
      repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;
      Specified by:
      getPerformanceSamplesList in interface AssetFrameOrBuilder
    • getPerformanceSamplesOrBuilderList

      public List<? extends PerformanceSampleOrBuilder> getPerformanceSamplesOrBuilderList()
       Asset performance data samples.
       Samples that are from more than 40 days ago or after tomorrow are ignored.
       
      repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;
      Specified by:
      getPerformanceSamplesOrBuilderList in interface AssetFrameOrBuilder
    • getPerformanceSamplesCount

      public int getPerformanceSamplesCount()
       Asset performance data samples.
       Samples that are from more than 40 days ago or after tomorrow are ignored.
       
      repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;
      Specified by:
      getPerformanceSamplesCount in interface AssetFrameOrBuilder
    • getPerformanceSamples

      public PerformanceSample getPerformanceSamples(int index)
       Asset performance data samples.
       Samples that are from more than 40 days ago or after tomorrow are ignored.
       
      repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;
      Specified by:
      getPerformanceSamples in interface AssetFrameOrBuilder
    • getPerformanceSamplesOrBuilder

      public PerformanceSampleOrBuilder getPerformanceSamplesOrBuilder(int index)
       Asset performance data samples.
       Samples that are from more than 40 days ago or after tomorrow are ignored.
       
      repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;
      Specified by:
      getPerformanceSamplesOrBuilder in interface AssetFrameOrBuilder
    • getTraceToken

      public String getTraceToken()
       Optional. Trace token is optionally provided to assist with debugging and
       traceability.
       
      string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTraceToken in interface AssetFrameOrBuilder
      Returns:
      The traceToken.
    • getTraceTokenBytes

      public com.google.protobuf.ByteString getTraceTokenBytes()
       Optional. Trace token is optionally provided to assist with debugging and
       traceability.
       
      string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTraceTokenBytes in interface AssetFrameOrBuilder
      Returns:
      The bytes for traceToken.
    • 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 AssetFrame parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static AssetFrame parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static AssetFrame parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static AssetFrame.Builder newBuilder()
    • newBuilder

      public static AssetFrame.Builder newBuilder(AssetFrame prototype)
    • toBuilder

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

      protected AssetFrame.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AssetFrame getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AssetFrame> 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 AssetFrame getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder