Skip to content

Commit 4c6e80f

Browse files
schoppmpcopybara-github
authored andcommitted
Use proto3 syntax consistently
PiperOrigin-RevId: 847792592
1 parent 7965712 commit 4c6e80f

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

willow/proto/shell/ciphertexts.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
edition = "2023";
15+
syntax = "proto3";
1616

1717
package secure_aggregation.willow;
1818

willow/proto/shell/parameters.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
edition = "2023";
15+
syntax = "proto3";
1616

1717
package secure_aggregation.willow;
1818

19+
option java_multiple_files = true;
20+
option java_outer_classname = "ParametersProto";
21+
1922
// This proto defines how to pack an input vector into a KAHE plaintext.
2023
// An input vector is split into `num_packed_coeffs` many sub-vectors of
2124
// length `dimension` each. Each sub-vector is then packed into a single

willow/proto/willow/aggregation_config.proto

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
edition = "2023";
15+
syntax = "proto3";
1616

1717
package secure_aggregation.willow;
1818

19-
import "willow/proto/shell/ciphertexts.proto";
20-
import "willow/proto/zk/proofs.proto";
21-
2219
option java_multiple_files = true;
23-
option java_outer_classname = "CommonProto";
20+
option java_outer_classname = "AggregationConfigProto";
2421

2522
// The configuration of the aggregation as a proto.
2623
message AggregationConfigProto {

willow/proto/willow/decryptor.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package secure_aggregation.willow;
1818

1919
option java_multiple_files = true;
20+
option java_outer_classname = "DecryptorProto";
2021

2122
message GenerateKeyRequest {
2223
// The key ID to use for the generated key. If the key with the given ID

willow/proto/willow/input_spec.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ syntax = "proto3";
1616

1717
package secure_aggregation.willow;
1818

19+
option java_multiple_files = true;
20+
option java_outer_classname = "InputSpecProto";
21+
1922
// This message describes the specification of the input data for the secure
2023
// aggregation protocol. It contains two lists of `InputVectorSpec` messages:
2124
// `metric_vector_specs` for metrics to be aggregated and

willow/proto/willow/key.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package secure_aggregation.willow;
1818

1919
option java_multiple_files = true;
20+
option java_outer_classname = "KeyProto";
2021

2122
// A simple container for a Willow public cryptographic key that embeds the key
2223
// ID and the "raw" key material.

willow/proto/zk/proofs.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
edition = "2023";
15+
syntax = "proto3";
1616

1717
package secure_aggregation.willow;
1818

0 commit comments

Comments
 (0)