Package com.google.cloud.compute.v1
Class InstanceProperties.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
- com.google.cloud.compute.v1.InstanceProperties.Builder
-
- All Implemented Interfaces:
InstancePropertiesOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- InstanceProperties
public static final class InstanceProperties.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder> implements InstancePropertiesOrBuilder
google.cloud.compute.v1.InstanceProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InstanceProperties.Builder
addAllDisks(Iterable<? extends AttachedDisk> values)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
An array of network access configurations for this interface.InstanceProperties.Builder
addAllResourcePolicies(Iterable<String> values)
Resource policies (names, not URLs) applied to instances created from these properties.InstanceProperties.Builder
addAllServiceAccounts(Iterable<? extends ServiceAccount> values)
A list of service accounts with specified scopes.InstanceProperties.Builder
addDisks(int index, AttachedDisk value)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
addDisks(int index, AttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
addDisks(AttachedDisk value)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
addDisks(AttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from these properties.AttachedDisk.Builder
addDisksBuilder()
An array of disks that are associated with the instances that are created from these properties.AttachedDisk.Builder
addDisksBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
addGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
addGuestAccelerators(AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
addGuestAccelerators(AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from these properties.AcceleratorConfig.Builder
addGuestAcceleratorsBuilder()
A list of guest accelerator cards' type and count to use for instances created from these properties.AcceleratorConfig.Builder
addGuestAcceleratorsBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
addNetworkInterfaces(int index, NetworkInterface value)
An array of network access configurations for this interface.InstanceProperties.Builder
addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.InstanceProperties.Builder
addNetworkInterfaces(NetworkInterface value)
An array of network access configurations for this interface.InstanceProperties.Builder
addNetworkInterfaces(NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.NetworkInterface.Builder
addNetworkInterfacesBuilder()
An array of network access configurations for this interface.NetworkInterface.Builder
addNetworkInterfacesBuilder(int index)
An array of network access configurations for this interface.InstanceProperties.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceProperties.Builder
addResourcePolicies(String value)
Resource policies (names, not URLs) applied to instances created from these properties.InstanceProperties.Builder
addResourcePoliciesBytes(com.google.protobuf.ByteString value)
Resource policies (names, not URLs) applied to instances created from these properties.InstanceProperties.Builder
addServiceAccounts(int index, ServiceAccount value)
A list of service accounts with specified scopes.InstanceProperties.Builder
addServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes.InstanceProperties.Builder
addServiceAccounts(ServiceAccount value)
A list of service accounts with specified scopes.InstanceProperties.Builder
addServiceAccounts(ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes.ServiceAccount.Builder
addServiceAccountsBuilder()
A list of service accounts with specified scopes.ServiceAccount.Builder
addServiceAccountsBuilder(int index)
A list of service accounts with specified scopes.InstanceProperties
build()
InstanceProperties
buildPartial()
InstanceProperties.Builder
clear()
InstanceProperties.Builder
clearAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.InstanceProperties.Builder
clearCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.InstanceProperties.Builder
clearConfidentialInstanceConfig()
Specifies the Confidential Instance options.InstanceProperties.Builder
clearDescription()
An optional text description for the instances that are created from these properties.InstanceProperties.Builder
clearDisks()
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InstanceProperties.Builder
clearGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
clearKeyRevocationActionType()
KeyRevocationActionType of the instance.InstanceProperties.Builder
clearLabels()
InstanceProperties.Builder
clearMachineType()
The machine type to use for instances that are created from these properties.InstanceProperties.Builder
clearMetadata()
The metadata key/value pairs to assign to instances that are created from these properties.InstanceProperties.Builder
clearMinCpuPlatform()
Minimum cpu/platform to be used by instances.InstanceProperties.Builder
clearNetworkInterfaces()
An array of network access configurations for this interface.InstanceProperties.Builder
clearNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InstanceProperties.Builder
clearPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs.InstanceProperties.Builder
clearReservationAffinity()
Specifies the reservations that instances can consume from.InstanceProperties.Builder
clearResourceManagerTags()
InstanceProperties.Builder
clearResourcePolicies()
Resource policies (names, not URLs) applied to instances created from these properties.InstanceProperties.Builder
clearScheduling()
Specifies the scheduling options for the instances that are created from these properties.InstanceProperties.Builder
clearServiceAccounts()
A list of service accounts with specified scopes.InstanceProperties.Builder
clearShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
clearTags()
A list of tags to apply to the instances that are created from these properties.InstanceProperties.Builder
clone()
boolean
containsLabels(String key)
Labels to apply to instances that are created from these properties.boolean
containsResourceManagerTags(String key)
Resource manager tags to be bound to the instance.AdvancedMachineFeatures
getAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.AdvancedMachineFeatures.Builder
getAdvancedMachineFeaturesBuilder()
Controls for advanced machine-related behavior features.AdvancedMachineFeaturesOrBuilder
getAdvancedMachineFeaturesOrBuilder()
Controls for advanced machine-related behavior features.boolean
getCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.ConfidentialInstanceConfig
getConfidentialInstanceConfig()
Specifies the Confidential Instance options.ConfidentialInstanceConfig.Builder
getConfidentialInstanceConfigBuilder()
Specifies the Confidential Instance options.ConfidentialInstanceConfigOrBuilder
getConfidentialInstanceConfigOrBuilder()
Specifies the Confidential Instance options.InstanceProperties
getDefaultInstanceForType()
String
getDescription()
An optional text description for the instances that are created from these properties.com.google.protobuf.ByteString
getDescriptionBytes()
An optional text description for the instances that are created from these properties.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
AttachedDisk
getDisks(int index)
An array of disks that are associated with the instances that are created from these properties.AttachedDisk.Builder
getDisksBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.List<AttachedDisk.Builder>
getDisksBuilderList()
An array of disks that are associated with the instances that are created from these properties.int
getDisksCount()
An array of disks that are associated with the instances that are created from these properties.List<AttachedDisk>
getDisksList()
An array of disks that are associated with the instances that are created from these properties.AttachedDiskOrBuilder
getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.List<? extends AttachedDiskOrBuilder>
getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from these properties.AcceleratorConfig
getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.AcceleratorConfig.Builder
getGuestAcceleratorsBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.List<AcceleratorConfig.Builder>
getGuestAcceleratorsBuilderList()
A list of guest accelerator cards' type and count to use for instances created from these properties.int
getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from these properties.List<AcceleratorConfig>
getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from these properties.AcceleratorConfigOrBuilder
getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.List<? extends AcceleratorConfigOrBuilder>
getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from these properties.String
getKeyRevocationActionType()
KeyRevocationActionType of the instance.com.google.protobuf.ByteString
getKeyRevocationActionTypeBytes()
KeyRevocationActionType of the instance.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels to apply to instances that are created from these properties.Map<String,String>
getLabelsMap()
Labels to apply to instances that are created from these properties.String
getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from these properties.String
getLabelsOrThrow(String key)
Labels to apply to instances that are created from these properties.String
getMachineType()
The machine type to use for instances that are created from these properties.com.google.protobuf.ByteString
getMachineTypeBytes()
The machine type to use for instances that are created from these properties.Metadata
getMetadata()
The metadata key/value pairs to assign to instances that are created from these properties.Metadata.Builder
getMetadataBuilder()
The metadata key/value pairs to assign to instances that are created from these properties.MetadataOrBuilder
getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from these properties.String
getMinCpuPlatform()
Minimum cpu/platform to be used by instances.com.google.protobuf.ByteString
getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances.Map<String,String>
getMutableLabels()
Deprecated.Map<String,String>
getMutableResourceManagerTags()
Deprecated.NetworkInterface
getNetworkInterfaces(int index)
An array of network access configurations for this interface.NetworkInterface.Builder
getNetworkInterfacesBuilder(int index)
An array of network access configurations for this interface.List<NetworkInterface.Builder>
getNetworkInterfacesBuilderList()
An array of network access configurations for this interface.int
getNetworkInterfacesCount()
An array of network access configurations for this interface.List<NetworkInterface>
getNetworkInterfacesList()
An array of network access configurations for this interface.NetworkInterfaceOrBuilder
getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.List<? extends NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.NetworkPerformanceConfig
getNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.NetworkPerformanceConfig.Builder
getNetworkPerformanceConfigBuilder()
Note that for MachineImage, this is not supported yet.NetworkPerformanceConfigOrBuilder
getNetworkPerformanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.String
getPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs.com.google.protobuf.ByteString
getPrivateIpv6GoogleAccessBytes()
The private IPv6 google access type for VMs.ReservationAffinity
getReservationAffinity()
Specifies the reservations that instances can consume from.ReservationAffinity.Builder
getReservationAffinityBuilder()
Specifies the reservations that instances can consume from.ReservationAffinityOrBuilder
getReservationAffinityOrBuilder()
Specifies the reservations that instances can consume from.Map<String,String>
getResourceManagerTags()
Deprecated.int
getResourceManagerTagsCount()
Resource manager tags to be bound to the instance.Map<String,String>
getResourceManagerTagsMap()
Resource manager tags to be bound to the instance.String
getResourceManagerTagsOrDefault(String key, String defaultValue)
Resource manager tags to be bound to the instance.String
getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the instance.String
getResourcePolicies(int index)
Resource policies (names, not URLs) applied to instances created from these properties.com.google.protobuf.ByteString
getResourcePoliciesBytes(int index)
Resource policies (names, not URLs) applied to instances created from these properties.int
getResourcePoliciesCount()
Resource policies (names, not URLs) applied to instances created from these properties.com.google.protobuf.ProtocolStringList
getResourcePoliciesList()
Resource policies (names, not URLs) applied to instances created from these properties.Scheduling
getScheduling()
Specifies the scheduling options for the instances that are created from these properties.Scheduling.Builder
getSchedulingBuilder()
Specifies the scheduling options for the instances that are created from these properties.SchedulingOrBuilder
getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from these properties.ServiceAccount
getServiceAccounts(int index)
A list of service accounts with specified scopes.ServiceAccount.Builder
getServiceAccountsBuilder(int index)
A list of service accounts with specified scopes.List<ServiceAccount.Builder>
getServiceAccountsBuilderList()
A list of service accounts with specified scopes.int
getServiceAccountsCount()
A list of service accounts with specified scopes.List<ServiceAccount>
getServiceAccountsList()
A list of service accounts with specified scopes.ServiceAccountOrBuilder
getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes.List<? extends ServiceAccountOrBuilder>
getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes.ShieldedInstanceConfig
getShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.ShieldedInstanceConfig.Builder
getShieldedInstanceConfigBuilder()
Note that for MachineImage, this is not supported yet.ShieldedInstanceConfigOrBuilder
getShieldedInstanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.Tags
getTags()
A list of tags to apply to the instances that are created from these properties.Tags.Builder
getTagsBuilder()
A list of tags to apply to the instances that are created from these properties.TagsOrBuilder
getTagsOrBuilder()
A list of tags to apply to the instances that are created from these properties.boolean
hasAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.boolean
hasCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.boolean
hasConfidentialInstanceConfig()
Specifies the Confidential Instance options.boolean
hasDescription()
An optional text description for the instances that are created from these properties.boolean
hasKeyRevocationActionType()
KeyRevocationActionType of the instance.boolean
hasMachineType()
The machine type to use for instances that are created from these properties.boolean
hasMetadata()
The metadata key/value pairs to assign to instances that are created from these properties.boolean
hasMinCpuPlatform()
Minimum cpu/platform to be used by instances.boolean
hasNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.boolean
hasPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs.boolean
hasReservationAffinity()
Specifies the reservations that instances can consume from.boolean
hasScheduling()
Specifies the scheduling options for the instances that are created from these properties.boolean
hasShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.boolean
hasTags()
A list of tags to apply to the instances that are created from these properties.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
InstanceProperties.Builder
mergeAdvancedMachineFeatures(AdvancedMachineFeatures value)
Controls for advanced machine-related behavior features.InstanceProperties.Builder
mergeConfidentialInstanceConfig(ConfidentialInstanceConfig value)
Specifies the Confidential Instance options.InstanceProperties.Builder
mergeFrom(InstanceProperties other)
InstanceProperties.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InstanceProperties.Builder
mergeFrom(com.google.protobuf.Message other)
InstanceProperties.Builder
mergeMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from these properties.InstanceProperties.Builder
mergeNetworkPerformanceConfig(NetworkPerformanceConfig value)
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
mergeReservationAffinity(ReservationAffinity value)
Specifies the reservations that instances can consume from.InstanceProperties.Builder
mergeScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from these properties.InstanceProperties.Builder
mergeShieldedInstanceConfig(ShieldedInstanceConfig value)
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
mergeTags(Tags value)
A list of tags to apply to the instances that are created from these properties.InstanceProperties.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InstanceProperties.Builder
putAllLabels(Map<String,String> values)
Labels to apply to instances that are created from these properties.InstanceProperties.Builder
putAllResourceManagerTags(Map<String,String> values)
Resource manager tags to be bound to the instance.InstanceProperties.Builder
putLabels(String key, String value)
Labels to apply to instances that are created from these properties.InstanceProperties.Builder
putResourceManagerTags(String key, String value)
Resource manager tags to be bound to the instance.InstanceProperties.Builder
removeDisks(int index)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
removeGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
removeLabels(String key)
Labels to apply to instances that are created from these properties.InstanceProperties.Builder
removeNetworkInterfaces(int index)
An array of network access configurations for this interface.InstanceProperties.Builder
removeResourceManagerTags(String key)
Resource manager tags to be bound to the instance.InstanceProperties.Builder
removeServiceAccounts(int index)
A list of service accounts with specified scopes.InstanceProperties.Builder
setAdvancedMachineFeatures(AdvancedMachineFeatures value)
Controls for advanced machine-related behavior features.InstanceProperties.Builder
setAdvancedMachineFeatures(AdvancedMachineFeatures.Builder builderForValue)
Controls for advanced machine-related behavior features.InstanceProperties.Builder
setCanIpForward(boolean value)
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.InstanceProperties.Builder
setConfidentialInstanceConfig(ConfidentialInstanceConfig value)
Specifies the Confidential Instance options.InstanceProperties.Builder
setConfidentialInstanceConfig(ConfidentialInstanceConfig.Builder builderForValue)
Specifies the Confidential Instance options.InstanceProperties.Builder
setDescription(String value)
An optional text description for the instances that are created from these properties.InstanceProperties.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional text description for the instances that are created from these properties.InstanceProperties.Builder
setDisks(int index, AttachedDisk value)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
setDisks(int index, AttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from these properties.InstanceProperties.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceProperties.Builder
setGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from these properties.InstanceProperties.Builder
setKeyRevocationActionType(String value)
KeyRevocationActionType of the instance.InstanceProperties.Builder
setKeyRevocationActionTypeBytes(com.google.protobuf.ByteString value)
KeyRevocationActionType of the instance.InstanceProperties.Builder
setMachineType(String value)
The machine type to use for instances that are created from these properties.InstanceProperties.Builder
setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to use for instances that are created from these properties.InstanceProperties.Builder
setMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from these properties.InstanceProperties.Builder
setMetadata(Metadata.Builder builderForValue)
The metadata key/value pairs to assign to instances that are created from these properties.InstanceProperties.Builder
setMinCpuPlatform(String value)
Minimum cpu/platform to be used by instances.InstanceProperties.Builder
setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
Minimum cpu/platform to be used by instances.InstanceProperties.Builder
setNetworkInterfaces(int index, NetworkInterface value)
An array of network access configurations for this interface.InstanceProperties.Builder
setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.InstanceProperties.Builder
setNetworkPerformanceConfig(NetworkPerformanceConfig value)
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
setNetworkPerformanceConfig(NetworkPerformanceConfig.Builder builderForValue)
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
setPrivateIpv6GoogleAccess(String value)
The private IPv6 google access type for VMs.InstanceProperties.Builder
setPrivateIpv6GoogleAccessBytes(com.google.protobuf.ByteString value)
The private IPv6 google access type for VMs.InstanceProperties.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InstanceProperties.Builder
setReservationAffinity(ReservationAffinity value)
Specifies the reservations that instances can consume from.InstanceProperties.Builder
setReservationAffinity(ReservationAffinity.Builder builderForValue)
Specifies the reservations that instances can consume from.InstanceProperties.Builder
setResourcePolicies(int index, String value)
Resource policies (names, not URLs) applied to instances created from these properties.InstanceProperties.Builder
setScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from these properties.InstanceProperties.Builder
setScheduling(Scheduling.Builder builderForValue)
Specifies the scheduling options for the instances that are created from these properties.InstanceProperties.Builder
setServiceAccounts(int index, ServiceAccount value)
A list of service accounts with specified scopes.InstanceProperties.Builder
setServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes.InstanceProperties.Builder
setShieldedInstanceConfig(ShieldedInstanceConfig value)
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)
Note that for MachineImage, this is not supported yet.InstanceProperties.Builder
setTags(Tags value)
A list of tags to apply to the instances that are created from these properties.InstanceProperties.Builder
setTags(Tags.Builder builderForValue)
A list of tags to apply to the instances that are created from these properties.InstanceProperties.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
clear
public InstanceProperties.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
getDefaultInstanceForType
public InstanceProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceProperties build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceProperties buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceProperties.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
setField
public InstanceProperties.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
clearField
public InstanceProperties.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
clearOneof
public InstanceProperties.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
setRepeatedField
public InstanceProperties.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
addRepeatedField
public InstanceProperties.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
mergeFrom
public InstanceProperties.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InstanceProperties.Builder>
-
mergeFrom
public InstanceProperties.Builder mergeFrom(InstanceProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
mergeFrom
public InstanceProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InstanceProperties.Builder>
- Throws:
IOException
-
hasAdvancedMachineFeatures
public boolean hasAdvancedMachineFeatures()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
- Specified by:
hasAdvancedMachineFeatures
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the advancedMachineFeatures field is set.
-
getAdvancedMachineFeatures
public AdvancedMachineFeatures getAdvancedMachineFeatures()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
- Specified by:
getAdvancedMachineFeatures
in interfaceInstancePropertiesOrBuilder
- Returns:
- The advancedMachineFeatures.
-
setAdvancedMachineFeatures
public InstanceProperties.Builder setAdvancedMachineFeatures(AdvancedMachineFeatures value)
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
setAdvancedMachineFeatures
public InstanceProperties.Builder setAdvancedMachineFeatures(AdvancedMachineFeatures.Builder builderForValue)
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
mergeAdvancedMachineFeatures
public InstanceProperties.Builder mergeAdvancedMachineFeatures(AdvancedMachineFeatures value)
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
clearAdvancedMachineFeatures
public InstanceProperties.Builder clearAdvancedMachineFeatures()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
getAdvancedMachineFeaturesBuilder
public AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
getAdvancedMachineFeaturesOrBuilder
public AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
- Specified by:
getAdvancedMachineFeaturesOrBuilder
in interfaceInstancePropertiesOrBuilder
-
hasCanIpForward
public boolean hasCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;
- Specified by:
hasCanIpForward
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the canIpForward field is set.
-
getCanIpForward
public boolean getCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;
- Specified by:
getCanIpForward
in interfaceInstancePropertiesOrBuilder
- Returns:
- The canIpForward.
-
setCanIpForward
public InstanceProperties.Builder setCanIpForward(boolean value)
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;
- Parameters:
value
- The canIpForward to set.- Returns:
- This builder for chaining.
-
clearCanIpForward
public InstanceProperties.Builder clearCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;
- Returns:
- This builder for chaining.
-
hasConfidentialInstanceConfig
public boolean hasConfidentialInstanceConfig()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
- Specified by:
hasConfidentialInstanceConfig
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the confidentialInstanceConfig field is set.
-
getConfidentialInstanceConfig
public ConfidentialInstanceConfig getConfidentialInstanceConfig()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
- Specified by:
getConfidentialInstanceConfig
in interfaceInstancePropertiesOrBuilder
- Returns:
- The confidentialInstanceConfig.
-
setConfidentialInstanceConfig
public InstanceProperties.Builder setConfidentialInstanceConfig(ConfidentialInstanceConfig value)
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
setConfidentialInstanceConfig
public InstanceProperties.Builder setConfidentialInstanceConfig(ConfidentialInstanceConfig.Builder builderForValue)
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
mergeConfidentialInstanceConfig
public InstanceProperties.Builder mergeConfidentialInstanceConfig(ConfidentialInstanceConfig value)
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
clearConfidentialInstanceConfig
public InstanceProperties.Builder clearConfidentialInstanceConfig()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
getConfidentialInstanceConfigBuilder
public ConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
getConfidentialInstanceConfigOrBuilder
public ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
- Specified by:
getConfidentialInstanceConfigOrBuilder
in interfaceInstancePropertiesOrBuilder
-
hasDescription
public boolean hasDescription()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceInstancePropertiesOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceInstancePropertiesOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public InstanceProperties.Builder setDescription(String value)
An optional text description for the instances that are created from these properties.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public InstanceProperties.Builder clearDescription()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public InstanceProperties.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional text description for the instances that are created from these properties.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDisksList
public List<AttachedDisk> getDisksList()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
- Specified by:
getDisksList
in interfaceInstancePropertiesOrBuilder
-
getDisksCount
public int getDisksCount()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
- Specified by:
getDisksCount
in interfaceInstancePropertiesOrBuilder
-
getDisks
public AttachedDisk getDisks(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
- Specified by:
getDisks
in interfaceInstancePropertiesOrBuilder
-
setDisks
public InstanceProperties.Builder setDisks(int index, AttachedDisk value)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
setDisks
public InstanceProperties.Builder setDisks(int index, AttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public InstanceProperties.Builder addDisks(AttachedDisk value)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public InstanceProperties.Builder addDisks(int index, AttachedDisk value)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public InstanceProperties.Builder addDisks(AttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public InstanceProperties.Builder addDisks(int index, AttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addAllDisks
public InstanceProperties.Builder addAllDisks(Iterable<? extends AttachedDisk> values)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
clearDisks
public InstanceProperties.Builder clearDisks()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
removeDisks
public InstanceProperties.Builder removeDisks(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getDisksBuilder
public AttachedDisk.Builder getDisksBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getDisksOrBuilder
public AttachedDiskOrBuilder getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
- Specified by:
getDisksOrBuilder
in interfaceInstancePropertiesOrBuilder
-
getDisksOrBuilderList
public List<? extends AttachedDiskOrBuilder> getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
- Specified by:
getDisksOrBuilderList
in interfaceInstancePropertiesOrBuilder
-
addDisksBuilder
public AttachedDisk.Builder addDisksBuilder()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisksBuilder
public AttachedDisk.Builder addDisksBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getDisksBuilderList
public List<AttachedDisk.Builder> getDisksBuilderList()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getGuestAcceleratorsList
public List<AcceleratorConfig> getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsList
in interfaceInstancePropertiesOrBuilder
-
getGuestAcceleratorsCount
public int getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsCount
in interfaceInstancePropertiesOrBuilder
-
getGuestAccelerators
public AcceleratorConfig getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAccelerators
in interfaceInstancePropertiesOrBuilder
-
setGuestAccelerators
public InstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
setGuestAccelerators
public InstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public InstanceProperties.Builder addGuestAccelerators(AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public InstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public InstanceProperties.Builder addGuestAccelerators(AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public InstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addAllGuestAccelerators
public InstanceProperties.Builder addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
clearGuestAccelerators
public InstanceProperties.Builder clearGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
removeGuestAccelerators
public InstanceProperties.Builder removeGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
getGuestAcceleratorsBuilder
public AcceleratorConfig.Builder getGuestAcceleratorsBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
getGuestAcceleratorsOrBuilder
public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsOrBuilder
in interfaceInstancePropertiesOrBuilder
-
getGuestAcceleratorsOrBuilderList
public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsOrBuilderList
in interfaceInstancePropertiesOrBuilder
-
addGuestAcceleratorsBuilder
public AcceleratorConfig.Builder addGuestAcceleratorsBuilder()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAcceleratorsBuilder
public AcceleratorConfig.Builder addGuestAcceleratorsBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
getGuestAcceleratorsBuilderList
public List<AcceleratorConfig.Builder> getGuestAcceleratorsBuilderList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
hasKeyRevocationActionType
public boolean hasKeyRevocationActionType()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Specified by:
hasKeyRevocationActionType
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the keyRevocationActionType field is set.
-
getKeyRevocationActionType
public String getKeyRevocationActionType()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Specified by:
getKeyRevocationActionType
in interfaceInstancePropertiesOrBuilder
- Returns:
- The keyRevocationActionType.
-
getKeyRevocationActionTypeBytes
public com.google.protobuf.ByteString getKeyRevocationActionTypeBytes()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Specified by:
getKeyRevocationActionTypeBytes
in interfaceInstancePropertiesOrBuilder
- Returns:
- The bytes for keyRevocationActionType.
-
setKeyRevocationActionType
public InstanceProperties.Builder setKeyRevocationActionType(String value)
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Parameters:
value
- The keyRevocationActionType to set.- Returns:
- This builder for chaining.
-
clearKeyRevocationActionType
public InstanceProperties.Builder clearKeyRevocationActionType()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Returns:
- This builder for chaining.
-
setKeyRevocationActionTypeBytes
public InstanceProperties.Builder setKeyRevocationActionTypeBytes(com.google.protobuf.ByteString value)
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Parameters:
value
- The bytes for keyRevocationActionType to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:InstancePropertiesOrBuilder
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
- Specified by:
getLabelsCount
in interfaceInstancePropertiesOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
- Specified by:
containsLabels
in interfaceInstancePropertiesOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceInstancePropertiesOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
- Specified by:
getLabelsMap
in interfaceInstancePropertiesOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrDefault
in interfaceInstancePropertiesOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrThrow
in interfaceInstancePropertiesOrBuilder
-
clearLabels
public InstanceProperties.Builder clearLabels()
-
removeLabels
public InstanceProperties.Builder removeLabels(String key)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public InstanceProperties.Builder putLabels(String key, String value)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
-
putAllLabels
public InstanceProperties.Builder putAllLabels(Map<String,String> values)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;
-
hasMachineType
public boolean hasMachineType()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;
- Specified by:
hasMachineType
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the machineType field is set.
-
getMachineType
public String getMachineType()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;
- Specified by:
getMachineType
in interfaceInstancePropertiesOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;
- Specified by:
getMachineTypeBytes
in interfaceInstancePropertiesOrBuilder
- Returns:
- The bytes for machineType.
-
setMachineType
public InstanceProperties.Builder setMachineType(String value)
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;
- Parameters:
value
- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
public InstanceProperties.Builder clearMachineType()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;
- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public InstanceProperties.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;
- Parameters:
value
- The bytes for machineType to set.- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
- Specified by:
hasMetadata
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
- Specified by:
getMetadata
in interfaceInstancePropertiesOrBuilder
- Returns:
- The metadata.
-
setMetadata
public InstanceProperties.Builder setMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
setMetadata
public InstanceProperties.Builder setMetadata(Metadata.Builder builderForValue)
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
mergeMetadata
public InstanceProperties.Builder mergeMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
clearMetadata
public InstanceProperties.Builder clearMetadata()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
- Specified by:
getMetadataOrBuilder
in interfaceInstancePropertiesOrBuilder
-
hasMinCpuPlatform
public boolean hasMinCpuPlatform()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Specified by:
hasMinCpuPlatform
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the minCpuPlatform field is set.
-
getMinCpuPlatform
public String getMinCpuPlatform()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Specified by:
getMinCpuPlatform
in interfaceInstancePropertiesOrBuilder
- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Specified by:
getMinCpuPlatformBytes
in interfaceInstancePropertiesOrBuilder
- Returns:
- The bytes for minCpuPlatform.
-
setMinCpuPlatform
public InstanceProperties.Builder setMinCpuPlatform(String value)
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Parameters:
value
- The minCpuPlatform to set.- Returns:
- This builder for chaining.
-
clearMinCpuPlatform
public InstanceProperties.Builder clearMinCpuPlatform()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Returns:
- This builder for chaining.
-
setMinCpuPlatformBytes
public InstanceProperties.Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Parameters:
value
- The bytes for minCpuPlatform to set.- Returns:
- This builder for chaining.
-
getNetworkInterfacesList
public List<NetworkInterface> getNetworkInterfacesList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesList
in interfaceInstancePropertiesOrBuilder
-
getNetworkInterfacesCount
public int getNetworkInterfacesCount()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesCount
in interfaceInstancePropertiesOrBuilder
-
getNetworkInterfaces
public NetworkInterface getNetworkInterfaces(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfaces
in interfaceInstancePropertiesOrBuilder
-
setNetworkInterfaces
public InstanceProperties.Builder setNetworkInterfaces(int index, NetworkInterface value)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
setNetworkInterfaces
public InstanceProperties.Builder setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public InstanceProperties.Builder addNetworkInterfaces(NetworkInterface value)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public InstanceProperties.Builder addNetworkInterfaces(int index, NetworkInterface value)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public InstanceProperties.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public InstanceProperties.Builder addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addAllNetworkInterfaces
public InstanceProperties.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
clearNetworkInterfaces
public InstanceProperties.Builder clearNetworkInterfaces()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
removeNetworkInterfaces
public InstanceProperties.Builder removeNetworkInterfaces(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesBuilder
public NetworkInterface.Builder getNetworkInterfacesBuilder(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesOrBuilder
public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesOrBuilder
in interfaceInstancePropertiesOrBuilder
-
getNetworkInterfacesOrBuilderList
public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesOrBuilderList
in interfaceInstancePropertiesOrBuilder
-
addNetworkInterfacesBuilder
public NetworkInterface.Builder addNetworkInterfacesBuilder()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfacesBuilder
public NetworkInterface.Builder addNetworkInterfacesBuilder(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesBuilderList
public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
hasNetworkPerformanceConfig
public boolean hasNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
- Specified by:
hasNetworkPerformanceConfig
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the networkPerformanceConfig field is set.
-
getNetworkPerformanceConfig
public NetworkPerformanceConfig getNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
- Specified by:
getNetworkPerformanceConfig
in interfaceInstancePropertiesOrBuilder
- Returns:
- The networkPerformanceConfig.
-
setNetworkPerformanceConfig
public InstanceProperties.Builder setNetworkPerformanceConfig(NetworkPerformanceConfig value)
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
setNetworkPerformanceConfig
public InstanceProperties.Builder setNetworkPerformanceConfig(NetworkPerformanceConfig.Builder builderForValue)
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
mergeNetworkPerformanceConfig
public InstanceProperties.Builder mergeNetworkPerformanceConfig(NetworkPerformanceConfig value)
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
clearNetworkPerformanceConfig
public InstanceProperties.Builder clearNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
getNetworkPerformanceConfigBuilder
public NetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
getNetworkPerformanceConfigOrBuilder
public NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
- Specified by:
getNetworkPerformanceConfigOrBuilder
in interfaceInstancePropertiesOrBuilder
-
hasPrivateIpv6GoogleAccess
public boolean hasPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
- Specified by:
hasPrivateIpv6GoogleAccess
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the privateIpv6GoogleAccess field is set.
-
getPrivateIpv6GoogleAccess
public String getPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
- Specified by:
getPrivateIpv6GoogleAccess
in interfaceInstancePropertiesOrBuilder
- Returns:
- The privateIpv6GoogleAccess.
-
getPrivateIpv6GoogleAccessBytes
public com.google.protobuf.ByteString getPrivateIpv6GoogleAccessBytes()
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
- Specified by:
getPrivateIpv6GoogleAccessBytes
in interfaceInstancePropertiesOrBuilder
- Returns:
- The bytes for privateIpv6GoogleAccess.
-
setPrivateIpv6GoogleAccess
public InstanceProperties.Builder setPrivateIpv6GoogleAccess(String value)
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
- Parameters:
value
- The privateIpv6GoogleAccess to set.- Returns:
- This builder for chaining.
-
clearPrivateIpv6GoogleAccess
public InstanceProperties.Builder clearPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
- Returns:
- This builder for chaining.
-
setPrivateIpv6GoogleAccessBytes
public InstanceProperties.Builder setPrivateIpv6GoogleAccessBytes(com.google.protobuf.ByteString value)
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
- Parameters:
value
- The bytes for privateIpv6GoogleAccess to set.- Returns:
- This builder for chaining.
-
hasReservationAffinity
public boolean hasReservationAffinity()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
- Specified by:
hasReservationAffinity
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the reservationAffinity field is set.
-
getReservationAffinity
public ReservationAffinity getReservationAffinity()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
- Specified by:
getReservationAffinity
in interfaceInstancePropertiesOrBuilder
- Returns:
- The reservationAffinity.
-
setReservationAffinity
public InstanceProperties.Builder setReservationAffinity(ReservationAffinity value)
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
setReservationAffinity
public InstanceProperties.Builder setReservationAffinity(ReservationAffinity.Builder builderForValue)
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
mergeReservationAffinity
public InstanceProperties.Builder mergeReservationAffinity(ReservationAffinity value)
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
clearReservationAffinity
public InstanceProperties.Builder clearReservationAffinity()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
getReservationAffinityBuilder
public ReservationAffinity.Builder getReservationAffinityBuilder()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
getReservationAffinityOrBuilder
public ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
- Specified by:
getReservationAffinityOrBuilder
in interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsCount
public int getResourceManagerTagsCount()
Description copied from interface:InstancePropertiesOrBuilder
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
- Specified by:
getResourceManagerTagsCount
in interfaceInstancePropertiesOrBuilder
-
containsResourceManagerTags
public boolean containsResourceManagerTags(String key)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
- Specified by:
containsResourceManagerTags
in interfaceInstancePropertiesOrBuilder
-
getResourceManagerTags
@Deprecated public Map<String,String> getResourceManagerTags()
Deprecated.UsegetResourceManagerTagsMap()
instead.- Specified by:
getResourceManagerTags
in interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsMap
public Map<String,String> getResourceManagerTagsMap()
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
- Specified by:
getResourceManagerTagsMap
in interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsOrDefault
public String getResourceManagerTagsOrDefault(String key, String defaultValue)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
- Specified by:
getResourceManagerTagsOrDefault
in interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsOrThrow
public String getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
- Specified by:
getResourceManagerTagsOrThrow
in interfaceInstancePropertiesOrBuilder
-
clearResourceManagerTags
public InstanceProperties.Builder clearResourceManagerTags()
-
removeResourceManagerTags
public InstanceProperties.Builder removeResourceManagerTags(String key)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
-
getMutableResourceManagerTags
@Deprecated public Map<String,String> getMutableResourceManagerTags()
Deprecated.Use alternate mutation accessors instead.
-
putResourceManagerTags
public InstanceProperties.Builder putResourceManagerTags(String key, String value)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
-
putAllResourceManagerTags
public InstanceProperties.Builder putAllResourceManagerTags(Map<String,String> values)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;
-
getResourcePoliciesList
public com.google.protobuf.ProtocolStringList getResourcePoliciesList()
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Specified by:
getResourcePoliciesList
in interfaceInstancePropertiesOrBuilder
- Returns:
- A list containing the resourcePolicies.
-
getResourcePoliciesCount
public int getResourcePoliciesCount()
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Specified by:
getResourcePoliciesCount
in interfaceInstancePropertiesOrBuilder
- Returns:
- The count of resourcePolicies.
-
getResourcePolicies
public String getResourcePolicies(int index)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Specified by:
getResourcePolicies
in interfaceInstancePropertiesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The resourcePolicies at the given index.
-
getResourcePoliciesBytes
public com.google.protobuf.ByteString getResourcePoliciesBytes(int index)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Specified by:
getResourcePoliciesBytes
in interfaceInstancePropertiesOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the resourcePolicies at the given index.
-
setResourcePolicies
public InstanceProperties.Builder setResourcePolicies(int index, String value)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Parameters:
index
- The index to set the value at.value
- The resourcePolicies to set.- Returns:
- This builder for chaining.
-
addResourcePolicies
public InstanceProperties.Builder addResourcePolicies(String value)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Parameters:
value
- The resourcePolicies to add.- Returns:
- This builder for chaining.
-
addAllResourcePolicies
public InstanceProperties.Builder addAllResourcePolicies(Iterable<String> values)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Parameters:
values
- The resourcePolicies to add.- Returns:
- This builder for chaining.
-
clearResourcePolicies
public InstanceProperties.Builder clearResourcePolicies()
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Returns:
- This builder for chaining.
-
addResourcePoliciesBytes
public InstanceProperties.Builder addResourcePoliciesBytes(com.google.protobuf.ByteString value)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;
- Parameters:
value
- The bytes of the resourcePolicies to add.- Returns:
- This builder for chaining.
-
hasScheduling
public boolean hasScheduling()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
hasScheduling
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the scheduling field is set.
-
getScheduling
public Scheduling getScheduling()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
getScheduling
in interfaceInstancePropertiesOrBuilder
- Returns:
- The scheduling.
-
setScheduling
public InstanceProperties.Builder setScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
setScheduling
public InstanceProperties.Builder setScheduling(Scheduling.Builder builderForValue)
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
mergeScheduling
public InstanceProperties.Builder mergeScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
clearScheduling
public InstanceProperties.Builder clearScheduling()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getSchedulingBuilder
public Scheduling.Builder getSchedulingBuilder()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getSchedulingOrBuilder
public SchedulingOrBuilder getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
getSchedulingOrBuilder
in interfaceInstancePropertiesOrBuilder
-
getServiceAccountsList
public List<ServiceAccount> getServiceAccountsList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsList
in interfaceInstancePropertiesOrBuilder
-
getServiceAccountsCount
public int getServiceAccountsCount()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsCount
in interfaceInstancePropertiesOrBuilder
-
getServiceAccounts
public ServiceAccount getServiceAccounts(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccounts
in interfaceInstancePropertiesOrBuilder
-
setServiceAccounts
public InstanceProperties.Builder setServiceAccounts(int index, ServiceAccount value)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
setServiceAccounts
public InstanceProperties.Builder setServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public InstanceProperties.Builder addServiceAccounts(ServiceAccount value)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public InstanceProperties.Builder addServiceAccounts(int index, ServiceAccount value)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public InstanceProperties.Builder addServiceAccounts(ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public InstanceProperties.Builder addServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addAllServiceAccounts
public InstanceProperties.Builder addAllServiceAccounts(Iterable<? extends ServiceAccount> values)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
clearServiceAccounts
public InstanceProperties.Builder clearServiceAccounts()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
removeServiceAccounts
public InstanceProperties.Builder removeServiceAccounts(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
getServiceAccountsBuilder
public ServiceAccount.Builder getServiceAccountsBuilder(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
getServiceAccountsOrBuilder
public ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsOrBuilder
in interfaceInstancePropertiesOrBuilder
-
getServiceAccountsOrBuilderList
public List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsOrBuilderList
in interfaceInstancePropertiesOrBuilder
-
addServiceAccountsBuilder
public ServiceAccount.Builder addServiceAccountsBuilder()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccountsBuilder
public ServiceAccount.Builder addServiceAccountsBuilder(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
getServiceAccountsBuilderList
public List<ServiceAccount.Builder> getServiceAccountsBuilderList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
- Specified by:
hasShieldedInstanceConfig
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
public ShieldedInstanceConfig getShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
- Specified by:
getShieldedInstanceConfig
in interfaceInstancePropertiesOrBuilder
- Returns:
- The shieldedInstanceConfig.
-
setShieldedInstanceConfig
public InstanceProperties.Builder setShieldedInstanceConfig(ShieldedInstanceConfig value)
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
setShieldedInstanceConfig
public InstanceProperties.Builder setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
mergeShieldedInstanceConfig
public InstanceProperties.Builder mergeShieldedInstanceConfig(ShieldedInstanceConfig value)
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
clearShieldedInstanceConfig
public InstanceProperties.Builder clearShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
getShieldedInstanceConfigBuilder
public ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
getShieldedInstanceConfigOrBuilder
public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
- Specified by:
getShieldedInstanceConfigOrBuilder
in interfaceInstancePropertiesOrBuilder
-
hasTags
public boolean hasTags()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
- Specified by:
hasTags
in interfaceInstancePropertiesOrBuilder
- Returns:
- Whether the tags field is set.
-
getTags
public Tags getTags()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
- Specified by:
getTags
in interfaceInstancePropertiesOrBuilder
- Returns:
- The tags.
-
setTags
public InstanceProperties.Builder setTags(Tags value)
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
setTags
public InstanceProperties.Builder setTags(Tags.Builder builderForValue)
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
mergeTags
public InstanceProperties.Builder mergeTags(Tags value)
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
clearTags
public InstanceProperties.Builder clearTags()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
getTagsBuilder
public Tags.Builder getTagsBuilder()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
getTagsOrBuilder
public TagsOrBuilder getTagsOrBuilder()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
- Specified by:
getTagsOrBuilder
in interfaceInstancePropertiesOrBuilder
-
setUnknownFields
public final InstanceProperties.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
mergeUnknownFields
public final InstanceProperties.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceProperties.Builder>
-
-