public final class InstanceSettings extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
InstanceSettings.Builder
Represents a Instance Settings resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FINGERPRINT_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
ZONE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static InstanceSettings |
getDefaultInstance() |
InstanceSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
InstanceSettingsMetadataOrBuilder |
getMetadataOrBuilder()
The metadata key/value pairs assigned to all the instances in the corresponding scope.
|
com.google.protobuf.Parser<InstanceSettings> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
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() |
static InstanceSettings.Builder |
newBuilder() |
static InstanceSettings.Builder |
newBuilder(InstanceSettings prototype) |
InstanceSettings.Builder |
newBuilderForType() |
protected InstanceSettings.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InstanceSettings |
parseDelimitedFrom(InputStream input) |
static InstanceSettings |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceSettings |
parseFrom(byte[] data) |
static InstanceSettings |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceSettings |
parseFrom(ByteBuffer data) |
static InstanceSettings |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceSettings |
parseFrom(com.google.protobuf.ByteString data) |
static InstanceSettings |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceSettings |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InstanceSettings |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceSettings |
parseFrom(InputStream input) |
static InstanceSettings |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InstanceSettings> |
parser() |
InstanceSettings.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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 FINGERPRINT_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 InstanceSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceSettings parseFrom(InputStream input) throws IOException
IOExceptionpublic static InstanceSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InstanceSettings parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static InstanceSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InstanceSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static InstanceSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic InstanceSettings.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InstanceSettings.Builder newBuilder()
public static InstanceSettings.Builder newBuilder(InstanceSettings prototype)
public InstanceSettings.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InstanceSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InstanceSettings getDefaultInstance()
public static com.google.protobuf.Parser<InstanceSettings> parser()
public com.google.protobuf.Parser<InstanceSettings> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InstanceSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.