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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      hasAdvancedMachineFeatures in interface InstancePropertiesOrBuilder
      Returns:
      Whether the advancedMachineFeatures field is set.
    • getAdvancedMachineFeatures

      public AdvancedMachineFeatures getAdvancedMachineFeatures()
       Controls for advanced machine-related behavior features.
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
      Specified by:
      getAdvancedMachineFeatures in interface InstancePropertiesOrBuilder
      Returns:
      The advancedMachineFeatures.
    • getAdvancedMachineFeaturesOrBuilder

      public AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder()
       Controls for advanced machine-related behavior features.
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
      Specified by:
      getAdvancedMachineFeaturesOrBuilder in interface InstancePropertiesOrBuilder
    • 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:
      hasCanIpForward in interface InstancePropertiesOrBuilder
      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:
      getCanIpForward in interface InstancePropertiesOrBuilder
      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:
      hasConfidentialInstanceConfig in interface InstancePropertiesOrBuilder
      Returns:
      Whether the confidentialInstanceConfig field is set.
    • getConfidentialInstanceConfig

      public ConfidentialInstanceConfig getConfidentialInstanceConfig()
       Specifies the Confidential Instance options.
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
      Specified by:
      getConfidentialInstanceConfig in interface InstancePropertiesOrBuilder
      Returns:
      The confidentialInstanceConfig.
    • getConfidentialInstanceConfigOrBuilder

      public ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder()
       Specifies the Confidential Instance options.
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
      Specified by:
      getConfidentialInstanceConfigOrBuilder in interface InstancePropertiesOrBuilder
    • hasDescription

      public boolean hasDescription()
       An optional text description for the instances that are created from these
       properties.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface InstancePropertiesOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional text description for the instances that are created from these
       properties.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface InstancePropertiesOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional text description for the instances that are created from these
       properties.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface InstancePropertiesOrBuilder
      Returns:
      The bytes for description.
    • getDisksList

      public List<AttachedDisk> getDisksList()
       An array of disks that are associated with the instances that are created
       from these properties.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksList in interface InstancePropertiesOrBuilder
    • getDisksOrBuilderList

      public List<? extends AttachedDiskOrBuilder> getDisksOrBuilderList()
       An array of disks that are associated with the instances that are created
       from these properties.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksOrBuilderList in interface InstancePropertiesOrBuilder
    • getDisksCount

      public int getDisksCount()
       An array of disks that are associated with the instances that are created
       from these properties.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksCount in interface InstancePropertiesOrBuilder
    • getDisks

      public AttachedDisk getDisks(int index)
       An array of disks that are associated with the instances that are created
       from these properties.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisks in interface InstancePropertiesOrBuilder
    • getDisksOrBuilder

      public AttachedDiskOrBuilder getDisksOrBuilder(int index)
       An array of disks that are associated with the instances that are created
       from these properties.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksOrBuilder in interface InstancePropertiesOrBuilder
    • getGuestAcceleratorsList

      public List<AcceleratorConfig> getGuestAcceleratorsList()
       A list of guest accelerator cards' type and count to use for instances
       created from these properties.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsList in interface InstancePropertiesOrBuilder
    • getGuestAcceleratorsOrBuilderList

      public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
       A list of guest accelerator cards' type and count to use for instances
       created from these properties.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsOrBuilderList in interface InstancePropertiesOrBuilder
    • getGuestAcceleratorsCount

      public int getGuestAcceleratorsCount()
       A list of guest accelerator cards' type and count to use for instances
       created from these properties.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsCount in interface InstancePropertiesOrBuilder
    • getGuestAccelerators

      public AcceleratorConfig getGuestAccelerators(int index)
       A list of guest accelerator cards' type and count to use for instances
       created from these properties.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAccelerators in interface InstancePropertiesOrBuilder
    • getGuestAcceleratorsOrBuilder

      public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
       A list of guest accelerator cards' type and count to use for instances
       created from these properties.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsOrBuilder in interface InstancePropertiesOrBuilder
    • hasKeyRevocationActionType

      public boolean hasKeyRevocationActionType()
       KeyRevocationActionType of the instance. Supported options are "STOP" and
       "NONE". The default value is "NONE" if it is not specified.
       Check the KeyRevocationActionType enum for the list of possible values.
       
      optional string key_revocation_action_type = 235941474;
      Specified by:
      hasKeyRevocationActionType in interface InstancePropertiesOrBuilder
      Returns:
      Whether the keyRevocationActionType field is set.
    • getKeyRevocationActionType

      public String getKeyRevocationActionType()
       KeyRevocationActionType of the instance. Supported options are "STOP" and
       "NONE". The default value is "NONE" if it is not specified.
       Check the KeyRevocationActionType enum for the list of possible values.
       
      optional string key_revocation_action_type = 235941474;
      Specified by:
      getKeyRevocationActionType in interface InstancePropertiesOrBuilder
      Returns:
      The keyRevocationActionType.
    • getKeyRevocationActionTypeBytes

      public com.google.protobuf.ByteString getKeyRevocationActionTypeBytes()
       KeyRevocationActionType of the instance. Supported options are "STOP" and
       "NONE". The default value is "NONE" if it is not specified.
       Check the KeyRevocationActionType enum for the list of possible values.
       
      optional string key_revocation_action_type = 235941474;
      Specified by:
      getKeyRevocationActionTypeBytes in interface InstancePropertiesOrBuilder
      Returns:
      The bytes for keyRevocationActionType.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: InstancePropertiesOrBuilder
       Labels to apply to instances that are created from these properties.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface InstancePropertiesOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels to apply to instances that are created from these properties.
       
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface InstancePropertiesOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface InstancePropertiesOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels to apply to instances that are created from these properties.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface InstancePropertiesOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels to apply to instances that are created from these properties.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface InstancePropertiesOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels to apply to instances that are created from these properties.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface InstancePropertiesOrBuilder
    • 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:
      hasMachineType in interface InstancePropertiesOrBuilder
      Returns:
      Whether the machineType field is set.
    • getMachineType

      public String 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:
      getMachineType in interface InstancePropertiesOrBuilder
      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:
      getMachineTypeBytes in interface InstancePropertiesOrBuilder
      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:
      hasMetadata in interface InstancePropertiesOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public Metadata getMetadata()
       The metadata key/value pairs to assign to instances that are created from
       these properties. These pairs can consist of custom metadata or predefined
       keys. SeeProject and
       instance metadata for more information.
       
      optional .google.cloud.compute.v1.Metadata metadata = 86866735;
      Specified by:
      getMetadata in interface InstancePropertiesOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public MetadataOrBuilder getMetadataOrBuilder()
       The metadata key/value pairs to assign to instances that are created from
       these properties. These pairs can consist of custom metadata or predefined
       keys. SeeProject and
       instance metadata for more information.
       
      optional .google.cloud.compute.v1.Metadata metadata = 86866735;
      Specified by:
      getMetadataOrBuilder in interface InstancePropertiesOrBuilder
    • 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:
      hasMinCpuPlatform in interface InstancePropertiesOrBuilder
      Returns:
      Whether the minCpuPlatform field is set.
    • getMinCpuPlatform

      public String getMinCpuPlatform()
       Minimum cpu/platform to be used by instances. The instance may be
       scheduled on the specified or newer cpu/platform. Applicable values are the
       friendly names of CPU platforms, such asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more
       information, read Specifying a
       Minimum CPU Platform.
       
      optional string min_cpu_platform = 242912759;
      Specified by:
      getMinCpuPlatform in interface InstancePropertiesOrBuilder
      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:
      getMinCpuPlatformBytes in interface InstancePropertiesOrBuilder
      Returns:
      The bytes for minCpuPlatform.
    • getNetworkInterfacesList

      public List<NetworkInterface> getNetworkInterfacesList()
       An array of network access configurations for this interface.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesList in interface InstancePropertiesOrBuilder
    • getNetworkInterfacesOrBuilderList

      public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
       An array of network access configurations for this interface.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesOrBuilderList in interface InstancePropertiesOrBuilder
    • getNetworkInterfacesCount

      public int getNetworkInterfacesCount()
       An array of network access configurations for this interface.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesCount in interface InstancePropertiesOrBuilder
    • getNetworkInterfaces

      public NetworkInterface getNetworkInterfaces(int index)
       An array of network access configurations for this interface.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfaces in interface InstancePropertiesOrBuilder
    • getNetworkInterfacesOrBuilder

      public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
       An array of network access configurations for this interface.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesOrBuilder in interface InstancePropertiesOrBuilder
    • hasNetworkPerformanceConfig

      public boolean hasNetworkPerformanceConfig()
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
      Specified by:
      hasNetworkPerformanceConfig in interface InstancePropertiesOrBuilder
      Returns:
      Whether the networkPerformanceConfig field is set.
    • getNetworkPerformanceConfig

      public NetworkPerformanceConfig getNetworkPerformanceConfig()
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
      Specified by:
      getNetworkPerformanceConfig in interface InstancePropertiesOrBuilder
      Returns:
      The networkPerformanceConfig.
    • getNetworkPerformanceConfigOrBuilder

      public NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
      Specified by:
      getNetworkPerformanceConfigOrBuilder in interface InstancePropertiesOrBuilder
    • hasPrivateIpv6GoogleAccess

      public boolean hasPrivateIpv6GoogleAccess()
       The private IPv6 google access type for VMs.
       If not specified, use  INHERIT_FROM_SUBNETWORK as default.
       Note that for MachineImage, this is not supported yet.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Specified by:
      hasPrivateIpv6GoogleAccess in interface InstancePropertiesOrBuilder
      Returns:
      Whether the privateIpv6GoogleAccess field is set.
    • getPrivateIpv6GoogleAccess

      public String getPrivateIpv6GoogleAccess()
       The private IPv6 google access type for VMs.
       If not specified, use  INHERIT_FROM_SUBNETWORK as default.
       Note that for MachineImage, this is not supported yet.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Specified by:
      getPrivateIpv6GoogleAccess in interface InstancePropertiesOrBuilder
      Returns:
      The privateIpv6GoogleAccess.
    • getPrivateIpv6GoogleAccessBytes

      public com.google.protobuf.ByteString getPrivateIpv6GoogleAccessBytes()
       The private IPv6 google access type for VMs.
       If not specified, use  INHERIT_FROM_SUBNETWORK as default.
       Note that for MachineImage, this is not supported yet.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Specified by:
      getPrivateIpv6GoogleAccessBytes in interface InstancePropertiesOrBuilder
      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:
      hasReservationAffinity in interface InstancePropertiesOrBuilder
      Returns:
      Whether the reservationAffinity field is set.
    • getReservationAffinity

      public ReservationAffinity getReservationAffinity()
       Specifies the reservations that instances can consume from.
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
      Specified by:
      getReservationAffinity in interface InstancePropertiesOrBuilder
      Returns:
      The reservationAffinity.
    • getReservationAffinityOrBuilder

      public ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
       Specifies the reservations that instances can consume from.
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
      Specified by:
      getReservationAffinityOrBuilder in interface InstancePropertiesOrBuilder
    • getResourceManagerTagsCount

      public int getResourceManagerTagsCount()
      Description copied from interface: InstancePropertiesOrBuilder
       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:
      getResourceManagerTagsCount in interface InstancePropertiesOrBuilder
    • containsResourceManagerTags

      public boolean containsResourceManagerTags(String key)
       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:
      containsResourceManagerTags in interface InstancePropertiesOrBuilder
    • getResourceManagerTags

      @Deprecated public Map<String,String> getResourceManagerTags()
      Deprecated.
      Specified by:
      getResourceManagerTags in interface InstancePropertiesOrBuilder
    • getResourceManagerTagsMap

      public Map<String,String> 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:
      getResourceManagerTagsMap in interface InstancePropertiesOrBuilder
    • getResourceManagerTagsOrDefault

      public String getResourceManagerTagsOrDefault(String key, String defaultValue)
       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:
      getResourceManagerTagsOrDefault in interface InstancePropertiesOrBuilder
    • getResourceManagerTagsOrThrow

      public String getResourceManagerTagsOrThrow(String key)
       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:
      getResourceManagerTagsOrThrow in interface InstancePropertiesOrBuilder
    • getResourcePoliciesList

      public com.google.protobuf.ProtocolStringList getResourcePoliciesList()
       Resource policies (names, not URLs) applied to instances created from
       these properties.
       Note that for MachineImage, this is not supported yet.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesList in interface InstancePropertiesOrBuilder
      Returns:
      A list containing the resourcePolicies.
    • getResourcePoliciesCount

      public int getResourcePoliciesCount()
       Resource policies (names, not URLs) applied to instances created from
       these properties.
       Note that for MachineImage, this is not supported yet.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesCount in interface InstancePropertiesOrBuilder
      Returns:
      The count of resourcePolicies.
    • getResourcePolicies

      public String getResourcePolicies(int index)
       Resource policies (names, not URLs) applied to instances created from
       these properties.
       Note that for MachineImage, this is not supported yet.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePolicies in interface InstancePropertiesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourcePolicies at the given index.
    • getResourcePoliciesBytes

      public com.google.protobuf.ByteString getResourcePoliciesBytes(int index)
       Resource policies (names, not URLs) applied to instances created from
       these properties.
       Note that for MachineImage, this is not supported yet.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesBytes in interface InstancePropertiesOrBuilder
      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:
      hasScheduling in interface InstancePropertiesOrBuilder
      Returns:
      Whether the scheduling field is set.
    • getScheduling

      public Scheduling getScheduling()
       Specifies the scheduling options for the instances that are created from
       these properties.
       
      optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
      Specified by:
      getScheduling in interface InstancePropertiesOrBuilder
      Returns:
      The scheduling.
    • getSchedulingOrBuilder

      public SchedulingOrBuilder getSchedulingOrBuilder()
       Specifies the scheduling options for the instances that are created from
       these properties.
       
      optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
      Specified by:
      getSchedulingOrBuilder in interface InstancePropertiesOrBuilder
    • getServiceAccountsList

      public List<ServiceAccount> getServiceAccountsList()
       A list of service accounts with specified scopes. Access tokens for these
       service accounts are available to the instances that are created from
       these properties. Use metadata queries to obtain the access tokens for
       these instances.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsList in interface InstancePropertiesOrBuilder
    • getServiceAccountsOrBuilderList

      public List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()
       A list of service accounts with specified scopes. Access tokens for these
       service accounts are available to the instances that are created from
       these properties. Use metadata queries to obtain the access tokens for
       these instances.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsOrBuilderList in interface InstancePropertiesOrBuilder
    • getServiceAccountsCount

      public int getServiceAccountsCount()
       A list of service accounts with specified scopes. Access tokens for these
       service accounts are available to the instances that are created from
       these properties. Use metadata queries to obtain the access tokens for
       these instances.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsCount in interface InstancePropertiesOrBuilder
    • getServiceAccounts

      public ServiceAccount getServiceAccounts(int index)
       A list of service accounts with specified scopes. Access tokens for these
       service accounts are available to the instances that are created from
       these properties. Use metadata queries to obtain the access tokens for
       these instances.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccounts in interface InstancePropertiesOrBuilder
    • getServiceAccountsOrBuilder

      public ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)
       A list of service accounts with specified scopes. Access tokens for these
       service accounts are available to the instances that are created from
       these properties. Use metadata queries to obtain the access tokens for
       these instances.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsOrBuilder in interface InstancePropertiesOrBuilder
    • hasShieldedInstanceConfig

      public boolean hasShieldedInstanceConfig()
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
      Specified by:
      hasShieldedInstanceConfig in interface InstancePropertiesOrBuilder
      Returns:
      Whether the shieldedInstanceConfig field is set.
    • getShieldedInstanceConfig

      public ShieldedInstanceConfig getShieldedInstanceConfig()
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
      Specified by:
      getShieldedInstanceConfig in interface InstancePropertiesOrBuilder
      Returns:
      The shieldedInstanceConfig.
    • getShieldedInstanceConfigOrBuilder

      public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
       Note that for MachineImage, this is not supported yet.
       
      optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
      Specified by:
      getShieldedInstanceConfigOrBuilder in interface InstancePropertiesOrBuilder
    • hasTags

      public boolean hasTags()
       A list of tags to apply to the instances that are created from these
       properties. The tags identify valid sources or targets for network
       firewalls. The setTags method can modify this list of tags. Each tag within
       the list must comply with RFC1035.
       
      optional .google.cloud.compute.v1.Tags tags = 3552281;
      Specified by:
      hasTags in interface InstancePropertiesOrBuilder
      Returns:
      Whether the tags field is set.
    • getTags

      public Tags getTags()
       A list of tags to apply to the instances that are created from these
       properties. The tags identify valid sources or targets for network
       firewalls. The setTags method can modify this list of tags. Each tag within
       the list must comply with RFC1035.
       
      optional .google.cloud.compute.v1.Tags tags = 3552281;
      Specified by:
      getTags in interface InstancePropertiesOrBuilder
      Returns:
      The tags.
    • getTagsOrBuilder

      public TagsOrBuilder getTagsOrBuilder()
       A list of tags to apply to the instances that are created from these
       properties. The tags identify valid sources or targets for network
       firewalls. The setTags method can modify this list of tags. Each tag within
       the list must comply with RFC1035.
       
      optional .google.cloud.compute.v1.Tags tags = 3552281;
      Specified by:
      getTagsOrBuilder in interface InstancePropertiesOrBuilder
    • hasWorkloadIdentityConfig

      public boolean hasWorkloadIdentityConfig()
      optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;
      Specified by:
      hasWorkloadIdentityConfig in interface InstancePropertiesOrBuilder
      Returns:
      Whether the workloadIdentityConfig field is set.
    • getWorkloadIdentityConfig

      public WorkloadIdentityConfig getWorkloadIdentityConfig()
      optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;
      Specified by:
      getWorkloadIdentityConfig in interface InstancePropertiesOrBuilder
      Returns:
      The workloadIdentityConfig.
    • getWorkloadIdentityConfigOrBuilder

      public WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder()
      optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;
      Specified by:
      getWorkloadIdentityConfigOrBuilder in interface InstancePropertiesOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static InstanceProperties parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstanceProperties parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstanceProperties parseDelimitedFrom(InputStream input) throws IOException
      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

      public InstanceProperties.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static InstanceProperties.Builder newBuilder()
    • newBuilder

      public static InstanceProperties.Builder newBuilder(InstanceProperties prototype)
    • toBuilder

      public InstanceProperties.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InstanceProperties.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static InstanceProperties getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InstanceProperties> parser()
    • getParserForType

      public com.google.protobuf.Parser<InstanceProperties> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public InstanceProperties getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder