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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
    • clear

      public InstanceSettings.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstanceSettings.Builder>
    • getDefaultInstanceForType

      public InstanceSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InstanceSettings build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstanceSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstanceSettings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceSettings.Builder>
    • mergeFrom

      public InstanceSettings.Builder mergeFrom(InstanceSettings other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasFingerprint in interface InstanceSettingsOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public 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;
      Specified by:
      getFingerprint in interface InstanceSettingsOrBuilder
      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:
      getFingerprintBytes in interface InstanceSettingsOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public 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;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • clearFingerprint

      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;
      Returns:
      This builder for chaining.
    • setFingerprintBytes

      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;
      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:
      hasKind in interface InstanceSettingsOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface InstanceSettingsOrBuilder
      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:
      getKindBytes in interface InstanceSettingsOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public InstanceSettings.Builder setKind(String value)
       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

      public InstanceSettings.Builder 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

      public InstanceSettings.Builder setKindBytes(com.google.protobuf.ByteString value)
       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:
      hasMetadata in interface InstanceSettingsOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public InstanceSettingsMetadata 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:
      getMetadata in interface InstanceSettingsOrBuilder
      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

      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;
    • mergeMetadata

      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;
    • clearMetadata

      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;
    • getMetadataBuilder

      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;
    • getMetadataOrBuilder

      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;
      Specified by:
      getMetadataOrBuilder in interface InstanceSettingsOrBuilder
    • 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:
      hasZone in interface InstanceSettingsOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String 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:
      getZone in interface InstanceSettingsOrBuilder
      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:
      getZoneBytes in interface InstanceSettingsOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public InstanceSettings.Builder setZone(String value)
       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

      public InstanceSettings.Builder 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

      public InstanceSettings.Builder setZoneBytes(com.google.protobuf.ByteString value)
       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.