Class SnapshotSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SnapshotSettings.Builder>
com.google.cloud.compute.v1.SnapshotSettings.Builder
All Implemented Interfaces:
SnapshotSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SnapshotSettings

public static final class SnapshotSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<SnapshotSettings.Builder> implements SnapshotSettingsOrBuilder
 
Protobuf type google.cloud.compute.v1.SnapshotSettings
  • 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<SnapshotSettings.Builder>
    • clear

      public SnapshotSettings.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<SnapshotSettings.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<SnapshotSettings.Builder>
    • getDefaultInstanceForType

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

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

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

      public SnapshotSettings.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<SnapshotSettings.Builder>
    • mergeFrom

      public SnapshotSettings.Builder mergeFrom(SnapshotSettings other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SnapshotSettings.Builder>
    • mergeFrom

      public SnapshotSettings.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<SnapshotSettings.Builder>
      Throws:
      IOException
    • hasAccessLocation

      public boolean hasAccessLocation()
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
      Specified by:
      hasAccessLocation in interface SnapshotSettingsOrBuilder
      Returns:
      Whether the accessLocation field is set.
    • getAccessLocation

      public SnapshotSettingsAccessLocation getAccessLocation()
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
      Specified by:
      getAccessLocation in interface SnapshotSettingsOrBuilder
      Returns:
      The accessLocation.
    • setAccessLocation

      public SnapshotSettings.Builder setAccessLocation(SnapshotSettingsAccessLocation value)
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
    • setAccessLocation

      public SnapshotSettings.Builder setAccessLocation(SnapshotSettingsAccessLocation.Builder builderForValue)
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
    • mergeAccessLocation

      public SnapshotSettings.Builder mergeAccessLocation(SnapshotSettingsAccessLocation value)
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
    • clearAccessLocation

      public SnapshotSettings.Builder clearAccessLocation()
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
    • getAccessLocationBuilder

      public SnapshotSettingsAccessLocation.Builder getAccessLocationBuilder()
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
    • getAccessLocationOrBuilder

      public SnapshotSettingsAccessLocationOrBuilder getAccessLocationOrBuilder()
       (Regional snapshots use only)Policy of which location is allowed to access
       snapshot.
       
      optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544;
      Specified by:
      getAccessLocationOrBuilder in interface SnapshotSettingsOrBuilder
    • hasStorageLocation

      public boolean hasStorageLocation()
       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
      Specified by:
      hasStorageLocation in interface SnapshotSettingsOrBuilder
      Returns:
      Whether the storageLocation field is set.
    • getStorageLocation

      public SnapshotSettingsStorageLocationSettings getStorageLocation()
       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
      Specified by:
      getStorageLocation in interface SnapshotSettingsOrBuilder
      Returns:
      The storageLocation.
    • setStorageLocation

       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
    • setStorageLocation

       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
    • mergeStorageLocation

       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
    • clearStorageLocation

      public SnapshotSettings.Builder clearStorageLocation()
       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
    • getStorageLocationBuilder

      public SnapshotSettingsStorageLocationSettings.Builder getStorageLocationBuilder()
       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
    • getStorageLocationOrBuilder

      public SnapshotSettingsStorageLocationSettingsOrBuilder getStorageLocationOrBuilder()
       Policy of which storage location is going to be resolved, and additional
       data that particularizes how the policy is going to be carried out.
       
      optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;
      Specified by:
      getStorageLocationOrBuilder in interface SnapshotSettingsOrBuilder