Class ComputeEnginePreferences.Builder

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

public static final class ComputeEnginePreferences.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComputeEnginePreferences.Builder> implements ComputeEnginePreferencesOrBuilder
 The user preferences relating to Compute Engine target platform.
 
Protobuf type google.cloud.migrationcenter.v1.ComputeEnginePreferences
  • 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<ComputeEnginePreferences.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<ComputeEnginePreferences.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<ComputeEnginePreferences.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ComputeEnginePreferences.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<ComputeEnginePreferences.Builder>
      Throws:
      IOException
    • hasMachinePreferences

      public boolean hasMachinePreferences()
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
      Specified by:
      hasMachinePreferences in interface ComputeEnginePreferencesOrBuilder
      Returns:
      Whether the machinePreferences field is set.
    • getMachinePreferences

      public MachinePreferences getMachinePreferences()
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
      Specified by:
      getMachinePreferences in interface ComputeEnginePreferencesOrBuilder
      Returns:
      The machinePreferences.
    • setMachinePreferences

      public ComputeEnginePreferences.Builder setMachinePreferences(MachinePreferences value)
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
    • setMachinePreferences

      public ComputeEnginePreferences.Builder setMachinePreferences(MachinePreferences.Builder builderForValue)
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
    • mergeMachinePreferences

      public ComputeEnginePreferences.Builder mergeMachinePreferences(MachinePreferences value)
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
    • clearMachinePreferences

      public ComputeEnginePreferences.Builder clearMachinePreferences()
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
    • getMachinePreferencesBuilder

      public MachinePreferences.Builder getMachinePreferencesBuilder()
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
    • getMachinePreferencesOrBuilder

      public MachinePreferencesOrBuilder getMachinePreferencesOrBuilder()
       Preferences concerning the machine types to consider on Compute Engine.
       
      .google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
      Specified by:
      getMachinePreferencesOrBuilder in interface ComputeEnginePreferencesOrBuilder
    • getLicenseTypeValue

      public int getLicenseTypeValue()
       License type to consider when calculating costs for virtual machine
       insights and recommendations. If unspecified, costs are calculated
       based on the default licensing plan.
       
      .google.cloud.migrationcenter.v1.LicenseType license_type = 3;
      Specified by:
      getLicenseTypeValue in interface ComputeEnginePreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for licenseType.
    • setLicenseTypeValue

      public ComputeEnginePreferences.Builder setLicenseTypeValue(int value)
       License type to consider when calculating costs for virtual machine
       insights and recommendations. If unspecified, costs are calculated
       based on the default licensing plan.
       
      .google.cloud.migrationcenter.v1.LicenseType license_type = 3;
      Parameters:
      value - The enum numeric value on the wire for licenseType to set.
      Returns:
      This builder for chaining.
    • getLicenseType

      public LicenseType getLicenseType()
       License type to consider when calculating costs for virtual machine
       insights and recommendations. If unspecified, costs are calculated
       based on the default licensing plan.
       
      .google.cloud.migrationcenter.v1.LicenseType license_type = 3;
      Specified by:
      getLicenseType in interface ComputeEnginePreferencesOrBuilder
      Returns:
      The licenseType.
    • setLicenseType

      public ComputeEnginePreferences.Builder setLicenseType(LicenseType value)
       License type to consider when calculating costs for virtual machine
       insights and recommendations. If unspecified, costs are calculated
       based on the default licensing plan.
       
      .google.cloud.migrationcenter.v1.LicenseType license_type = 3;
      Parameters:
      value - The licenseType to set.
      Returns:
      This builder for chaining.
    • clearLicenseType

      public ComputeEnginePreferences.Builder clearLicenseType()
       License type to consider when calculating costs for virtual machine
       insights and recommendations. If unspecified, costs are calculated
       based on the default licensing plan.
       
      .google.cloud.migrationcenter.v1.LicenseType license_type = 3;
      Returns:
      This builder for chaining.