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| Modifier and Type | Class and Description |
|---|---|
static class |
BulkInsertInstanceResource.Builder
A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert .
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COUNT_FIELD_NUMBER |
static int |
INSTANCE_PROPERTIES_FIELD_NUMBER |
static int |
LOCATION_POLICY_FIELD_NUMBER |
static int |
MIN_COUNT_FIELD_NUMBER |
static int |
NAME_PATTERN_FIELD_NUMBER |
static int |
PER_INSTANCE_PROPERTIES_FIELD_NUMBER |
static int |
SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPerInstanceProperties(String key)
Per-instance properties to be set on individual instances.
|
boolean |
equals(Object obj) |
long |
getCount()
The maximum number of instances to create.
|
static BulkInsertInstanceResource |
getDefaultInstance() |
BulkInsertInstanceResource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
InstanceProperties |
getInstanceProperties()
The instance properties defining the VM instances to be created.
|
InstancePropertiesOrBuilder |
getInstancePropertiesOrBuilder()
The instance properties defining the VM instances to be created.
|
LocationPolicy |
getLocationPolicy()
Policy for chosing target zone.
|
LocationPolicyOrBuilder |
getLocationPolicyOrBuilder()
Policy for chosing target zone.
|
long |
getMinCount()
The minimum number of instances to create.
|
String |
getNamePattern()
The string pattern used for the names of the VMs.
|
com.google.protobuf.ByteString |
getNamePatternBytes()
The string pattern used for the names of the VMs.
|
com.google.protobuf.Parser<BulkInsertInstanceResource> |
getParserForType() |
Map<String,BulkInsertInstanceResourcePerInstanceProperties> |
getPerInstanceProperties()
Deprecated.
|
int |
getPerInstancePropertiesCount()
Per-instance properties to be set on individual instances.
|
Map<String,BulkInsertInstanceResourcePerInstanceProperties> |
getPerInstancePropertiesMap()
Per-instance properties to be set on individual instances.
|
BulkInsertInstanceResourcePerInstanceProperties |
getPerInstancePropertiesOrDefault(String key,
BulkInsertInstanceResourcePerInstanceProperties defaultValue)
Per-instance properties to be set on individual instances.
|
BulkInsertInstanceResourcePerInstanceProperties |
getPerInstancePropertiesOrThrow(String key)
Per-instance properties to be set on individual instances.
|
int |
getSerializedSize() |
String |
getSourceInstanceTemplate()
Specifies the instance template from which to create instances.
|
com.google.protobuf.ByteString |
getSourceInstanceTemplateBytes()
Specifies the instance template from which to create instances.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCount()
The maximum number of instances to create.
|
int |
hashCode() |
boolean |
hasInstanceProperties()
The instance properties defining the VM instances to be created.
|
boolean |
hasLocationPolicy()
Policy for chosing target zone.
|
boolean |
hasMinCount()
The minimum number of instances to create.
|
boolean |
hasNamePattern()
The string pattern used for the names of the VMs.
|
boolean |
hasSourceInstanceTemplate()
Specifies the instance template from which to create instances.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static BulkInsertInstanceResource.Builder |
newBuilder() |
static BulkInsertInstanceResource.Builder |
newBuilder(BulkInsertInstanceResource prototype) |
BulkInsertInstanceResource.Builder |
newBuilderForType() |
protected BulkInsertInstanceResource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BulkInsertInstanceResource |
parseDelimitedFrom(InputStream input) |
static BulkInsertInstanceResource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BulkInsertInstanceResource |
parseFrom(byte[] data) |
static BulkInsertInstanceResource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BulkInsertInstanceResource |
parseFrom(ByteBuffer data) |
static BulkInsertInstanceResource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BulkInsertInstanceResource |
parseFrom(com.google.protobuf.ByteString data) |
static BulkInsertInstanceResource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BulkInsertInstanceResource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BulkInsertInstanceResource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BulkInsertInstanceResource |
parseFrom(InputStream input) |
static BulkInsertInstanceResource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BulkInsertInstanceResource> |
parser() |
BulkInsertInstanceResource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int COUNT_FIELD_NUMBER
public static final int INSTANCE_PROPERTIES_FIELD_NUMBER
public static final int LOCATION_POLICY_FIELD_NUMBER
public static final int MIN_COUNT_FIELD_NUMBER
public static final int NAME_PATTERN_FIELD_NUMBER
public static final int PER_INSTANCE_PROPERTIES_FIELD_NUMBER
public static final int SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCount()
The maximum number of instances to create.
optional int64 count = 94851343;hasCount in interface BulkInsertInstanceResourceOrBuilderpublic long getCount()
The maximum number of instances to create.
optional int64 count = 94851343;getCount in interface BulkInsertInstanceResourceOrBuilderpublic 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;
hasInstanceProperties in interface BulkInsertInstanceResourceOrBuilderpublic 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;
getInstanceProperties in interface BulkInsertInstanceResourceOrBuilderpublic 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;
getInstancePropertiesOrBuilder in interface BulkInsertInstanceResourceOrBuilderpublic boolean hasLocationPolicy()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;hasLocationPolicy in interface BulkInsertInstanceResourceOrBuilderpublic LocationPolicy getLocationPolicy()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;getLocationPolicy in interface BulkInsertInstanceResourceOrBuilderpublic LocationPolicyOrBuilder getLocationPolicyOrBuilder()
Policy for chosing target zone. For more information, see Create VMs in bulk .
optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852;getLocationPolicyOrBuilder in interface BulkInsertInstanceResourceOrBuilderpublic 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;hasMinCount in interface BulkInsertInstanceResourceOrBuilderpublic 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;getMinCount in interface BulkInsertInstanceResourceOrBuilderpublic 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;hasNamePattern in interface BulkInsertInstanceResourceOrBuilderpublic 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;getNamePattern in interface BulkInsertInstanceResourceOrBuilderpublic 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;getNamePatternBytes in interface BulkInsertInstanceResourceOrBuilderpublic int getPerInstancePropertiesCount()
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;
getPerInstancePropertiesCount in interface BulkInsertInstanceResourceOrBuilderpublic 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;
containsPerInstanceProperties in interface BulkInsertInstanceResourceOrBuilder@Deprecated public Map<String,BulkInsertInstanceResourcePerInstanceProperties> getPerInstanceProperties()
getPerInstancePropertiesMap() instead.getPerInstanceProperties in interface BulkInsertInstanceResourceOrBuilderpublic 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;
getPerInstancePropertiesMap in interface BulkInsertInstanceResourceOrBuilderpublic 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;
getPerInstancePropertiesOrDefault in interface BulkInsertInstanceResourceOrBuilderpublic 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;
getPerInstancePropertiesOrThrow in interface BulkInsertInstanceResourceOrBuilderpublic 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;hasSourceInstanceTemplate in interface BulkInsertInstanceResourceOrBuilderpublic 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;getSourceInstanceTemplate in interface BulkInsertInstanceResourceOrBuilderpublic 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;getSourceInstanceTemplateBytes in interface BulkInsertInstanceResourceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BulkInsertInstanceResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BulkInsertInstanceResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BulkInsertInstanceResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BulkInsertInstanceResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BulkInsertInstanceResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BulkInsertInstanceResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BulkInsertInstanceResource parseFrom(InputStream input) throws IOException
IOExceptionpublic static BulkInsertInstanceResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BulkInsertInstanceResource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BulkInsertInstanceResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BulkInsertInstanceResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BulkInsertInstanceResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BulkInsertInstanceResource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BulkInsertInstanceResource.Builder newBuilder()
public static BulkInsertInstanceResource.Builder newBuilder(BulkInsertInstanceResource prototype)
public BulkInsertInstanceResource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BulkInsertInstanceResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BulkInsertInstanceResource getDefaultInstance()
public static com.google.protobuf.Parser<BulkInsertInstanceResource> parser()
public com.google.protobuf.Parser<BulkInsertInstanceResource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BulkInsertInstanceResource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.