Package com.google.cloud.compute.v1
Class BulkInsertInstanceResource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
- com.google.cloud.compute.v1.BulkInsertInstanceResource.Builder
-
- All Implemented Interfaces:
BulkInsertInstanceResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BulkInsertInstanceResource
public static final class BulkInsertInstanceResource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder> implements BulkInsertInstanceResourceOrBuilder
A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert . This resource is not persisted anywhere, it is used only for processing the requests.
Protobuf typegoogle.cloud.compute.v1.BulkInsertInstanceResource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BulkInsertInstanceResource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BulkInsertInstanceResourcebuild()BulkInsertInstanceResourcebuildPartial()BulkInsertInstanceResource.Builderclear()BulkInsertInstanceResource.BuilderclearCount()The maximum number of instances to create.BulkInsertInstanceResource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BulkInsertInstanceResource.BuilderclearInstanceProperties()The instance properties defining the VM instances to be created.BulkInsertInstanceResource.BuilderclearLocationPolicy()Policy for chosing target zone.BulkInsertInstanceResource.BuilderclearMinCount()The minimum number of instances to create.BulkInsertInstanceResource.BuilderclearNamePattern()The string pattern used for the names of the VMs.BulkInsertInstanceResource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BulkInsertInstanceResource.BuilderclearPerInstanceProperties()BulkInsertInstanceResource.BuilderclearSourceInstanceTemplate()Specifies the instance template from which to create instances.BulkInsertInstanceResource.Builderclone()booleancontainsPerInstanceProperties(String key)Per-instance properties to be set on individual instances.longgetCount()The maximum number of instances to create.BulkInsertInstanceResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InstancePropertiesgetInstanceProperties()The instance properties defining the VM instances to be created.InstanceProperties.BuildergetInstancePropertiesBuilder()The instance properties defining the VM instances to be created.InstancePropertiesOrBuildergetInstancePropertiesOrBuilder()The instance properties defining the VM instances to be created.LocationPolicygetLocationPolicy()Policy for chosing target zone.LocationPolicy.BuildergetLocationPolicyBuilder()Policy for chosing target zone.LocationPolicyOrBuildergetLocationPolicyOrBuilder()Policy for chosing target zone.longgetMinCount()The minimum number of instances to create.Map<String,BulkInsertInstanceResourcePerInstanceProperties>getMutablePerInstanceProperties()Deprecated.StringgetNamePattern()The string pattern used for the names of the VMs.com.google.protobuf.ByteStringgetNamePatternBytes()The string pattern used for the names of the VMs.Map<String,BulkInsertInstanceResourcePerInstanceProperties>getPerInstanceProperties()Deprecated.intgetPerInstancePropertiesCount()Per-instance properties to be set on individual instances.Map<String,BulkInsertInstanceResourcePerInstanceProperties>getPerInstancePropertiesMap()Per-instance properties to be set on individual instances.BulkInsertInstanceResourcePerInstancePropertiesgetPerInstancePropertiesOrDefault(String key, BulkInsertInstanceResourcePerInstanceProperties defaultValue)Per-instance properties to be set on individual instances.BulkInsertInstanceResourcePerInstancePropertiesgetPerInstancePropertiesOrThrow(String key)Per-instance properties to be set on individual instances.StringgetSourceInstanceTemplate()Specifies the instance template from which to create instances.com.google.protobuf.ByteStringgetSourceInstanceTemplateBytes()Specifies the instance template from which to create instances.booleanhasCount()The maximum number of instances to create.booleanhasInstanceProperties()The instance properties defining the VM instances to be created.booleanhasLocationPolicy()Policy for chosing target zone.booleanhasMinCount()The minimum number of instances to create.booleanhasNamePattern()The string pattern used for the names of the VMs.booleanhasSourceInstanceTemplate()Specifies the instance template from which to create instances.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()BulkInsertInstanceResource.BuildermergeFrom(BulkInsertInstanceResource other)BulkInsertInstanceResource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BulkInsertInstanceResource.BuildermergeFrom(com.google.protobuf.Message other)BulkInsertInstanceResource.BuildermergeInstanceProperties(InstanceProperties value)The instance properties defining the VM instances to be created.BulkInsertInstanceResource.BuildermergeLocationPolicy(LocationPolicy value)Policy for chosing target zone.BulkInsertInstanceResource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BulkInsertInstanceResource.BuilderputAllPerInstanceProperties(Map<String,BulkInsertInstanceResourcePerInstanceProperties> values)Per-instance properties to be set on individual instances.BulkInsertInstanceResource.BuilderputPerInstanceProperties(String key, BulkInsertInstanceResourcePerInstanceProperties value)Per-instance properties to be set on individual instances.BulkInsertInstanceResource.BuilderremovePerInstanceProperties(String key)Per-instance properties to be set on individual instances.BulkInsertInstanceResource.BuildersetCount(long value)The maximum number of instances to create.BulkInsertInstanceResource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BulkInsertInstanceResource.BuildersetInstanceProperties(InstanceProperties value)The instance properties defining the VM instances to be created.BulkInsertInstanceResource.BuildersetInstanceProperties(InstanceProperties.Builder builderForValue)The instance properties defining the VM instances to be created.BulkInsertInstanceResource.BuildersetLocationPolicy(LocationPolicy value)Policy for chosing target zone.BulkInsertInstanceResource.BuildersetLocationPolicy(LocationPolicy.Builder builderForValue)Policy for chosing target zone.BulkInsertInstanceResource.BuildersetMinCount(long value)The minimum number of instances to create.BulkInsertInstanceResource.BuildersetNamePattern(String value)The string pattern used for the names of the VMs.BulkInsertInstanceResource.BuildersetNamePatternBytes(com.google.protobuf.ByteString value)The string pattern used for the names of the VMs.BulkInsertInstanceResource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BulkInsertInstanceResource.BuildersetSourceInstanceTemplate(String value)Specifies the instance template from which to create instances.BulkInsertInstanceResource.BuildersetSourceInstanceTemplateBytes(com.google.protobuf.ByteString value)Specifies the instance template from which to create instances.BulkInsertInstanceResource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<BulkInsertInstanceResource.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
clear
public BulkInsertInstanceResource.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<BulkInsertInstanceResource.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<BulkInsertInstanceResource.Builder>
-
getDefaultInstanceForType
public BulkInsertInstanceResource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BulkInsertInstanceResource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BulkInsertInstanceResource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BulkInsertInstanceResource.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<BulkInsertInstanceResource.Builder>
-
setField
public BulkInsertInstanceResource.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<BulkInsertInstanceResource.Builder>
-
clearField
public BulkInsertInstanceResource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
clearOneof
public BulkInsertInstanceResource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
setRepeatedField
public BulkInsertInstanceResource.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<BulkInsertInstanceResource.Builder>
-
addRepeatedField
public BulkInsertInstanceResource.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<BulkInsertInstanceResource.Builder>
-
mergeFrom
public BulkInsertInstanceResource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BulkInsertInstanceResource.Builder>
-
mergeFrom
public BulkInsertInstanceResource.Builder mergeFrom(BulkInsertInstanceResource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
mergeFrom
public BulkInsertInstanceResource.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<BulkInsertInstanceResource.Builder>- Throws:
IOException
-
hasCount
public boolean hasCount()
The maximum number of instances to create.
optional int64 count = 94851343;- Specified by:
hasCountin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- Whether the count field is set.
-
getCount
public long getCount()
The maximum number of instances to create.
optional int64 count = 94851343;- Specified by:
getCountin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The count.
-
setCount
public BulkInsertInstanceResource.Builder setCount(long value)
The maximum number of instances to create.
optional int64 count = 94851343;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
public BulkInsertInstanceResource.Builder clearCount()
The maximum number of instances to create.
optional int64 count = 94851343;- Returns:
- This builder for chaining.
-
hasInstanceProperties
public 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;- Specified by:
hasInstancePropertiesin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- Whether the instanceProperties field is set.
-
getInstanceProperties
public 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;- Specified by:
getInstancePropertiesin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The instanceProperties.
-
setInstanceProperties
public BulkInsertInstanceResource.Builder setInstanceProperties(InstanceProperties value)
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;
-
setInstanceProperties
public BulkInsertInstanceResource.Builder setInstanceProperties(InstanceProperties.Builder builderForValue)
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;
-
mergeInstanceProperties
public BulkInsertInstanceResource.Builder mergeInstanceProperties(InstanceProperties value)
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;
-
clearInstanceProperties
public BulkInsertInstanceResource.Builder clearInstanceProperties()
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;
-
getInstancePropertiesBuilder
public InstanceProperties.Builder getInstancePropertiesBuilder()
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;
-
getInstancePropertiesOrBuilder
public 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;- Specified by:
getInstancePropertiesOrBuilderin interfaceBulkInsertInstanceResourceOrBuilder
-
hasLocationPolicy
public boolean hasLocationPolicy()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;- Specified by:
hasLocationPolicyin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- Whether the locationPolicy field is set.
-
getLocationPolicy
public LocationPolicy getLocationPolicy()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;- Specified by:
getLocationPolicyin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The locationPolicy.
-
setLocationPolicy
public BulkInsertInstanceResource.Builder setLocationPolicy(LocationPolicy value)
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
-
setLocationPolicy
public BulkInsertInstanceResource.Builder setLocationPolicy(LocationPolicy.Builder builderForValue)
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
-
mergeLocationPolicy
public BulkInsertInstanceResource.Builder mergeLocationPolicy(LocationPolicy value)
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
-
clearLocationPolicy
public BulkInsertInstanceResource.Builder clearLocationPolicy()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
-
getLocationPolicyBuilder
public LocationPolicy.Builder getLocationPolicyBuilder()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
-
getLocationPolicyOrBuilder
public LocationPolicyOrBuilder getLocationPolicyOrBuilder()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;- Specified by:
getLocationPolicyOrBuilderin interfaceBulkInsertInstanceResourceOrBuilder
-
hasMinCount
public boolean hasMinCount()
The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.
optional int64 min_count = 523228386;- Specified by:
hasMinCountin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- Whether the minCount field is set.
-
getMinCount
public long getMinCount()
The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.
optional int64 min_count = 523228386;- Specified by:
getMinCountin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The minCount.
-
setMinCount
public BulkInsertInstanceResource.Builder setMinCount(long value)
The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.
optional int64 min_count = 523228386;- Parameters:
value- The minCount to set.- Returns:
- This builder for chaining.
-
clearMinCount
public BulkInsertInstanceResource.Builder clearMinCount()
The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.
optional int64 min_count = 523228386;- Returns:
- This builder for chaining.
-
hasNamePattern
public 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 as inst-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 name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Specified by:
hasNamePatternin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- Whether the namePattern field is set.
-
getNamePattern
public 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 as inst-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 name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Specified by:
getNamePatternin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The namePattern.
-
getNamePatternBytes
public 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 as inst-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 name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Specified by:
getNamePatternBytesin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The bytes for namePattern.
-
setNamePattern
public BulkInsertInstanceResource.Builder setNamePattern(String value)
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 as inst-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 name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Parameters:
value- The namePattern to set.- Returns:
- This builder for chaining.
-
clearNamePattern
public BulkInsertInstanceResource.Builder clearNamePattern()
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 as inst-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 name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Returns:
- This builder for chaining.
-
setNamePatternBytes
public BulkInsertInstanceResource.Builder setNamePatternBytes(com.google.protobuf.ByteString value)
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 as inst-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 name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
optional string name_pattern = 413815260;- Parameters:
value- The bytes for namePattern to set.- Returns:
- This builder for chaining.
-
getPerInstancePropertiesCount
public int getPerInstancePropertiesCount()
Description copied from interface:BulkInsertInstanceResourceOrBuilderPer-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;- Specified by:
getPerInstancePropertiesCountin interfaceBulkInsertInstanceResourceOrBuilder
-
containsPerInstanceProperties
public boolean containsPerInstanceProperties(String key)
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;- Specified by:
containsPerInstancePropertiesin interfaceBulkInsertInstanceResourceOrBuilder
-
getPerInstanceProperties
@Deprecated public Map<String,BulkInsertInstanceResourcePerInstanceProperties> getPerInstanceProperties()
Deprecated.UsegetPerInstancePropertiesMap()instead.- Specified by:
getPerInstancePropertiesin interfaceBulkInsertInstanceResourceOrBuilder
-
getPerInstancePropertiesMap
public 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;- Specified by:
getPerInstancePropertiesMapin interfaceBulkInsertInstanceResourceOrBuilder
-
getPerInstancePropertiesOrDefault
public 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;- Specified by:
getPerInstancePropertiesOrDefaultin interfaceBulkInsertInstanceResourceOrBuilder
-
getPerInstancePropertiesOrThrow
public BulkInsertInstanceResourcePerInstanceProperties getPerInstancePropertiesOrThrow(String key)
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;- Specified by:
getPerInstancePropertiesOrThrowin interfaceBulkInsertInstanceResourceOrBuilder
-
clearPerInstanceProperties
public BulkInsertInstanceResource.Builder clearPerInstanceProperties()
-
removePerInstanceProperties
public BulkInsertInstanceResource.Builder removePerInstanceProperties(String key)
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;
-
getMutablePerInstanceProperties
@Deprecated public Map<String,BulkInsertInstanceResourcePerInstanceProperties> getMutablePerInstanceProperties()
Deprecated.Use alternate mutation accessors instead.
-
putPerInstanceProperties
public BulkInsertInstanceResource.Builder putPerInstanceProperties(String key, BulkInsertInstanceResourcePerInstanceProperties value)
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;
-
putAllPerInstanceProperties
public BulkInsertInstanceResource.Builder putAllPerInstanceProperties(Map<String,BulkInsertInstanceResourcePerInstanceProperties> values)
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
public boolean hasSourceInstanceTemplate()
Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties 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;- Specified by:
hasSourceInstanceTemplatein interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- Whether the sourceInstanceTemplate field is set.
-
getSourceInstanceTemplate
public String getSourceInstanceTemplate()
Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties 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;- Specified by:
getSourceInstanceTemplatein interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The sourceInstanceTemplate.
-
getSourceInstanceTemplateBytes
public com.google.protobuf.ByteString getSourceInstanceTemplateBytes()
Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties 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;- Specified by:
getSourceInstanceTemplateBytesin interfaceBulkInsertInstanceResourceOrBuilder- Returns:
- The bytes for sourceInstanceTemplate.
-
setSourceInstanceTemplate
public BulkInsertInstanceResource.Builder setSourceInstanceTemplate(String value)
Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties 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;- Parameters:
value- The sourceInstanceTemplate to set.- Returns:
- This builder for chaining.
-
clearSourceInstanceTemplate
public BulkInsertInstanceResource.Builder clearSourceInstanceTemplate()
Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties 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:
- This builder for chaining.
-
setSourceInstanceTemplateBytes
public BulkInsertInstanceResource.Builder setSourceInstanceTemplateBytes(com.google.protobuf.ByteString value)
Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties 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;- Parameters:
value- The bytes for sourceInstanceTemplate to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BulkInsertInstanceResource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
mergeUnknownFields
public final BulkInsertInstanceResource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BulkInsertInstanceResource.Builder>
-
-