Class ComputeEnginePreferences.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public ComputeEnginePreferences.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEnginePreferences.Builder>
      • addRepeatedField

        public ComputeEnginePreferences.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEnginePreferences.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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;
      • 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;
      • 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.
      • setUnknownFields

        public final ComputeEnginePreferences.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEnginePreferences.Builder>
      • mergeUnknownFields

        public final ComputeEnginePreferences.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEnginePreferences.Builder>