Struct google_api_proto::google::genomics::v1::ImportVariantsRequest
source · pub struct ImportVariantsRequest {
pub variant_set_id: String,
pub source_uris: Vec<String>,
pub format: i32,
pub normalize_reference_names: bool,
pub info_merge_config: BTreeMap<String, i32>,
}
Expand description
The variant data import request.
Fields§
§variant_set_id: String
Required. The variant set to which variant data should be imported.
source_uris: Vec<String>
A list of URIs referencing variant files in Google Cloud Storage. URIs can include wildcards as described here. Note that recursive wildcards (‘**’) are not supported.
format: i32
The format of the variant data being imported. If unspecified, defaults to
to VCF
.
normalize_reference_names: bool
Convert reference names to the canonical representation. hg19 haploytypes (those reference names containing “_hap”) are not modified in any way. All other reference names are modified according to the following rules: The reference name is capitalized. The “chr” prefix is dropped for all autosomes and sex chromsomes. For example “chr17” becomes “17” and “chrX” becomes “X”. All mitochondrial chromosomes (“chrM”, “chrMT”, etc) become “MT”.
info_merge_config: BTreeMap<String, i32>
A mapping between info field keys and the InfoMergeOperations to be performed on them. This is plumbed down to the MergeVariantRequests generated by the resulting import job.
Implementations§
source§impl ImportVariantsRequest
impl ImportVariantsRequest
sourcepub fn format(&self) -> Format
pub fn format(&self) -> Format
Returns the enum value of format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_format(&mut self, value: Format)
pub fn set_format(&mut self, value: Format)
Sets format
to the provided enum value.
sourcepub fn get_info_merge_config(&self, key: &str) -> Option<InfoMergeOperation>
pub fn get_info_merge_config(&self, key: &str) -> Option<InfoMergeOperation>
Returns the enum value for the corresponding key in info_merge_config
, or None
if the entry does not exist or it is not a valid enum value.
sourcepub fn insert_info_merge_config(
&mut self,
key: String,
value: InfoMergeOperation,
) -> Option<InfoMergeOperation>
pub fn insert_info_merge_config( &mut self, key: String, value: InfoMergeOperation, ) -> Option<InfoMergeOperation>
Inserts a key value pair into info_merge_config
.
Trait Implementations§
source§impl Clone for ImportVariantsRequest
impl Clone for ImportVariantsRequest
source§fn clone(&self) -> ImportVariantsRequest
fn clone(&self) -> ImportVariantsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportVariantsRequest
impl Debug for ImportVariantsRequest
source§impl Default for ImportVariantsRequest
impl Default for ImportVariantsRequest
source§impl Message for ImportVariantsRequest
impl Message for ImportVariantsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ImportVariantsRequest
impl PartialEq for ImportVariantsRequest
source§fn eq(&self, other: &ImportVariantsRequest) -> bool
fn eq(&self, other: &ImportVariantsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportVariantsRequest
Auto Trait Implementations§
impl Freeze for ImportVariantsRequest
impl RefUnwindSafe for ImportVariantsRequest
impl Send for ImportVariantsRequest
impl Sync for ImportVariantsRequest
impl Unpin for ImportVariantsRequest
impl UnwindSafe for ImportVariantsRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request