Class RestoreInstanceRequest.Builder

    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public RestoreInstanceRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>
      • clearField

        public RestoreInstanceRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>
      • clearOneof

        public RestoreInstanceRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>
      • setRepeatedField

        public RestoreInstanceRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>
      • addRepeatedField

        public RestoreInstanceRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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=765
         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=765
         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=765
         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=765
         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=765
         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=765
         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.
      • setUnknownFields

        public final RestoreInstanceRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>
      • mergeUnknownFields

        public final RestoreInstanceRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder>