Class BulkInsertInstanceResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type google.cloud.compute.v1.BulkInsertInstanceResource
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BulkInsertInstanceResource.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BulkInsertInstanceResource.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BulkInsertInstanceResource.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BulkInsertInstanceResource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BulkInsertInstanceResource.Builder>
    • getDefaultInstanceForType

      public BulkInsertInstanceResource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BulkInsertInstanceResource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BulkInsertInstanceResource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BulkInsertInstanceResource.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BulkInsertInstanceResource.Builder>
    • mergeFrom

      public BulkInsertInstanceResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasCount in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

      public long getCount()
       The maximum number of instances to create.
       
      optional int64 count = 94851343;
      Specified by:
      getCount in interface BulkInsertInstanceResourceOrBuilder
      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

       The maximum number of instances to create.
       
      optional int64 count = 94851343;
      Returns:
      This builder for chaining.
    • hasInstanceFlexibilityPolicy

      public boolean hasInstanceFlexibilityPolicy()
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
      Specified by:
      hasInstanceFlexibilityPolicy in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      Whether the instanceFlexibilityPolicy field is set.
    • getInstanceFlexibilityPolicy

      public InstanceFlexibilityPolicy getInstanceFlexibilityPolicy()
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
      Specified by:
      getInstanceFlexibilityPolicy in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      The instanceFlexibilityPolicy.
    • setInstanceFlexibilityPolicy

      public BulkInsertInstanceResource.Builder setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy value)
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • setInstanceFlexibilityPolicy

      public BulkInsertInstanceResource.Builder setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy.Builder builderForValue)
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • mergeInstanceFlexibilityPolicy

      public BulkInsertInstanceResource.Builder mergeInstanceFlexibilityPolicy(InstanceFlexibilityPolicy value)
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • clearInstanceFlexibilityPolicy

      public BulkInsertInstanceResource.Builder clearInstanceFlexibilityPolicy()
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • getInstanceFlexibilityPolicyBuilder

      public InstanceFlexibilityPolicy.Builder getInstanceFlexibilityPolicyBuilder()
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • getInstanceFlexibilityPolicyOrBuilder

      public InstanceFlexibilityPolicyOrBuilder getInstanceFlexibilityPolicyOrBuilder()
       A flexible specification of machine type of instances to create.
       
      optional .google.cloud.compute.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
      Specified by:
      getInstanceFlexibilityPolicyOrBuilder in interface BulkInsertInstanceResourceOrBuilder
    • 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:
      hasInstanceProperties in interface BulkInsertInstanceResourceOrBuilder
      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:
      getInstanceProperties in interface BulkInsertInstanceResourceOrBuilder
      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:
      getInstancePropertiesOrBuilder in interface BulkInsertInstanceResourceOrBuilder
    • hasLocationPolicy

      public boolean hasLocationPolicy()
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
      Specified by:
      hasLocationPolicy in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      Whether the locationPolicy field is set.
    • getLocationPolicy

      public LocationPolicy getLocationPolicy()
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
      Specified by:
      getLocationPolicy in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      The locationPolicy.
    • setLocationPolicy

      public BulkInsertInstanceResource.Builder setLocationPolicy(LocationPolicy value)
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
    • setLocationPolicy

      public BulkInsertInstanceResource.Builder setLocationPolicy(LocationPolicy.Builder builderForValue)
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
    • mergeLocationPolicy

      public BulkInsertInstanceResource.Builder mergeLocationPolicy(LocationPolicy value)
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
    • clearLocationPolicy

      public BulkInsertInstanceResource.Builder clearLocationPolicy()
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
    • getLocationPolicyBuilder

      public LocationPolicy.Builder getLocationPolicyBuilder()
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
    • getLocationPolicyOrBuilder

      public LocationPolicyOrBuilder getLocationPolicyOrBuilder()
       Policy for choosing target zone. For more information, seeCreate VMs in
       bulk.
       
      optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;
      Specified by:
      getLocationPolicyOrBuilder in interface BulkInsertInstanceResourceOrBuilder
    • 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. Ifmin_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:
      hasMinCount in interface BulkInsertInstanceResourceOrBuilder
      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. Ifmin_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:
      getMinCount in interface BulkInsertInstanceResourceOrBuilder
      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. Ifmin_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. 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:
      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 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;
      Specified by:
      hasNamePattern in interface BulkInsertInstanceResourceOrBuilder
      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 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;
      Specified by:
      getNamePattern in interface BulkInsertInstanceResourceOrBuilder
      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 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;
      Specified by:
      getNamePatternBytes in interface BulkInsertInstanceResourceOrBuilder
      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 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;
      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 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:
      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 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;
      Parameters:
      value - The bytes for namePattern to set.
      Returns:
      This builder for chaining.
    • getPerInstancePropertiesCount

      public int getPerInstancePropertiesCount()
      Description copied from interface: BulkInsertInstanceResourceOrBuilder
       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:
      getPerInstancePropertiesCount in interface BulkInsertInstanceResourceOrBuilder
    • 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:
      containsPerInstanceProperties in interface BulkInsertInstanceResourceOrBuilder
    • getPerInstanceProperties

      Deprecated.
      Specified by:
      getPerInstanceProperties in interface BulkInsertInstanceResourceOrBuilder
    • 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:
      getPerInstancePropertiesMap in interface BulkInsertInstanceResourceOrBuilder
    • getPerInstancePropertiesOrDefault

       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:
      getPerInstancePropertiesOrDefault in interface BulkInsertInstanceResourceOrBuilder
    • 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:
      getPerInstancePropertiesOrThrow in interface BulkInsertInstanceResourceOrBuilder
    • 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

       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

       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;
    • putPerInstancePropertiesBuilderIfAbsent

      public BulkInsertInstanceResourcePerInstanceProperties.Builder putPerInstancePropertiesBuilderIfAbsent(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;
    • hasSourceInstanceTemplate

      public 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;
      Specified by:
      hasSourceInstanceTemplate in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      Whether the sourceInstanceTemplate field is set.
    • getSourceInstanceTemplate

      public 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;
      Specified by:
      getSourceInstanceTemplate in interface BulkInsertInstanceResourceOrBuilder
      Returns:
      The sourceInstanceTemplate.
    • getSourceInstanceTemplateBytes

      public 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;
      Specified by:
      getSourceInstanceTemplateBytes in interface BulkInsertInstanceResourceOrBuilder
      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 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;
      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 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:
      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 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;
      Parameters:
      value - The bytes for sourceInstanceTemplate to set.
      Returns:
      This builder for chaining.