Class RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • clear

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

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

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

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

        public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • clearField

        public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • clearOneof

        public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • setRepeatedField

        public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • addRepeatedField

        public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • isInitialized

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

        public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
        Throws:
        IOException
      • getService

        public String getService()
         Required. The relative resource name of the metastore service to run
         restore, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}`.
         
        string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getService in interface RestoreServiceRequestOrBuilder
        Returns:
        The service.
      • getServiceBytes

        public com.google.protobuf.ByteString getServiceBytes()
         Required. The relative resource name of the metastore service to run
         restore, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}`.
         
        string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getServiceBytes in interface RestoreServiceRequestOrBuilder
        Returns:
        The bytes for service.
      • setService

        public RestoreServiceRequest.Builder setService​(String value)
         Required. The relative resource name of the metastore service to run
         restore, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}`.
         
        string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The service to set.
        Returns:
        This builder for chaining.
      • clearService

        public RestoreServiceRequest.Builder clearService()
         Required. The relative resource name of the metastore service to run
         restore, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}`.
         
        string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setServiceBytes

        public RestoreServiceRequest.Builder setServiceBytes​(com.google.protobuf.ByteString value)
         Required. The relative resource name of the metastore service to run
         restore, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}`.
         
        string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for service to set.
        Returns:
        This builder for chaining.
      • getBackup

        public String getBackup()
         Required. The relative resource name of the metastore service backup to
         restore from, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
         
        string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getBackup in interface RestoreServiceRequestOrBuilder
        Returns:
        The backup.
      • getBackupBytes

        public com.google.protobuf.ByteString getBackupBytes()
         Required. The relative resource name of the metastore service backup to
         restore from, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
         
        string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getBackupBytes in interface RestoreServiceRequestOrBuilder
        Returns:
        The bytes for backup.
      • setBackup

        public RestoreServiceRequest.Builder setBackup​(String value)
         Required. The relative resource name of the metastore service backup to
         restore from, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
         
        string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The backup to set.
        Returns:
        This builder for chaining.
      • clearBackup

        public RestoreServiceRequest.Builder clearBackup()
         Required. The relative resource name of the metastore service backup to
         restore from, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
         
        string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setBackupBytes

        public RestoreServiceRequest.Builder setBackupBytes​(com.google.protobuf.ByteString value)
         Required. The relative resource name of the metastore service backup to
         restore from, in the following form:
        
         `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
         
        string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for backup to set.
        Returns:
        This builder for chaining.
      • getRestoreTypeValue

        public int getRestoreTypeValue()
         Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
         
        .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestoreTypeValue in interface RestoreServiceRequestOrBuilder
        Returns:
        The enum numeric value on the wire for restoreType.
      • setRestoreTypeValue

        public RestoreServiceRequest.Builder setRestoreTypeValue​(int value)
         Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
         
        .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for restoreType to set.
        Returns:
        This builder for chaining.
      • getRestoreType

        public Restore.RestoreType getRestoreType()
         Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
         
        .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestoreType in interface RestoreServiceRequestOrBuilder
        Returns:
        The restoreType.
      • setRestoreType

        public RestoreServiceRequest.Builder setRestoreType​(Restore.RestoreType value)
         Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
         
        .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The restoreType to set.
        Returns:
        This builder for chaining.
      • clearRestoreType

        public RestoreServiceRequest.Builder clearRestoreType()
         Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
         
        .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getRequestId

        public String getRequestId()
         Optional. A request ID. Specify a unique request ID to allow the server to
         ignore the request if it has completed. The server will ignore subsequent
         requests that provide a duplicate request ID for at least 60 minutes after
         the first request.
        
         For example, if an initial request times out, followed by another request
         with the same request ID, the server ignores the second request to prevent
         the creation of duplicate commitments.
        
         The request ID must be a valid
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
         A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestId in interface RestoreServiceRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Optional. A request ID. Specify a unique request ID to allow the server to
         ignore the request if it has completed. The server will ignore subsequent
         requests that provide a duplicate request ID for at least 60 minutes after
         the first request.
        
         For example, if an initial request times out, followed by another request
         with the same request ID, the server ignores the second request to prevent
         the creation of duplicate commitments.
        
         The request ID must be a valid
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
         A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestIdBytes in interface RestoreServiceRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public RestoreServiceRequest.Builder setRequestId​(String value)
         Optional. A request ID. Specify a unique request ID to allow the server to
         ignore the request if it has completed. The server will ignore subsequent
         requests that provide a duplicate request ID for at least 60 minutes after
         the first request.
        
         For example, if an initial request times out, followed by another request
         with the same request ID, the server ignores the second request to prevent
         the creation of duplicate commitments.
        
         The request ID must be a valid
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
         A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public RestoreServiceRequest.Builder clearRequestId()
         Optional. A request ID. Specify a unique request ID to allow the server to
         ignore the request if it has completed. The server will ignore subsequent
         requests that provide a duplicate request ID for at least 60 minutes after
         the first request.
        
         For example, if an initial request times out, followed by another request
         with the same request ID, the server ignores the second request to prevent
         the creation of duplicate commitments.
        
         The request ID must be a valid
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
         A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public RestoreServiceRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Optional. A request ID. Specify a unique request ID to allow the server to
         ignore the request if it has completed. The server will ignore subsequent
         requests that provide a duplicate request ID for at least 60 minutes after
         the first request.
        
         For example, if an initial request times out, followed by another request
         with the same request ID, the server ignores the second request to prevent
         the creation of duplicate commitments.
        
         The request ID must be a valid
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
         A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      • mergeUnknownFields

        public final RestoreServiceRequest.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<RestoreServiceRequest.Builder>