Package com.google.cloud.compute.v1
Class InstanceProperties
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.InstanceProperties
- All Implemented Interfaces:
InstancePropertiesOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class InstanceProperties
extends com.google.protobuf.GeneratedMessage
implements InstancePropertiesOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceProperties- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumKeyRevocationActionType of the instance.static enumThe private IPv6 google access type for VMs.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels to apply to instances that are created from these properties.booleanInput only.booleanControls for advanced machine-related behavior features.Controls for advanced machine-related behavior features.booleanEnables 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.Specifies the Confidential Instance options.Specifies the Confidential Instance options.static InstancePropertiesAn optional text description for the instances that are created from these properties.com.google.protobuf.ByteStringAn optional text description for the instances that are created from these properties.static final com.google.protobuf.Descriptors.DescriptorgetDisks(int index) An array of disks that are associated with the instances that are created from these properties.intAn array of disks that are associated with the instances that are created from these properties.An array of disks that are associated with the instances that are created from these properties.getDisksOrBuilder(int index) An array of disks that are associated with the instances that are created from these properties.List<? extends AttachedDiskOrBuilder>An array of disks that are associated with the instances that are created from these properties.getGuestAccelerators(int index) A list of guest accelerator cards' type and count to use for instances created from these properties.intA list of guest accelerator cards' type and count to use for instances created from these properties.A list of guest accelerator cards' type and count to use for instances created from these properties.getGuestAcceleratorsOrBuilder(int index) A list of guest accelerator cards' type and count to use for instances created from these properties.List<? extends AcceleratorConfigOrBuilder>A list of guest accelerator cards' type and count to use for instances created from these properties.KeyRevocationActionType of the instance.com.google.protobuf.ByteStringKeyRevocationActionType of the instance.Deprecated.intLabels to apply to instances that are created from these properties.Labels to apply to instances that are created from these properties.getLabelsOrDefault(String key, String defaultValue) Labels to apply to instances that are created from these properties.getLabelsOrThrow(String key) Labels to apply to instances that are created from these properties.The machine type to use for instances that are created from these properties.com.google.protobuf.ByteStringThe machine type to use for instances that are created from these properties.The metadata key/value pairs to assign to instances that are created from these properties.The metadata key/value pairs to assign to instances that are created from these properties.Minimum cpu/platform to be used by instances.com.google.protobuf.ByteStringMinimum cpu/platform to be used by instances.getNetworkInterfaces(int index) An array of network access configurations for this interface.intAn array of network access configurations for this interface.An array of network access configurations for this interface.getNetworkInterfacesOrBuilder(int index) An array of network access configurations for this interface.List<? extends NetworkInterfaceOrBuilder>An array of network access configurations for this interface.Note that for MachineImage, this is not supported yet.Note that for MachineImage, this is not supported yet.com.google.protobuf.Parser<InstanceProperties>The private IPv6 google access type for VMs.com.google.protobuf.ByteStringThe private IPv6 google access type for VMs.Specifies the reservations that instances can consume from.Specifies the reservations that instances can consume from.Deprecated.intInput only.Input only.getResourceManagerTagsOrDefault(String key, String defaultValue) Input only.Input only.getResourcePolicies(int index) Resource policies (names, not URLs) applied to instances created from these properties.com.google.protobuf.ByteStringgetResourcePoliciesBytes(int index) Resource policies (names, not URLs) applied to instances created from these properties.intResource policies (names, not URLs) applied to instances created from these properties.com.google.protobuf.ProtocolStringListResource policies (names, not URLs) applied to instances created from these properties.Specifies the scheduling options for the instances that are created from these properties.Specifies the scheduling options for the instances that are created from these properties.intgetServiceAccounts(int index) A list of service accounts with specified scopes.intA list of service accounts with specified scopes.A list of service accounts with specified scopes.getServiceAccountsOrBuilder(int index) A list of service accounts with specified scopes.List<? extends ServiceAccountOrBuilder>A list of service accounts with specified scopes.Note that for MachineImage, this is not supported yet.Note that for MachineImage, this is not supported yet.getTags()A list of tags to apply to the instances that are created from these properties.A list of tags to apply to the instances that are created from these properties.optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;booleanControls for advanced machine-related behavior features.booleanEnables 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.booleanSpecifies the Confidential Instance options.booleanAn optional text description for the instances that are created from these properties.inthashCode()booleanKeyRevocationActionType of the instance.booleanThe machine type to use for instances that are created from these properties.booleanThe metadata key/value pairs to assign to instances that are created from these properties.booleanMinimum cpu/platform to be used by instances.booleanNote that for MachineImage, this is not supported yet.booleanThe private IPv6 google access type for VMs.booleanSpecifies the reservations that instances can consume from.booleanSpecifies the scheduling options for the instances that are created from these properties.booleanNote that for MachineImage, this is not supported yet.booleanhasTags()A list of tags to apply to the instances that are created from these properties.booleanoptional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic InstanceProperties.Builderstatic InstanceProperties.BuildernewBuilder(InstanceProperties prototype) protected InstanceProperties.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static InstancePropertiesparseDelimitedFrom(InputStream input) static InstancePropertiesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstancePropertiesparseFrom(byte[] data) static InstancePropertiesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstancePropertiesparseFrom(com.google.protobuf.ByteString data) static InstancePropertiesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstancePropertiesparseFrom(com.google.protobuf.CodedInputStream input) static InstancePropertiesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstancePropertiesparseFrom(InputStream input) static InstancePropertiesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstancePropertiesparseFrom(ByteBuffer data) static InstancePropertiesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<InstanceProperties>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ADVANCED_MACHINE_FEATURES_FIELD_NUMBER
public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER- See Also:
-
CAN_IP_FORWARD_FIELD_NUMBER
public static final int CAN_IP_FORWARD_FIELD_NUMBER- See Also:
-
CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER
public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER- See Also:
-
GUEST_ACCELERATORS_FIELD_NUMBER
public static final int GUEST_ACCELERATORS_FIELD_NUMBER- See Also:
-
KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER
public static final int KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER- See Also:
-
NETWORK_INTERFACES_FIELD_NUMBER
public static final int NETWORK_INTERFACES_FIELD_NUMBER- See Also:
-
NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER
public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER- See Also:
-
PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER
public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER- See Also:
-
RESERVATION_AFFINITY_FIELD_NUMBER
public static final int RESERVATION_AFFINITY_FIELD_NUMBER- See Also:
-
RESOURCE_MANAGER_TAGS_FIELD_NUMBER
public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER- See Also:
-
RESOURCE_POLICIES_FIELD_NUMBER
public static final int RESOURCE_POLICIES_FIELD_NUMBER- See Also:
-
SCHEDULING_FIELD_NUMBER
public static final int SCHEDULING_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int SERVICE_ACCOUNTS_FIELD_NUMBER- See Also:
-
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER
public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
hasAdvancedMachineFeaturesin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the advancedMachineFeatures field is set.
-
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:
getAdvancedMachineFeaturesin interfaceInstancePropertiesOrBuilder- Returns:
- The advancedMachineFeatures.
-
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:
getAdvancedMachineFeaturesOrBuilderin 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 tofalse. See theEnable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;- Specified by:
hasCanIpForwardin 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 tofalse. See theEnable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;- Specified by:
getCanIpForwardin interfaceInstancePropertiesOrBuilder- Returns:
- The canIpForward.
-
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:
hasConfidentialInstanceConfigin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the confidentialInstanceConfig field is set.
-
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:
getConfidentialInstanceConfigin interfaceInstancePropertiesOrBuilder- Returns:
- The confidentialInstanceConfig.
-
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:
getConfidentialInstanceConfigOrBuilderin interfaceInstancePropertiesOrBuilder
-
hasDescription
public boolean hasDescription()An optional text description for the instances that are created from these properties.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional text description for the instances that are created from these properties.
optional string description = 422937596;- Specified by:
getDescriptionin 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:
getDescriptionBytesin interfaceInstancePropertiesOrBuilder- Returns:
- The bytes for description.
-
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:
getDisksListin interfaceInstancePropertiesOrBuilder
-
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:
getDisksOrBuilderListin 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:
getDisksCountin interfaceInstancePropertiesOrBuilder
-
getDisks
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:
getDisksin interfaceInstancePropertiesOrBuilder
-
getDisksOrBuilder
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:
getDisksOrBuilderin interfaceInstancePropertiesOrBuilder
-
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:
getGuestAcceleratorsListin interfaceInstancePropertiesOrBuilder
-
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:
getGuestAcceleratorsOrBuilderListin 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:
getGuestAcceleratorsCountin interfaceInstancePropertiesOrBuilder
-
getGuestAccelerators
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:
getGuestAcceleratorsin interfaceInstancePropertiesOrBuilder
-
getGuestAcceleratorsOrBuilder
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:
getGuestAcceleratorsOrBuilderin interfaceInstancePropertiesOrBuilder
-
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:
hasKeyRevocationActionTypein interfaceInstancePropertiesOrBuilder- Returns:
- Whether the keyRevocationActionType field is set.
-
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:
getKeyRevocationActionTypein 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:
getKeyRevocationActionTypeBytesin interfaceInstancePropertiesOrBuilder- Returns:
- The bytes for keyRevocationActionType.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:InstancePropertiesOrBuilderLabels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceInstancePropertiesOrBuilder
-
containsLabels
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceInstancePropertiesOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceInstancePropertiesOrBuilder
-
getLabelsMap
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceInstancePropertiesOrBuilder
-
getLabelsOrDefault
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceInstancePropertiesOrBuilder
-
getLabelsOrThrow
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceInstancePropertiesOrBuilder
-
hasMachineType
public boolean hasMachineType()The machine type to use for instances that are created from these properties. This field only accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or partial URL, for example `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`.
optional string machine_type = 227711026;- Specified by:
hasMachineTypein interfaceInstancePropertiesOrBuilder- Returns:
- Whether the machineType field is set.
-
getMachineType
The machine type to use for instances that are created from these properties. This field only accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or partial URL, for example `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`.
optional string machine_type = 227711026;- Specified by:
getMachineTypein interfaceInstancePropertiesOrBuilder- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()The machine type to use for instances that are created from these properties. This field only accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or partial URL, for example `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`.
optional string machine_type = 227711026;- Specified by:
getMachineTypeBytesin interfaceInstancePropertiesOrBuilder- Returns:
- The bytes for machineType.
-
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. SeeProject and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;- Specified by:
hasMetadatain interfaceInstancePropertiesOrBuilder- Returns:
- Whether the metadata field is set.
-
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. SeeProject and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;- Specified by:
getMetadatain interfaceInstancePropertiesOrBuilder- Returns:
- The metadata.
-
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. SeeProject and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;- Specified by:
getMetadataOrBuilderin 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 asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;- Specified by:
hasMinCpuPlatformin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the minCpuPlatform field is set.
-
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 asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;- Specified by:
getMinCpuPlatformin 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 asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;- Specified by:
getMinCpuPlatformBytesin interfaceInstancePropertiesOrBuilder- Returns:
- The bytes for minCpuPlatform.
-
getNetworkInterfacesList
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesListin interfaceInstancePropertiesOrBuilder
-
getNetworkInterfacesOrBuilderList
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesOrBuilderListin 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:
getNetworkInterfacesCountin interfaceInstancePropertiesOrBuilder
-
getNetworkInterfaces
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesin interfaceInstancePropertiesOrBuilder
-
getNetworkInterfacesOrBuilder
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesOrBuilderin interfaceInstancePropertiesOrBuilder
-
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:
hasNetworkPerformanceConfigin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the networkPerformanceConfig field is set.
-
getNetworkPerformanceConfig
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;- Specified by:
getNetworkPerformanceConfigin interfaceInstancePropertiesOrBuilder- Returns:
- The networkPerformanceConfig.
-
getNetworkPerformanceConfigOrBuilder
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;- Specified by:
getNetworkPerformanceConfigOrBuilderin 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:
hasPrivateIpv6GoogleAccessin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the privateIpv6GoogleAccess field is set.
-
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:
getPrivateIpv6GoogleAccessin 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:
getPrivateIpv6GoogleAccessBytesin interfaceInstancePropertiesOrBuilder- Returns:
- The bytes for privateIpv6GoogleAccess.
-
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:
hasReservationAffinityin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the reservationAffinity field is set.
-
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:
getReservationAffinityin interfaceInstancePropertiesOrBuilder- Returns:
- The reservationAffinity.
-
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:
getReservationAffinityOrBuilderin interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsCount
public int getResourceManagerTagsCount()Description copied from interface:InstancePropertiesOrBuilderInput only. 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:
getResourceManagerTagsCountin interfaceInstancePropertiesOrBuilder
-
containsResourceManagerTags
Input only. 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:
containsResourceManagerTagsin interfaceInstancePropertiesOrBuilder
-
getResourceManagerTags
Deprecated.UsegetResourceManagerTagsMap()instead.- Specified by:
getResourceManagerTagsin interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsMap
Input only. 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:
getResourceManagerTagsMapin interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsOrDefault
Input only. 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:
getResourceManagerTagsOrDefaultin interfaceInstancePropertiesOrBuilder
-
getResourceManagerTagsOrThrow
Input only. 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:
getResourceManagerTagsOrThrowin interfaceInstancePropertiesOrBuilder
-
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:
getResourcePoliciesListin 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:
getResourcePoliciesCountin interfaceInstancePropertiesOrBuilder- Returns:
- The count of resourcePolicies.
-
getResourcePolicies
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:
getResourcePoliciesin 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:
getResourcePoliciesBytesin interfaceInstancePropertiesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourcePolicies at the given index.
-
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:
hasSchedulingin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the scheduling field is set.
-
getScheduling
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;- Specified by:
getSchedulingin interfaceInstancePropertiesOrBuilder- Returns:
- The scheduling.
-
getSchedulingOrBuilder
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;- Specified by:
getSchedulingOrBuilderin interfaceInstancePropertiesOrBuilder
-
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:
getServiceAccountsListin interfaceInstancePropertiesOrBuilder
-
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:
getServiceAccountsOrBuilderListin 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:
getServiceAccountsCountin interfaceInstancePropertiesOrBuilder
-
getServiceAccounts
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:
getServiceAccountsin interfaceInstancePropertiesOrBuilder
-
getServiceAccountsOrBuilder
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:
getServiceAccountsOrBuilderin interfaceInstancePropertiesOrBuilder
-
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:
hasShieldedInstanceConfigin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;- Specified by:
getShieldedInstanceConfigin interfaceInstancePropertiesOrBuilder- Returns:
- The shieldedInstanceConfig.
-
getShieldedInstanceConfigOrBuilder
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;- Specified by:
getShieldedInstanceConfigOrBuilderin 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:
hasTagsin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the tags field is set.
-
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:
getTagsin interfaceInstancePropertiesOrBuilder- Returns:
- The tags.
-
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:
getTagsOrBuilderin interfaceInstancePropertiesOrBuilder
-
hasWorkloadIdentityConfig
public boolean hasWorkloadIdentityConfig()optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;- Specified by:
hasWorkloadIdentityConfigin interfaceInstancePropertiesOrBuilder- Returns:
- Whether the workloadIdentityConfig field is set.
-
getWorkloadIdentityConfig
optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;- Specified by:
getWorkloadIdentityConfigin interfaceInstancePropertiesOrBuilder- Returns:
- The workloadIdentityConfig.
-
getWorkloadIdentityConfigOrBuilder
optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;- Specified by:
getWorkloadIdentityConfigOrBuilderin interfaceInstancePropertiesOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static InstanceProperties parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceProperties parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceProperties parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static InstanceProperties parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static InstanceProperties parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static InstanceProperties parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static InstanceProperties parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InstanceProperties.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-