Class BulkInsertInstanceResource

  • All Implemented Interfaces:
    BulkInsertInstanceResourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class BulkInsertInstanceResource
    extends com.google.protobuf.GeneratedMessageV3
    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:
    Serialized Form
    • Field Detail

      • INSTANCE_PROPERTIES_FIELD_NUMBER

        public static final int INSTANCE_PROPERTIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOCATION_POLICY_FIELD_NUMBER

        public static final int LOCATION_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NAME_PATTERN_FIELD_NUMBER

        public static final int NAME_PATTERN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PER_INSTANCE_PROPERTIES_FIELD_NUMBER

        public static final int PER_INSTANCE_PROPERTIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER

        public static final int SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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:
        hasLocationPolicy in interface BulkInsertInstanceResourceOrBuilder
        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:
        getLocationPolicy in interface BulkInsertInstanceResourceOrBuilder
        Returns:
        The locationPolicy.
      • 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:
        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. 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:
        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 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:
        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 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:
        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 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:
        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
      • 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:
        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 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:
        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 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:
        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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

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

        public BulkInsertInstanceResource.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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