public final class InstanceProperties extends com.google.protobuf.GeneratedMessageV3 implements InstancePropertiesOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceProperties| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceProperties.Builder |
static class |
InstanceProperties.KeyRevocationActionType
KeyRevocationActionType of the instance.
|
static class |
InstanceProperties.PrivateIpv6GoogleAccess
The private IPv6 google access type for VMs.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADVANCED_MACHINE_FEATURES_FIELD_NUMBER |
static int |
CAN_IP_FORWARD_FIELD_NUMBER |
static int |
CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DISKS_FIELD_NUMBER |
static int |
GUEST_ACCELERATORS_FIELD_NUMBER |
static int |
KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
MACHINE_TYPE_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
MIN_CPU_PLATFORM_FIELD_NUMBER |
static int |
NETWORK_INTERFACES_FIELD_NUMBER |
static int |
NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER |
static int |
PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER |
static int |
RESERVATION_AFFINITY_FIELD_NUMBER |
static int |
RESOURCE_MANAGER_TAGS_FIELD_NUMBER |
static int |
RESOURCE_POLICIES_FIELD_NUMBER |
static int |
SCHEDULING_FIELD_NUMBER |
static int |
SERVICE_ACCOUNTS_FIELD_NUMBER |
static int |
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels to apply to instances that are created from these properties.
|
boolean |
containsResourceManagerTags(String key)
Resource manager tags to be bound to the instance.
|
boolean |
equals(Object obj) |
AdvancedMachineFeatures |
getAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.
|
AdvancedMachineFeaturesOrBuilder |
getAdvancedMachineFeaturesOrBuilder()
Controls for advanced machine-related behavior features.
|
boolean |
getCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.
|
ConfidentialInstanceConfig |
getConfidentialInstanceConfig()
Specifies the Confidential Instance options.
|
ConfidentialInstanceConfigOrBuilder |
getConfidentialInstanceConfigOrBuilder()
Specifies the Confidential Instance options.
|
static InstanceProperties |
getDefaultInstance() |
InstanceProperties |
getDefaultInstanceForType() |
String |
getDescription()
An optional text description for the instances that are created from these properties.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional text description for the instances that are created from these properties.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AttachedDisk |
getDisks(int index)
An array of disks that are associated with the instances that are created from these properties.
|
int |
getDisksCount()
An array of disks that are associated with the instances that are created from these properties.
|
List<AttachedDisk> |
getDisksList()
An array of disks that are associated with the instances that are created from these properties.
|
AttachedDiskOrBuilder |
getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.
|
List<? extends AttachedDiskOrBuilder> |
getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from these properties.
|
AcceleratorConfig |
getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
|
int |
getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from these properties.
|
List<AcceleratorConfig> |
getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
|
AcceleratorConfigOrBuilder |
getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
|
List<? extends AcceleratorConfigOrBuilder> |
getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
|
String |
getKeyRevocationActionType()
KeyRevocationActionType of the instance.
|
com.google.protobuf.ByteString |
getKeyRevocationActionTypeBytes()
KeyRevocationActionType of the instance.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels to apply to instances that are created from these properties.
|
Map<String,String> |
getLabelsMap()
Labels to apply to instances that are created from these properties.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels to apply to instances that are created from these properties.
|
String |
getLabelsOrThrow(String key)
Labels to apply to instances that are created from these properties.
|
String |
getMachineType()
The machine type to use for instances that are created from these properties.
|
com.google.protobuf.ByteString |
getMachineTypeBytes()
The machine type to use for instances that are created from these properties.
|
Metadata |
getMetadata()
The metadata key/value pairs to assign to instances that are created from these properties.
|
MetadataOrBuilder |
getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from these properties.
|
String |
getMinCpuPlatform()
Minimum cpu/platform to be used by instances.
|
com.google.protobuf.ByteString |
getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances.
|
NetworkInterface |
getNetworkInterfaces(int index)
An array of network access configurations for this interface.
|
int |
getNetworkInterfacesCount()
An array of network access configurations for this interface.
|
List<NetworkInterface> |
getNetworkInterfacesList()
An array of network access configurations for this interface.
|
NetworkInterfaceOrBuilder |
getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.
|
List<? extends NetworkInterfaceOrBuilder> |
getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.
|
NetworkPerformanceConfig |
getNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
|
NetworkPerformanceConfigOrBuilder |
getNetworkPerformanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.
|
com.google.protobuf.Parser<InstanceProperties> |
getParserForType() |
String |
getPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs.
|
com.google.protobuf.ByteString |
getPrivateIpv6GoogleAccessBytes()
The private IPv6 google access type for VMs.
|
ReservationAffinity |
getReservationAffinity()
Specifies the reservations that instances can consume from.
|
ReservationAffinityOrBuilder |
getReservationAffinityOrBuilder()
Specifies the reservations that instances can consume from.
|
Map<String,String> |
getResourceManagerTags()
Deprecated.
|
int |
getResourceManagerTagsCount()
Resource manager tags to be bound to the instance.
|
Map<String,String> |
getResourceManagerTagsMap()
Resource manager tags to be bound to the instance.
|
String |
getResourceManagerTagsOrDefault(String key,
String defaultValue)
Resource manager tags to be bound to the instance.
|
String |
getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the instance.
|
String |
getResourcePolicies(int index)
Resource policies (names, not URLs) applied to instances created from these properties.
|
com.google.protobuf.ByteString |
getResourcePoliciesBytes(int index)
Resource policies (names, not URLs) applied to instances created from these properties.
|
int |
getResourcePoliciesCount()
Resource policies (names, not URLs) applied to instances created from these properties.
|
com.google.protobuf.ProtocolStringList |
getResourcePoliciesList()
Resource policies (names, not URLs) applied to instances created from these properties.
|
Scheduling |
getScheduling()
Specifies the scheduling options for the instances that are created from these properties.
|
SchedulingOrBuilder |
getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from these properties.
|
int |
getSerializedSize() |
ServiceAccount |
getServiceAccounts(int index)
A list of service accounts with specified scopes.
|
int |
getServiceAccountsCount()
A list of service accounts with specified scopes.
|
List<ServiceAccount> |
getServiceAccountsList()
A list of service accounts with specified scopes.
|
ServiceAccountOrBuilder |
getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes.
|
List<? extends ServiceAccountOrBuilder> |
getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
|
ShieldedInstanceConfigOrBuilder |
getShieldedInstanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.
|
Tags |
getTags()
A list of tags to apply to the instances that are created from these properties.
|
TagsOrBuilder |
getTagsOrBuilder()
A list of tags to apply to the instances that are created from these properties.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.
|
boolean |
hasCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.
|
boolean |
hasConfidentialInstanceConfig()
Specifies the Confidential Instance options.
|
boolean |
hasDescription()
An optional text description for the instances that are created from these properties.
|
int |
hashCode() |
boolean |
hasKeyRevocationActionType()
KeyRevocationActionType of the instance.
|
boolean |
hasMachineType()
The machine type to use for instances that are created from these properties.
|
boolean |
hasMetadata()
The metadata key/value pairs to assign to instances that are created from these properties.
|
boolean |
hasMinCpuPlatform()
Minimum cpu/platform to be used by instances.
|
boolean |
hasNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
|
boolean |
hasPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs.
|
boolean |
hasReservationAffinity()
Specifies the reservations that instances can consume from.
|
boolean |
hasScheduling()
Specifies the scheduling options for the instances that are created from these properties.
|
boolean |
hasShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
|
boolean |
hasTags()
A list of tags to apply to the instances that are created from these properties.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static InstanceProperties.Builder |
newBuilder() |
static InstanceProperties.Builder |
newBuilder(InstanceProperties prototype) |
InstanceProperties.Builder |
newBuilderForType() |
protected InstanceProperties.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InstanceProperties |
parseDelimitedFrom(InputStream input) |
static InstanceProperties |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceProperties |
parseFrom(byte[] data) |
static InstanceProperties |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceProperties |
parseFrom(ByteBuffer data) |
static InstanceProperties |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceProperties |
parseFrom(com.google.protobuf.ByteString data) |
static InstanceProperties |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceProperties |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InstanceProperties |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceProperties |
parseFrom(InputStream input) |
static InstanceProperties |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InstanceProperties> |
parser() |
InstanceProperties.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER
public static final int CAN_IP_FORWARD_FIELD_NUMBER
public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
public static final int GUEST_ACCELERATORS_FIELD_NUMBER
public static final int KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int NETWORK_INTERFACES_FIELD_NUMBER
public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER
public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER
public static final int RESERVATION_AFFINITY_FIELD_NUMBER
public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER
public static final int RESOURCE_POLICIES_FIELD_NUMBER
public static final int SCHEDULING_FIELD_NUMBER
public static final int SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;
hasAdvancedMachineFeatures in interface InstancePropertiesOrBuilderpublic AdvancedMachineFeatures getAdvancedMachineFeatures()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
getAdvancedMachineFeatures in interface InstancePropertiesOrBuilderpublic AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder()
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
getAdvancedMachineFeaturesOrBuilder in interface InstancePropertiesOrBuilderpublic boolean hasCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;hasCanIpForward in interface InstancePropertiesOrBuilderpublic boolean getCanIpForward()
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;getCanIpForward in interface InstancePropertiesOrBuilderpublic 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;
hasConfidentialInstanceConfig in interface InstancePropertiesOrBuilderpublic ConfidentialInstanceConfig getConfidentialInstanceConfig()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
getConfidentialInstanceConfig in interface InstancePropertiesOrBuilderpublic ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder()
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
getConfidentialInstanceConfigOrBuilder in interface InstancePropertiesOrBuilderpublic boolean hasDescription()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;hasDescription in interface InstancePropertiesOrBuilderpublic String getDescription()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;getDescription in interface InstancePropertiesOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional text description for the instances that are created from these properties.
optional string description = 422937596;getDescriptionBytes in interface InstancePropertiesOrBuilderpublic List<AttachedDisk> getDisksList()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;getDisksList in interface InstancePropertiesOrBuilderpublic List<? extends AttachedDiskOrBuilder> getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;getDisksOrBuilderList in interface InstancePropertiesOrBuilderpublic 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;getDisksCount in interface InstancePropertiesOrBuilderpublic AttachedDisk getDisks(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;getDisks in interface InstancePropertiesOrBuilderpublic AttachedDiskOrBuilder getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from these properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;getDisksOrBuilder in interface InstancePropertiesOrBuilderpublic List<AcceleratorConfig> getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
getGuestAcceleratorsList in interface InstancePropertiesOrBuilderpublic List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
getGuestAcceleratorsOrBuilderList in interface InstancePropertiesOrBuilderpublic 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;
getGuestAcceleratorsCount in interface InstancePropertiesOrBuilderpublic AcceleratorConfig getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
getGuestAccelerators in interface InstancePropertiesOrBuilderpublic AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from these properties.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
getGuestAcceleratorsOrBuilder in interface InstancePropertiesOrBuilderpublic 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;hasKeyRevocationActionType in interface InstancePropertiesOrBuilderpublic 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;getKeyRevocationActionType in interface InstancePropertiesOrBuilderpublic 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;getKeyRevocationActionTypeBytes in interface InstancePropertiesOrBuilderpublic int getLabelsCount()
InstancePropertiesOrBuilderLabels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;getLabelsCount in interface InstancePropertiesOrBuilderpublic boolean containsLabels(String key)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;containsLabels in interface InstancePropertiesOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface InstancePropertiesOrBuilderpublic Map<String,String> getLabelsMap()
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;getLabelsMap in interface InstancePropertiesOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;getLabelsOrDefault in interface InstancePropertiesOrBuilderpublic String getLabelsOrThrow(String key)
Labels to apply to instances that are created from these properties.
map<string, string> labels = 500195327;getLabelsOrThrow in interface InstancePropertiesOrBuilderpublic boolean hasMachineType()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;hasMachineType in interface InstancePropertiesOrBuilderpublic String getMachineType()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;getMachineType in interface InstancePropertiesOrBuilderpublic com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to use for instances that are created from these properties.
optional string machine_type = 227711026;getMachineTypeBytes in interface InstancePropertiesOrBuilderpublic boolean hasMetadata()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;hasMetadata in interface InstancePropertiesOrBuilderpublic Metadata getMetadata()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;getMetadata in interface InstancePropertiesOrBuilderpublic MetadataOrBuilder getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;getMetadataOrBuilder in interface InstancePropertiesOrBuilderpublic boolean hasMinCpuPlatform()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;hasMinCpuPlatform in interface InstancePropertiesOrBuilderpublic String getMinCpuPlatform()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;getMinCpuPlatform in interface InstancePropertiesOrBuilderpublic com.google.protobuf.ByteString getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;getMinCpuPlatformBytes in interface InstancePropertiesOrBuilderpublic List<NetworkInterface> getNetworkInterfacesList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;getNetworkInterfacesList in interface InstancePropertiesOrBuilderpublic List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;getNetworkInterfacesOrBuilderList in interface InstancePropertiesOrBuilderpublic int getNetworkInterfacesCount()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;getNetworkInterfacesCount in interface InstancePropertiesOrBuilderpublic NetworkInterface getNetworkInterfaces(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;getNetworkInterfaces in interface InstancePropertiesOrBuilderpublic NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;getNetworkInterfacesOrBuilder in interface InstancePropertiesOrBuilderpublic boolean hasNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
hasNetworkPerformanceConfig in interface InstancePropertiesOrBuilderpublic NetworkPerformanceConfig getNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
getNetworkPerformanceConfig in interface InstancePropertiesOrBuilderpublic NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
getNetworkPerformanceConfigOrBuilder in interface InstancePropertiesOrBuilderpublic 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;hasPrivateIpv6GoogleAccess in interface InstancePropertiesOrBuilderpublic String getPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;getPrivateIpv6GoogleAccess in interface InstancePropertiesOrBuilderpublic 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;getPrivateIpv6GoogleAccessBytes in interface InstancePropertiesOrBuilderpublic 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;
hasReservationAffinity in interface InstancePropertiesOrBuilderpublic ReservationAffinity getReservationAffinity()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
getReservationAffinity in interface InstancePropertiesOrBuilderpublic ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
getReservationAffinityOrBuilder in interface InstancePropertiesOrBuilderpublic int getResourceManagerTagsCount()
InstancePropertiesOrBuilder
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsCount in interface InstancePropertiesOrBuilderpublic boolean containsResourceManagerTags(String key)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;containsResourceManagerTags in interface InstancePropertiesOrBuilder@Deprecated public Map<String,String> getResourceManagerTags()
getResourceManagerTagsMap() instead.getResourceManagerTags in interface InstancePropertiesOrBuilderpublic Map<String,String> getResourceManagerTagsMap()
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsMap in interface InstancePropertiesOrBuilderpublic String getResourceManagerTagsOrDefault(String key, String defaultValue)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsOrDefault in interface InstancePropertiesOrBuilderpublic String getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsOrThrow in interface InstancePropertiesOrBuilderpublic 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;getResourcePoliciesList in interface InstancePropertiesOrBuilderpublic 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;getResourcePoliciesCount in interface InstancePropertiesOrBuilderpublic String getResourcePolicies(int index)
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
repeated string resource_policies = 22220385;getResourcePolicies in interface InstancePropertiesOrBuilderindex - The index of the element to return.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;getResourcePoliciesBytes in interface InstancePropertiesOrBuilderindex - The index of the value to return.public boolean hasScheduling()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;hasScheduling in interface InstancePropertiesOrBuilderpublic Scheduling getScheduling()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;getScheduling in interface InstancePropertiesOrBuilderpublic SchedulingOrBuilder getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from these properties.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;getSchedulingOrBuilder in interface InstancePropertiesOrBuilderpublic List<ServiceAccount> getServiceAccountsList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;getServiceAccountsList in interface InstancePropertiesOrBuilderpublic List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;getServiceAccountsOrBuilderList in interface InstancePropertiesOrBuilderpublic 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;getServiceAccountsCount in interface InstancePropertiesOrBuilderpublic ServiceAccount getServiceAccounts(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;getServiceAccounts in interface InstancePropertiesOrBuilderpublic ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;getServiceAccountsOrBuilder in interface InstancePropertiesOrBuilderpublic boolean hasShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
hasShieldedInstanceConfig in interface InstancePropertiesOrBuilderpublic ShieldedInstanceConfig getShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
getShieldedInstanceConfig in interface InstancePropertiesOrBuilderpublic ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Note that for MachineImage, this is not supported yet.
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
getShieldedInstanceConfigOrBuilder in interface InstancePropertiesOrBuilderpublic 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;hasTags in interface InstancePropertiesOrBuilderpublic Tags getTags()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;getTags in interface InstancePropertiesOrBuilderpublic TagsOrBuilder getTagsOrBuilder()
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;getTagsOrBuilder in interface InstancePropertiesOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static InstanceProperties parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceProperties parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceProperties parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceProperties parseFrom(InputStream input) throws IOException
IOExceptionpublic static InstanceProperties parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InstanceProperties parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static InstanceProperties parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InstanceProperties parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static InstanceProperties parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic InstanceProperties.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InstanceProperties.Builder newBuilder()
public static InstanceProperties.Builder newBuilder(InstanceProperties prototype)
public InstanceProperties.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InstanceProperties.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InstanceProperties getDefaultInstance()
public static com.google.protobuf.Parser<InstanceProperties> parser()
public com.google.protobuf.Parser<InstanceProperties> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InstanceProperties getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.