package ml_metadata

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service MetadataStoreService

metadata_store_service.proto:1143

LINT.IfChange

message AnyArtifactStructType

metadata_store.proto:577

Every ArtifactStruct is a member of this type.

Used in: ArtifactStructType

(message has no fields)

message Artifact

metadata_store.proto:45

Used in: ArtifactAndType, GetArtifactByTypeAndNameResponse, GetArtifactsByContextResponse, GetArtifactsByExternalIdsResponse, GetArtifactsByIDResponse, GetArtifactsByTypeResponse, GetArtifactsByURIResponse, GetArtifactsResponse, LineageGraph, PutArtifactsRequest, PutExecutionRequest.ArtifactAndEvent, PutLineageSubgraphRequest

enum Artifact.State

metadata_store.proto:69

Used in: Artifact

message ArtifactAndType

metadata_store_service.proto:24

An artifact and type pair. Part of an artifact struct.

Used in: ArtifactStruct

message ArtifactStruct

metadata_store_service.proto:44

An artifact struct represents the input or output of an Execution. See the more specific types referenced in the message for more details.

Used in: ArtifactStructList, ArtifactStructMap

message ArtifactStructList

metadata_store_service.proto:37

An artifact struct that is a list.

Used in: ArtifactStruct

message ArtifactStructMap

metadata_store_service.proto:30

A dictionary of artifact structs. Can represent a dictionary.

Used in: ArtifactStruct

message ArtifactStructType

metadata_store.proto:497

The list of ArtifactStruct is EXPERIMENTAL and not in use yet. The type of an ArtifactStruct. An artifact struct type represents an infinite set of artifact structs. It can specify the input or output type of an ExecutionType. See the more specific types referenced in the message for more details.

Used in: DictArtifactStructType, ExecutionType, IntersectionArtifactStructType, ListArtifactStructType, TupleArtifactStructType, UnionArtifactStructType

message ArtifactType

metadata_store.proto:118

Used in: ArtifactAndType, ArtifactStructType, GetArtifactTypeResponse, GetArtifactTypesByExternalIdsResponse, GetArtifactTypesByIDResponse, GetArtifactTypesResponse, GetArtifactsByIDResponse, LineageGraph, PutArtifactTypeRequest, PutTypesRequest, SimpleTypes

enum ArtifactType.SystemDefinedBaseType

metadata_store.proto:139

An enum of system-defined artifact types.

Used in: ArtifactType

message Association

metadata_store.proto:456

the Association edges between Context and Execution instances.

Used in: LineageGraph, PutAttributionsAndAssociationsRequest

message Attribution

metadata_store.proto:447

the Attribution edges between Context and Artifact instances.

Used in: LineageGraph, PutAttributionsAndAssociationsRequest

message ConnectionConfig

metadata_store.proto:790

Used in: MetadataStoreServerConfig

message Context

metadata_store.proto:419

Used in: GetChildrenContextsByContextResponse, GetChildrenContextsByContextsResponse.ChildrenContextsPerParent, GetContextByTypeAndNameResponse, GetContextsByArtifactResponse, GetContextsByExecutionResponse, GetContextsByExternalIdsResponse, GetContextsByIDResponse, GetContextsByTypeResponse, GetContextsResponse, GetParentContextsByContextResponse, GetParentContextsByContextsResponse.ParentContextsPerChild, LineageGraph, PutContextsRequest, PutExecutionRequest, PutLineageSubgraphRequest

message ContextType

metadata_store.proto:387

Used in: GetContextTypeResponse, GetContextTypesByExternalIdsResponse, GetContextTypesByIDResponse, GetContextTypesResponse, LineageGraph, PutContextTypeRequest, PutTypesRequest, SimpleTypes

enum ContextType.SystemDefinedBaseType

metadata_store.proto:408

An enum of system-defined context types.

Used in: ContextType

message DictArtifactStructType

metadata_store.proto:588

A artifact struct type that represents a record or struct-like dictionary. ArtifactStruct would be map (i.e. ArtifactStructMap)

Used in: ArtifactStructType

message Event

metadata_store.proto:238

An event represents a relationship between an artifact and an execution. There are different kinds of events, relating to both input and output, as well as how they are used by the mlmd powered system. For example, the DECLARED_INPUT and DECLARED_OUTPUT events are part of the signature of an execution. For example, consider: my_result = my_execution({"data":[3,7],"schema":8}) Where 3, 7, and 8 are artifact_ids, Assuming execution_id of my_execution is 12 and artifact_id of my_result is 15, the events are: { artifact_id:3, execution_id: 12, type:DECLARED_INPUT, path:{step:[{"key":"data"},{"index":0}]} } { artifact_id:7, execution_id: 12, type:DECLARED_INPUT, path:{step:[{"key":"data"},{"index":1}]} } { artifact_id:8, execution_id: 12, type:DECLARED_INPUT, path:{step:[{"key":"schema"}]} } { artifact_id:15, execution_id: 12, type:DECLARED_OUTPUT, path:{step:[{"key":"my_result"}]} } Other event types include INPUT/OUTPUT, INTERNAL_INPUT/_OUTPUT and PENDING_OUTPUT: * The INPUT/OUTPUT is an event that actually reads/writes an artifact by an execution. The input/output artifacts may not declared in the signature, For example, the trainer may output multiple caches of the parameters (as an OUTPUT), then finally write the SavedModel as a DECLARED_OUTPUT. * The INTERNAL_INPUT/_OUTPUT are event types which are only meaningful to an orchestration system to keep track of the details for later debugging. For example, a fork happened conditioning on an artifact, then an execution is triggered, such fork implementing may need to log the read and write of artifacts and may not be worth displaying to the users. For instance, in the above example, my_result = my_execution({"data":[3,7],"schema":8}) there is another execution (id: 15), which represents a `garbage_collection` step in an orchestration system gc_result = garbage_collection(my_result) that cleans `my_result` if needed. The details should be invisible to the end users and lineage tracking. The orchestrator can emit following events: { artifact_id: 15, execution_id: 15, type:INTERNAL_INPUT, } { artifact_id:16, // New artifact containing the GC job result. execution_id: 15, type:INTERNAL_OUTPUT, path:{step:[{"key":"gc_result"}]} } * The PENDING_OUTPUT event is used to indicate that an artifact is tentatively associated with an active execution which has not yet been finalized. For example, an orchestration system can register output artifacts of a running execution with PENDING_OUTPUT events to indicate the output artifacts the execution is expected to produce. When the execution is finished, the final set of output artifacts can be associated with the exeution using OUTPUT events, and any unused artifacts which were previously registered with PENDING_OUTPUT events can be updated to set their Artifact.State to ABANDONED. Events are unique of the same (artifact_id, execution_id, type) combination within a metadata store.

Used in: GetEventsByArtifactIDsResponse, GetEventsByExecutionIDsResponse, LineageGraph, PutEventsRequest, PutExecutionRequest.ArtifactAndEvent, PutLineageSubgraphRequest.EventEdge

message Event.Path

metadata_store.proto:241

A simple path (e.g. {step{key:"foo"}}) can name an artifact in the context of an execution.

Used in: Event

message Event.Path.Step

metadata_store.proto:242

Used in: Path

enum Event.Type

metadata_store.proto:256

Events distinguish between an artifact that is written by the execution (possibly as a cache), versus artifacts that are part of the declared output of the Execution. For more information on what DECLARED_ means, see the comment on the message.

Used in: Event

message Execution

metadata_store.proto:284

Used in: GetExecutionByTypeAndNameResponse, GetExecutionsByContextResponse, GetExecutionsByExternalIdsResponse, GetExecutionsByIDResponse, GetExecutionsByTypeResponse, GetExecutionsResponse, LineageGraph, PutExecutionRequest, PutExecutionsRequest, PutLineageSubgraphRequest

enum Execution.State

metadata_store.proto:307

The state of the Execution. The state transitions are NEW -> RUNNING -> COMPLETE | CACHED | FAILED | CANCELED CACHED means the execution is skipped due to cached results. CANCELED means the execution is skipped due to precondition not met. It is different from CACHED in that a CANCELED execution will not have any event associated with it. It is different from FAILED in that there is no unexpected error happened and it is regarded as a normal state.

Used in: Execution

message ExecutionType

metadata_store.proto:332

Used in: GetExecutionTypeResponse, GetExecutionTypesByExternalIdsResponse, GetExecutionTypesByIDResponse, GetExecutionTypesResponse, LineageGraph, PutExecutionTypeRequest, PutTypesRequest, SimpleTypes

enum ExecutionType.SystemDefinedBaseType

metadata_store.proto:372

An enum of system-defined execution types.

Used in: ExecutionType

message FakeDatabaseConfig

metadata_store.proto:605

Configuration for a "fake" database. This database is an in-memory SQLite database that lives only as long as the associated object lives.

Used in: ConnectionConfig

(message has no fields)

message GetChildrenContextsByContextsResponse.ChildrenContextsPerParent

metadata_store_service.proto:1030

Used in: GetChildrenContextsByContextsResponse

message GetParentContextsByContextsResponse.ParentContextsPerChild

metadata_store_service.proto:1017

Used in: GetParentContextsByContextsResponse

message GrpcChannelArguments

metadata_store.proto:811

A list of supported GRPC arguments defined in: https://grpc.github.io/grpc/core/group__grpc__arg__keys.html

Used in: MetadataStoreClientConfig

message IntersectionArtifactStructType

metadata_store.proto:541

A member of this type must satisfy all constraints. This primarily useful not as an end-user type, but something calculated as an intermediate type in the system. For example, suppose you have a method: def infer_my_input_type(a): # try to infer the input type of this method. use_in_method_x(a) # with input type x_input use_in_method_y(a) # with input type y_input Given this information, you know that infer_my_input_type has type {"intersection":{"constraints":[x_input, y_input]}}. IntersectionArtifactStructType intersection_type = {"constraints":[ {"dict":{"properties":{"schema":{"any":{}}}, "extra_properties":{"any":{}}}}, {"dict":{"properties":{"data":{"any":{}}}, "extra_properties":{"any":{}}}}]} Since the first constraint requires the dictionary to have a schema property, and the second constraint requires it to have a data property, this is equivalent to: ArtifactStructType other_type = {"dict":{"properties":{"schema":{"any":{}},"data":{"any":{}}}}, "extra_properties":{"any":{}}}

Used in: ArtifactStructType

message LineageGraph

metadata_store.proto:476

A self-contained provenance (sub)graph representation consists of MLMD nodes and their relationships. It is used to represent the query results from the persistent backend (e.g., lineage about a node, reachability of two nodes).

Used in: GetLineageGraphResponse, GetLineageSubgraphResponse

message LineageGraphQueryOptions

metadata_store.proto:1081

Deprecated: GetLineageGraph API is deprecated, please refer to GetLineageSubgraph API as the alternative. The query options for `get_lineage_graph` operation. `query_nodes` is a list of nodes of interest. Currently only artifacts are supported as `query_nodes`. `stop_conditions` defines the filtering rules when querying a lineage graph. `max_node_size` defines the total number of artifacts and executions returned in the subgraph.

Used in: GetLineageGraphRequest

message LineageGraphQueryOptions.BoundaryConstraint

metadata_store.proto:1093

Filtering conditions for retrieving the lineage graph.

Used in: LineageGraphQueryOptions

message LineageSubgraphQueryOptions

metadata_store.proto:1203

The query options for lineage graph tracing from a list of interested nodes.

Used in: GetLineageSubgraphRequest

enum LineageSubgraphQueryOptions.Direction

metadata_store.proto:1227

Used in: LineageSubgraphQueryOptions

message LineageSubgraphQueryOptions.EndingNodes

metadata_store.proto:1250

`ending_nodes` is a list of nodes that end expanding the graph.

Used in: LineageSubgraphQueryOptions

message LineageSubgraphQueryOptions.StartingNodes

metadata_store.proto:1206

`starting_nodes` is a list of nodes of interest to start graph tracing. NOTE: The maximum number of starting nodes is 100 at most.

Used in: LineageSubgraphQueryOptions

message ListArtifactStructType

metadata_store.proto:546

Represents an ArtifactStruct list type with homogeneous elements.

Used in: ArtifactStructType

message ListOperationNextPageToken

metadata_store.proto:1036

Encapsulates information to identify the next page of resources in ListOperation.

message ListOperationOptions

metadata_store.proto:880

ListOperationOptions represents the set of options and predicates to be used for List operations on Artifacts, Executions and Contexts.

Used in: GetArtifactsByContextRequest, GetArtifactsByTypeRequest, GetArtifactsRequest, GetContextsByTypeRequest, GetContextsRequest, GetExecutionsByContextRequest, GetExecutionsByTypeRequest, GetExecutionsRequest, LineageGraphQueryOptions, ListOperationNextPageToken

message ListOperationOptions.OrderByField

metadata_store.proto:887

Used in: ListOperationOptions

enum ListOperationOptions.OrderByField.Field

metadata_store.proto:889

Supported fields for Ordering.

Used in: OrderByField

message MetadataSourceQueryConfig

metadata_source.proto:56

A config includes a set of SQL queries and the type of metadata source. It is used by MetadataAccessObject to init backend and issue queries. Next ID: 144

message MetadataSourceQueryConfig.DbVerification

metadata_source.proto:617

Used in: MigrationScheme

message MetadataSourceQueryConfig.MigrationScheme

metadata_source.proto:628

A migration scheme that is used by a migration function to transit a database at a schema_version to schema_version + 1. DDL is often metadata source specific, if provided, each metadata source should have its own setting.

Used in: MetadataSourceQueryConfig

message MetadataSourceQueryConfig.MigrationScheme.VerificationScheme

metadata_source.proto:637

For test purposes, it defines the setup query and post condition invariants of a migration scheme.

Used in: MigrationScheme

message MetadataSourceQueryConfig.TemplateQuery

metadata_source.proto:65

Template of a SQL query, which can contain parameterized variables using $0, $1, ... $9. For instance: query: "select * from foo where bar = $0" parameter_num: 1

Used in: MetadataSourceQueryConfig, MigrationScheme, MigrationScheme.VerificationScheme

enum MetadataSourceType

metadata_source.proto:39

Contains supported metadata sources types in MetadataAccessObject. Next index: 7

Used in: MetadataSourceQueryConfig

message MetadataStoreClientConfig

metadata_store.proto:820

Configuration for the gRPC metadata store client.

message MetadataStoreClientConfig.SSLConfig

metadata_store.proto:827

Used in: MetadataStoreClientConfig

message MetadataStoreServerConfig

metadata_store.proto:855

Configuration for the gRPC metadata store server.

message MetadataStoreServerConfig.SSLConfig

metadata_store.proto:862

Used in: MetadataStoreServerConfig

message MigrationOptions

metadata_store.proto:759

Used in: MetadataStoreServerConfig

message MySQLDatabaseConfig

metadata_store.proto:607

Used in: ConnectionConfig

message MySQLDatabaseConfig.SSLOptions

metadata_store.proto:633

The options to establish encrypted connections to MySQL using SSL.

Used in: MySQLDatabaseConfig

message MySQLSourceErrorInfo

metadata_source.proto:756

A payload that can be optionally attached to absl::Status messages to indicate failure specific information like error codes for MySQL based backends.

message NoneArtifactStructType

metadata_store.proto:574

The only member of this type is a None artifact. Note: ArtifactStruct{} is a None artifact. This can represent an execution that has no outputs (or inputs), or can be part of a UnionArtifactStructType to represent an optional input. For example, StatsGen has an "optional" schema input. A practical example of this is: stats_gen_type = { "dict":{ "properties":{ "schema":{ "union_type":{ "none":{}, "simple":{...schema type...} }, }, "data":{ "simple":{...data_type...} } } } };

Used in: ArtifactStructType

(message has no fields)

message ParentContext

metadata_store.proto:465

the Parental Context edges between Context and Context instances.

Used in: LineageGraph, PutParentContextsRequest

message PostgreSQLDatabaseConfig

metadata_store.proto:694

A config contains the parameters when using with PostgreSQLMetadatSource. Next index: 10

Used in: ConnectionConfig

message PostgreSQLDatabaseConfig.SSLOptions

metadata_store.proto:726

Used in: PostgreSQLDatabaseConfig

enum PropertyType

metadata_store.proto:106

The list of supported property value types.

Used in: ArtifactType, ContextType, ExecutionType

message PutArtifactsRequest.Options

metadata_store_service.proto:56

Used in: PutArtifactsRequest

message PutExecutionRequest.ArtifactAndEvent

metadata_store_service.proto:292

A pair of an artifact and an event used or generated by an execution, e.g., during the execution run, it uses none or many artifacts as input, and generate none or many artifacts as output.

Used in: PutExecutionRequest

message PutExecutionRequest.Options

metadata_store_service.proto:303

Used in: PutExecutionRequest

message PutLineageSubgraphRequest.EventEdge

metadata_store_service.proto:366

Used in: PutLineageSubgraphRequest

message PutLineageSubgraphRequest.Options

metadata_store_service.proto:375

Used in: PutLineageSubgraphRequest

message RecordSet

metadata_source.proto:23

A collection of returned records.

message RecordSet.Record

metadata_source.proto:26

An individual record (e.g., row) returned by a MetadataSource. The record does not address the type conversion.

Used in: RecordSet

message RetryOptions

metadata_store.proto:785

Used in: ConnectionConfig

message SimpleTypes

simple_types.proto:25

A bundle of ml-metadata types to describe artifacts, executions and contexts in general ML pipelines. The details of the data model is described in go/mlmd. ml-metadata provides a predefined bundle defined in simple_types_constants.h.

message SqliteMetadataSourceConfig

metadata_store.proto:660

A config contains the parameters when using with SqliteMetadatSource.

Used in: ConnectionConfig

enum SqliteMetadataSourceConfig.ConnectionMode

metadata_store.proto:673

Connection parameters for SQLite3 based metadata source.

Used in: SqliteMetadataSourceConfig

message SystemTypeExtension

metadata_store.proto:28

message TransactionOptions

metadata_store.proto:1064

Options for transactions. Note: This is under development. Clients should not use it.

Used in: GetArtifactByTypeAndNameRequest, GetArtifactTypeRequest, GetArtifactTypesByExternalIdsRequest, GetArtifactTypesByIDRequest, GetArtifactTypesRequest, GetArtifactsByContextRequest, GetArtifactsByExternalIdsRequest, GetArtifactsByIDRequest, GetArtifactsByTypeRequest, GetArtifactsByURIRequest, GetArtifactsRequest, GetChildrenContextsByContextRequest, GetChildrenContextsByContextsRequest, GetContextByTypeAndNameRequest, GetContextTypeRequest, GetContextTypesByExternalIdsRequest, GetContextTypesByIDRequest, GetContextTypesRequest, GetContextsByArtifactRequest, GetContextsByExecutionRequest, GetContextsByExternalIdsRequest, GetContextsByIDRequest, GetContextsByTypeRequest, GetContextsRequest, GetEventsByArtifactIDsRequest, GetEventsByExecutionIDsRequest, GetExecutionByTypeAndNameRequest, GetExecutionTypeRequest, GetExecutionTypesByExternalIdsRequest, GetExecutionTypesByIDRequest, GetExecutionTypesRequest, GetExecutionsByContextRequest, GetExecutionsByContextResponse, GetExecutionsByExternalIdsRequest, GetExecutionsByIDRequest, GetExecutionsByTypeRequest, GetExecutionsRequest, GetLineageGraphRequest, GetLineageSubgraphRequest, GetParentContextsByContextRequest, GetParentContextsByContextsRequest, PutArtifactTypeRequest, PutArtifactsRequest, PutAttributionsAndAssociationsRequest, PutContextTypeRequest, PutContextsRequest, PutEventsRequest, PutExecutionRequest, PutExecutionTypeRequest, PutExecutionsRequest, PutLineageSubgraphRequest, PutParentContextsRequest, PutTypesRequest

message TupleArtifactStructType

metadata_store.proto:582

An ordered list of heterogeneous artifact structs. The length of the list is fixed. Each position in the list can have a different type.

Used in: ArtifactStructType

message UnionArtifactStructType

metadata_store.proto:511

Represents a union of types.

Used in: ArtifactStructType

message Value

metadata_store.proto:34

A value in properties.

Used in: Artifact, Context, Execution