kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/proto/pipeline.proto (about) 1 /* 2 * Copyright 2018 The Kythe Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 syntax = "proto3"; 18 19 package kythe.proto.pipeline; 20 21 option go_package = "kythe.io/kythe/proto/pipeline_go_proto"; 22 option java_package = "com.google.devtools.kythe.proto"; 23 24 import "kythe/proto/common.proto"; 25 import "kythe/proto/schema.proto"; 26 import "kythe/proto/serving.proto"; 27 import "kythe/proto/storage.proto"; 28 import "kythe/proto/xref_serving.proto"; 29 30 message Reference { 31 kythe.proto.VName source = 1; 32 oneof kind { 33 kythe.proto.schema.EdgeKind kythe_kind = 2; 34 string generic_kind = 3; 35 } 36 kythe.proto.serving.ExpandedAnchor anchor = 4; 37 38 kythe.proto.VName scope = 5; // anchor scope 39 } 40 41 // A DecorationPiece is an independent component of a larger 42 // kythe.proto.serving.FileDecorations message. Each FileDecorations field is 43 // one choice for the piece oneof field. 44 message DecorationPiece { 45 kythe.proto.VName file_v_name = 1; 46 47 message Definition { 48 kythe.proto.VName node = 1; 49 kythe.proto.serving.ExpandedAnchor definition = 2; 50 } 51 52 oneof piece { 53 kythe.proto.serving.File file = 2; 54 Reference reference = 3; 55 kythe.proto.schema.Node node = 4; 56 Definition definition = 5; 57 kythe.proto.common.Diagnostic diagnostic = 6; 58 kythe.proto.serving.xrefs.FileDecorations.TargetOverride target_override = 59 7; 60 } 61 }