Package com.google.cloud.compute.v1
Class InstanceSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
com.google.cloud.compute.v1.InstanceSettings.Builder
- All Implemented Interfaces:
InstanceSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceSettings
public static final class InstanceSettings.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.Output only.The metadata key/value pairs assigned to all the instances in the corresponding scope.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies 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.ByteStringSpecifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.getKind()Output only.com.google.protobuf.ByteStringOutput only.The metadata key/value pairs assigned to all the instances in the corresponding scope.The metadata key/value pairs assigned to all the instances in the corresponding scope.The metadata key/value pairs assigned to all the instances in the corresponding scope.getZone()Output only.com.google.protobuf.ByteStringOutput only.booleanSpecifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking.booleanhasKind()Output only.booleanThe metadata key/value pairs assigned to all the instances in the corresponding scope.booleanhasZone()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(InstanceSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The metadata key/value pairs assigned to all the instances in the corresponding scope.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.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.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.The metadata key/value pairs assigned to all the instances in the corresponding scope.setMetadata(InstanceSettingsMetadata.Builder builderForValue) The metadata key/value pairs assigned to all the instances in the corresponding scope.Output only.setZoneBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
-
mergeFrom
public InstanceSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceSettings.Builder>- Throws:
IOException
-
hasFingerprint
public 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;- Specified by:
hasFingerprintin interfaceInstanceSettingsOrBuilder- Returns:
- Whether the fingerprint field is set.
-
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;- Specified by:
getFingerprintin interfaceInstanceSettingsOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public 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;- Specified by:
getFingerprintBytesin interfaceInstanceSettingsOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
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;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setFingerprintBytes
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;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
optional string kind = 3292052;- Specified by:
hasKindin interfaceInstanceSettingsOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
optional string kind = 3292052;- Specified by:
getKindin interfaceInstanceSettingsOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceInstanceSettingsOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasMetadata
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;- Specified by:
hasMetadatain interfaceInstanceSettingsOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;- Specified by:
getMetadatain interfaceInstanceSettingsOrBuilder- Returns:
- The metadata.
-
setMetadata
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735; -
setMetadata
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735; -
mergeMetadata
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735; -
clearMetadata
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735; -
getMetadataBuilder
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735; -
getMetadataOrBuilder
The metadata key/value pairs assigned to all the instances in the corresponding scope.
optional .google.cloud.compute.v1.InstanceSettingsMetadata metadata = 86866735;- Specified by:
getMetadataOrBuilderin interfaceInstanceSettingsOrBuilder
-
hasZone
public boolean hasZone()Output only. [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;- Specified by:
hasZonein interfaceInstanceSettingsOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
Output only. [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;- Specified by:
getZonein interfaceInstanceSettingsOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()Output only. [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;- Specified by:
getZoneBytesin interfaceInstanceSettingsOrBuilder- Returns:
- The bytes for zone.
-
setZone
Output only. [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;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Output only. [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;- Returns:
- This builder for chaining.
-
setZoneBytes
Output only. [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;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-