-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Intellij-ext client for depserver
PiperOrigin-RevId: 588484285
- Loading branch information
1 parent
8d9bd98
commit 4738875
Showing
5 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright 2023 The Bazel Authors. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package com.google.idea.blaze.ext; | ||
|
||
option java_package = "com.google.idea.blaze.ext"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "DependencyServiceProto"; | ||
|
||
|
||
service DepServer { | ||
// Get all dependencies for the packages and targets in the given request | ||
rpc Query(DependencyRequest) returns (QueryResponse) {} | ||
|
||
// Execute a Blaze Query command using a query expression | ||
rpc BlazeQuery(BlazeQueryRequest) returns (QueryResponse) {} | ||
} | ||
|
||
message TargetInfo { | ||
string name = 1; | ||
string kind = 2; | ||
} | ||
|
||
message DependencyRequest { | ||
enum FilterType { | ||
UNKNOWN = 0; | ||
TESTS = 1; | ||
LIBRARIES = 2; | ||
BINARIES = 3; | ||
GWT = 4; | ||
FILES = 5; | ||
RULES = 6; | ||
} | ||
bool forward = 1; | ||
repeated string target = 2; | ||
repeated string filter_kind = 3; | ||
bool direct = 4; | ||
repeated string file = 5; | ||
repeated FilterType filter_type = 6; | ||
repeated string response_attribute = 12; | ||
} | ||
|
||
message BlazeQueryRequest { | ||
string blaze_query_expression = 1; | ||
} | ||
|
||
message QueryResponse { | ||
repeated TargetInfo target = 1; | ||
bool success = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters