diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectAnnotation.proto deleted file mode 100644 index 2fe7db8d3..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectAnnotation.proto +++ /dev/null @@ -1,33 +0,0 @@ -syntax = "proto3"; - -import "proto/com/linkedin/proto/AspectEntityAnnotation.proto"; -import "proto/com/linkedin/proto/ColumnNameAnnotation.proto"; -import "proto/com/linkedin/proto/AspectIngestionAnnotation.proto"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Subnamespace for information related to an aspect. -message AspectAnnotation { - - // Information the entity this apsect is a associated with. A set of events (MCE, MAE, FMCE) will be generated by the metadata events plugin for this entity-aspect pair. - optional AspectEntityAnnotation entity = 1; - - // Information about this aspect relating to the new schema's entity tables. - optional ColumnNameAnnotation column = 2; - - // Information about how the aspect should be ingested. - // Example use cases: - // 1. Skip equality check. - // 2. Skip sementic versioning check. - // - // optional - repeated AspectIngestionAnnotation ingestion = 3; - - // Information on multiple entities this aspect is associated with. Deprecated; it is an error to use outside of a limited set of allowed models. Used to help migrate existing "common aspects" to v5 only. - // - // optional - repeated AspectEntityAnnotation entities = 4 [deprecated=true]; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectEntityAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectEntityAnnotation.proto deleted file mode 100644 index ec8e5dd10..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectEntityAnnotation.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Annotation on an aspect, describing an entity. -message AspectEntityAnnotation { - - // The FQCN of the URN that identifies this entity. - string urn = 1; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectIngestionAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectIngestionAnnotation.proto deleted file mode 100644 index 98bb03494..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/AspectIngestionAnnotation.proto +++ /dev/null @@ -1,37 +0,0 @@ -syntax = "proto3"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -message AspectIngestionAnnotation { - - enum Mode { - // Honor all existing checks in data access layer. - Mode_UNKNOWN = 0; - - // Skip any check in data access layer. Update the aspect in database irrespectively. - Mode_FORCE_UPDATE = 1; - } - - // Ingestion Mode applied this aspect. This can be overridden by IngestionMode set in (union) MCE. - optional Mode mode = 1; - - // The FQCN of the URN that identifies this entity. The ingestion mode will be applied to the aspect associated with this entity. - optional string urn = 2; - - message UrnFilter { - // Path extracted by UrnPathExtractor - // https://github.com/linkedin/datahub-gma/blob/master/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/scsi/UrnPathExtractor.java - optional string path = 1; - - // The target value lead to by by the path. - optional string value = 2; - } - - // Filter on the URN so that this ingestion mode is only applicable to a subset of entities. Filters are chained by OR relation. - // - // optional - repeated UrnFilter filter = 3; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/ColumnNameAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/ColumnNameAnnotation.proto deleted file mode 100644 index 65c1ddc97..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/ColumnNameAnnotation.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Annotation for defining the column name for each aspect in the new schema entity tables. -message ColumnNameAnnotation { - - // Column name, limited to 32 characters. - string name = 1; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/DeltaAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/DeltaAnnotation.proto deleted file mode 100644 index 8cc2aac4a..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/DeltaAnnotation.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; - -import "proto/com/linkedin/proto/DeltaEntityAnnotation.proto"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Subnamespace for information related to an Delta pre-ingestion. -message DeltaAnnotation { - - message DeltaEntityAnnotationList { - repeated DeltaEntityAnnotation deltaEntityAnnotations = 1; - } - - // Information on multiple entities with their lambda funcions this field is associated with. - // - // optional - map entities = 1; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/DeltaEntityAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/DeltaEntityAnnotation.proto deleted file mode 100644 index 744db48c7..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/DeltaEntityAnnotation.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Annotation on an field, describing an entity and its associated pre-ingestion lambda functions. -message DeltaEntityAnnotation { - - // The FQCN of the URN that identifies this entity. - string urn = 1; - - // The FQCN of the lambda function chains that apply to pre-ingestion. - repeated string lambdas = 2; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/GmaAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/GmaAnnotation.proto deleted file mode 100644 index 292c86b37..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/GmaAnnotation.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; - -import "google/protobuf/descriptor.proto"; -import "proto/com/linkedin/proto/AspectAnnotation.proto"; -import "proto/com/linkedin/proto/DeltaAnnotation.proto"; -import "proto/com/linkedin/proto/SearchAnnotation.proto"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Root namespace annotation for all @gma annotations. -message GmaAnnotation { - - // Information about an aspect. - optional AspectAnnotation aspect = 1; - - // Information about delta pre-ingestions of a field. - optional DeltaAnnotation delta = 2; - - // Information about GMA Search functionality. - optional SearchAnnotation search = 3; -} - -extend google.protobuf.MessageOptions { - optional GmaAnnotation gma = 51100; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/IndexAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/IndexAnnotation.proto deleted file mode 100644 index 7fce1958b..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/IndexAnnotation.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Annotation on a field in an Aspect model indicating the field's Search configuration. -message IndexAnnotation { - - // The FQCN of the URN that identifies the entity of which to index the field the annotation is placed on. - // MUST also be present in the @gma.aspect.entity or @gma.aspect.entities annotation. - string urn = 1; -} \ No newline at end of file diff --git a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/SearchAnnotation.proto b/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/SearchAnnotation.proto deleted file mode 100644 index 5dc6f5f47..000000000 --- a/gradle-plugins/metadata-annotations-schema/src/main/dataProto/proto/com/linkedin/proto/SearchAnnotation.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; - -import "proto/com/linkedin/proto/IndexAnnotation.proto"; - -option java_multiple_files = true; - -package proto.com.linkedin.annotations; - - -// Subnamespace for information related to GMA Search. -message SearchAnnotation { - - message IndexAnnotationList { - repeated IndexAnnotation indexAnnotations = 1; - } - - // Information about Search indexing as map between field name and annotations. - // - // LinkedIn Internal: Search Documents, IndexBuilders, Search DAOs, and search configuration - // will be auto-generated by the metadata-models Code Gen plugin based on the fields that have - // this annotation. - // - // optional - map index = 1; -} \ No newline at end of file