Class BulkInsertInstanceResource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.BulkInsertInstanceResource
All Implemented Interfaces:
BulkInsertInstanceResourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class BulkInsertInstanceResource extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • COUNT_FIELD_NUMBER

      public static final int COUNT_FIELD_NUMBER
      See Also:
    • INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER

      public static final int INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER
      See Also:
    • INSTANCE_PROPERTIES_FIELD_NUMBER

      public static final int INSTANCE_PROPERTIES_FIELD_NUMBER
      See Also:
    • LOCATION_POLICY_FIELD_NUMBER

      public static final int LOCATION_POLICY_FIELD_NUMBER
      See Also:
    • MIN_COUNT_FIELD_NUMBER

      public static final int MIN_COUNT_FIELD_NUMBER
      See Also:
    • NAME_PATTERN_FIELD_NUMBER

      public static final int NAME_PATTERN_FIELD_NUMBER
      See Also:
    • PER_INSTANCE_PROPERTIES_FIELD_NUMBER

      public static final int PER_INSTANCE_PROPERTIES_FIELD_NUMBER
      See Also:
    • SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER

      public static final int SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • isInitialized

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

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

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

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

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static BulkInsertInstanceResource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static BulkInsertInstanceResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BulkInsertInstanceResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static BulkInsertInstanceResource.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static BulkInsertInstanceResource getDefaultInstance()
    • parser

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

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

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