public static final class InstanceSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder> implements InstanceSettingsOrBuilder
Represents a Instance Settings resource. You can use instance settings to configure default settings for Compute Engine VM instances. For example, you can use it to configure default machine type of Compute Engine VM instances.Protobuf type
google.cloud.compute.v1.InstanceSettings| Modifier and Type | Method and Description |
|---|---|
InstanceSettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceSettings |
build() |
InstanceSettings |
buildPartial() |
InstanceSettings.Builder |
clear() |
InstanceSettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstanceSettings.Builder |
clearFingerprint()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.
|
InstanceSettings.Builder |
clearKind()
[Output Only] Type of the resource.
|
InstanceSettings.Builder |
clearMetadata()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
InstanceSettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstanceSettings.Builder |
clearZone()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL.
|
InstanceSettings.Builder |
clone() |
InstanceSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFingerprint()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.
|
com.google.protobuf.ByteString |
getFingerprintBytes()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
InstanceSettingsMetadata |
getMetadata()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
InstanceSettingsMetadata.Builder |
getMetadataBuilder()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
InstanceSettingsMetadataOrBuilder |
getMetadataOrBuilder()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
String |
getZone()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL.
|
com.google.protobuf.ByteString |
getZoneBytes()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL.
|
boolean |
hasFingerprint()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasMetadata()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
boolean |
hasZone()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstanceSettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstanceSettings.Builder |
mergeFrom(InstanceSettings other) |
InstanceSettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstanceSettings.Builder |
mergeMetadata(InstanceSettingsMetadata value)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
InstanceSettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceSettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceSettings.Builder |
setFingerprint(String value)
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.
|
InstanceSettings.Builder |
setFingerprintBytes(com.google.protobuf.ByteString value)
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.
|
InstanceSettings.Builder |
setKind(String value)
[Output Only] Type of the resource.
|
InstanceSettings.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.
|
InstanceSettings.Builder |
setMetadata(InstanceSettingsMetadata.Builder builderForValue)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
InstanceSettings.Builder |
setMetadata(InstanceSettingsMetadata value)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
InstanceSettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstanceSettings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceSettings.Builder |
setZone(String value)
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL.
|
InstanceSettings.Builder |
setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstanceSettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstanceSettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstanceSettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceSettings.Builder>public InstanceSettings.Builder mergeFrom(InstanceSettings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public InstanceSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceSettings.Builder>IOExceptionpublic boolean hasFingerprint()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;hasFingerprint in interface InstanceSettingsOrBuilderpublic String getFingerprint()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;getFingerprint in interface InstanceSettingsOrBuilderpublic com.google.protobuf.ByteString getFingerprintBytes()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;getFingerprintBytes in interface InstanceSettingsOrBuilderpublic InstanceSettings.Builder setFingerprint(String value)
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;value - The fingerprint to set.public InstanceSettings.Builder clearFingerprint()
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;public InstanceSettings.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;value - The bytes for fingerprint to set.public boolean hasKind()
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
optional string kind = 3292052;hasKind in interface InstanceSettingsOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
optional string kind = 3292052;getKind in interface InstanceSettingsOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
optional string kind = 3292052;getKindBytes in interface InstanceSettingsOrBuilderpublic InstanceSettings.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
optional string kind = 3292052;value - The kind to set.public InstanceSettings.Builder clearKind()
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
optional string kind = 3292052;public InstanceSettings.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
optional string kind = 3292052;value - The bytes for kind to set.public boolean hasMetadata()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;hasMetadata in interface InstanceSettingsOrBuilderpublic InstanceSettingsMetadata getMetadata()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;getMetadata in interface InstanceSettingsOrBuilderpublic InstanceSettings.Builder setMetadata(InstanceSettingsMetadata value)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;public InstanceSettings.Builder setMetadata(InstanceSettingsMetadata.Builder builderForValue)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;public InstanceSettings.Builder mergeMetadata(InstanceSettingsMetadata value)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;public InstanceSettings.Builder clearMetadata()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;public InstanceSettingsMetadata.Builder getMetadataBuilder()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;public InstanceSettingsMetadataOrBuilder getMetadataOrBuilder()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;getMetadataOrBuilder in interface InstanceSettingsOrBuilderpublic boolean hasZone()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;hasZone in interface InstanceSettingsOrBuilderpublic String getZone()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;getZone in interface InstanceSettingsOrBuilderpublic com.google.protobuf.ByteString getZoneBytes()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;getZoneBytes in interface InstanceSettingsOrBuilderpublic InstanceSettings.Builder setZone(String value)
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;value - The zone to set.public InstanceSettings.Builder clearZone()
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;public InstanceSettings.Builder setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;value - The bytes for zone to set.public final InstanceSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>public final InstanceSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceSettings.Builder>Copyright © 2025 Google LLC. All rights reserved.