Package com.google.cloud.compute.v1
Class Instance.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
- com.google.cloud.compute.v1.Instance.Builder
-
- All Implemented Interfaces:
InstanceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instance
public static final class Instance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
Represents an Instance resource. An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances.
Protobuf typegoogle.cloud.compute.v1.Instance
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Instance.BuilderaddAllDisks(Iterable<? extends AttachedDisk> values)Array of disks associated with this instance.Instance.BuilderaddAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)A list of the type and count of accelerator cards attached to the instance.Instance.BuilderaddAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)An array of network configurations for this instance.Instance.BuilderaddAllResourcePolicies(Iterable<String> values)Resource policies applied to this instance.Instance.BuilderaddAllServiceAccounts(Iterable<? extends ServiceAccount> values)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuilderaddDisks(int index, AttachedDisk value)Array of disks associated with this instance.Instance.BuilderaddDisks(int index, AttachedDisk.Builder builderForValue)Array of disks associated with this instance.Instance.BuilderaddDisks(AttachedDisk value)Array of disks associated with this instance.Instance.BuilderaddDisks(AttachedDisk.Builder builderForValue)Array of disks associated with this instance.AttachedDisk.BuilderaddDisksBuilder()Array of disks associated with this instance.AttachedDisk.BuilderaddDisksBuilder(int index)Array of disks associated with this instance.Instance.BuilderaddGuestAccelerators(int index, AcceleratorConfig value)A list of the type and count of accelerator cards attached to the instance.Instance.BuilderaddGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)A list of the type and count of accelerator cards attached to the instance.Instance.BuilderaddGuestAccelerators(AcceleratorConfig value)A list of the type and count of accelerator cards attached to the instance.Instance.BuilderaddGuestAccelerators(AcceleratorConfig.Builder builderForValue)A list of the type and count of accelerator cards attached to the instance.AcceleratorConfig.BuilderaddGuestAcceleratorsBuilder()A list of the type and count of accelerator cards attached to the instance.AcceleratorConfig.BuilderaddGuestAcceleratorsBuilder(int index)A list of the type and count of accelerator cards attached to the instance.Instance.BuilderaddNetworkInterfaces(int index, NetworkInterface value)An array of network configurations for this instance.Instance.BuilderaddNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)An array of network configurations for this instance.Instance.BuilderaddNetworkInterfaces(NetworkInterface value)An array of network configurations for this instance.Instance.BuilderaddNetworkInterfaces(NetworkInterface.Builder builderForValue)An array of network configurations for this instance.NetworkInterface.BuilderaddNetworkInterfacesBuilder()An array of network configurations for this instance.NetworkInterface.BuilderaddNetworkInterfacesBuilder(int index)An array of network configurations for this instance.Instance.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Instance.BuilderaddResourcePolicies(String value)Resource policies applied to this instance.Instance.BuilderaddResourcePoliciesBytes(com.google.protobuf.ByteString value)Resource policies applied to this instance.Instance.BuilderaddServiceAccounts(int index, ServiceAccount value)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuilderaddServiceAccounts(int index, ServiceAccount.Builder builderForValue)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuilderaddServiceAccounts(ServiceAccount value)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuilderaddServiceAccounts(ServiceAccount.Builder builderForValue)A list of service accounts, with their specified scopes, authorized for this instance.ServiceAccount.BuilderaddServiceAccountsBuilder()A list of service accounts, with their specified scopes, authorized for this instance.ServiceAccount.BuilderaddServiceAccountsBuilder(int index)A list of service accounts, with their specified scopes, authorized for this instance.Instancebuild()InstancebuildPartial()Instance.Builderclear()Instance.BuilderclearAdvancedMachineFeatures()Controls for advanced machine-related behavior features.Instance.BuilderclearCanIpForward()Allows this instance to send and receive packets with non-matching destination or source IPs.Instance.BuilderclearConfidentialInstanceConfig()optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;Instance.BuilderclearCpuPlatform()[Output Only] The CPU platform used by this instance.Instance.BuilderclearCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.Instance.BuilderclearDeletionProtection()Whether the resource should be protected against deletion.Instance.BuilderclearDescription()An optional description of this resource.Instance.BuilderclearDisks()Array of disks associated with this instance.Instance.BuilderclearDisplayDevice()Enables display device for the instance.Instance.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Instance.BuilderclearFingerprint()Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.Instance.BuilderclearGuestAccelerators()A list of the type and count of accelerator cards attached to the instance.Instance.BuilderclearHostname()Specifies the hostname of the instance.Instance.BuilderclearId()[Output Only] The unique identifier for the resource.Instance.BuilderclearInstanceEncryptionKey()Encrypts suspended data for an instance with a customer-managed encryption key.Instance.BuilderclearKeyRevocationActionType()KeyRevocationActionType of the instance.Instance.BuilderclearKind()[Output Only] Type of the resource.Instance.BuilderclearLabelFingerprint()A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.Instance.BuilderclearLabels()Instance.BuilderclearLastStartTimestamp()[Output Only] Last start timestamp in RFC3339 text format.Instance.BuilderclearLastStopTimestamp()[Output Only] Last stop timestamp in RFC3339 text format.Instance.BuilderclearLastSuspendedTimestamp()[Output Only] Last suspended timestamp in RFC3339 text format.Instance.BuilderclearMachineType()Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.Instance.BuilderclearMetadata()The metadata key/value pairs assigned to this instance.Instance.BuilderclearMinCpuPlatform()Specifies a minimum CPU platform for the VM instance.Instance.BuilderclearName()The name of the resource, provided by the client when initially creating the resource.Instance.BuilderclearNetworkInterfaces()An array of network configurations for this instance.Instance.BuilderclearNetworkPerformanceConfig()optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;Instance.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Instance.BuilderclearParams()Input only.Instance.BuilderclearPrivateIpv6GoogleAccess()The private IPv6 google access type for the VM.Instance.BuilderclearReservationAffinity()Specifies the reservations that this instance can consume from.Instance.BuilderclearResourcePolicies()Resource policies applied to this instance.Instance.BuilderclearResourceStatus()[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.Instance.BuilderclearSatisfiesPzs()[Output Only] Reserved for future use.Instance.BuilderclearScheduling()Sets the scheduling options for this instance.Instance.BuilderclearSelfLink()[Output Only] Server-defined URL for this resource.Instance.BuilderclearServiceAccounts()A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuilderclearShieldedInstanceConfig()optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;Instance.BuilderclearShieldedInstanceIntegrityPolicy()optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;Instance.BuilderclearSourceMachineImage()Source machine imageInstance.BuilderclearSourceMachineImageEncryptionKey()Source machine image encryption key when creating an instance from a machine image.Instance.BuilderclearStartRestricted()[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.Instance.BuilderclearStatus()[Output Only] The status of the instance.Instance.BuilderclearStatusMessage()[Output Only] An optional, human-readable explanation of the status.Instance.BuilderclearTags()Tags to apply to this instance.Instance.BuilderclearZone()[Output Only] URL of the zone where the instance resides.Instance.Builderclone()booleancontainsLabels(String key)Labels to apply to this instance.AdvancedMachineFeaturesgetAdvancedMachineFeatures()Controls for advanced machine-related behavior features.AdvancedMachineFeatures.BuildergetAdvancedMachineFeaturesBuilder()Controls for advanced machine-related behavior features.AdvancedMachineFeaturesOrBuildergetAdvancedMachineFeaturesOrBuilder()Controls for advanced machine-related behavior features.booleangetCanIpForward()Allows this instance to send and receive packets with non-matching destination or source IPs.ConfidentialInstanceConfiggetConfidentialInstanceConfig()optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;ConfidentialInstanceConfig.BuildergetConfidentialInstanceConfigBuilder()optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;ConfidentialInstanceConfigOrBuildergetConfidentialInstanceConfigOrBuilder()optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;StringgetCpuPlatform()[Output Only] The CPU platform used by this instance.com.google.protobuf.ByteStringgetCpuPlatformBytes()[Output Only] The CPU platform used by this instance.StringgetCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.InstancegetDefaultInstanceForType()booleangetDeletionProtection()Whether the resource should be protected against deletion.StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()AttachedDiskgetDisks(int index)Array of disks associated with this instance.AttachedDisk.BuildergetDisksBuilder(int index)Array of disks associated with this instance.List<AttachedDisk.Builder>getDisksBuilderList()Array of disks associated with this instance.intgetDisksCount()Array of disks associated with this instance.List<AttachedDisk>getDisksList()Array of disks associated with this instance.AttachedDiskOrBuildergetDisksOrBuilder(int index)Array of disks associated with this instance.List<? extends AttachedDiskOrBuilder>getDisksOrBuilderList()Array of disks associated with this instance.DisplayDevicegetDisplayDevice()Enables display device for the instance.DisplayDevice.BuildergetDisplayDeviceBuilder()Enables display device for the instance.DisplayDeviceOrBuildergetDisplayDeviceOrBuilder()Enables display device for the instance.StringgetFingerprint()Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.com.google.protobuf.ByteStringgetFingerprintBytes()Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.AcceleratorConfiggetGuestAccelerators(int index)A list of the type and count of accelerator cards attached to the instance.AcceleratorConfig.BuildergetGuestAcceleratorsBuilder(int index)A list of the type and count of accelerator cards attached to the instance.List<AcceleratorConfig.Builder>getGuestAcceleratorsBuilderList()A list of the type and count of accelerator cards attached to the instance.intgetGuestAcceleratorsCount()A list of the type and count of accelerator cards attached to the instance.List<AcceleratorConfig>getGuestAcceleratorsList()A list of the type and count of accelerator cards attached to the instance.AcceleratorConfigOrBuildergetGuestAcceleratorsOrBuilder(int index)A list of the type and count of accelerator cards attached to the instance.List<? extends AcceleratorConfigOrBuilder>getGuestAcceleratorsOrBuilderList()A list of the type and count of accelerator cards attached to the instance.StringgetHostname()Specifies the hostname of the instance.com.google.protobuf.ByteStringgetHostnameBytes()Specifies the hostname of the instance.longgetId()[Output Only] The unique identifier for the resource.CustomerEncryptionKeygetInstanceEncryptionKey()Encrypts suspended data for an instance with a customer-managed encryption key.CustomerEncryptionKey.BuildergetInstanceEncryptionKeyBuilder()Encrypts suspended data for an instance with a customer-managed encryption key.CustomerEncryptionKeyOrBuildergetInstanceEncryptionKeyOrBuilder()Encrypts suspended data for an instance with a customer-managed encryption key.StringgetKeyRevocationActionType()KeyRevocationActionType of the instance.com.google.protobuf.ByteStringgetKeyRevocationActionTypeBytes()KeyRevocationActionType of the instance.StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.StringgetLabelFingerprint()A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.com.google.protobuf.ByteStringgetLabelFingerprintBytes()A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels to apply to this instance.Map<String,String>getLabelsMap()Labels to apply to this instance.StringgetLabelsOrDefault(String key, String defaultValue)Labels to apply to this instance.StringgetLabelsOrThrow(String key)Labels to apply to this instance.StringgetLastStartTimestamp()[Output Only] Last start timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetLastStartTimestampBytes()[Output Only] Last start timestamp in RFC3339 text format.StringgetLastStopTimestamp()[Output Only] Last stop timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetLastStopTimestampBytes()[Output Only] Last stop timestamp in RFC3339 text format.StringgetLastSuspendedTimestamp()[Output Only] Last suspended timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetLastSuspendedTimestampBytes()[Output Only] Last suspended timestamp in RFC3339 text format.StringgetMachineType()Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.com.google.protobuf.ByteStringgetMachineTypeBytes()Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.MetadatagetMetadata()The metadata key/value pairs assigned to this instance.Metadata.BuildergetMetadataBuilder()The metadata key/value pairs assigned to this instance.MetadataOrBuildergetMetadataOrBuilder()The metadata key/value pairs assigned to this instance.StringgetMinCpuPlatform()Specifies a minimum CPU platform for the VM instance.com.google.protobuf.ByteStringgetMinCpuPlatformBytes()Specifies a minimum CPU platform for the VM instance.Map<String,String>getMutableLabels()Deprecated.StringgetName()The name of the resource, provided by the client when initially creating the resource.com.google.protobuf.ByteStringgetNameBytes()The name of the resource, provided by the client when initially creating the resource.NetworkInterfacegetNetworkInterfaces(int index)An array of network configurations for this instance.NetworkInterface.BuildergetNetworkInterfacesBuilder(int index)An array of network configurations for this instance.List<NetworkInterface.Builder>getNetworkInterfacesBuilderList()An array of network configurations for this instance.intgetNetworkInterfacesCount()An array of network configurations for this instance.List<NetworkInterface>getNetworkInterfacesList()An array of network configurations for this instance.NetworkInterfaceOrBuildergetNetworkInterfacesOrBuilder(int index)An array of network configurations for this instance.List<? extends NetworkInterfaceOrBuilder>getNetworkInterfacesOrBuilderList()An array of network configurations for this instance.NetworkPerformanceConfiggetNetworkPerformanceConfig()optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;NetworkPerformanceConfig.BuildergetNetworkPerformanceConfigBuilder()optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;NetworkPerformanceConfigOrBuildergetNetworkPerformanceConfigOrBuilder()optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;InstanceParamsgetParams()Input only.InstanceParams.BuildergetParamsBuilder()Input only.InstanceParamsOrBuildergetParamsOrBuilder()Input only.StringgetPrivateIpv6GoogleAccess()The private IPv6 google access type for the VM.com.google.protobuf.ByteStringgetPrivateIpv6GoogleAccessBytes()The private IPv6 google access type for the VM.ReservationAffinitygetReservationAffinity()Specifies the reservations that this instance can consume from.ReservationAffinity.BuildergetReservationAffinityBuilder()Specifies the reservations that this instance can consume from.ReservationAffinityOrBuildergetReservationAffinityOrBuilder()Specifies the reservations that this instance can consume from.StringgetResourcePolicies(int index)Resource policies applied to this instance.com.google.protobuf.ByteStringgetResourcePoliciesBytes(int index)Resource policies applied to this instance.intgetResourcePoliciesCount()Resource policies applied to this instance.com.google.protobuf.ProtocolStringListgetResourcePoliciesList()Resource policies applied to this instance.ResourceStatusgetResourceStatus()[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.ResourceStatus.BuildergetResourceStatusBuilder()[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.ResourceStatusOrBuildergetResourceStatusOrBuilder()[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.booleangetSatisfiesPzs()[Output Only] Reserved for future use.SchedulinggetScheduling()Sets the scheduling options for this instance.Scheduling.BuildergetSchedulingBuilder()Sets the scheduling options for this instance.SchedulingOrBuildergetSchedulingOrBuilder()Sets the scheduling options for this instance.StringgetSelfLink()[Output Only] Server-defined URL for this resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined URL for this resource.ServiceAccountgetServiceAccounts(int index)A list of service accounts, with their specified scopes, authorized for this instance.ServiceAccount.BuildergetServiceAccountsBuilder(int index)A list of service accounts, with their specified scopes, authorized for this instance.List<ServiceAccount.Builder>getServiceAccountsBuilderList()A list of service accounts, with their specified scopes, authorized for this instance.intgetServiceAccountsCount()A list of service accounts, with their specified scopes, authorized for this instance.List<ServiceAccount>getServiceAccountsList()A list of service accounts, with their specified scopes, authorized for this instance.ServiceAccountOrBuildergetServiceAccountsOrBuilder(int index)A list of service accounts, with their specified scopes, authorized for this instance.List<? extends ServiceAccountOrBuilder>getServiceAccountsOrBuilderList()A list of service accounts, with their specified scopes, authorized for this instance.ShieldedInstanceConfiggetShieldedInstanceConfig()optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;ShieldedInstanceConfig.BuildergetShieldedInstanceConfigBuilder()optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;ShieldedInstanceConfigOrBuildergetShieldedInstanceConfigOrBuilder()optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;ShieldedInstanceIntegrityPolicygetShieldedInstanceIntegrityPolicy()optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;ShieldedInstanceIntegrityPolicy.BuildergetShieldedInstanceIntegrityPolicyBuilder()optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;ShieldedInstanceIntegrityPolicyOrBuildergetShieldedInstanceIntegrityPolicyOrBuilder()optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;StringgetSourceMachineImage()Source machine imagecom.google.protobuf.ByteStringgetSourceMachineImageBytes()Source machine imageCustomerEncryptionKeygetSourceMachineImageEncryptionKey()Source machine image encryption key when creating an instance from a machine image.CustomerEncryptionKey.BuildergetSourceMachineImageEncryptionKeyBuilder()Source machine image encryption key when creating an instance from a machine image.CustomerEncryptionKeyOrBuildergetSourceMachineImageEncryptionKeyOrBuilder()Source machine image encryption key when creating an instance from a machine image.booleangetStartRestricted()[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.StringgetStatus()[Output Only] The status of the instance.com.google.protobuf.ByteStringgetStatusBytes()[Output Only] The status of the instance.StringgetStatusMessage()[Output Only] An optional, human-readable explanation of the status.com.google.protobuf.ByteStringgetStatusMessageBytes()[Output Only] An optional, human-readable explanation of the status.TagsgetTags()Tags to apply to this instance.Tags.BuildergetTagsBuilder()Tags to apply to this instance.TagsOrBuildergetTagsOrBuilder()Tags to apply to this instance.StringgetZone()[Output Only] URL of the zone where the instance resides.com.google.protobuf.ByteStringgetZoneBytes()[Output Only] URL of the zone where the instance resides.booleanhasAdvancedMachineFeatures()Controls for advanced machine-related behavior features.booleanhasCanIpForward()Allows this instance to send and receive packets with non-matching destination or source IPs.booleanhasConfidentialInstanceConfig()optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;booleanhasCpuPlatform()[Output Only] The CPU platform used by this instance.booleanhasCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.booleanhasDeletionProtection()Whether the resource should be protected against deletion.booleanhasDescription()An optional description of this resource.booleanhasDisplayDevice()Enables display device for the instance.booleanhasFingerprint()Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.booleanhasHostname()Specifies the hostname of the instance.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasInstanceEncryptionKey()Encrypts suspended data for an instance with a customer-managed encryption key.booleanhasKeyRevocationActionType()KeyRevocationActionType of the instance.booleanhasKind()[Output Only] Type of the resource.booleanhasLabelFingerprint()A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.booleanhasLastStartTimestamp()[Output Only] Last start timestamp in RFC3339 text format.booleanhasLastStopTimestamp()[Output Only] Last stop timestamp in RFC3339 text format.booleanhasLastSuspendedTimestamp()[Output Only] Last suspended timestamp in RFC3339 text format.booleanhasMachineType()Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.booleanhasMetadata()The metadata key/value pairs assigned to this instance.booleanhasMinCpuPlatform()Specifies a minimum CPU platform for the VM instance.booleanhasName()The name of the resource, provided by the client when initially creating the resource.booleanhasNetworkPerformanceConfig()optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;booleanhasParams()Input only.booleanhasPrivateIpv6GoogleAccess()The private IPv6 google access type for the VM.booleanhasReservationAffinity()Specifies the reservations that this instance can consume from.booleanhasResourceStatus()[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.booleanhasSatisfiesPzs()[Output Only] Reserved for future use.booleanhasScheduling()Sets the scheduling options for this instance.booleanhasSelfLink()[Output Only] Server-defined URL for this resource.booleanhasShieldedInstanceConfig()optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;booleanhasShieldedInstanceIntegrityPolicy()optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;booleanhasSourceMachineImage()Source machine imagebooleanhasSourceMachineImageEncryptionKey()Source machine image encryption key when creating an instance from a machine image.booleanhasStartRestricted()[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.booleanhasStatus()[Output Only] The status of the instance.booleanhasStatusMessage()[Output Only] An optional, human-readable explanation of the status.booleanhasTags()Tags to apply to this instance.booleanhasZone()[Output Only] URL of the zone where the instance resides.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Instance.BuildermergeAdvancedMachineFeatures(AdvancedMachineFeatures value)Controls for advanced machine-related behavior features.Instance.BuildermergeConfidentialInstanceConfig(ConfidentialInstanceConfig value)optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;Instance.BuildermergeDisplayDevice(DisplayDevice value)Enables display device for the instance.Instance.BuildermergeFrom(Instance other)Instance.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Instance.BuildermergeFrom(com.google.protobuf.Message other)Instance.BuildermergeInstanceEncryptionKey(CustomerEncryptionKey value)Encrypts suspended data for an instance with a customer-managed encryption key.Instance.BuildermergeMetadata(Metadata value)The metadata key/value pairs assigned to this instance.Instance.BuildermergeNetworkPerformanceConfig(NetworkPerformanceConfig value)optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;Instance.BuildermergeParams(InstanceParams value)Input only.Instance.BuildermergeReservationAffinity(ReservationAffinity value)Specifies the reservations that this instance can consume from.Instance.BuildermergeResourceStatus(ResourceStatus value)[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.Instance.BuildermergeScheduling(Scheduling value)Sets the scheduling options for this instance.Instance.BuildermergeShieldedInstanceConfig(ShieldedInstanceConfig value)optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;Instance.BuildermergeShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy value)optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;Instance.BuildermergeSourceMachineImageEncryptionKey(CustomerEncryptionKey value)Source machine image encryption key when creating an instance from a machine image.Instance.BuildermergeTags(Tags value)Tags to apply to this instance.Instance.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Instance.BuilderputAllLabels(Map<String,String> values)Labels to apply to this instance.Instance.BuilderputLabels(String key, String value)Labels to apply to this instance.Instance.BuilderremoveDisks(int index)Array of disks associated with this instance.Instance.BuilderremoveGuestAccelerators(int index)A list of the type and count of accelerator cards attached to the instance.Instance.BuilderremoveLabels(String key)Labels to apply to this instance.Instance.BuilderremoveNetworkInterfaces(int index)An array of network configurations for this instance.Instance.BuilderremoveServiceAccounts(int index)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuildersetAdvancedMachineFeatures(AdvancedMachineFeatures value)Controls for advanced machine-related behavior features.Instance.BuildersetAdvancedMachineFeatures(AdvancedMachineFeatures.Builder builderForValue)Controls for advanced machine-related behavior features.Instance.BuildersetCanIpForward(boolean value)Allows this instance to send and receive packets with non-matching destination or source IPs.Instance.BuildersetConfidentialInstanceConfig(ConfidentialInstanceConfig value)optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;Instance.BuildersetConfidentialInstanceConfig(ConfidentialInstanceConfig.Builder builderForValue)optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;Instance.BuildersetCpuPlatform(String value)[Output Only] The CPU platform used by this instance.Instance.BuildersetCpuPlatformBytes(com.google.protobuf.ByteString value)[Output Only] The CPU platform used by this instance.Instance.BuildersetCreationTimestamp(String value)[Output Only] Creation timestamp in RFC3339 text format.Instance.BuildersetCreationTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Creation timestamp in RFC3339 text format.Instance.BuildersetDeletionProtection(boolean value)Whether the resource should be protected against deletion.Instance.BuildersetDescription(String value)An optional description of this resource.Instance.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.Instance.BuildersetDisks(int index, AttachedDisk value)Array of disks associated with this instance.Instance.BuildersetDisks(int index, AttachedDisk.Builder builderForValue)Array of disks associated with this instance.Instance.BuildersetDisplayDevice(DisplayDevice value)Enables display device for the instance.Instance.BuildersetDisplayDevice(DisplayDevice.Builder builderForValue)Enables display device for the instance.Instance.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Instance.BuildersetFingerprint(String value)Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.Instance.BuildersetFingerprintBytes(com.google.protobuf.ByteString value)Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.Instance.BuildersetGuestAccelerators(int index, AcceleratorConfig value)A list of the type and count of accelerator cards attached to the instance.Instance.BuildersetGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)A list of the type and count of accelerator cards attached to the instance.Instance.BuildersetHostname(String value)Specifies the hostname of the instance.Instance.BuildersetHostnameBytes(com.google.protobuf.ByteString value)Specifies the hostname of the instance.Instance.BuildersetId(long value)[Output Only] The unique identifier for the resource.Instance.BuildersetInstanceEncryptionKey(CustomerEncryptionKey value)Encrypts suspended data for an instance with a customer-managed encryption key.Instance.BuildersetInstanceEncryptionKey(CustomerEncryptionKey.Builder builderForValue)Encrypts suspended data for an instance with a customer-managed encryption key.Instance.BuildersetKeyRevocationActionType(String value)KeyRevocationActionType of the instance.Instance.BuildersetKeyRevocationActionTypeBytes(com.google.protobuf.ByteString value)KeyRevocationActionType of the instance.Instance.BuildersetKind(String value)[Output Only] Type of the resource.Instance.BuildersetKindBytes(com.google.protobuf.ByteString value)[Output Only] Type of the resource.Instance.BuildersetLabelFingerprint(String value)A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.Instance.BuildersetLabelFingerprintBytes(com.google.protobuf.ByteString value)A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.Instance.BuildersetLastStartTimestamp(String value)[Output Only] Last start timestamp in RFC3339 text format.Instance.BuildersetLastStartTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Last start timestamp in RFC3339 text format.Instance.BuildersetLastStopTimestamp(String value)[Output Only] Last stop timestamp in RFC3339 text format.Instance.BuildersetLastStopTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Last stop timestamp in RFC3339 text format.Instance.BuildersetLastSuspendedTimestamp(String value)[Output Only] Last suspended timestamp in RFC3339 text format.Instance.BuildersetLastSuspendedTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Last suspended timestamp in RFC3339 text format.Instance.BuildersetMachineType(String value)Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.Instance.BuildersetMachineTypeBytes(com.google.protobuf.ByteString value)Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.Instance.BuildersetMetadata(Metadata value)The metadata key/value pairs assigned to this instance.Instance.BuildersetMetadata(Metadata.Builder builderForValue)The metadata key/value pairs assigned to this instance.Instance.BuildersetMinCpuPlatform(String value)Specifies a minimum CPU platform for the VM instance.Instance.BuildersetMinCpuPlatformBytes(com.google.protobuf.ByteString value)Specifies a minimum CPU platform for the VM instance.Instance.BuildersetName(String value)The name of the resource, provided by the client when initially creating the resource.Instance.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the resource, provided by the client when initially creating the resource.Instance.BuildersetNetworkInterfaces(int index, NetworkInterface value)An array of network configurations for this instance.Instance.BuildersetNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)An array of network configurations for this instance.Instance.BuildersetNetworkPerformanceConfig(NetworkPerformanceConfig value)optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;Instance.BuildersetNetworkPerformanceConfig(NetworkPerformanceConfig.Builder builderForValue)optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;Instance.BuildersetParams(InstanceParams value)Input only.Instance.BuildersetParams(InstanceParams.Builder builderForValue)Input only.Instance.BuildersetPrivateIpv6GoogleAccess(String value)The private IPv6 google access type for the VM.Instance.BuildersetPrivateIpv6GoogleAccessBytes(com.google.protobuf.ByteString value)The private IPv6 google access type for the VM.Instance.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Instance.BuildersetReservationAffinity(ReservationAffinity value)Specifies the reservations that this instance can consume from.Instance.BuildersetReservationAffinity(ReservationAffinity.Builder builderForValue)Specifies the reservations that this instance can consume from.Instance.BuildersetResourcePolicies(int index, String value)Resource policies applied to this instance.Instance.BuildersetResourceStatus(ResourceStatus value)[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.Instance.BuildersetResourceStatus(ResourceStatus.Builder builderForValue)[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.Instance.BuildersetSatisfiesPzs(boolean value)[Output Only] Reserved for future use.Instance.BuildersetScheduling(Scheduling value)Sets the scheduling options for this instance.Instance.BuildersetScheduling(Scheduling.Builder builderForValue)Sets the scheduling options for this instance.Instance.BuildersetSelfLink(String value)[Output Only] Server-defined URL for this resource.Instance.BuildersetSelfLinkBytes(com.google.protobuf.ByteString value)[Output Only] Server-defined URL for this resource.Instance.BuildersetServiceAccounts(int index, ServiceAccount value)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuildersetServiceAccounts(int index, ServiceAccount.Builder builderForValue)A list of service accounts, with their specified scopes, authorized for this instance.Instance.BuildersetShieldedInstanceConfig(ShieldedInstanceConfig value)optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;Instance.BuildersetShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;Instance.BuildersetShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy value)optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;Instance.BuildersetShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy.Builder builderForValue)optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;Instance.BuildersetSourceMachineImage(String value)Source machine imageInstance.BuildersetSourceMachineImageBytes(com.google.protobuf.ByteString value)Source machine imageInstance.BuildersetSourceMachineImageEncryptionKey(CustomerEncryptionKey value)Source machine image encryption key when creating an instance from a machine image.Instance.BuildersetSourceMachineImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue)Source machine image encryption key when creating an instance from a machine image.Instance.BuildersetStartRestricted(boolean value)[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.Instance.BuildersetStatus(String value)[Output Only] The status of the instance.Instance.BuildersetStatusBytes(com.google.protobuf.ByteString value)[Output Only] The status of the instance.Instance.BuildersetStatusMessage(String value)[Output Only] An optional, human-readable explanation of the status.Instance.BuildersetStatusMessageBytes(com.google.protobuf.ByteString value)[Output Only] An optional, human-readable explanation of the status.Instance.BuildersetTags(Tags value)Tags to apply to this instance.Instance.BuildersetTags(Tags.Builder builderForValue)Tags to apply to this instance.Instance.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Instance.BuildersetZone(String value)[Output Only] URL of the zone where the instance resides.Instance.BuildersetZoneBytes(com.google.protobuf.ByteString value)[Output Only] URL of the zone where the instance resides.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
clear
public Instance.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
getDefaultInstanceForType
public Instance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Instance build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Instance buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Instance.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
setField
public Instance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
clearField
public Instance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
clearOneof
public Instance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
setRepeatedField
public Instance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
addRepeatedField
public Instance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
mergeFrom
public Instance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.Builder>
-
mergeFrom
public Instance.Builder mergeFrom(Instance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
mergeFrom
public Instance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.Builder>- Throws:
IOException
-
hasAdvancedMachineFeatures
public boolean hasAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;- Specified by:
hasAdvancedMachineFeaturesin interfaceInstanceOrBuilder- Returns:
- Whether the advancedMachineFeatures field is set.
-
getAdvancedMachineFeatures
public AdvancedMachineFeatures getAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;- Specified by:
getAdvancedMachineFeaturesin interfaceInstanceOrBuilder- Returns:
- The advancedMachineFeatures.
-
setAdvancedMachineFeatures
public Instance.Builder setAdvancedMachineFeatures(AdvancedMachineFeatures value)
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
setAdvancedMachineFeatures
public Instance.Builder setAdvancedMachineFeatures(AdvancedMachineFeatures.Builder builderForValue)
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
mergeAdvancedMachineFeatures
public Instance.Builder mergeAdvancedMachineFeatures(AdvancedMachineFeatures value)
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
clearAdvancedMachineFeatures
public Instance.Builder clearAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
getAdvancedMachineFeaturesBuilder
public AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder()
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
-
getAdvancedMachineFeaturesOrBuilder
public AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder()
Controls for advanced machine-related behavior features.
optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;- Specified by:
getAdvancedMachineFeaturesOrBuilderin interfaceInstanceOrBuilder
-
hasCanIpForward
public boolean hasCanIpForward()
Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding .
optional bool can_ip_forward = 467731324;- Specified by:
hasCanIpForwardin interfaceInstanceOrBuilder- Returns:
- Whether the canIpForward field is set.
-
getCanIpForward
public boolean getCanIpForward()
Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding .
optional bool can_ip_forward = 467731324;- Specified by:
getCanIpForwardin interfaceInstanceOrBuilder- Returns:
- The canIpForward.
-
setCanIpForward
public Instance.Builder setCanIpForward(boolean value)
Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding .
optional bool can_ip_forward = 467731324;- Parameters:
value- The canIpForward to set.- Returns:
- This builder for chaining.
-
clearCanIpForward
public Instance.Builder clearCanIpForward()
Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding .
optional bool can_ip_forward = 467731324;- Returns:
- This builder for chaining.
-
hasConfidentialInstanceConfig
public boolean hasConfidentialInstanceConfig()
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;- Specified by:
hasConfidentialInstanceConfigin interfaceInstanceOrBuilder- Returns:
- Whether the confidentialInstanceConfig field is set.
-
getConfidentialInstanceConfig
public ConfidentialInstanceConfig getConfidentialInstanceConfig()
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;- Specified by:
getConfidentialInstanceConfigin interfaceInstanceOrBuilder- Returns:
- The confidentialInstanceConfig.
-
setConfidentialInstanceConfig
public Instance.Builder setConfidentialInstanceConfig(ConfidentialInstanceConfig value)
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
setConfidentialInstanceConfig
public Instance.Builder setConfidentialInstanceConfig(ConfidentialInstanceConfig.Builder builderForValue)
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
mergeConfidentialInstanceConfig
public Instance.Builder mergeConfidentialInstanceConfig(ConfidentialInstanceConfig value)
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
clearConfidentialInstanceConfig
public Instance.Builder clearConfidentialInstanceConfig()
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
getConfidentialInstanceConfigBuilder
public ConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder()
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
-
getConfidentialInstanceConfigOrBuilder
public ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder()
optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;- Specified by:
getConfidentialInstanceConfigOrBuilderin interfaceInstanceOrBuilder
-
hasCpuPlatform
public boolean hasCpuPlatform()
[Output Only] The CPU platform used by this instance.
optional string cpu_platform = 410285354;- Specified by:
hasCpuPlatformin interfaceInstanceOrBuilder- Returns:
- Whether the cpuPlatform field is set.
-
getCpuPlatform
public String getCpuPlatform()
[Output Only] The CPU platform used by this instance.
optional string cpu_platform = 410285354;- Specified by:
getCpuPlatformin interfaceInstanceOrBuilder- Returns:
- The cpuPlatform.
-
getCpuPlatformBytes
public com.google.protobuf.ByteString getCpuPlatformBytes()
[Output Only] The CPU platform used by this instance.
optional string cpu_platform = 410285354;- Specified by:
getCpuPlatformBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for cpuPlatform.
-
setCpuPlatform
public Instance.Builder setCpuPlatform(String value)
[Output Only] The CPU platform used by this instance.
optional string cpu_platform = 410285354;- Parameters:
value- The cpuPlatform to set.- Returns:
- This builder for chaining.
-
clearCpuPlatform
public Instance.Builder clearCpuPlatform()
[Output Only] The CPU platform used by this instance.
optional string cpu_platform = 410285354;- Returns:
- This builder for chaining.
-
setCpuPlatformBytes
public Instance.Builder setCpuPlatformBytes(com.google.protobuf.ByteString value)
[Output Only] The CPU platform used by this instance.
optional string cpu_platform = 410285354;- Parameters:
value- The bytes for cpuPlatform to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceInstanceOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceInstanceOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Instance.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Instance.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Instance.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDeletionProtection
public boolean hasDeletionProtection()
Whether the resource should be protected against deletion.
optional bool deletion_protection = 458014698;- Specified by:
hasDeletionProtectionin interfaceInstanceOrBuilder- Returns:
- Whether the deletionProtection field is set.
-
getDeletionProtection
public boolean getDeletionProtection()
Whether the resource should be protected against deletion.
optional bool deletion_protection = 458014698;- Specified by:
getDeletionProtectionin interfaceInstanceOrBuilder- Returns:
- The deletionProtection.
-
setDeletionProtection
public Instance.Builder setDeletionProtection(boolean value)
Whether the resource should be protected against deletion.
optional bool deletion_protection = 458014698;- Parameters:
value- The deletionProtection to set.- Returns:
- This builder for chaining.
-
clearDeletionProtection
public Instance.Builder clearDeletionProtection()
Whether the resource should be protected against deletion.
optional bool deletion_protection = 458014698;- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceInstanceOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceInstanceOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Instance.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Instance.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Instance.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDisksList
public List<AttachedDisk> getDisksList()
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksListin interfaceInstanceOrBuilder
-
getDisksCount
public int getDisksCount()
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksCountin interfaceInstanceOrBuilder
-
getDisks
public AttachedDisk getDisks(int index)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksin interfaceInstanceOrBuilder
-
setDisks
public Instance.Builder setDisks(int index, AttachedDisk value)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
setDisks
public Instance.Builder setDisks(int index, AttachedDisk.Builder builderForValue)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public Instance.Builder addDisks(AttachedDisk value)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public Instance.Builder addDisks(int index, AttachedDisk value)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public Instance.Builder addDisks(AttachedDisk.Builder builderForValue)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisks
public Instance.Builder addDisks(int index, AttachedDisk.Builder builderForValue)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addAllDisks
public Instance.Builder addAllDisks(Iterable<? extends AttachedDisk> values)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
clearDisks
public Instance.Builder clearDisks()
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
removeDisks
public Instance.Builder removeDisks(int index)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getDisksBuilder
public AttachedDisk.Builder getDisksBuilder(int index)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getDisksOrBuilder
public AttachedDiskOrBuilder getDisksOrBuilder(int index)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksOrBuilderin interfaceInstanceOrBuilder
-
getDisksOrBuilderList
public List<? extends AttachedDiskOrBuilder> getDisksOrBuilderList()
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksOrBuilderListin interfaceInstanceOrBuilder
-
addDisksBuilder
public AttachedDisk.Builder addDisksBuilder()
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
addDisksBuilder
public AttachedDisk.Builder addDisksBuilder(int index)
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
getDisksBuilderList
public List<AttachedDisk.Builder> getDisksBuilderList()
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
-
hasDisplayDevice
public boolean hasDisplayDevice()
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;- Specified by:
hasDisplayDevicein interfaceInstanceOrBuilder- Returns:
- Whether the displayDevice field is set.
-
getDisplayDevice
public DisplayDevice getDisplayDevice()
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;- Specified by:
getDisplayDevicein interfaceInstanceOrBuilder- Returns:
- The displayDevice.
-
setDisplayDevice
public Instance.Builder setDisplayDevice(DisplayDevice value)
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
-
setDisplayDevice
public Instance.Builder setDisplayDevice(DisplayDevice.Builder builderForValue)
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
-
mergeDisplayDevice
public Instance.Builder mergeDisplayDevice(DisplayDevice value)
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
-
clearDisplayDevice
public Instance.Builder clearDisplayDevice()
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
-
getDisplayDeviceBuilder
public DisplayDevice.Builder getDisplayDeviceBuilder()
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
-
getDisplayDeviceOrBuilder
public DisplayDeviceOrBuilder getDisplayDeviceOrBuilder()
Enables display device for the instance.
optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;- Specified by:
getDisplayDeviceOrBuilderin interfaceInstanceOrBuilder
-
hasFingerprint
public boolean hasFingerprint()
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
optional string fingerprint = 234678500;- Specified by:
hasFingerprintin interfaceInstanceOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
public String getFingerprint()
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
optional string fingerprint = 234678500;- Specified by:
getFingerprintin interfaceInstanceOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
optional string fingerprint = 234678500;- Specified by:
getFingerprintBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
public Instance.Builder setFingerprint(String value)
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
optional string fingerprint = 234678500;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
public Instance.Builder clearFingerprint()
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
optional string fingerprint = 234678500;- Returns:
- This builder for chaining.
-
setFingerprintBytes
public Instance.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
optional string fingerprint = 234678500;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
getGuestAcceleratorsList
public List<AcceleratorConfig> getGuestAcceleratorsList()
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;- Specified by:
getGuestAcceleratorsListin interfaceInstanceOrBuilder
-
getGuestAcceleratorsCount
public int getGuestAcceleratorsCount()
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;- Specified by:
getGuestAcceleratorsCountin interfaceInstanceOrBuilder
-
getGuestAccelerators
public AcceleratorConfig getGuestAccelerators(int index)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;- Specified by:
getGuestAcceleratorsin interfaceInstanceOrBuilder
-
setGuestAccelerators
public Instance.Builder setGuestAccelerators(int index, AcceleratorConfig value)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
setGuestAccelerators
public Instance.Builder setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public Instance.Builder addGuestAccelerators(AcceleratorConfig value)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public Instance.Builder addGuestAccelerators(int index, AcceleratorConfig value)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public Instance.Builder addGuestAccelerators(AcceleratorConfig.Builder builderForValue)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAccelerators
public Instance.Builder addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addAllGuestAccelerators
public Instance.Builder addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
clearGuestAccelerators
public Instance.Builder clearGuestAccelerators()
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
removeGuestAccelerators
public Instance.Builder removeGuestAccelerators(int index)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
getGuestAcceleratorsBuilder
public AcceleratorConfig.Builder getGuestAcceleratorsBuilder(int index)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
getGuestAcceleratorsOrBuilder
public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;- Specified by:
getGuestAcceleratorsOrBuilderin interfaceInstanceOrBuilder
-
getGuestAcceleratorsOrBuilderList
public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;- Specified by:
getGuestAcceleratorsOrBuilderListin interfaceInstanceOrBuilder
-
addGuestAcceleratorsBuilder
public AcceleratorConfig.Builder addGuestAcceleratorsBuilder()
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
addGuestAcceleratorsBuilder
public AcceleratorConfig.Builder addGuestAcceleratorsBuilder(int index)
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
getGuestAcceleratorsBuilderList
public List<AcceleratorConfig.Builder> getGuestAcceleratorsBuilderList()
A list of the type and count of accelerator cards attached to the instance.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
-
hasHostname
public boolean hasHostname()
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
optional string hostname = 237067315;- Specified by:
hasHostnamein interfaceInstanceOrBuilder- Returns:
- Whether the hostname field is set.
-
getHostname
public String getHostname()
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
optional string hostname = 237067315;- Specified by:
getHostnamein interfaceInstanceOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
optional string hostname = 237067315;- Specified by:
getHostnameBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
public Instance.Builder setHostname(String value)
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
optional string hostname = 237067315;- Parameters:
value- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
public Instance.Builder clearHostname()
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
optional string hostname = 237067315;- Returns:
- This builder for chaining.
-
setHostnameBytes
public Instance.Builder setHostnameBytes(com.google.protobuf.ByteString value)
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
optional string hostname = 237067315;- Parameters:
value- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceInstanceOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceInstanceOrBuilder- Returns:
- The id.
-
setId
public Instance.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Instance.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasInstanceEncryptionKey
public boolean hasInstanceEncryptionKey()
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;- Specified by:
hasInstanceEncryptionKeyin interfaceInstanceOrBuilder- Returns:
- Whether the instanceEncryptionKey field is set.
-
getInstanceEncryptionKey
public CustomerEncryptionKey getInstanceEncryptionKey()
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;- Specified by:
getInstanceEncryptionKeyin interfaceInstanceOrBuilder- Returns:
- The instanceEncryptionKey.
-
setInstanceEncryptionKey
public Instance.Builder setInstanceEncryptionKey(CustomerEncryptionKey value)
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
-
setInstanceEncryptionKey
public Instance.Builder setInstanceEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
-
mergeInstanceEncryptionKey
public Instance.Builder mergeInstanceEncryptionKey(CustomerEncryptionKey value)
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
-
clearInstanceEncryptionKey
public Instance.Builder clearInstanceEncryptionKey()
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
-
getInstanceEncryptionKeyBuilder
public CustomerEncryptionKey.Builder getInstanceEncryptionKeyBuilder()
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
-
getInstanceEncryptionKeyOrBuilder
public CustomerEncryptionKeyOrBuilder getInstanceEncryptionKeyOrBuilder()
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;- Specified by:
getInstanceEncryptionKeyOrBuilderin interfaceInstanceOrBuilder
-
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 interfaceInstanceOrBuilder- 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:
getKeyRevocationActionTypein interfaceInstanceOrBuilder- 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 interfaceInstanceOrBuilder- Returns:
- The bytes for keyRevocationActionType.
-
setKeyRevocationActionType
public Instance.Builder setKeyRevocationActionType(String value)
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;- Parameters:
value- The keyRevocationActionType to set.- Returns:
- This builder for chaining.
-
clearKeyRevocationActionType
public Instance.Builder clearKeyRevocationActionType()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;- Returns:
- This builder for chaining.
-
setKeyRevocationActionTypeBytes
public Instance.Builder setKeyRevocationActionTypeBytes(com.google.protobuf.ByteString value)
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;- Parameters:
value- The bytes for keyRevocationActionType to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#instance for instances.
optional string kind = 3292052;- Specified by:
hasKindin interfaceInstanceOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#instance for instances.
optional string kind = 3292052;- Specified by:
getKindin interfaceInstanceOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#instance for instances.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for kind.
-
setKind
public Instance.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#instance for instances.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Instance.Builder clearKind()
[Output Only] Type of the resource. Always compute#instance for instances.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
public Instance.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#instance for instances.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLabelFingerprint
public boolean hasLabelFingerprint()
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
optional string label_fingerprint = 178124825;- Specified by:
hasLabelFingerprintin interfaceInstanceOrBuilder- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
public String getLabelFingerprint()
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintin interfaceInstanceOrBuilder- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public com.google.protobuf.ByteString getLabelFingerprintBytes()
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
public Instance.Builder setLabelFingerprint(String value)
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
optional string label_fingerprint = 178124825;- Parameters:
value- The labelFingerprint to set.- Returns:
- This builder for chaining.
-
clearLabelFingerprint
public Instance.Builder clearLabelFingerprint()
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
optional string label_fingerprint = 178124825;- Returns:
- This builder for chaining.
-
setLabelFingerprintBytes
public Instance.Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value)
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
optional string label_fingerprint = 178124825;- Parameters:
value- The bytes for labelFingerprint to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:InstanceOrBuilderLabels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceInstanceOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceInstanceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceInstanceOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceInstanceOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceInstanceOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceInstanceOrBuilder
-
clearLabels
public Instance.Builder clearLabels()
-
removeLabels
public Instance.Builder removeLabels(String key)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Instance.Builder putLabels(String key, String value)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
-
putAllLabels
public Instance.Builder putAllLabels(Map<String,String> values)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
-
hasLastStartTimestamp
public boolean hasLastStartTimestamp()
[Output Only] Last start timestamp in RFC3339 text format.
optional string last_start_timestamp = 443830736;- Specified by:
hasLastStartTimestampin interfaceInstanceOrBuilder- Returns:
- Whether the lastStartTimestamp field is set.
-
getLastStartTimestamp
public String getLastStartTimestamp()
[Output Only] Last start timestamp in RFC3339 text format.
optional string last_start_timestamp = 443830736;- Specified by:
getLastStartTimestampin interfaceInstanceOrBuilder- Returns:
- The lastStartTimestamp.
-
getLastStartTimestampBytes
public com.google.protobuf.ByteString getLastStartTimestampBytes()
[Output Only] Last start timestamp in RFC3339 text format.
optional string last_start_timestamp = 443830736;- Specified by:
getLastStartTimestampBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for lastStartTimestamp.
-
setLastStartTimestamp
public Instance.Builder setLastStartTimestamp(String value)
[Output Only] Last start timestamp in RFC3339 text format.
optional string last_start_timestamp = 443830736;- Parameters:
value- The lastStartTimestamp to set.- Returns:
- This builder for chaining.
-
clearLastStartTimestamp
public Instance.Builder clearLastStartTimestamp()
[Output Only] Last start timestamp in RFC3339 text format.
optional string last_start_timestamp = 443830736;- Returns:
- This builder for chaining.
-
setLastStartTimestampBytes
public Instance.Builder setLastStartTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Last start timestamp in RFC3339 text format.
optional string last_start_timestamp = 443830736;- Parameters:
value- The bytes for lastStartTimestamp to set.- Returns:
- This builder for chaining.
-
hasLastStopTimestamp
public boolean hasLastStopTimestamp()
[Output Only] Last stop timestamp in RFC3339 text format.
optional string last_stop_timestamp = 412823010;- Specified by:
hasLastStopTimestampin interfaceInstanceOrBuilder- Returns:
- Whether the lastStopTimestamp field is set.
-
getLastStopTimestamp
public String getLastStopTimestamp()
[Output Only] Last stop timestamp in RFC3339 text format.
optional string last_stop_timestamp = 412823010;- Specified by:
getLastStopTimestampin interfaceInstanceOrBuilder- Returns:
- The lastStopTimestamp.
-
getLastStopTimestampBytes
public com.google.protobuf.ByteString getLastStopTimestampBytes()
[Output Only] Last stop timestamp in RFC3339 text format.
optional string last_stop_timestamp = 412823010;- Specified by:
getLastStopTimestampBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for lastStopTimestamp.
-
setLastStopTimestamp
public Instance.Builder setLastStopTimestamp(String value)
[Output Only] Last stop timestamp in RFC3339 text format.
optional string last_stop_timestamp = 412823010;- Parameters:
value- The lastStopTimestamp to set.- Returns:
- This builder for chaining.
-
clearLastStopTimestamp
public Instance.Builder clearLastStopTimestamp()
[Output Only] Last stop timestamp in RFC3339 text format.
optional string last_stop_timestamp = 412823010;- Returns:
- This builder for chaining.
-
setLastStopTimestampBytes
public Instance.Builder setLastStopTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Last stop timestamp in RFC3339 text format.
optional string last_stop_timestamp = 412823010;- Parameters:
value- The bytes for lastStopTimestamp to set.- Returns:
- This builder for chaining.
-
hasLastSuspendedTimestamp
public boolean hasLastSuspendedTimestamp()
[Output Only] Last suspended timestamp in RFC3339 text format.
optional string last_suspended_timestamp = 356275337;- Specified by:
hasLastSuspendedTimestampin interfaceInstanceOrBuilder- Returns:
- Whether the lastSuspendedTimestamp field is set.
-
getLastSuspendedTimestamp
public String getLastSuspendedTimestamp()
[Output Only] Last suspended timestamp in RFC3339 text format.
optional string last_suspended_timestamp = 356275337;- Specified by:
getLastSuspendedTimestampin interfaceInstanceOrBuilder- Returns:
- The lastSuspendedTimestamp.
-
getLastSuspendedTimestampBytes
public com.google.protobuf.ByteString getLastSuspendedTimestampBytes()
[Output Only] Last suspended timestamp in RFC3339 text format.
optional string last_suspended_timestamp = 356275337;- Specified by:
getLastSuspendedTimestampBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for lastSuspendedTimestamp.
-
setLastSuspendedTimestamp
public Instance.Builder setLastSuspendedTimestamp(String value)
[Output Only] Last suspended timestamp in RFC3339 text format.
optional string last_suspended_timestamp = 356275337;- Parameters:
value- The lastSuspendedTimestamp to set.- Returns:
- This builder for chaining.
-
clearLastSuspendedTimestamp
public Instance.Builder clearLastSuspendedTimestamp()
[Output Only] Last suspended timestamp in RFC3339 text format.
optional string last_suspended_timestamp = 356275337;- Returns:
- This builder for chaining.
-
setLastSuspendedTimestampBytes
public Instance.Builder setLastSuspendedTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Last suspended timestamp in RFC3339 text format.
optional string last_suspended_timestamp = 356275337;- Parameters:
value- The bytes for lastSuspendedTimestamp to set.- Returns:
- This builder for chaining.
-
hasMachineType
public boolean hasMachineType()
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
optional string machine_type = 227711026;- Specified by:
hasMachineTypein interfaceInstanceOrBuilder- Returns:
- Whether the machineType field is set.
-
getMachineType
public String getMachineType()
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
optional string machine_type = 227711026;- Specified by:
getMachineTypein interfaceInstanceOrBuilder- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
optional string machine_type = 227711026;- Specified by:
getMachineTypeBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for machineType.
-
setMachineType
public Instance.Builder setMachineType(String value)
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
optional string machine_type = 227711026;- Parameters:
value- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
public Instance.Builder clearMachineType()
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
optional string machine_type = 227711026;- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public Instance.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
optional string machine_type = 227711026;- Parameters:
value- The bytes for machineType to set.- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;- Specified by:
hasMetadatain interfaceInstanceOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;- Specified by:
getMetadatain interfaceInstanceOrBuilder- Returns:
- The metadata.
-
setMetadata
public Instance.Builder setMetadata(Metadata value)
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
setMetadata
public Instance.Builder setMetadata(Metadata.Builder builderForValue)
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
mergeMetadata
public Instance.Builder mergeMetadata(Metadata value)
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
clearMetadata
public Instance.Builder clearMetadata()
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;- Specified by:
getMetadataOrBuilderin interfaceInstanceOrBuilder
-
hasMinCpuPlatform
public boolean hasMinCpuPlatform()
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
optional string min_cpu_platform = 242912759;- Specified by:
hasMinCpuPlatformin interfaceInstanceOrBuilder- Returns:
- Whether the minCpuPlatform field is set.
-
getMinCpuPlatform
public String getMinCpuPlatform()
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
optional string min_cpu_platform = 242912759;- Specified by:
getMinCpuPlatformin interfaceInstanceOrBuilder- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
optional string min_cpu_platform = 242912759;- Specified by:
getMinCpuPlatformBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for minCpuPlatform.
-
setMinCpuPlatform
public Instance.Builder setMinCpuPlatform(String value)
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
optional string min_cpu_platform = 242912759;- Parameters:
value- The minCpuPlatform to set.- Returns:
- This builder for chaining.
-
clearMinCpuPlatform
public Instance.Builder clearMinCpuPlatform()
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
optional string min_cpu_platform = 242912759;- Returns:
- This builder for chaining.
-
setMinCpuPlatformBytes
public Instance.Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
optional string min_cpu_platform = 242912759;- Parameters:
value- The bytes for minCpuPlatform to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
hasNamein interfaceInstanceOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNamein interfaceInstanceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for name.
-
setName
public Instance.Builder setName(String value)
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Instance.Builder clearName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
public Instance.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getNetworkInterfacesList
public List<NetworkInterface> getNetworkInterfacesList()
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesListin interfaceInstanceOrBuilder
-
getNetworkInterfacesCount
public int getNetworkInterfacesCount()
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesCountin interfaceInstanceOrBuilder
-
getNetworkInterfaces
public NetworkInterface getNetworkInterfaces(int index)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesin interfaceInstanceOrBuilder
-
setNetworkInterfaces
public Instance.Builder setNetworkInterfaces(int index, NetworkInterface value)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
setNetworkInterfaces
public Instance.Builder setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public Instance.Builder addNetworkInterfaces(NetworkInterface value)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public Instance.Builder addNetworkInterfaces(int index, NetworkInterface value)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public Instance.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfaces
public Instance.Builder addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addAllNetworkInterfaces
public Instance.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
clearNetworkInterfaces
public Instance.Builder clearNetworkInterfaces()
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
removeNetworkInterfaces
public Instance.Builder removeNetworkInterfaces(int index)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesBuilder
public NetworkInterface.Builder getNetworkInterfacesBuilder(int index)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesOrBuilder
public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesOrBuilderin interfaceInstanceOrBuilder
-
getNetworkInterfacesOrBuilderList
public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;- Specified by:
getNetworkInterfacesOrBuilderListin interfaceInstanceOrBuilder
-
addNetworkInterfacesBuilder
public NetworkInterface.Builder addNetworkInterfacesBuilder()
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
addNetworkInterfacesBuilder
public NetworkInterface.Builder addNetworkInterfacesBuilder(int index)
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesBuilderList
public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
hasNetworkPerformanceConfig
public boolean hasNetworkPerformanceConfig()
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;- Specified by:
hasNetworkPerformanceConfigin interfaceInstanceOrBuilder- Returns:
- Whether the networkPerformanceConfig field is set.
-
getNetworkPerformanceConfig
public NetworkPerformanceConfig getNetworkPerformanceConfig()
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;- Specified by:
getNetworkPerformanceConfigin interfaceInstanceOrBuilder- Returns:
- The networkPerformanceConfig.
-
setNetworkPerformanceConfig
public Instance.Builder setNetworkPerformanceConfig(NetworkPerformanceConfig value)
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
setNetworkPerformanceConfig
public Instance.Builder setNetworkPerformanceConfig(NetworkPerformanceConfig.Builder builderForValue)
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
mergeNetworkPerformanceConfig
public Instance.Builder mergeNetworkPerformanceConfig(NetworkPerformanceConfig value)
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
clearNetworkPerformanceConfig
public Instance.Builder clearNetworkPerformanceConfig()
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
getNetworkPerformanceConfigBuilder
public NetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder()
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
-
getNetworkPerformanceConfigOrBuilder
public NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()
optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;- Specified by:
getNetworkPerformanceConfigOrBuilderin interfaceInstanceOrBuilder
-
hasParams
public boolean hasParams()
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;- Specified by:
hasParamsin interfaceInstanceOrBuilder- Returns:
- Whether the params field is set.
-
getParams
public InstanceParams getParams()
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;- Specified by:
getParamsin interfaceInstanceOrBuilder- Returns:
- The params.
-
setParams
public Instance.Builder setParams(InstanceParams value)
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;
-
setParams
public Instance.Builder setParams(InstanceParams.Builder builderForValue)
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;
-
mergeParams
public Instance.Builder mergeParams(InstanceParams value)
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;
-
clearParams
public Instance.Builder clearParams()
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;
-
getParamsBuilder
public InstanceParams.Builder getParamsBuilder()
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;
-
getParamsOrBuilder
public InstanceParamsOrBuilder getParamsOrBuilder()
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.InstanceParams params = 78313862;- Specified by:
getParamsOrBuilderin interfaceInstanceOrBuilder
-
hasPrivateIpv6GoogleAccess
public boolean hasPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;- Specified by:
hasPrivateIpv6GoogleAccessin interfaceInstanceOrBuilder- Returns:
- Whether the privateIpv6GoogleAccess field is set.
-
getPrivateIpv6GoogleAccess
public String getPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;- Specified by:
getPrivateIpv6GoogleAccessin interfaceInstanceOrBuilder- Returns:
- The privateIpv6GoogleAccess.
-
getPrivateIpv6GoogleAccessBytes
public com.google.protobuf.ByteString getPrivateIpv6GoogleAccessBytes()
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;- Specified by:
getPrivateIpv6GoogleAccessBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for privateIpv6GoogleAccess.
-
setPrivateIpv6GoogleAccess
public Instance.Builder setPrivateIpv6GoogleAccess(String value)
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;- Parameters:
value- The privateIpv6GoogleAccess to set.- Returns:
- This builder for chaining.
-
clearPrivateIpv6GoogleAccess
public Instance.Builder clearPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;- Returns:
- This builder for chaining.
-
setPrivateIpv6GoogleAccessBytes
public Instance.Builder setPrivateIpv6GoogleAccessBytes(com.google.protobuf.ByteString value)
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;- Parameters:
value- The bytes for privateIpv6GoogleAccess to set.- Returns:
- This builder for chaining.
-
hasReservationAffinity
public boolean hasReservationAffinity()
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;- Specified by:
hasReservationAffinityin interfaceInstanceOrBuilder- Returns:
- Whether the reservationAffinity field is set.
-
getReservationAffinity
public ReservationAffinity getReservationAffinity()
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;- Specified by:
getReservationAffinityin interfaceInstanceOrBuilder- Returns:
- The reservationAffinity.
-
setReservationAffinity
public Instance.Builder setReservationAffinity(ReservationAffinity value)
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
setReservationAffinity
public Instance.Builder setReservationAffinity(ReservationAffinity.Builder builderForValue)
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
mergeReservationAffinity
public Instance.Builder mergeReservationAffinity(ReservationAffinity value)
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
clearReservationAffinity
public Instance.Builder clearReservationAffinity()
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
getReservationAffinityBuilder
public ReservationAffinity.Builder getReservationAffinityBuilder()
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
-
getReservationAffinityOrBuilder
public ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
Specifies the reservations that this instance can consume from.
optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;- Specified by:
getReservationAffinityOrBuilderin interfaceInstanceOrBuilder
-
getResourcePoliciesList
public com.google.protobuf.ProtocolStringList getResourcePoliciesList()
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Specified by:
getResourcePoliciesListin interfaceInstanceOrBuilder- Returns:
- A list containing the resourcePolicies.
-
getResourcePoliciesCount
public int getResourcePoliciesCount()
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Specified by:
getResourcePoliciesCountin interfaceInstanceOrBuilder- Returns:
- The count of resourcePolicies.
-
getResourcePolicies
public String getResourcePolicies(int index)
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Specified by:
getResourcePoliciesin interfaceInstanceOrBuilder- 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 applied to this instance.
repeated string resource_policies = 22220385;- Specified by:
getResourcePoliciesBytesin interfaceInstanceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourcePolicies at the given index.
-
setResourcePolicies
public Instance.Builder setResourcePolicies(int index, String value)
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Parameters:
index- The index to set the value at.value- The resourcePolicies to set.- Returns:
- This builder for chaining.
-
addResourcePolicies
public Instance.Builder addResourcePolicies(String value)
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Parameters:
value- The resourcePolicies to add.- Returns:
- This builder for chaining.
-
addAllResourcePolicies
public Instance.Builder addAllResourcePolicies(Iterable<String> values)
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Parameters:
values- The resourcePolicies to add.- Returns:
- This builder for chaining.
-
clearResourcePolicies
public Instance.Builder clearResourcePolicies()
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Returns:
- This builder for chaining.
-
addResourcePoliciesBytes
public Instance.Builder addResourcePoliciesBytes(com.google.protobuf.ByteString value)
Resource policies applied to this instance.
repeated string resource_policies = 22220385;- Parameters:
value- The bytes of the resourcePolicies to add.- Returns:
- This builder for chaining.
-
hasResourceStatus
public boolean hasResourceStatus()
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;- Specified by:
hasResourceStatusin interfaceInstanceOrBuilder- Returns:
- Whether the resourceStatus field is set.
-
getResourceStatus
public ResourceStatus getResourceStatus()
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;- Specified by:
getResourceStatusin interfaceInstanceOrBuilder- Returns:
- The resourceStatus.
-
setResourceStatus
public Instance.Builder setResourceStatus(ResourceStatus value)
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
-
setResourceStatus
public Instance.Builder setResourceStatus(ResourceStatus.Builder builderForValue)
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
-
mergeResourceStatus
public Instance.Builder mergeResourceStatus(ResourceStatus value)
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
-
clearResourceStatus
public Instance.Builder clearResourceStatus()
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
-
getResourceStatusBuilder
public ResourceStatus.Builder getResourceStatusBuilder()
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
-
getResourceStatusOrBuilder
public ResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;- Specified by:
getResourceStatusOrBuilderin interfaceInstanceOrBuilder
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
hasSatisfiesPzsin interfaceInstanceOrBuilder- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
getSatisfiesPzsin interfaceInstanceOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
public Instance.Builder setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
public Instance.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- This builder for chaining.
-
hasScheduling
public boolean hasScheduling()
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;- Specified by:
hasSchedulingin interfaceInstanceOrBuilder- Returns:
- Whether the scheduling field is set.
-
getScheduling
public Scheduling getScheduling()
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;- Specified by:
getSchedulingin interfaceInstanceOrBuilder- Returns:
- The scheduling.
-
setScheduling
public Instance.Builder setScheduling(Scheduling value)
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
setScheduling
public Instance.Builder setScheduling(Scheduling.Builder builderForValue)
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
mergeScheduling
public Instance.Builder mergeScheduling(Scheduling value)
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
clearScheduling
public Instance.Builder clearScheduling()
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getSchedulingBuilder
public Scheduling.Builder getSchedulingBuilder()
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getSchedulingOrBuilder
public SchedulingOrBuilder getSchedulingOrBuilder()
Sets the scheduling options for this instance.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;- Specified by:
getSchedulingOrBuilderin interfaceInstanceOrBuilder
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceInstanceOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceInstanceOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
public Instance.Builder setSelfLink(String value)
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Instance.Builder clearSelfLink()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Instance.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
getServiceAccountsList
public List<ServiceAccount> getServiceAccountsList()
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;- Specified by:
getServiceAccountsListin interfaceInstanceOrBuilder
-
getServiceAccountsCount
public int getServiceAccountsCount()
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;- Specified by:
getServiceAccountsCountin interfaceInstanceOrBuilder
-
getServiceAccounts
public ServiceAccount getServiceAccounts(int index)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;- Specified by:
getServiceAccountsin interfaceInstanceOrBuilder
-
setServiceAccounts
public Instance.Builder setServiceAccounts(int index, ServiceAccount value)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
setServiceAccounts
public Instance.Builder setServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public Instance.Builder addServiceAccounts(ServiceAccount value)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public Instance.Builder addServiceAccounts(int index, ServiceAccount value)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public Instance.Builder addServiceAccounts(ServiceAccount.Builder builderForValue)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccounts
public Instance.Builder addServiceAccounts(int index, ServiceAccount.Builder builderForValue)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addAllServiceAccounts
public Instance.Builder addAllServiceAccounts(Iterable<? extends ServiceAccount> values)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
clearServiceAccounts
public Instance.Builder clearServiceAccounts()
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
removeServiceAccounts
public Instance.Builder removeServiceAccounts(int index)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
getServiceAccountsBuilder
public ServiceAccount.Builder getServiceAccountsBuilder(int index)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
getServiceAccountsOrBuilder
public ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;- Specified by:
getServiceAccountsOrBuilderin interfaceInstanceOrBuilder
-
getServiceAccountsOrBuilderList
public List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;- Specified by:
getServiceAccountsOrBuilderListin interfaceInstanceOrBuilder
-
addServiceAccountsBuilder
public ServiceAccount.Builder addServiceAccountsBuilder()
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
addServiceAccountsBuilder
public ServiceAccount.Builder addServiceAccountsBuilder(int index)
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
getServiceAccountsBuilderList
public List<ServiceAccount.Builder> getServiceAccountsBuilderList()
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;- Specified by:
hasShieldedInstanceConfigin interfaceInstanceOrBuilder- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
public ShieldedInstanceConfig getShieldedInstanceConfig()
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;- Specified by:
getShieldedInstanceConfigin interfaceInstanceOrBuilder- Returns:
- The shieldedInstanceConfig.
-
setShieldedInstanceConfig
public Instance.Builder setShieldedInstanceConfig(ShieldedInstanceConfig value)
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
setShieldedInstanceConfig
public Instance.Builder setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
mergeShieldedInstanceConfig
public Instance.Builder mergeShieldedInstanceConfig(ShieldedInstanceConfig value)
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
clearShieldedInstanceConfig
public Instance.Builder clearShieldedInstanceConfig()
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
getShieldedInstanceConfigBuilder
public ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
-
getShieldedInstanceConfigOrBuilder
public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;- Specified by:
getShieldedInstanceConfigOrBuilderin interfaceInstanceOrBuilder
-
hasShieldedInstanceIntegrityPolicy
public boolean hasShieldedInstanceIntegrityPolicy()
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;- Specified by:
hasShieldedInstanceIntegrityPolicyin interfaceInstanceOrBuilder- Returns:
- Whether the shieldedInstanceIntegrityPolicy field is set.
-
getShieldedInstanceIntegrityPolicy
public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy()
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;- Specified by:
getShieldedInstanceIntegrityPolicyin interfaceInstanceOrBuilder- Returns:
- The shieldedInstanceIntegrityPolicy.
-
setShieldedInstanceIntegrityPolicy
public Instance.Builder setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy value)
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
-
setShieldedInstanceIntegrityPolicy
public Instance.Builder setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy.Builder builderForValue)
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
-
mergeShieldedInstanceIntegrityPolicy
public Instance.Builder mergeShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy value)
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
-
clearShieldedInstanceIntegrityPolicy
public Instance.Builder clearShieldedInstanceIntegrityPolicy()
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
-
getShieldedInstanceIntegrityPolicyBuilder
public ShieldedInstanceIntegrityPolicy.Builder getShieldedInstanceIntegrityPolicyBuilder()
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
-
getShieldedInstanceIntegrityPolicyOrBuilder
public ShieldedInstanceIntegrityPolicyOrBuilder getShieldedInstanceIntegrityPolicyOrBuilder()
optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;- Specified by:
getShieldedInstanceIntegrityPolicyOrBuilderin interfaceInstanceOrBuilder
-
hasSourceMachineImage
public boolean hasSourceMachineImage()
Source machine image
optional string source_machine_image = 21769791;- Specified by:
hasSourceMachineImagein interfaceInstanceOrBuilder- Returns:
- Whether the sourceMachineImage field is set.
-
getSourceMachineImage
public String getSourceMachineImage()
Source machine image
optional string source_machine_image = 21769791;- Specified by:
getSourceMachineImagein interfaceInstanceOrBuilder- Returns:
- The sourceMachineImage.
-
getSourceMachineImageBytes
public com.google.protobuf.ByteString getSourceMachineImageBytes()
Source machine image
optional string source_machine_image = 21769791;- Specified by:
getSourceMachineImageBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for sourceMachineImage.
-
setSourceMachineImage
public Instance.Builder setSourceMachineImage(String value)
Source machine image
optional string source_machine_image = 21769791;- Parameters:
value- The sourceMachineImage to set.- Returns:
- This builder for chaining.
-
clearSourceMachineImage
public Instance.Builder clearSourceMachineImage()
Source machine image
optional string source_machine_image = 21769791;- Returns:
- This builder for chaining.
-
setSourceMachineImageBytes
public Instance.Builder setSourceMachineImageBytes(com.google.protobuf.ByteString value)
Source machine image
optional string source_machine_image = 21769791;- Parameters:
value- The bytes for sourceMachineImage to set.- Returns:
- This builder for chaining.
-
hasSourceMachineImageEncryptionKey
public boolean hasSourceMachineImageEncryptionKey()
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;- Specified by:
hasSourceMachineImageEncryptionKeyin interfaceInstanceOrBuilder- Returns:
- Whether the sourceMachineImageEncryptionKey field is set.
-
getSourceMachineImageEncryptionKey
public CustomerEncryptionKey getSourceMachineImageEncryptionKey()
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;- Specified by:
getSourceMachineImageEncryptionKeyin interfaceInstanceOrBuilder- Returns:
- The sourceMachineImageEncryptionKey.
-
setSourceMachineImageEncryptionKey
public Instance.Builder setSourceMachineImageEncryptionKey(CustomerEncryptionKey value)
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
-
setSourceMachineImageEncryptionKey
public Instance.Builder setSourceMachineImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
-
mergeSourceMachineImageEncryptionKey
public Instance.Builder mergeSourceMachineImageEncryptionKey(CustomerEncryptionKey value)
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
-
clearSourceMachineImageEncryptionKey
public Instance.Builder clearSourceMachineImageEncryptionKey()
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
-
getSourceMachineImageEncryptionKeyBuilder
public CustomerEncryptionKey.Builder getSourceMachineImageEncryptionKeyBuilder()
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
-
getSourceMachineImageEncryptionKeyOrBuilder
public CustomerEncryptionKeyOrBuilder getSourceMachineImageEncryptionKeyOrBuilder()
Source machine image encryption key when creating an instance from a machine image.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;- Specified by:
getSourceMachineImageEncryptionKeyOrBuilderin interfaceInstanceOrBuilder
-
hasStartRestricted
public boolean hasStartRestricted()
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
optional bool start_restricted = 123693144;- Specified by:
hasStartRestrictedin interfaceInstanceOrBuilder- Returns:
- Whether the startRestricted field is set.
-
getStartRestricted
public boolean getStartRestricted()
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
optional bool start_restricted = 123693144;- Specified by:
getStartRestrictedin interfaceInstanceOrBuilder- Returns:
- The startRestricted.
-
setStartRestricted
public Instance.Builder setStartRestricted(boolean value)
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
optional bool start_restricted = 123693144;- Parameters:
value- The startRestricted to set.- Returns:
- This builder for chaining.
-
clearStartRestricted
public Instance.Builder clearStartRestricted()
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
optional bool start_restricted = 123693144;- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
hasStatusin interfaceInstanceOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public String getStatus()
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceInstanceOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for status.
-
setStatus
public Instance.Builder setStatus(String value)
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public Instance.Builder clearStatus()
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- This builder for chaining.
-
setStatusBytes
public Instance.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasStatusMessage
public boolean hasStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
hasStatusMessagein interfaceInstanceOrBuilder- Returns:
- Whether the statusMessage field is set.
-
getStatusMessage
public String getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessagein interfaceInstanceOrBuilder- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessageBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for statusMessage.
-
setStatusMessage
public Instance.Builder setStatusMessage(String value)
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Parameters:
value- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
public Instance.Builder clearStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Returns:
- This builder for chaining.
-
setStatusMessageBytes
public Instance.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Parameters:
value- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-
hasTags
public boolean hasTags()
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;- Specified by:
hasTagsin interfaceInstanceOrBuilder- Returns:
- Whether the tags field is set.
-
getTags
public Tags getTags()
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;- Specified by:
getTagsin interfaceInstanceOrBuilder- Returns:
- The tags.
-
setTags
public Instance.Builder setTags(Tags value)
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
setTags
public Instance.Builder setTags(Tags.Builder builderForValue)
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
mergeTags
public Instance.Builder mergeTags(Tags value)
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
clearTags
public Instance.Builder clearTags()
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
getTagsBuilder
public Tags.Builder getTagsBuilder()
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-
getTagsOrBuilder
public TagsOrBuilder getTagsOrBuilder()
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
optional .google.cloud.compute.v1.Tags tags = 3552281;- Specified by:
getTagsOrBuilderin interfaceInstanceOrBuilder
-
hasZone
public boolean hasZone()
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;- Specified by:
hasZonein interfaceInstanceOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
public String getZone()
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;- Specified by:
getZonein interfaceInstanceOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;- Specified by:
getZoneBytesin interfaceInstanceOrBuilder- Returns:
- The bytes for zone.
-
setZone
public Instance.Builder setZone(String value)
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
public Instance.Builder clearZone()
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;- Returns:
- This builder for chaining.
-
setZoneBytes
public Instance.Builder setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Instance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
mergeUnknownFields
public final Instance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
-