Class AssetFrame.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder>
com.google.cloud.migrationcenter.v1.AssetFrame.Builder
All Implemented Interfaces:
AssetFrameOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AssetFrame

public static final class AssetFrame.Builder extends com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder> implements AssetFrameOrBuilder
 Contains data reported from an inventory source on an asset.
 
Protobuf type google.cloud.migrationcenter.v1.AssetFrame
  • 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.Builder<AssetFrame.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder>
    • clear

      public AssetFrame.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder>
    • getDefaultInstanceForType

      public AssetFrame getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public AssetFrame.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssetFrame.Builder>
    • mergeFrom

      public AssetFrame.Builder mergeFrom(AssetFrame other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AssetFrame.Builder>
    • mergeFrom

      public AssetFrame.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssetFrame.Builder>
      Throws:
      IOException
    • getFrameDataCase

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

      public AssetFrame.Builder clearFrameData()
    • 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.
    • setMachineDetails

      public AssetFrame.Builder setMachineDetails(MachineDetails value)
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
    • setMachineDetails

      public AssetFrame.Builder setMachineDetails(MachineDetails.Builder builderForValue)
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
    • mergeMachineDetails

      public AssetFrame.Builder mergeMachineDetails(MachineDetails value)
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
    • clearMachineDetails

      public AssetFrame.Builder clearMachineDetails()
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
    • getMachineDetailsBuilder

      public MachineDetails.Builder getMachineDetailsBuilder()
       Asset information specific for virtual machines.
       
      .google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;
    • 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.
    • setReportTime

      public AssetFrame.Builder setReportTime(com.google.protobuf.Timestamp value)
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
    • setReportTime

      public AssetFrame.Builder setReportTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
    • mergeReportTime

      public AssetFrame.Builder mergeReportTime(com.google.protobuf.Timestamp value)
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
    • clearReportTime

      public AssetFrame.Builder clearReportTime()
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
    • getReportTimeBuilder

      public com.google.protobuf.Timestamp.Builder getReportTimeBuilder()
       The time the data was reported.
       
      .google.protobuf.Timestamp report_time = 10;
    • 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
    • clearLabels

      public AssetFrame.Builder clearLabels()
    • removeLabels

      public AssetFrame.Builder removeLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 11;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public AssetFrame.Builder putLabels(String key, String value)
       Labels as key value pairs.
       
      map<string, string> labels = 11;
    • putAllLabels

      public AssetFrame.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs.
       
      map<string, string> labels = 11;
    • 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
    • clearAttributes

      public AssetFrame.Builder clearAttributes()
    • removeAttributes

      public AssetFrame.Builder removeAttributes(String key)
       Generic asset attributes.
       
      map<string, string> attributes = 12;
    • getMutableAttributes

      @Deprecated public Map<String,String> getMutableAttributes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttributes

      public AssetFrame.Builder putAttributes(String key, String value)
       Generic asset attributes.
       
      map<string, string> attributes = 12;
    • putAllAttributes

      public AssetFrame.Builder putAllAttributes(Map<String,String> values)
       Generic asset attributes.
       
      map<string, string> attributes = 12;
    • 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
    • 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
    • setPerformanceSamples

      public AssetFrame.Builder setPerformanceSamples(int index, PerformanceSample value)
       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;
    • setPerformanceSamples

      public AssetFrame.Builder setPerformanceSamples(int index, PerformanceSample.Builder builderForValue)
       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;
    • addPerformanceSamples

      public AssetFrame.Builder addPerformanceSamples(PerformanceSample value)
       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;
    • addPerformanceSamples

      public AssetFrame.Builder addPerformanceSamples(int index, PerformanceSample value)
       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;
    • addPerformanceSamples

      public AssetFrame.Builder addPerformanceSamples(PerformanceSample.Builder builderForValue)
       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;
    • addPerformanceSamples

      public AssetFrame.Builder addPerformanceSamples(int index, PerformanceSample.Builder builderForValue)
       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;
    • addAllPerformanceSamples

      public AssetFrame.Builder addAllPerformanceSamples(Iterable<? extends PerformanceSample> values)
       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;
    • clearPerformanceSamples

      public AssetFrame.Builder clearPerformanceSamples()
       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;
    • removePerformanceSamples

      public AssetFrame.Builder removePerformanceSamples(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;
    • getPerformanceSamplesBuilder

      public PerformanceSample.Builder getPerformanceSamplesBuilder(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;
    • 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
    • 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
    • addPerformanceSamplesBuilder

      public PerformanceSample.Builder addPerformanceSamplesBuilder()
       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;
    • addPerformanceSamplesBuilder

      public PerformanceSample.Builder addPerformanceSamplesBuilder(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;
    • getPerformanceSamplesBuilderList

      public List<PerformanceSample.Builder> getPerformanceSamplesBuilderList()
       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;
    • 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.
    • setTraceToken

      public AssetFrame.Builder setTraceToken(String value)
       Optional. Trace token is optionally provided to assist with debugging and
       traceability.
       
      string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The traceToken to set.
      Returns:
      This builder for chaining.
    • clearTraceToken

      public AssetFrame.Builder clearTraceToken()
       Optional. Trace token is optionally provided to assist with debugging and
       traceability.
       
      string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTraceTokenBytes

      public AssetFrame.Builder setTraceTokenBytes(com.google.protobuf.ByteString value)
       Optional. Trace token is optionally provided to assist with debugging and
       traceability.
       
      string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for traceToken to set.
      Returns:
      This builder for chaining.