Package com.google.cloud.compute.v1
Interface BulkInsertInstanceResourceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BulkInsertInstanceResource,BulkInsertInstanceResource.Builder
@Generated
public interface BulkInsertInstanceResourceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanPer-instance properties to be set on individual instances.longgetCount()The maximum number of instances to create.A flexible specification of machine type of instances to create.A flexible specification of machine type of instances to create.The instance properties defining the VM instances to be created.The instance properties defining the VM instances to be created.Policy for choosing target zone.Policy for choosing target zone.longThe minimum number of instances to create.The string pattern used for the names of the VMs.com.google.protobuf.ByteStringThe string pattern used for the names of the VMs.Deprecated.intPer-instance properties to be set on individual instances.Per-instance properties to be set on individual instances.getPerInstancePropertiesOrDefault(String key, BulkInsertInstanceResourcePerInstanceProperties defaultValue) Per-instance properties to be set on individual instances.Per-instance properties to be set on individual instances.Specifies the instance template from which to create instances.com.google.protobuf.ByteStringSpecifies the instance template from which to create instances.booleanhasCount()The maximum number of instances to create.booleanA flexible specification of machine type of instances to create.booleanThe instance properties defining the VM instances to be created.booleanPolicy for choosing target zone.booleanThe minimum number of instances to create.booleanThe string pattern used for the names of the VMs.booleanSpecifies the instance template from which to create instances.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasCount
boolean hasCount()The maximum number of instances to create.
optional int64 count = 94851343;- Returns:
- Whether the count field is set.
-
getCount
long getCount()The maximum number of instances to create.
optional int64 count = 94851343;- Returns:
- The count.
-
hasInstanceFlexibilityPolicy
boolean hasInstanceFlexibilityPolicy()A flexible specification of machine type of instances to create.
optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;- Returns:
- Whether the instanceFlexibilityPolicy field is set.
-
getInstanceFlexibilityPolicy
InstanceFlexibilityPolicy getInstanceFlexibilityPolicy()A flexible specification of machine type of instances to create.
optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;- Returns:
- The instanceFlexibilityPolicy.
-
getInstanceFlexibilityPolicyOrBuilder
InstanceFlexibilityPolicyOrBuilder getInstanceFlexibilityPolicyOrBuilder()A flexible specification of machine type of instances to create.
optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090; -
hasInstanceProperties
boolean hasInstanceProperties()The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided.
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;- Returns:
- Whether the instanceProperties field is set.
-
getInstanceProperties
InstanceProperties getInstanceProperties()The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided.
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;- Returns:
- The instanceProperties.
-
getInstancePropertiesOrBuilder
InstancePropertiesOrBuilder getInstancePropertiesOrBuilder()The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided.
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165; -
hasLocationPolicy
boolean hasLocationPolicy()Policy for choosing target zone. For more information, seeCreate VMs in bulk.
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;- Returns:
- Whether the locationPolicy field is set.
-
getLocationPolicy
LocationPolicy getLocationPolicy()Policy for choosing target zone. For more information, seeCreate VMs in bulk.
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;- Returns:
- The locationPolicy.
-
getLocationPolicyOrBuilder
LocationPolicyOrBuilder getLocationPolicyOrBuilder()Policy for choosing target zone. For more information, seeCreate VMs in bulk.
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852; -
hasMinCount
boolean hasMinCount()The minimum number of instances to create. If no min_count is specified then count is used as the default value. Ifmin_count instances cannot be created, then no instances will be created and instances already created will be deleted.
optional int64 min_count = 523228386;- Returns:
- Whether the minCount field is set.
-
getMinCount
long getMinCount()The minimum number of instances to create. If no min_count is specified then count is used as the default value. Ifmin_count instances cannot be created, then no instances will be created and instances already created will be deleted.
optional int64 min_count = 523228386;- Returns:
- The minCount.
-
hasNamePattern
boolean hasNamePattern()The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern must contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 and inst-0002. If existing instances in the same project and zone have names that match the name pattern then the generated instance numbers start after the biggest existing number. For example, if there exists an instance with nameinst-0050, then instance names generated using the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Returns:
- Whether the namePattern field is set.
-
getNamePattern
String getNamePattern()The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern must contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 and inst-0002. If existing instances in the same project and zone have names that match the name pattern then the generated instance numbers start after the biggest existing number. For example, if there exists an instance with nameinst-0050, then instance names generated using the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Returns:
- The namePattern.
-
getNamePatternBytes
com.google.protobuf.ByteString getNamePatternBytes()The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern must contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 and inst-0002. If existing instances in the same project and zone have names that match the name pattern then the generated instance numbers start after the biggest existing number. For example, if there exists an instance with nameinst-0050, then instance names generated using the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Returns:
- The bytes for namePattern.
-
getPerInstancePropertiesCount
int getPerInstancePropertiesCount()Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used.
map<string, .google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties> per_instance_properties = 108502267; -
containsPerInstanceProperties
Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used.
map<string, .google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties> per_instance_properties = 108502267; -
getPerInstanceProperties
Deprecated.UsegetPerInstancePropertiesMap()instead. -
getPerInstancePropertiesMap
Map<String,BulkInsertInstanceResourcePerInstanceProperties> getPerInstancePropertiesMap()Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used.
map<string, .google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties> per_instance_properties = 108502267; -
getPerInstancePropertiesOrDefault
BulkInsertInstanceResourcePerInstanceProperties getPerInstancePropertiesOrDefault(String key, BulkInsertInstanceResourcePerInstanceProperties defaultValue) Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used.
map<string, .google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties> per_instance_properties = 108502267; -
getPerInstancePropertiesOrThrow
Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used.
map<string, .google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties> per_instance_properties = 108502267; -
hasSourceInstanceTemplate
boolean hasSourceInstanceTemplate()Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate withinstanceProperties to override specific values from an existing instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate This field is optional.
optional string source_instance_template = 332423616;- Returns:
- Whether the sourceInstanceTemplate field is set.
-
getSourceInstanceTemplate
String getSourceInstanceTemplate()Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate withinstanceProperties to override specific values from an existing instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate This field is optional.
optional string source_instance_template = 332423616;- Returns:
- The sourceInstanceTemplate.
-
getSourceInstanceTemplateBytes
com.google.protobuf.ByteString getSourceInstanceTemplateBytes()Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate withinstanceProperties to override specific values from an existing instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate This field is optional.
optional string source_instance_template = 332423616;- Returns:
- The bytes for sourceInstanceTemplate.
-