Class RestoreInstanceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RestoreInstanceRequest.Builder>
com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder
All Implemented Interfaces:
RestoreInstanceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RestoreInstanceRequest

public static final class RestoreInstanceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RestoreInstanceRequest.Builder> implements RestoreInstanceRequestOrBuilder
 RestoreInstanceRequest restores an existing instance's file share from a
 backup.
 
Protobuf type google.cloud.filestore.v1beta1.RestoreInstanceRequest
  • 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<RestoreInstanceRequest.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<RestoreInstanceRequest.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<RestoreInstanceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public RestoreInstanceRequest.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<RestoreInstanceRequest.Builder>
      Throws:
      IOException
    • getSourceCase

      public RestoreInstanceRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface RestoreInstanceRequestOrBuilder
    • clearSource

      public RestoreInstanceRequest.Builder clearSource()
    • getName

      public String getName()
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface RestoreInstanceRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface RestoreInstanceRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RestoreInstanceRequest.Builder setName(String value)
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RestoreInstanceRequest.Builder clearName()
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public RestoreInstanceRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFileShare

      public String getFileShare()
       Required. Name of the file share in the Filestore instance that the backup
       is being restored to.
       
      string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFileShare in interface RestoreInstanceRequestOrBuilder
      Returns:
      The fileShare.
    • getFileShareBytes

      public com.google.protobuf.ByteString getFileShareBytes()
       Required. Name of the file share in the Filestore instance that the backup
       is being restored to.
       
      string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFileShareBytes in interface RestoreInstanceRequestOrBuilder
      Returns:
      The bytes for fileShare.
    • setFileShare

      public RestoreInstanceRequest.Builder setFileShare(String value)
       Required. Name of the file share in the Filestore instance that the backup
       is being restored to.
       
      string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The fileShare to set.
      Returns:
      This builder for chaining.
    • clearFileShare

      public RestoreInstanceRequest.Builder clearFileShare()
       Required. Name of the file share in the Filestore instance that the backup
       is being restored to.
       
      string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFileShareBytes

      public RestoreInstanceRequest.Builder setFileShareBytes(com.google.protobuf.ByteString value)
       Required. Name of the file share in the Filestore instance that the backup
       is being restored to.
       
      string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for fileShare to set.
      Returns:
      This builder for chaining.
    • hasSourceSnapshot

      @Deprecated public boolean hasSourceSnapshot()
      Deprecated.
      google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=989
       The resource name of the snapshot, in the format
       `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
       
      string source_snapshot = 3 [deprecated = true, (.google.api.resource_reference) = { ... }
      Specified by:
      hasSourceSnapshot in interface RestoreInstanceRequestOrBuilder
      Returns:
      Whether the sourceSnapshot field is set.
    • getSourceSnapshot

      @Deprecated public String getSourceSnapshot()
      Deprecated.
      google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=989
       The resource name of the snapshot, in the format
       `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
       
      string source_snapshot = 3 [deprecated = true, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceSnapshot in interface RestoreInstanceRequestOrBuilder
      Returns:
      The sourceSnapshot.
    • getSourceSnapshotBytes

      @Deprecated public com.google.protobuf.ByteString getSourceSnapshotBytes()
      Deprecated.
      google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=989
       The resource name of the snapshot, in the format
       `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
       
      string source_snapshot = 3 [deprecated = true, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceSnapshotBytes in interface RestoreInstanceRequestOrBuilder
      Returns:
      The bytes for sourceSnapshot.
    • setSourceSnapshot

      @Deprecated public RestoreInstanceRequest.Builder setSourceSnapshot(String value)
      Deprecated.
      google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=989
       The resource name of the snapshot, in the format
       `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
       
      string source_snapshot = 3 [deprecated = true, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceSnapshot to set.
      Returns:
      This builder for chaining.
    • clearSourceSnapshot

      @Deprecated public RestoreInstanceRequest.Builder clearSourceSnapshot()
      Deprecated.
      google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=989
       The resource name of the snapshot, in the format
       `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
       
      string source_snapshot = 3 [deprecated = true, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSourceSnapshotBytes

      @Deprecated public RestoreInstanceRequest.Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=989
       The resource name of the snapshot, in the format
       `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
       
      string source_snapshot = 3 [deprecated = true, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sourceSnapshot to set.
      Returns:
      This builder for chaining.
    • hasSourceBackup

      public boolean hasSourceBackup()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
       
      string source_backup = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasSourceBackup in interface RestoreInstanceRequestOrBuilder
      Returns:
      Whether the sourceBackup field is set.
    • getSourceBackup

      public String getSourceBackup()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
       
      string source_backup = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBackup in interface RestoreInstanceRequestOrBuilder
      Returns:
      The sourceBackup.
    • getSourceBackupBytes

      public com.google.protobuf.ByteString getSourceBackupBytes()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
       
      string source_backup = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBackupBytes in interface RestoreInstanceRequestOrBuilder
      Returns:
      The bytes for sourceBackup.
    • setSourceBackup

      public RestoreInstanceRequest.Builder setSourceBackup(String value)
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
       
      string source_backup = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceBackup to set.
      Returns:
      This builder for chaining.
    • clearSourceBackup

      public RestoreInstanceRequest.Builder clearSourceBackup()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
       
      string source_backup = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSourceBackupBytes

      public RestoreInstanceRequest.Builder setSourceBackupBytes(com.google.protobuf.ByteString value)
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
       
      string source_backup = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sourceBackup to set.
      Returns:
      This builder for chaining.