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 Summary
Modifier and TypeMethodDescriptionbuild()clear()License type to consider when calculating costs for virtual machine insights and recommendations.Preferences concerning the machine types to consider on Compute Engine.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorLicense type to consider when calculating costs for virtual machine insights and recommendations.intLicense type to consider when calculating costs for virtual machine insights and recommendations.Preferences concerning the machine types to consider on Compute Engine.Preferences concerning the machine types to consider on Compute Engine.Preferences concerning the machine types to consider on Compute Engine.booleanPreferences concerning the machine types to consider on Compute Engine.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Preferences concerning the machine types to consider on Compute Engine.setLicenseType(LicenseType value) License type to consider when calculating costs for virtual machine insights and recommendations.setLicenseTypeValue(int value) License type to consider when calculating costs for virtual machine insights and recommendations.Preferences concerning the machine types to consider on Compute Engine.setMachinePreferences(MachinePreferences.Builder builderForValue) Preferences concerning the machine types to consider on Compute Engine.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ComputeEnginePreferences.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ComputeEnginePreferences.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ComputeEnginePreferences.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeEnginePreferences.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasMachinePreferencesin interfaceComputeEnginePreferencesOrBuilder- Returns:
- Whether the machinePreferences field is set.
-
getMachinePreferences
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;- Specified by:
getMachinePreferencesin interfaceComputeEnginePreferencesOrBuilder- Returns:
- The machinePreferences.
-
setMachinePreferences
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
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2; -
clearMachinePreferences
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2; -
getMachinePreferencesBuilder
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2; -
getMachinePreferencesOrBuilder
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;- Specified by:
getMachinePreferencesOrBuilderin interfaceComputeEnginePreferencesOrBuilder
-
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:
getLicenseTypeValuein interfaceComputeEnginePreferencesOrBuilder- Returns:
- The enum numeric value on the wire for licenseType.
-
setLicenseTypeValue
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
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:
getLicenseTypein interfaceComputeEnginePreferencesOrBuilder- Returns:
- The licenseType.
-
setLicenseType
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
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.
-