(op)
Check that an operation is a genomics pipeline run.

  An operation is a Genomics Pipeline run if the request metadata's @type
  is "type.googleapis.com/google.genomics.v2alpha1.Metadata".

  Args:
    op: a pipelines operation.

  Returns:
    Boolean, true if the operation is a RunPipelineRequest.
Check that an operation is a genomics pipeline run.
Check that an operation is a genomics pipeline run .
def is_pipeline(op):
  """Check that an operation is a genomics pipeline run.

  An operation is a Genomics Pipeline run if the request metadata's @type
  is "type.googleapis.com/google.genomics.v2alpha1.Metadata".

  Args:
    op: a pipelines operation.

  Returns:
    Boolean, true if the operation is a RunPipelineRequest.
  """

  if _API_VERSION == google_v2_versions.V2ALPHA1:
    return get_metadata_type(
        op) == 'type.googleapis.com/google.genomics.v2alpha1.Metadata'

  elif _API_VERSION == google_v2_versions.V2BETA:
    return get_metadata_type(
        op) == 'type.googleapis.com/google.cloud.lifesciences.v2beta.Metadata'

  else:
    assert False, 'Unexpected version: {}'.format(_API_VERSION)
def is_pipeline ( op ) : if _API_VERSION == google_v2_versions . V2ALPHA1 : return get_metadata_type ( op ) == 'type.googleapis.com/google.genomics.v2alpha1.Metadata' elif _API_VERSION == google_v2_versions . V2BETA : return get_metadata_type ( op ) == 'type.googleapis.com/google.cloud.lifesciences.v2beta.Metadata' else : assert False , 'Unexpected version: {}' . format ( _API_VERSION )