Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ header:
- 'frontend/src/app/common/type/proto/google/protobuf/descriptor.ts'
- 'frontend/src/app/common/type/proto/scalapb/scalapb.ts'
- 'amber/src/main/python/core/util/customized_queue/inner.py'
- 'common/workflow-core/src/main/protobuf/scalapb/scalapb.proto'
5 changes: 5 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ This product bundles code derived from inner-class:
Source: https://github.com/sebkeim/inner-class
License: MIT License (licenses-3rd-party-code/sebkeim-inner-class.txt)

This product bundles the ScalaPB options definition:
- common/workflow-core/src/main/protobuf/scalapb/scalapb.proto
Source: https://github.com/scalapb/ScalaPB
License: Apache License 2.0 (this LICENSE file)

This product includes an icon from Google's Material Symbols:
- frontend/src/app/common/icon/model-icon.ts ("hub")
Copyright (c) Google LLC
Expand Down
34 changes: 16 additions & 18 deletions common/workflow-core/src/main/protobuf/scalapb/scalapb.proto
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you 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
// Vendored from ScalaPB v0.11.4.
// Source: https://github.com/scalapb/ScalaPB/blob/v0.11.4/protobuf/scalapb/scalapb.proto
//
// 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.
// 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 = "proto2";

Expand Down Expand Up @@ -68,7 +66,7 @@ message ScalaPbOptions {

// If set to true, all generated messages in this file will preserve unknown
// fields.
optional bool preserve_unknown_fields = 9 [default = true];
optional bool preserve_unknown_fields = 9 [default=true];

// If defined, sets the name of the file-level object that would be generated. This
// object extends `GeneratedFileObject` and contains descriptors, and list of message
Expand All @@ -87,7 +85,7 @@ message ScalaPbOptions {
optional OptionsScope scope = 11;

// If true, lenses will be generated.
optional bool lenses = 12 [default = true];
optional bool lenses = 12 [default=true];

// If true, then source-code info information will be included in the
// generated code - normally the source code info is cleared out to reduce
Expand All @@ -111,7 +109,7 @@ message ScalaPbOptions {

// Indicate if prefix (enum name + optional underscore) should be removed in scala code
// Strip is applied before enum value naming changes.
optional bool enum_strip_prefix = 17 [default = false];
optional bool enum_strip_prefix = 17 [default=false];

// Scala type to use for bytes fields.
optional string bytes_type = 21;
Expand Down Expand Up @@ -189,7 +187,7 @@ message ScalaPbOptions {
optional bool ignore_all_transformations = 26;

// If true, getters will be generated.
optional bool getters = 27 [default = true];
optional bool getters = 27 [default=true];

// For use in tests only. Inhibit Java conversions even when when generator parameters
// request for it.
Expand Down Expand Up @@ -371,7 +369,7 @@ enum MatchType {

message FieldTransformation {
optional google.protobuf.FieldDescriptorProto when = 1;
optional MatchType match_type = 2 [default = CONTAINS];
optional MatchType match_type = 2 [default=CONTAINS];
optional google.protobuf.FieldOptions set = 3;
}

Expand Down
Loading