Class ReportSummary.ComputeEngineFinding.Builder

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

public static final class ReportSummary.ComputeEngineFinding.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.Builder> implements ReportSummary.ComputeEngineFindingOrBuilder
 A set of findings that applies to assets destined for Compute Engine.
 
Protobuf type google.cloud.migrationcenter.v1.ReportSummary.ComputeEngineFinding
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.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<ReportSummary.ComputeEngineFinding.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<ReportSummary.ComputeEngineFinding.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ReportSummary.ComputeEngineFinding.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<ReportSummary.ComputeEngineFinding.Builder>
    • mergeFrom

    • isInitialized

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

      public ReportSummary.ComputeEngineFinding.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<ReportSummary.ComputeEngineFinding.Builder>
      Throws:
      IOException
    • getAllocatedRegionsList

      public com.google.protobuf.ProtocolStringList getAllocatedRegionsList()
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Specified by:
      getAllocatedRegionsList in interface ReportSummary.ComputeEngineFindingOrBuilder
      Returns:
      A list containing the allocatedRegions.
    • getAllocatedRegionsCount

      public int getAllocatedRegionsCount()
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Specified by:
      getAllocatedRegionsCount in interface ReportSummary.ComputeEngineFindingOrBuilder
      Returns:
      The count of allocatedRegions.
    • getAllocatedRegions

      public String getAllocatedRegions(int index)
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Specified by:
      getAllocatedRegions in interface ReportSummary.ComputeEngineFindingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allocatedRegions at the given index.
    • getAllocatedRegionsBytes

      public com.google.protobuf.ByteString getAllocatedRegionsBytes(int index)
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Specified by:
      getAllocatedRegionsBytes in interface ReportSummary.ComputeEngineFindingOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allocatedRegions at the given index.
    • setAllocatedRegions

      public ReportSummary.ComputeEngineFinding.Builder setAllocatedRegions(int index, String value)
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Parameters:
      index - The index to set the value at.
      value - The allocatedRegions to set.
      Returns:
      This builder for chaining.
    • addAllocatedRegions

      public ReportSummary.ComputeEngineFinding.Builder addAllocatedRegions(String value)
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Parameters:
      value - The allocatedRegions to add.
      Returns:
      This builder for chaining.
    • addAllAllocatedRegions

      public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedRegions(Iterable<String> values)
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Parameters:
      values - The allocatedRegions to add.
      Returns:
      This builder for chaining.
    • clearAllocatedRegions

      public ReportSummary.ComputeEngineFinding.Builder clearAllocatedRegions()
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Returns:
      This builder for chaining.
    • addAllocatedRegionsBytes

      public ReportSummary.ComputeEngineFinding.Builder addAllocatedRegionsBytes(com.google.protobuf.ByteString value)
       Set of regions in which the assets were allocated.
       
      repeated string allocated_regions = 1;
      Parameters:
      value - The bytes of the allocatedRegions to add.
      Returns:
      This builder for chaining.
    • getAllocatedAssetCount

      public long getAllocatedAssetCount()
       Count of assets which were allocated.
       
      int64 allocated_asset_count = 2;
      Specified by:
      getAllocatedAssetCount in interface ReportSummary.ComputeEngineFindingOrBuilder
      Returns:
      The allocatedAssetCount.
    • setAllocatedAssetCount

      public ReportSummary.ComputeEngineFinding.Builder setAllocatedAssetCount(long value)
       Count of assets which were allocated.
       
      int64 allocated_asset_count = 2;
      Parameters:
      value - The allocatedAssetCount to set.
      Returns:
      This builder for chaining.
    • clearAllocatedAssetCount

      public ReportSummary.ComputeEngineFinding.Builder clearAllocatedAssetCount()
       Count of assets which were allocated.
       
      int64 allocated_asset_count = 2;
      Returns:
      This builder for chaining.
    • getMachineSeriesAllocationsList

      public List<ReportSummary.MachineSeriesAllocation> getMachineSeriesAllocationsList()
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
      Specified by:
      getMachineSeriesAllocationsList in interface ReportSummary.ComputeEngineFindingOrBuilder
    • getMachineSeriesAllocationsCount

      public int getMachineSeriesAllocationsCount()
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
      Specified by:
      getMachineSeriesAllocationsCount in interface ReportSummary.ComputeEngineFindingOrBuilder
    • getMachineSeriesAllocations

      public ReportSummary.MachineSeriesAllocation getMachineSeriesAllocations(int index)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
      Specified by:
      getMachineSeriesAllocations in interface ReportSummary.ComputeEngineFindingOrBuilder
    • setMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • setMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • addMachineSeriesAllocations

       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • addMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • addMachineSeriesAllocations

       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • addMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • addAllMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder addAllMachineSeriesAllocations(Iterable<? extends ReportSummary.MachineSeriesAllocation> values)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • clearMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder clearMachineSeriesAllocations()
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • removeMachineSeriesAllocations

      public ReportSummary.ComputeEngineFinding.Builder removeMachineSeriesAllocations(int index)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • getMachineSeriesAllocationsBuilder

      public ReportSummary.MachineSeriesAllocation.Builder getMachineSeriesAllocationsBuilder(int index)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • getMachineSeriesAllocationsOrBuilder

      public ReportSummary.MachineSeriesAllocationOrBuilder getMachineSeriesAllocationsOrBuilder(int index)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
      Specified by:
      getMachineSeriesAllocationsOrBuilder in interface ReportSummary.ComputeEngineFindingOrBuilder
    • getMachineSeriesAllocationsOrBuilderList

      public List<? extends ReportSummary.MachineSeriesAllocationOrBuilder> getMachineSeriesAllocationsOrBuilderList()
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
      Specified by:
      getMachineSeriesAllocationsOrBuilderList in interface ReportSummary.ComputeEngineFindingOrBuilder
    • addMachineSeriesAllocationsBuilder

      public ReportSummary.MachineSeriesAllocation.Builder addMachineSeriesAllocationsBuilder()
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • addMachineSeriesAllocationsBuilder

      public ReportSummary.MachineSeriesAllocation.Builder addMachineSeriesAllocationsBuilder(int index)
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • getMachineSeriesAllocationsBuilderList

      public List<ReportSummary.MachineSeriesAllocation.Builder> getMachineSeriesAllocationsBuilderList()
       Distribution of assets based on the Machine Series.
       
      repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
    • getAllocatedDiskTypesList

      public List<PersistentDiskType> getAllocatedDiskTypesList()
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Specified by:
      getAllocatedDiskTypesList in interface ReportSummary.ComputeEngineFindingOrBuilder
      Returns:
      A list containing the allocatedDiskTypes.
    • getAllocatedDiskTypesCount

      public int getAllocatedDiskTypesCount()
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Specified by:
      getAllocatedDiskTypesCount in interface ReportSummary.ComputeEngineFindingOrBuilder
      Returns:
      The count of allocatedDiskTypes.
    • getAllocatedDiskTypes

      public PersistentDiskType getAllocatedDiskTypes(int index)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Specified by:
      getAllocatedDiskTypes in interface ReportSummary.ComputeEngineFindingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allocatedDiskTypes at the given index.
    • setAllocatedDiskTypes

      public ReportSummary.ComputeEngineFinding.Builder setAllocatedDiskTypes(int index, PersistentDiskType value)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Parameters:
      index - The index to set the value at.
      value - The allocatedDiskTypes to set.
      Returns:
      This builder for chaining.
    • addAllocatedDiskTypes

      public ReportSummary.ComputeEngineFinding.Builder addAllocatedDiskTypes(PersistentDiskType value)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Parameters:
      value - The allocatedDiskTypes to add.
      Returns:
      This builder for chaining.
    • addAllAllocatedDiskTypes

      public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedDiskTypes(Iterable<? extends PersistentDiskType> values)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Parameters:
      values - The allocatedDiskTypes to add.
      Returns:
      This builder for chaining.
    • clearAllocatedDiskTypes

      public ReportSummary.ComputeEngineFinding.Builder clearAllocatedDiskTypes()
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Returns:
      This builder for chaining.
    • getAllocatedDiskTypesValueList

      public List<Integer> getAllocatedDiskTypesValueList()
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Specified by:
      getAllocatedDiskTypesValueList in interface ReportSummary.ComputeEngineFindingOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for allocatedDiskTypes.
    • getAllocatedDiskTypesValue

      public int getAllocatedDiskTypesValue(int index)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Specified by:
      getAllocatedDiskTypesValue in interface ReportSummary.ComputeEngineFindingOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of allocatedDiskTypes at the given index.
    • setAllocatedDiskTypesValue

      public ReportSummary.ComputeEngineFinding.Builder setAllocatedDiskTypesValue(int index, int value)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for allocatedDiskTypes to set.
      Returns:
      This builder for chaining.
    • addAllocatedDiskTypesValue

      public ReportSummary.ComputeEngineFinding.Builder addAllocatedDiskTypesValue(int value)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Parameters:
      value - The enum numeric value on the wire for allocatedDiskTypes to add.
      Returns:
      This builder for chaining.
    • addAllAllocatedDiskTypesValue

      public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedDiskTypesValue(Iterable<Integer> values)
       Set of disk types allocated to assets.
       
      repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
      Parameters:
      values - The enum numeric values on the wire for allocatedDiskTypes to add.
      Returns:
      This builder for chaining.