Package com.google.cloud.compute.v1
Class SourceInstanceProperties.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder>
-
- com.google.cloud.compute.v1.SourceInstanceProperties.Builder
-
- All Implemented Interfaces:
SourceInstancePropertiesOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SourceInstanceProperties
public static final class SourceInstanceProperties.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder> implements SourceInstancePropertiesOrBuilder
DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field.
Protobuf typegoogle.cloud.compute.v1.SourceInstanceProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SourceInstanceProperties.Builder
addAllDisks(Iterable<? extends SavedAttachedDisk> values)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
An array of network access configurations for this interface.SourceInstanceProperties.Builder
addAllServiceAccounts(Iterable<? extends ServiceAccount> values)
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
addDisks(int index, SavedAttachedDisk value)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
addDisks(int index, SavedAttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
addDisks(SavedAttachedDisk value)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
addDisks(SavedAttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from this machine image.SavedAttachedDisk.Builder
addDisksBuilder()
An array of disks that are associated with the instances that are created from this machine image.SavedAttachedDisk.Builder
addDisksBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
addGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
addGuestAccelerators(AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
addGuestAccelerators(AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from this machine image.AcceleratorConfig.Builder
addGuestAcceleratorsBuilder()
A list of guest accelerator cards' type and count to use for instances created from this machine image.AcceleratorConfig.Builder
addGuestAcceleratorsBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
addNetworkInterfaces(int index, NetworkInterface value)
An array of network access configurations for this interface.SourceInstanceProperties.Builder
addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.SourceInstanceProperties.Builder
addNetworkInterfaces(NetworkInterface value)
An array of network access configurations for this interface.SourceInstanceProperties.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.SourceInstanceProperties.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SourceInstanceProperties.Builder
addServiceAccounts(int index, ServiceAccount value)
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
addServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
addServiceAccounts(ServiceAccount value)
A list of service accounts with specified scopes.SourceInstanceProperties.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.SourceInstanceProperties
build()
SourceInstanceProperties
buildPartial()
SourceInstanceProperties.Builder
clear()
SourceInstanceProperties.Builder
clearCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.SourceInstanceProperties.Builder
clearDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.SourceInstanceProperties.Builder
clearDescription()
An optional text description for the instances that are created from this machine image.SourceInstanceProperties.Builder
clearDisks()
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SourceInstanceProperties.Builder
clearGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
clearKeyRevocationActionType()
KeyRevocationActionType of the instance.SourceInstanceProperties.Builder
clearLabels()
SourceInstanceProperties.Builder
clearMachineType()
The machine type to use for instances that are created from this machine image.SourceInstanceProperties.Builder
clearMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.SourceInstanceProperties.Builder
clearMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.SourceInstanceProperties.Builder
clearNetworkInterfaces()
An array of network access configurations for this interface.SourceInstanceProperties.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SourceInstanceProperties.Builder
clearScheduling()
Specifies the scheduling options for the instances that are created from this machine image.SourceInstanceProperties.Builder
clearServiceAccounts()
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
clearTags()
A list of tags to apply to the instances that are created from this machine image.SourceInstanceProperties.Builder
clone()
boolean
containsLabels(String key)
Labels to apply to instances that are created from this machine image.boolean
getCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.SourceInstanceProperties
getDefaultInstanceForType()
boolean
getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.String
getDescription()
An optional text description for the instances that are created from this machine image.com.google.protobuf.ByteString
getDescriptionBytes()
An optional text description for the instances that are created from this machine image.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
SavedAttachedDisk
getDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.SavedAttachedDisk.Builder
getDisksBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.List<SavedAttachedDisk.Builder>
getDisksBuilderList()
An array of disks that are associated with the instances that are created from this machine image.int
getDisksCount()
An array of disks that are associated with the instances that are created from this machine image.List<SavedAttachedDisk>
getDisksList()
An array of disks that are associated with the instances that are created from this machine image.SavedAttachedDiskOrBuilder
getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.List<? extends SavedAttachedDiskOrBuilder>
getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from this machine image.AcceleratorConfig
getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.AcceleratorConfig.Builder
getGuestAcceleratorsBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<AcceleratorConfig.Builder>
getGuestAcceleratorsBuilderList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.int
getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<AcceleratorConfig>
getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.AcceleratorConfigOrBuilder
getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<? extends AcceleratorConfigOrBuilder>
getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.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 this machine image.Map<String,String>
getLabelsMap()
Labels to apply to instances that are created from this machine image.String
getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from this machine image.String
getLabelsOrThrow(String key)
Labels to apply to instances that are created from this machine image.String
getMachineType()
The machine type to use for instances that are created from this machine image.com.google.protobuf.ByteString
getMachineTypeBytes()
The machine type to use for instances that are created from this machine image.Metadata
getMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.Metadata.Builder
getMetadataBuilder()
The metadata key/value pairs to assign to instances that are created from this machine image.MetadataOrBuilder
getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from this machine image.String
getMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.com.google.protobuf.ByteString
getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances created from this machine image.Map<String,String>
getMutableLabels()
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.Scheduling
getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.Scheduling.Builder
getSchedulingBuilder()
Specifies the scheduling options for the instances that are created from this machine image.SchedulingOrBuilder
getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from this machine image.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.Tags
getTags()
A list of tags to apply to the instances that are created from this machine image.Tags.Builder
getTagsBuilder()
A list of tags to apply to the instances that are created from this machine image.TagsOrBuilder
getTagsOrBuilder()
A list of tags to apply to the instances that are created from this machine image.boolean
hasCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.boolean
hasDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.boolean
hasDescription()
An optional text description for the instances that are created from this machine image.boolean
hasKeyRevocationActionType()
KeyRevocationActionType of the instance.boolean
hasMachineType()
The machine type to use for instances that are created from this machine image.boolean
hasMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.boolean
hasMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.boolean
hasScheduling()
Specifies the scheduling options for the instances that are created from this machine image.boolean
hasTags()
A list of tags to apply to the instances that are created from this machine image.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()
SourceInstanceProperties.Builder
mergeFrom(SourceInstanceProperties other)
SourceInstanceProperties.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SourceInstanceProperties.Builder
mergeFrom(com.google.protobuf.Message other)
SourceInstanceProperties.Builder
mergeMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from this machine image.SourceInstanceProperties.Builder
mergeScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from this machine image.SourceInstanceProperties.Builder
mergeTags(Tags value)
A list of tags to apply to the instances that are created from this machine image.SourceInstanceProperties.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SourceInstanceProperties.Builder
putAllLabels(Map<String,String> values)
Labels to apply to instances that are created from this machine image.SourceInstanceProperties.Builder
putLabels(String key, String value)
Labels to apply to instances that are created from this machine image.SourceInstanceProperties.Builder
removeDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
removeGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
removeLabels(String key)
Labels to apply to instances that are created from this machine image.SourceInstanceProperties.Builder
removeNetworkInterfaces(int index)
An array of network access configurations for this interface.SourceInstanceProperties.Builder
removeServiceAccounts(int index)
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
setCanIpForward(boolean value)
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.SourceInstanceProperties.Builder
setDeletionProtection(boolean value)
Whether the instance created from this machine image should be protected against deletion.SourceInstanceProperties.Builder
setDescription(String value)
An optional text description for the instances that are created from this machine image.SourceInstanceProperties.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional text description for the instances that are created from this machine image.SourceInstanceProperties.Builder
setDisks(int index, SavedAttachedDisk value)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
setDisks(int index, SavedAttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from this machine image.SourceInstanceProperties.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SourceInstanceProperties.Builder
setGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from this machine image.SourceInstanceProperties.Builder
setKeyRevocationActionType(String value)
KeyRevocationActionType of the instance.SourceInstanceProperties.Builder
setKeyRevocationActionTypeBytes(com.google.protobuf.ByteString value)
KeyRevocationActionType of the instance.SourceInstanceProperties.Builder
setMachineType(String value)
The machine type to use for instances that are created from this machine image.SourceInstanceProperties.Builder
setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to use for instances that are created from this machine image.SourceInstanceProperties.Builder
setMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from this machine image.SourceInstanceProperties.Builder
setMetadata(Metadata.Builder builderForValue)
The metadata key/value pairs to assign to instances that are created from this machine image.SourceInstanceProperties.Builder
setMinCpuPlatform(String value)
Minimum cpu/platform to be used by instances created from this machine image.SourceInstanceProperties.Builder
setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
Minimum cpu/platform to be used by instances created from this machine image.SourceInstanceProperties.Builder
setNetworkInterfaces(int index, NetworkInterface value)
An array of network access configurations for this interface.SourceInstanceProperties.Builder
setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network access configurations for this interface.SourceInstanceProperties.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SourceInstanceProperties.Builder
setScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from this machine image.SourceInstanceProperties.Builder
setScheduling(Scheduling.Builder builderForValue)
Specifies the scheduling options for the instances that are created from this machine image.SourceInstanceProperties.Builder
setServiceAccounts(int index, ServiceAccount value)
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
setServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts with specified scopes.SourceInstanceProperties.Builder
setTags(Tags value)
A list of tags to apply to the instances that are created from this machine image.SourceInstanceProperties.Builder
setTags(Tags.Builder builderForValue)
A list of tags to apply to the instances that are created from this machine image.SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder>
-
clear
public SourceInstanceProperties.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<SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
getDefaultInstanceForType
public SourceInstanceProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SourceInstanceProperties build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SourceInstanceProperties buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
setField
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
clearField
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
clearOneof
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
setRepeatedField
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
addRepeatedField
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
-
mergeFrom
public SourceInstanceProperties.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceInstanceProperties.Builder>
-
mergeFrom
public SourceInstanceProperties.Builder mergeFrom(SourceInstanceProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder>
-
mergeFrom
public SourceInstanceProperties.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<SourceInstanceProperties.Builder>
- Throws:
IOException
-
hasCanIpForward
public boolean hasCanIpForward()
Enables instances created based on this machine image 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the canIpForward field is set.
-
getCanIpForward
public boolean getCanIpForward()
Enables instances created based on this machine image 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The canIpForward.
-
setCanIpForward
public SourceInstanceProperties.Builder setCanIpForward(boolean value)
Enables instances created based on this machine image 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 SourceInstanceProperties.Builder clearCanIpForward()
Enables instances created based on this machine image 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.
-
hasDeletionProtection
public boolean hasDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Specified by:
hasDeletionProtection
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the deletionProtection field is set.
-
getDeletionProtection
public boolean getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Specified by:
getDeletionProtection
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The deletionProtection.
-
setDeletionProtection
public SourceInstanceProperties.Builder setDeletionProtection(boolean value)
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Parameters:
value
- The deletionProtection to set.- Returns:
- This builder for chaining.
-
clearDeletionProtection
public SourceInstanceProperties.Builder clearDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public SourceInstanceProperties.Builder setDescription(String value)
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public SourceInstanceProperties.Builder clearDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public SourceInstanceProperties.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDisksList
public List<SavedAttachedDisk> getDisksList()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksList
in interfaceSourceInstancePropertiesOrBuilder
-
getDisksCount
public int getDisksCount()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksCount
in interfaceSourceInstancePropertiesOrBuilder
-
getDisks
public SavedAttachedDisk getDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisks
in interfaceSourceInstancePropertiesOrBuilder
-
setDisks
public SourceInstanceProperties.Builder setDisks(int index, SavedAttachedDisk value)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
setDisks
public SourceInstanceProperties.Builder setDisks(int index, SavedAttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
addDisks
public SourceInstanceProperties.Builder addDisks(SavedAttachedDisk value)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
addDisks
public SourceInstanceProperties.Builder addDisks(int index, SavedAttachedDisk value)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
addDisks
public SourceInstanceProperties.Builder addDisks(SavedAttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
addDisks
public SourceInstanceProperties.Builder addDisks(int index, SavedAttachedDisk.Builder builderForValue)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
addAllDisks
public SourceInstanceProperties.Builder addAllDisks(Iterable<? extends SavedAttachedDisk> values)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
clearDisks
public SourceInstanceProperties.Builder clearDisks()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
removeDisks
public SourceInstanceProperties.Builder removeDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
getDisksBuilder
public SavedAttachedDisk.Builder getDisksBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
getDisksOrBuilder
public SavedAttachedDiskOrBuilder getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
getDisksOrBuilderList
public List<? extends SavedAttachedDiskOrBuilder> getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
addDisksBuilder
public SavedAttachedDisk.Builder addDisksBuilder()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
addDisksBuilder
public SavedAttachedDisk.Builder addDisksBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
getDisksBuilderList
public List<SavedAttachedDisk.Builder> getDisksBuilderList()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
-
getGuestAcceleratorsList
public List<AcceleratorConfig> getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsList
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAcceleratorsCount
public int getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsCount
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAccelerators
public AcceleratorConfig getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAccelerators
in interfaceSourceInstancePropertiesOrBuilder
-
setGuestAccelerators
public SourceInstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
setGuestAccelerators
public SourceInstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public SourceInstanceProperties.Builder addGuestAccelerators(AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public SourceInstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig value)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public SourceInstanceProperties.Builder addGuestAccelerators(AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public SourceInstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addAllGuestAccelerators
public SourceInstanceProperties.Builder addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
clearGuestAccelerators
public SourceInstanceProperties.Builder clearGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
removeGuestAccelerators
public SourceInstanceProperties.Builder removeGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
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 this machine image.
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 this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAcceleratorsOrBuilderList
public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
addGuestAcceleratorsBuilder
public AcceleratorConfig.Builder addGuestAcceleratorsBuilder()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
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 this machine image.
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 this machine image.
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 interfaceSourceInstancePropertiesOrBuilder
- 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 interfaceSourceInstancePropertiesOrBuilder
- 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for keyRevocationActionType.
-
setKeyRevocationActionType
public SourceInstanceProperties.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 SourceInstanceProperties.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 SourceInstanceProperties.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:SourceInstancePropertiesOrBuilder
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsCount
in interfaceSourceInstancePropertiesOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
containsLabels
in interfaceSourceInstancePropertiesOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceSourceInstancePropertiesOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsMap
in interfaceSourceInstancePropertiesOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrDefault
in interfaceSourceInstancePropertiesOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrThrow
in interfaceSourceInstancePropertiesOrBuilder
-
clearLabels
public SourceInstanceProperties.Builder clearLabels()
-
removeLabels
public SourceInstanceProperties.Builder removeLabels(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public SourceInstanceProperties.Builder putLabels(String key, String value)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
putAllLabels
public SourceInstanceProperties.Builder putAllLabels(Map<String,String> values)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
hasMachineType
public boolean hasMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Specified by:
hasMachineType
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the machineType field is set.
-
getMachineType
public String getMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Specified by:
getMachineType
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Specified by:
getMachineTypeBytes
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for machineType.
-
setMachineType
public SourceInstanceProperties.Builder setMachineType(String value)
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Parameters:
value
- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
public SourceInstanceProperties.Builder clearMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public SourceInstanceProperties.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to use for instances that are created from this machine image.
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 this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The metadata.
-
setMetadata
public SourceInstanceProperties.Builder setMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from this machine image. 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 SourceInstanceProperties.Builder setMetadata(Metadata.Builder builderForValue)
The metadata key/value pairs to assign to instances that are created from this machine image. 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 SourceInstanceProperties.Builder mergeMetadata(Metadata value)
The metadata key/value pairs to assign to instances that are created from this machine image. 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 SourceInstanceProperties.Builder clearMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image. 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 this machine image. 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 this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
-
hasMinCpuPlatform
public boolean hasMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the minCpuPlatform field is set.
-
getMinCpuPlatform
public String getMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for minCpuPlatform.
-
setMinCpuPlatform
public SourceInstanceProperties.Builder setMinCpuPlatform(String value)
Minimum cpu/platform to be used by instances created from this machine image. 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 SourceInstanceProperties.Builder clearMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image. 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 SourceInstanceProperties.Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
Minimum cpu/platform to be used by instances created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
-
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 interfaceSourceInstancePropertiesOrBuilder
-
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 interfaceSourceInstancePropertiesOrBuilder
-
setNetworkInterfaces
public SourceInstanceProperties.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 SourceInstanceProperties.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 SourceInstanceProperties.Builder addNetworkInterfaces(NetworkInterface value)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public SourceInstanceProperties.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 SourceInstanceProperties.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 SourceInstanceProperties.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 SourceInstanceProperties.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 SourceInstanceProperties.Builder clearNetworkInterfaces()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
removeNetworkInterfaces
public SourceInstanceProperties.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 interfaceSourceInstancePropertiesOrBuilder
-
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 interfaceSourceInstancePropertiesOrBuilder
-
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;
-
hasScheduling
public boolean hasScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
hasScheduling
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the scheduling field is set.
-
getScheduling
public Scheduling getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
getScheduling
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The scheduling.
-
setScheduling
public SourceInstanceProperties.Builder setScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
setScheduling
public SourceInstanceProperties.Builder setScheduling(Scheduling.Builder builderForValue)
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
mergeScheduling
public SourceInstanceProperties.Builder mergeScheduling(Scheduling value)
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
clearScheduling
public SourceInstanceProperties.Builder clearScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getSchedulingBuilder
public Scheduling.Builder getSchedulingBuilder()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getSchedulingOrBuilder
public SchedulingOrBuilder getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
getSchedulingOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsList
in interfaceSourceInstancePropertiesOrBuilder
-
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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsCount
in interfaceSourceInstancePropertiesOrBuilder
-
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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccounts
in interfaceSourceInstancePropertiesOrBuilder
-
setServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
setServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addAllServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
clearServiceAccounts
public SourceInstanceProperties.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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
removeServiceAccounts
public SourceInstanceProperties.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 this machine image. 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 this machine image. 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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
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 this machine image. 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 this machine image. 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 this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
hasTags
public boolean hasTags()
A list of tags to apply to the instances that are created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the tags field is set.
-
getTags
public Tags getTags()
A list of tags to apply to the instances that are created from this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The tags.
-
setTags
public SourceInstanceProperties.Builder setTags(Tags value)
A list of tags to apply to the instances that are created from this machine image. 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 SourceInstanceProperties.Builder setTags(Tags.Builder builderForValue)
A list of tags to apply to the instances that are created from this machine image. 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 SourceInstanceProperties.Builder mergeTags(Tags value)
A list of tags to apply to the instances that are created from this machine image. 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 SourceInstanceProperties.Builder clearTags()
A list of tags to apply to the instances that are created from this machine image. 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 this machine image. 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 this machine image. 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 interfaceSourceInstancePropertiesOrBuilder
-
setUnknownFields
public final SourceInstanceProperties.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder>
-
mergeUnknownFields
public final SourceInstanceProperties.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceProperties.Builder>
-
-