diff --git a/.admin/copyright b/.admin/copyright new file mode 100755 index 00000000..fd93cced --- /dev/null +++ b/.admin/copyright @@ -0,0 +1,227 @@ +#!/usr/bin/env bash + +# copyright/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). +# This copyright was auto-generated on Wed, Sep 1, 2021 5:06:27 PM + +COPYRIGHT="##FILE##/Open GoPro, Version ##VERSION## (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro)." +TIME="This copyright was auto-generated on ##TIME##" + +INPUT= +CHECK_ONLY=false + +num_wrong=0 + +help() { + cat < 0 ]]; then + printf "$FORMAT\n" "$file" "" "" "" "*" + continue + fi + # Is this the correct version, continue + found_version=$(echo "$copyright" | sed 's/.*Version \(.*\) (C).*/\1/') + if [[ "$VERSION" == "$found_version" ]]; then + printf "$FORMAT\n" "$file" "*" + continue + fi + # The version is incorrect. If we are to make changes (i.e. we are not only checking)... + incorrect="WRONG_VERSION" + if [[ "$CHECK_ONLY" == false ]]; then + # Get line number where copyright starts + line_start=$(echo "$copyright" | cut -f1) + # And where it ends (line 1 = copyright, line 2 = timestamp, line 3 = newline) + line_end=$((line_start + 2)) + # Strip the lines since we will add the correct copyright below + lines="$line_start,$line_end" + sed -i.bak "$lines"'d' $file && rm "$file".bak # The .bak is to appease MacOS + fi + elif [[ "$generic_copyright" ]]; then + #this file has a copyright that is potentially not our own + printf "$FORMAT\n" "$file" "" "" "" "*" + continue + fi + + # The copyright was either missing or had an incorrect version. Now see if this file deserves a copyright. + # First check known filenames that don't have extensions + case $(basename "$file") in + Makefile | Dockerfile) + start="#" + stop="" + ;; + *) + # Now check file extensions + extension="${file##*.}" + case $extension in + py | yml | r | R | rb) + start="#" + stop="" + ;; + c | h | cpp | cxx | hpp | js | ts | swift | css | proto | java | cs | kt | kts | ktm | m | php | rs | go | dart) + start="/*" + stop=" */" + ;; + lua) + start="--" + stop="" + ;; + *) + # Special case for shell files. We use the file command since they might not have an extension + if [[ $(echo $(file $file) | grep -c "shell script") > 0 ]]; then + start="#" + stop="" + else + printf "$FORMAT\n" "$file" "" "" "" "*" + continue + fi + ;; + esac + ;; + esac + + num_wrong=$((num_wrong + 1)) + if [[ "$incorrect" == "MISSING" ]]; then + printf "$FORMAT" "$file" "" "" "X" + else + printf "$FORMAT" "$file" "" "X" + fi + + # Build the copyright string if desired + if [[ "$CHECK_ONLY" == false ]]; then + # Replace template strings with actual values and make into comment + new_copyright="${COPYRIGHT/"##FILE##"/$(basename "$file")}" + new_copyright="${new_copyright/"##VERSION##"/$VERSION}" + new_copyright="$start $new_copyright$stop" + # Build the time string + time="${TIME/"##TIME##"/$(date)}" + time="$start $time$stop" + + # Now write it. First we need to find where to put the copyright if there was not already one. + if [ -z "$line_start" ]; then + # If shebang exists, write on the line after the shebang. Shebang is always on the first line. + if [ "$(head -c 2 $file)" = "#!" ]; then + line_start=2 + # Otherwise, use the first line + else + line_start=1 + fi + fi + + # Now build the new file + head -n $((line_start - 1)) $file >temp 2>/dev/null # Original file up until the line where the copyright was (or is to be) + # MacOS warns about 0 so pipe sdterr to null + echo "$new_copyright" >>temp # Add copyright + echo "$time" >>temp # Add timestamp + echo >>temp # Add new line + tail -n +$line_start $file >>temp # Lines after where the copyright was (or will be) + mv temp "$file" # Replace the original file + echo " --> Added copyright ✔️" + else + echo + fi + done + + if [[ "$CHECK_ONLY" == true ]]; then + echo + echo "Total found $num_wrong missing or incorrect copyrights" + if [[ "$num_wrong" > 0 ]]; then + exit 3 + fi + fi + + exit 0 +} + +# Parse optional arguments +while getopts "hci:" option; do + case ${option} in + h) #For option h + help + exit 0 + ;; + c) #For option c + CHECK_ONLY=true + ;; + i) #For option i + INPUT=$OPTARG + ;; + \? | :) + help + exit 1 + ;; + *) + echo "Unexpected error occurred." >&2 + help + exit 1 + ;; + esac +done + +# Jump to positional arguments +shift $((OPTIND - 1)) +if [[ $# < 1 ]]; then + echo "Missing VERSION parameter" >&2 + help + exit 1 +fi + +VERSION=$1 + +main \ No newline at end of file diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.py index 96c6a6b7..5c0e666e 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.py @@ -1,12 +1,9 @@ -# cohn_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() from . import response_generic_pb2 as response__generic__pb2 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.pyi index 03516118..c00bc00a 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/cohn_pb2.pyi @@ -24,7 +24,9 @@ class _EnumCOHNStatus: V: typing_extensions.TypeAlias = ValueType class _EnumCOHNStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumCOHNStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumCOHNStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -42,7 +44,9 @@ class _EnumCOHNNetworkState: V: typing_extensions.TypeAlias = ValueType class _EnumCOHNNetworkStateEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumCOHNNetworkState.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumCOHNNetworkState.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -55,7 +59,9 @@ class _EnumCOHNNetworkStateEnumTypeWrapper( COHN_STATE_ConnectingToNetwork: _EnumCOHNNetworkState.ValueType COHN_STATE_Invalid: _EnumCOHNNetworkState.ValueType -class EnumCOHNNetworkState(_EnumCOHNNetworkState, metaclass=_EnumCOHNNetworkStateEnumTypeWrapper): ... +class EnumCOHNNetworkState( + _EnumCOHNNetworkState, metaclass=_EnumCOHNNetworkStateEnumTypeWrapper +): ... COHN_STATE_Init: EnumCOHNNetworkState.ValueType COHN_STATE_Error: EnumCOHNNetworkState.ValueType @@ -86,11 +92,15 @@ class RequestGetCOHNStatus(google.protobuf.message.Message): def __init__(self, *, register_cohn_status: builtins.bool | None = ...) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["register_cohn_status", b"register_cohn_status"], + field_name: typing_extensions.Literal[ + "register_cohn_status", b"register_cohn_status" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["register_cohn_status", b"register_cohn_status"], + field_name: typing_extensions.Literal[ + "register_cohn_status", b"register_cohn_status" + ], ) -> None: ... global___RequestGetCOHNStatus = RequestGetCOHNStatus @@ -198,8 +208,12 @@ class RequestCreateCOHNCert(google.protobuf.message.Message): "Override current provisioning and create new cert" def __init__(self, *, override: builtins.bool | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["override", b"override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["override", b"override"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["override", b"override"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["override", b"override"] + ) -> None: ... global___RequestCreateCOHNCert = RequestCreateCOHNCert @@ -246,7 +260,10 @@ class ResponseCOHNCert(google.protobuf.message.Message): "Root CA cert (ASCII text)" def __init__( - self, *, result: response_generic_pb2.EnumResultGeneric.ValueType | None = ..., cert: builtins.str | None = ... + self, + *, + result: response_generic_pb2.EnumResultGeneric.ValueType | None = ..., + cert: builtins.str | None = ... ) -> None: ... def HasField( self, @@ -273,7 +290,11 @@ class RequestSetCOHNSetting(google.protobuf.message.Message): "*\n 1 to enable COHN, 0 to disable COHN\n\n When set to 1, STA Mode connection will be dropped and camera will not automatically re-connect for COHN.\n " def __init__(self, *, cohn_active: builtins.bool | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"] + ) -> None: ... global___RequestSetCOHNSetting = RequestSetCOHNSetting diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.py index 9accf644..68482c40 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.py @@ -1,16 +1,13 @@ -# live_streaming_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x14live_streaming.proto\x12\nopen_gopro"\xa4\x04\n\x16NotifyLiveStreamStatus\x12<\n\x12live_stream_status\x18\x01 \x01(\x0e2 .open_gopro.EnumLiveStreamStatus\x12:\n\x11live_stream_error\x18\x02 \x01(\x0e2\x1f.open_gopro.EnumLiveStreamError\x12\x1a\n\x12live_stream_encode\x18\x03 \x01(\x08\x12\x1b\n\x13live_stream_bitrate\x18\x04 \x01(\x05\x12K\n\'live_stream_window_size_supported_array\x18\x05 \x03(\x0e2\x1a.open_gopro.EnumWindowSize\x12$\n\x1clive_stream_encode_supported\x18\x06 \x01(\x08\x12(\n live_stream_max_lens_unsupported\x18\x07 \x01(\x08\x12*\n"live_stream_minimum_stream_bitrate\x18\x08 \x01(\x05\x12*\n"live_stream_maximum_stream_bitrate\x18\t \x01(\x05\x12"\n\x1alive_stream_lens_supported\x18\n \x01(\x08\x12>\n live_stream_lens_supported_array\x18\x0b \x03(\x0e2\x14.open_gopro.EnumLens"\xbc\x01\n\x1aRequestGetLiveStreamStatus\x12M\n\x1bregister_live_stream_status\x18\x01 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus\x12O\n\x1dunregister_live_stream_status\x18\x02 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus"\xe6\x01\n\x18RequestSetLiveStreamMode\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06encode\x18\x02 \x01(\x08\x12/\n\x0bwindow_size\x18\x03 \x01(\x0e2\x1a.open_gopro.EnumWindowSize\x12\x0c\n\x04cert\x18\x06 \x01(\x0c\x12\x17\n\x0fminimum_bitrate\x18\x07 \x01(\x05\x12\x17\n\x0fmaximum_bitrate\x18\x08 \x01(\x05\x12\x18\n\x10starting_bitrate\x18\t \x01(\x05\x12"\n\x04lens\x18\n \x01(\x0e2\x14.open_gopro.EnumLens*>\n\x08EnumLens\x12\r\n\tLENS_WIDE\x10\x00\x12\x0f\n\x0bLENS_LINEAR\x10\x04\x12\x12\n\x0eLENS_SUPERVIEW\x10\x03*\xde\x03\n\x13EnumLiveStreamError\x12\x1a\n\x16LIVE_STREAM_ERROR_NONE\x10\x00\x12\x1d\n\x19LIVE_STREAM_ERROR_NETWORK\x10\x01\x12"\n\x1eLIVE_STREAM_ERROR_CREATESTREAM\x10\x02\x12!\n\x1dLIVE_STREAM_ERROR_OUTOFMEMORY\x10\x03\x12!\n\x1dLIVE_STREAM_ERROR_INPUTSTREAM\x10\x04\x12\x1e\n\x1aLIVE_STREAM_ERROR_INTERNET\x10\x05\x12\x1f\n\x1bLIVE_STREAM_ERROR_OSNETWORK\x10\x06\x12,\n(LIVE_STREAM_ERROR_SELECTEDNETWORKTIMEOUT\x10\x07\x12#\n\x1fLIVE_STREAM_ERROR_SSL_HANDSHAKE\x10\x08\x12$\n LIVE_STREAM_ERROR_CAMERA_BLOCKED\x10\t\x12\x1d\n\x19LIVE_STREAM_ERROR_UNKNOWN\x10\n\x12"\n\x1eLIVE_STREAM_ERROR_SD_CARD_FULL\x10(\x12%\n!LIVE_STREAM_ERROR_SD_CARD_REMOVED\x10)*\x80\x02\n\x14EnumLiveStreamStatus\x12\x1a\n\x16LIVE_STREAM_STATE_IDLE\x10\x00\x12\x1c\n\x18LIVE_STREAM_STATE_CONFIG\x10\x01\x12\x1b\n\x17LIVE_STREAM_STATE_READY\x10\x02\x12\x1f\n\x1bLIVE_STREAM_STATE_STREAMING\x10\x03\x12&\n"LIVE_STREAM_STATE_COMPLETE_STAY_ON\x10\x04\x12$\n LIVE_STREAM_STATE_FAILED_STAY_ON\x10\x05\x12"\n\x1eLIVE_STREAM_STATE_RECONNECTING\x10\x06*\xbc\x01\n\x1cEnumRegisterLiveStreamStatus\x12&\n"REGISTER_LIVE_STREAM_STATUS_STATUS\x10\x01\x12%\n!REGISTER_LIVE_STREAM_STATUS_ERROR\x10\x02\x12$\n REGISTER_LIVE_STREAM_STATUS_MODE\x10\x03\x12\'\n#REGISTER_LIVE_STREAM_STATUS_BITRATE\x10\x04*P\n\x0eEnumWindowSize\x12\x13\n\x0fWINDOW_SIZE_480\x10\x04\x12\x13\n\x0fWINDOW_SIZE_720\x10\x07\x12\x14\n\x10WINDOW_SIZE_1080\x10\x0c' + b'\n\x14live_streaming.proto\x12\nopen_gopro"\xa4\x04\n\x16NotifyLiveStreamStatus\x12<\n\x12live_stream_status\x18\x01 \x01(\x0e2 .open_gopro.EnumLiveStreamStatus\x12:\n\x11live_stream_error\x18\x02 \x01(\x0e2\x1f.open_gopro.EnumLiveStreamError\x12\x1a\n\x12live_stream_encode\x18\x03 \x01(\x08\x12\x1b\n\x13live_stream_bitrate\x18\x04 \x01(\x05\x12K\n\'live_stream_window_size_supported_array\x18\x05 \x03(\x0e2\x1a.open_gopro.EnumWindowSize\x12$\n\x1clive_stream_encode_supported\x18\x06 \x01(\x08\x12(\n live_stream_max_lens_unsupported\x18\x07 \x01(\x08\x12*\n"live_stream_minimum_stream_bitrate\x18\x08 \x01(\x05\x12*\n"live_stream_maximum_stream_bitrate\x18\t \x01(\x05\x12"\n\x1alive_stream_lens_supported\x18\n \x01(\x08\x12>\n live_stream_lens_supported_array\x18\x0b \x03(\x0e2\x14.open_gopro.EnumLens"\xbc\x01\n\x1aRequestGetLiveStreamStatus\x12M\n\x1bregister_live_stream_status\x18\x01 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus\x12O\n\x1dunregister_live_stream_status\x18\x02 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus"\xe6\x01\n\x18RequestSetLiveStreamMode\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06encode\x18\x02 \x01(\x08\x12/\n\x0bwindow_size\x18\x03 \x01(\x0e2\x1a.open_gopro.EnumWindowSize\x12\x0c\n\x04cert\x18\x06 \x01(\x0c\x12\x17\n\x0fminimum_bitrate\x18\x07 \x01(\x05\x12\x17\n\x0fmaximum_bitrate\x18\x08 \x01(\x05\x12\x18\n\x10starting_bitrate\x18\t \x01(\x05\x12"\n\x04lens\x18\n \x01(\x0e2\x14.open_gopro.EnumLens*>\n\x08EnumLens\x12\r\n\tLENS_WIDE\x10\x00\x12\x0f\n\x0bLENS_LINEAR\x10\x04\x12\x12\n\x0eLENS_SUPERVIEW\x10\x03*\xde\x03\n\x13EnumLiveStreamError\x12\x1a\n\x16LIVE_STREAM_ERROR_NONE\x10\x00\x12\x1d\n\x19LIVE_STREAM_ERROR_NETWORK\x10\x01\x12"\n\x1eLIVE_STREAM_ERROR_CREATESTREAM\x10\x02\x12!\n\x1dLIVE_STREAM_ERROR_OUTOFMEMORY\x10\x03\x12!\n\x1dLIVE_STREAM_ERROR_INPUTSTREAM\x10\x04\x12\x1e\n\x1aLIVE_STREAM_ERROR_INTERNET\x10\x05\x12\x1f\n\x1bLIVE_STREAM_ERROR_OSNETWORK\x10\x06\x12,\n(LIVE_STREAM_ERROR_SELECTEDNETWORKTIMEOUT\x10\x07\x12#\n\x1fLIVE_STREAM_ERROR_SSL_HANDSHAKE\x10\x08\x12$\n LIVE_STREAM_ERROR_CAMERA_BLOCKED\x10\t\x12\x1d\n\x19LIVE_STREAM_ERROR_UNKNOWN\x10\n\x12"\n\x1eLIVE_STREAM_ERROR_SD_CARD_FULL\x10(\x12%\n!LIVE_STREAM_ERROR_SD_CARD_REMOVED\x10)*\xa3\x02\n\x14EnumLiveStreamStatus\x12\x1a\n\x16LIVE_STREAM_STATE_IDLE\x10\x00\x12\x1c\n\x18LIVE_STREAM_STATE_CONFIG\x10\x01\x12\x1b\n\x17LIVE_STREAM_STATE_READY\x10\x02\x12\x1f\n\x1bLIVE_STREAM_STATE_STREAMING\x10\x03\x12&\n"LIVE_STREAM_STATE_COMPLETE_STAY_ON\x10\x04\x12$\n LIVE_STREAM_STATE_FAILED_STAY_ON\x10\x05\x12"\n\x1eLIVE_STREAM_STATE_RECONNECTING\x10\x06\x12!\n\x1dLIVE_STREAM_STATE_UNAVAILABLE\x10\x07*\xbc\x01\n\x1cEnumRegisterLiveStreamStatus\x12&\n"REGISTER_LIVE_STREAM_STATUS_STATUS\x10\x01\x12%\n!REGISTER_LIVE_STREAM_STATUS_ERROR\x10\x02\x12$\n REGISTER_LIVE_STREAM_STATUS_MODE\x10\x03\x12\'\n#REGISTER_LIVE_STREAM_STATUS_BITRATE\x10\x04*P\n\x0eEnumWindowSize\x12\x13\n\x0fWINDOW_SIZE_480\x10\x04\x12\x13\n\x0fWINDOW_SIZE_720\x10\x07\x12\x14\n\x10WINDOW_SIZE_1080\x10\x0c' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "live_streaming_pb2", globals()) @@ -21,11 +18,11 @@ _ENUMLIVESTREAMERROR._serialized_start = 1076 _ENUMLIVESTREAMERROR._serialized_end = 1554 _ENUMLIVESTREAMSTATUS._serialized_start = 1557 - _ENUMLIVESTREAMSTATUS._serialized_end = 1813 - _ENUMREGISTERLIVESTREAMSTATUS._serialized_start = 1816 - _ENUMREGISTERLIVESTREAMSTATUS._serialized_end = 2004 - _ENUMWINDOWSIZE._serialized_start = 2006 - _ENUMWINDOWSIZE._serialized_end = 2086 + _ENUMLIVESTREAMSTATUS._serialized_end = 1848 + _ENUMREGISTERLIVESTREAMSTATUS._serialized_start = 1851 + _ENUMREGISTERLIVESTREAMSTATUS._serialized_end = 2039 + _ENUMWINDOWSIZE._serialized_start = 2041 + _ENUMWINDOWSIZE._serialized_end = 2121 _NOTIFYLIVESTREAMSTATUS._serialized_start = 37 _NOTIFYLIVESTREAMSTATUS._serialized_end = 585 _REQUESTGETLIVESTREAMSTATUS._serialized_start = 588 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.pyi index d658661e..cc4c9d73 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/live_streaming_pb2.pyi @@ -45,7 +45,9 @@ class _EnumLiveStreamError: V: typing_extensions.TypeAlias = ValueType class _EnumLiveStreamErrorEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumLiveStreamError.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumLiveStreamError.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -76,7 +78,9 @@ class _EnumLiveStreamErrorEnumTypeWrapper( LIVE_STREAM_ERROR_SD_CARD_REMOVED: _EnumLiveStreamError.ValueType "Livestream stopped because sd card was removed" -class EnumLiveStreamError(_EnumLiveStreamError, metaclass=_EnumLiveStreamErrorEnumTypeWrapper): ... +class EnumLiveStreamError( + _EnumLiveStreamError, metaclass=_EnumLiveStreamErrorEnumTypeWrapper +): ... LIVE_STREAM_ERROR_NONE: EnumLiveStreamError.ValueType "No error (success)" @@ -111,7 +115,9 @@ class _EnumLiveStreamStatus: V: typing_extensions.TypeAlias = ValueType class _EnumLiveStreamStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumLiveStreamStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumLiveStreamStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -120,7 +126,7 @@ class _EnumLiveStreamStatusEnumTypeWrapper( LIVE_STREAM_STATE_CONFIG: _EnumLiveStreamStatus.ValueType "Livestream is being configured" LIVE_STREAM_STATE_READY: _EnumLiveStreamStatus.ValueType - "\n Livestream has finished configuration and is ready to start streaming\n " + "Livestream has finished configuration and is ready to start streaming" LIVE_STREAM_STATE_STREAMING: _EnumLiveStreamStatus.ValueType "Livestream is actively streaming" LIVE_STREAM_STATE_COMPLETE_STAY_ON: _EnumLiveStreamStatus.ValueType @@ -129,15 +135,19 @@ class _EnumLiveStreamStatusEnumTypeWrapper( "Live stream is exiting. An error occurred." LIVE_STREAM_STATE_RECONNECTING: _EnumLiveStreamStatus.ValueType "An error occurred during livestream and stream is attempting to reconnect." + LIVE_STREAM_STATE_UNAVAILABLE: _EnumLiveStreamStatus.ValueType + "Live stream setup is unavailable due to camera lens configuration" -class EnumLiveStreamStatus(_EnumLiveStreamStatus, metaclass=_EnumLiveStreamStatusEnumTypeWrapper): ... +class EnumLiveStreamStatus( + _EnumLiveStreamStatus, metaclass=_EnumLiveStreamStatusEnumTypeWrapper +): ... LIVE_STREAM_STATE_IDLE: EnumLiveStreamStatus.ValueType "Initial status. Livestream has not yet been configured" LIVE_STREAM_STATE_CONFIG: EnumLiveStreamStatus.ValueType "Livestream is being configured" LIVE_STREAM_STATE_READY: EnumLiveStreamStatus.ValueType -"\nLivestream has finished configuration and is ready to start streaming\n" +"Livestream has finished configuration and is ready to start streaming" LIVE_STREAM_STATE_STREAMING: EnumLiveStreamStatus.ValueType "Livestream is actively streaming" LIVE_STREAM_STATE_COMPLETE_STAY_ON: EnumLiveStreamStatus.ValueType @@ -146,6 +156,8 @@ LIVE_STREAM_STATE_FAILED_STAY_ON: EnumLiveStreamStatus.ValueType "Live stream is exiting. An error occurred." LIVE_STREAM_STATE_RECONNECTING: EnumLiveStreamStatus.ValueType "An error occurred during livestream and stream is attempting to reconnect." +LIVE_STREAM_STATE_UNAVAILABLE: EnumLiveStreamStatus.ValueType +"Live stream setup is unavailable due to camera lens configuration" global___EnumLiveStreamStatus = EnumLiveStreamStatus class _EnumRegisterLiveStreamStatus: @@ -153,7 +165,9 @@ class _EnumRegisterLiveStreamStatus: V: typing_extensions.TypeAlias = ValueType class _EnumRegisterLiveStreamStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumRegisterLiveStreamStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumRegisterLiveStreamStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -178,7 +192,9 @@ class _EnumWindowSize: V: typing_extensions.TypeAlias = ValueType class _EnumWindowSizeEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumWindowSize.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumWindowSize.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -228,7 +244,9 @@ class NotifyLiveStreamStatus(google.protobuf.message.Message): @property def live_stream_window_size_supported_array( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumWindowSize.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumWindowSize.ValueType + ]: """Set of currently supported resolutions""" live_stream_encode_supported: builtins.bool "Does the camera support encoding while live streaming?" @@ -244,8 +262,11 @@ class NotifyLiveStreamStatus(google.protobuf.message.Message): @property def live_stream_lens_supported_array( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumLens.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumLens.ValueType + ]: """Set of currently supported FOV options""" + def __init__( self, *, @@ -261,7 +282,9 @@ class NotifyLiveStreamStatus(google.protobuf.message.Message): live_stream_minimum_stream_bitrate: builtins.int | None = ..., live_stream_maximum_stream_bitrate: builtins.int | None = ..., live_stream_lens_supported: builtins.bool | None = ..., - live_stream_lens_supported_array: (collections.abc.Iterable[global___EnumLens.ValueType] | None) = ... + live_stream_lens_supported_array: ( + collections.abc.Iterable[global___EnumLens.ValueType] | None + ) = ... ) -> None: ... def HasField( self, @@ -337,6 +360,7 @@ class RequestGetLiveStreamStatus(google.protobuf.message.Message): global___EnumRegisterLiveStreamStatus.ValueType ]: """Array of live stream statuses to be notified about""" + @property def unregister_live_stream_status( self, @@ -344,14 +368,17 @@ class RequestGetLiveStreamStatus(google.protobuf.message.Message): global___EnumRegisterLiveStreamStatus.ValueType ]: """Array of live stream statuses to stop being notified about""" + def __init__( self, *, register_live_stream_status: ( - collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] | None + collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] + | None ) = ..., unregister_live_stream_status: ( - collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] | None + collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] + | None ) = ... ) -> None: ... def ClearField( @@ -388,7 +415,7 @@ class RequestSetLiveStreamMode(google.protobuf.message.Message): encode: builtins.bool "Save media to sdcard while streaming?" window_size: global___EnumWindowSize.ValueType - "*\n Resolution to use for live stream\n\n The set of supported lenses is only available from the `live_stream_window_size_supported_array` in @ref NotifyLiveStreamStatus)\n " + "*\n Resolution to use for live stream\n\n The set of supported resolutions is only available from the `live_stream_window_size_supported_array` in @ref NotifyLiveStreamStatus)\n " cert: builtins.bytes "Certificate for servers that require it in PEM format" minimum_bitrate: builtins.int diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.py index e9241b14..57bb24f0 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.py @@ -1,12 +1,9 @@ -# media_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() from . import response_generic_pb2 as response__generic__pb2 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.pyi index 845282f3..6de33cc0 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/media_pb2.pyi @@ -56,6 +56,7 @@ class ResponseLastCapturedMedia(google.protobuf.message.Message): """* Last captured media if result is RESULT_SUCCESS. Invalid if result is RESULT_RESOURCE_NOT_AVAILBLE. """ + def __init__( self, *, diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.py index 9c00171d..da703bc1 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.py @@ -1,12 +1,9 @@ -# network_management_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() from . import response_generic_pb2 as response__generic__pb2 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.pyi index 1c81fec4..28c03df8 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/network_management_pb2.pyi @@ -26,7 +26,9 @@ class _EnumProvisioning: V: typing_extensions.TypeAlias = ValueType class _EnumProvisioningEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumProvisioning.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumProvisioning.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -43,7 +45,9 @@ class _EnumProvisioningEnumTypeWrapper( PROVISIONING_ERROR_NO_INTERNET: _EnumProvisioning.ValueType PROVISIONING_ERROR_UNSUPPORTED_TYPE: _EnumProvisioning.ValueType -class EnumProvisioning(_EnumProvisioning, metaclass=_EnumProvisioningEnumTypeWrapper): ... +class EnumProvisioning( + _EnumProvisioning, metaclass=_EnumProvisioningEnumTypeWrapper +): ... PROVISIONING_UNKNOWN: EnumProvisioning.ValueType PROVISIONING_NEVER_STARTED: EnumProvisioning.ValueType @@ -64,7 +68,9 @@ class _EnumScanning: V: typing_extensions.TypeAlias = ValueType class _EnumScanningEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumScanning.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumScanning.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -90,7 +96,9 @@ class _EnumScanEntryFlags: V: typing_extensions.TypeAlias = ValueType class _EnumScanEntryFlagsEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumScanEntryFlags.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumScanEntryFlags.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -105,7 +113,9 @@ class _EnumScanEntryFlagsEnumTypeWrapper( "Camera is connected to this AP" SCAN_FLAG_UNSUPPORTED_TYPE: _EnumScanEntryFlags.ValueType -class EnumScanEntryFlags(_EnumScanEntryFlags, metaclass=_EnumScanEntryFlagsEnumTypeWrapper): ... +class EnumScanEntryFlags( + _EnumScanEntryFlags, metaclass=_EnumScanEntryFlagsEnumTypeWrapper +): ... SCAN_FLAG_OPEN: EnumScanEntryFlags.ValueType "This network does not require authentication" @@ -132,14 +142,20 @@ class NotifProvisioningState(google.protobuf.message.Message): provisioning_state: global___EnumProvisioning.ValueType "Provisioning / connection state" - def __init__(self, *, provisioning_state: global___EnumProvisioning.ValueType | None = ...) -> None: ... + def __init__( + self, *, provisioning_state: global___EnumProvisioning.ValueType | None = ... + ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["provisioning_state", b"provisioning_state"], + field_name: typing_extensions.Literal[ + "provisioning_state", b"provisioning_state" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["provisioning_state", b"provisioning_state"], + field_name: typing_extensions.Literal[ + "provisioning_state", b"provisioning_state" + ], ) -> None: ... global___NotifProvisioningState = NotifProvisioningState @@ -221,8 +237,12 @@ class RequestConnect(google.protobuf.message.Message): "AP SSID" def __init__(self, *, ssid: builtins.str | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ssid", b"ssid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ssid", b"ssid"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["ssid", b"ssid"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["ssid", b"ssid"] + ) -> None: ... global___RequestConnect = RequestConnect @@ -578,22 +598,31 @@ class ResponseGetApEntries(google.protobuf.message.Message): @property def entries( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResponseGetApEntries.ScanEntry]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___ResponseGetApEntries.ScanEntry + ]: """Array containing details about discovered APs""" + def __init__( self, *, result: response_generic_pb2.EnumResultGeneric.ValueType | None = ..., scan_id: builtins.int | None = ..., - entries: (collections.abc.Iterable[global___ResponseGetApEntries.ScanEntry] | None) = ... + entries: ( + collections.abc.Iterable[global___ResponseGetApEntries.ScanEntry] | None + ) = ... ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["result", b"result", "scan_id", b"scan_id"], + field_name: typing_extensions.Literal[ + "result", b"result", "scan_id", b"scan_id" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["entries", b"entries", "result", b"result", "scan_id", b"scan_id"], + field_name: typing_extensions.Literal[ + "entries", b"entries", "result", b"result", "scan_id", b"scan_id" + ], ) -> None: ... global___ResponseGetApEntries = ResponseGetApEntries @@ -622,11 +651,15 @@ class ResponseStartScanning(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["result", b"result", "scanning_state", b"scanning_state"], + field_name: typing_extensions.Literal[ + "result", b"result", "scanning_state", b"scanning_state" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["result", b"result", "scanning_state", b"scanning_state"], + field_name: typing_extensions.Literal[ + "result", b"result", "scanning_state", b"scanning_state" + ], ) -> None: ... global___ResponseStartScanning = ResponseStartScanning diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.py index ae660544..005725a1 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.py @@ -1,12 +1,9 @@ -# preset_status_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() from . import response_generic_pb2 as response__generic__pb2 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.pyi index d5145f88..281ae231 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb2.pyi @@ -25,7 +25,9 @@ class _EnumFlatMode: V: typing_extensions.TypeAlias = ValueType class _EnumFlatModeEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumFlatMode.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumFlatMode.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -85,7 +87,9 @@ class _EnumPresetGroup: V: typing_extensions.TypeAlias = ValueType class _EnumPresetGroupEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetGroup.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetGroup.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -105,7 +109,9 @@ class _EnumPresetGroupIcon: V: typing_extensions.TypeAlias = ValueType class _EnumPresetGroupIconEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetGroupIcon.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetGroupIcon.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -118,7 +124,9 @@ class _EnumPresetGroupIconEnumTypeWrapper( PRESET_GROUP_MAX_PHOTO_ICON_ID: _EnumPresetGroupIcon.ValueType PRESET_GROUP_MAX_TIMELAPSE_ICON_ID: _EnumPresetGroupIcon.ValueType -class EnumPresetGroupIcon(_EnumPresetGroupIcon, metaclass=_EnumPresetGroupIconEnumTypeWrapper): ... +class EnumPresetGroupIcon( + _EnumPresetGroupIcon, metaclass=_EnumPresetGroupIconEnumTypeWrapper +): ... PRESET_GROUP_VIDEO_ICON_ID: EnumPresetGroupIcon.ValueType PRESET_GROUP_PHOTO_ICON_ID: EnumPresetGroupIcon.ValueType @@ -135,7 +143,9 @@ class _EnumPresetIcon: V: typing_extensions.TypeAlias = ValueType class _EnumPresetIconEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetIcon.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetIcon.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -275,7 +285,9 @@ class _EnumPresetTitle: V: typing_extensions.TypeAlias = ValueType class _EnumPresetTitleEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetTitle.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetTitle.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -433,12 +445,21 @@ class NotifyPresetStatus(google.protobuf.message.Message): @property def preset_group_array( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PresetGroup]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___PresetGroup + ]: """List of currently available Preset Groups""" - def __init__(self, *, preset_group_array: collections.abc.Iterable[global___PresetGroup] | None = ...) -> None: ... + + def __init__( + self, + *, + preset_group_array: collections.abc.Iterable[global___PresetGroup] | None = ... + ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal["preset_group_array", b"preset_group_array"], + field_name: typing_extensions.Literal[ + "preset_group_array", b"preset_group_array" + ], ) -> None: ... global___NotifyPresetStatus = NotifyPresetStatus @@ -476,7 +497,9 @@ class Preset(google.protobuf.message.Message): @property def setting_array( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PresetSetting]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___PresetSetting + ]: """Array of settings associated with this Preset""" is_modified: builtins.bool "Has Preset been modified from factory defaults? (False for user-defined Presets)" @@ -634,7 +657,9 @@ class PresetGroup(google.protobuf.message.Message): @property def preset_array( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Preset]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___Preset + ]: """Array of Presets contained in this Preset Group""" can_add_preset: builtins.bool "Is there room in the group to add additional Presets?" @@ -651,7 +676,9 @@ class PresetGroup(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["can_add_preset", b"can_add_preset", "icon", b"icon", "id", b"id"], + field_name: typing_extensions.Literal[ + "can_add_preset", b"can_add_preset", "icon", b"icon", "id", b"id" + ], ) -> builtins.bool: ... def ClearField( self, @@ -687,15 +714,23 @@ class PresetSetting(google.protobuf.message.Message): 'Does this setting appear on the Preset "pill" in the camera UI?' def __init__( - self, *, id: builtins.int | None = ..., value: builtins.int | None = ..., is_caption: builtins.bool | None = ... + self, + *, + id: builtins.int | None = ..., + value: builtins.int | None = ..., + is_caption: builtins.bool | None = ... ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["id", b"id", "is_caption", b"is_caption", "value", b"value"], + field_name: typing_extensions.Literal[ + "id", b"id", "is_caption", b"is_caption", "value", b"value" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["id", b"id", "is_caption", b"is_caption", "value", b"value"], + field_name: typing_extensions.Literal[ + "id", b"id", "is_caption", b"is_caption", "value", b"value" + ], ) -> None: ... global___PresetSetting = PresetSetting diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.py index 91f1f5b8..788f4467 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.py @@ -1,19 +1,18 @@ -# request_get_preset_status_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( b'\n\x1frequest_get_preset_status.proto\x12\nopen_gopro"\xa6\x01\n\x16RequestGetPresetStatus\x12D\n\x16register_preset_status\x18\x01 \x03(\x0e2$.open_gopro.EnumRegisterPresetStatus\x12F\n\x18unregister_preset_status\x18\x02 \x03(\x0e2$.open_gopro.EnumRegisterPresetStatus*l\n\x18EnumRegisterPresetStatus\x12!\n\x1dREGISTER_PRESET_STATUS_PRESET\x10\x01\x12-\n)REGISTER_PRESET_STATUS_PRESET_GROUP_ARRAY\x10\x02' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "request_get_preset_status_pb2", globals()) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "request_get_preset_status_pb2", globals() +) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _ENUMREGISTERPRESETSTATUS._serialized_start = 216 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.pyi index ef0a0092..50c4eb54 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/request_get_preset_status_pb2.pyi @@ -25,7 +25,9 @@ class _EnumRegisterPresetStatus: V: typing_extensions.TypeAlias = ValueType class _EnumRegisterPresetStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumRegisterPresetStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumRegisterPresetStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -34,7 +36,9 @@ class _EnumRegisterPresetStatusEnumTypeWrapper( REGISTER_PRESET_STATUS_PRESET_GROUP_ARRAY: _EnumRegisterPresetStatus.ValueType "Send notification when properties of a preset group change" -class EnumRegisterPresetStatus(_EnumRegisterPresetStatus, metaclass=_EnumRegisterPresetStatusEnumTypeWrapper): ... +class EnumRegisterPresetStatus( + _EnumRegisterPresetStatus, metaclass=_EnumRegisterPresetStatusEnumTypeWrapper +): ... REGISTER_PRESET_STATUS_PRESET: EnumRegisterPresetStatus.ValueType "Send notification when properties of a preset change" @@ -65,18 +69,28 @@ class RequestGetPresetStatus(google.protobuf.message.Message): @property def register_preset_status( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumRegisterPresetStatus.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumRegisterPresetStatus.ValueType + ]: """Array of Preset statuses to be notified about""" + @property def unregister_preset_status( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumRegisterPresetStatus.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumRegisterPresetStatus.ValueType + ]: """Array of Preset statuses to stop being notified about""" + def __init__( self, *, - register_preset_status: (collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None) = ..., - unregister_preset_status: (collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None) = ... + register_preset_status: ( + collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None + ) = ..., + unregister_preset_status: ( + collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None + ) = ... ) -> None: ... def ClearField( self, diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.py index fd295a47..7af4a3e1 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.py @@ -1,12 +1,9 @@ -# response_generic_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:48 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.pyi index 85655c36..5d671591 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/response_generic_pb2.pyi @@ -23,7 +23,9 @@ class _EnumResultGeneric: V: typing_extensions.TypeAlias = ValueType class _EnumResultGenericEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumResultGeneric.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumResultGeneric.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -35,7 +37,9 @@ class _EnumResultGenericEnumTypeWrapper( RESULT_ARGUMENT_INVALID: _EnumResultGeneric.ValueType RESULT_RESOURCE_NOT_AVAILABLE: _EnumResultGeneric.ValueType -class EnumResultGeneric(_EnumResultGeneric, metaclass=_EnumResultGenericEnumTypeWrapper): ... +class EnumResultGeneric( + _EnumResultGeneric, metaclass=_EnumResultGenericEnumTypeWrapper +): ... RESULT_UNKNOWN: EnumResultGeneric.ValueType RESULT_SUCCESS: EnumResultGeneric.ValueType @@ -57,9 +61,15 @@ class ResponseGeneric(google.protobuf.message.Message): result: global___EnumResultGeneric.ValueType "Generic pass/fail/error info" - def __init__(self, *, result: global___EnumResultGeneric.ValueType | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["result", b"result"]) -> None: ... + def __init__( + self, *, result: global___EnumResultGeneric.ValueType | None = ... + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["result", b"result"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["result", b"result"] + ) -> None: ... global___ResponseGeneric = ResponseGeneric @@ -77,7 +87,9 @@ class Media(google.protobuf.message.Message): file: builtins.str "Filename of media" - def __init__(self, *, folder: builtins.str | None = ..., file: builtins.str | None = ...) -> None: ... + def __init__( + self, *, folder: builtins.str | None = ..., file: builtins.str | None = ... + ) -> None: ... def HasField( self, field_name: typing_extensions.Literal["file", b"file", "folder", b"folder"], diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.py index 1430451c..9a354a9f 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.py @@ -1,19 +1,18 @@ -# set_camera_control_status_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( b'\n\x1fset_camera_control_status.proto\x12\nopen_gopro"c\n\x1dRequestSetCameraControlStatus\x12B\n\x15camera_control_status\x18\x01 \x02(\x0e2#.open_gopro.EnumCameraControlStatus*[\n\x17EnumCameraControlStatus\x12\x0f\n\x0bCAMERA_IDLE\x10\x00\x12\x12\n\x0eCAMERA_CONTROL\x10\x01\x12\x1b\n\x17CAMERA_EXTERNAL_CONTROL\x10\x02' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "set_camera_control_status_pb2", globals()) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "set_camera_control_status_pb2", globals() +) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _ENUMCAMERACONTROLSTATUS._serialized_start = 148 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.pyi index 37b27336..05b92143 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/set_camera_control_status_pb2.pyi @@ -23,7 +23,9 @@ class _EnumCameraControlStatus: V: typing_extensions.TypeAlias = ValueType class _EnumCameraControlStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumCameraControlStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumCameraControlStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -32,7 +34,9 @@ class _EnumCameraControlStatusEnumTypeWrapper( "Can only be set by camera, not by app or third party" CAMERA_EXTERNAL_CONTROL: _EnumCameraControlStatus.ValueType -class EnumCameraControlStatus(_EnumCameraControlStatus, metaclass=_EnumCameraControlStatusEnumTypeWrapper): ... +class EnumCameraControlStatus( + _EnumCameraControlStatus, metaclass=_EnumCameraControlStatusEnumTypeWrapper +): ... CAMERA_IDLE: EnumCameraControlStatus.ValueType CAMERA_CONTROL: EnumCameraControlStatus.ValueType @@ -61,14 +65,22 @@ class RequestSetCameraControlStatus(google.protobuf.message.Message): camera_control_status: global___EnumCameraControlStatus.ValueType "Declare who is taking control of the camera" - def __init__(self, *, camera_control_status: global___EnumCameraControlStatus.ValueType | None = ...) -> None: ... + def __init__( + self, + *, + camera_control_status: global___EnumCameraControlStatus.ValueType | None = ... + ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["camera_control_status", b"camera_control_status"], + field_name: typing_extensions.Literal[ + "camera_control_status", b"camera_control_status" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["camera_control_status", b"camera_control_status"], + field_name: typing_extensions.Literal[ + "camera_control_status", b"camera_control_status" + ], ) -> None: ... global___RequestSetCameraControlStatus = RequestSetCameraControlStatus diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.py b/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.py index 565e1e72..d33378d6 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.py @@ -1,12 +1,9 @@ -# turbo_transfer_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:47 UTC 2024 - """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder 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 _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.pyi b/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.pyi index 0c79e66a..d02fc22a 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.pyi +++ b/demos/python/sdk_wireless_camera_control/open_gopro/proto/turbo_transfer_pb2.pyi @@ -30,7 +30,11 @@ class RequestSetTurboActive(google.protobuf.message.Message): "Enable or disable Turbo Transfer feature" def __init__(self, *, active: builtins.bool | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["active", b"active"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["active", b"active"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["active", b"active"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["active", b"active"] + ) -> None: ... global___RequestSetTurboActive = RequestSetTurboActive diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.py index 2620e29c..5c0e666e 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.py @@ -1,6 +1,3 @@ -# cohn_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.pyi index 03516118..c00bc00a 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/cohn_pb2.pyi @@ -24,7 +24,9 @@ class _EnumCOHNStatus: V: typing_extensions.TypeAlias = ValueType class _EnumCOHNStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumCOHNStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumCOHNStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -42,7 +44,9 @@ class _EnumCOHNNetworkState: V: typing_extensions.TypeAlias = ValueType class _EnumCOHNNetworkStateEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumCOHNNetworkState.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumCOHNNetworkState.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -55,7 +59,9 @@ class _EnumCOHNNetworkStateEnumTypeWrapper( COHN_STATE_ConnectingToNetwork: _EnumCOHNNetworkState.ValueType COHN_STATE_Invalid: _EnumCOHNNetworkState.ValueType -class EnumCOHNNetworkState(_EnumCOHNNetworkState, metaclass=_EnumCOHNNetworkStateEnumTypeWrapper): ... +class EnumCOHNNetworkState( + _EnumCOHNNetworkState, metaclass=_EnumCOHNNetworkStateEnumTypeWrapper +): ... COHN_STATE_Init: EnumCOHNNetworkState.ValueType COHN_STATE_Error: EnumCOHNNetworkState.ValueType @@ -86,11 +92,15 @@ class RequestGetCOHNStatus(google.protobuf.message.Message): def __init__(self, *, register_cohn_status: builtins.bool | None = ...) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["register_cohn_status", b"register_cohn_status"], + field_name: typing_extensions.Literal[ + "register_cohn_status", b"register_cohn_status" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["register_cohn_status", b"register_cohn_status"], + field_name: typing_extensions.Literal[ + "register_cohn_status", b"register_cohn_status" + ], ) -> None: ... global___RequestGetCOHNStatus = RequestGetCOHNStatus @@ -198,8 +208,12 @@ class RequestCreateCOHNCert(google.protobuf.message.Message): "Override current provisioning and create new cert" def __init__(self, *, override: builtins.bool | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["override", b"override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["override", b"override"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["override", b"override"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["override", b"override"] + ) -> None: ... global___RequestCreateCOHNCert = RequestCreateCOHNCert @@ -246,7 +260,10 @@ class ResponseCOHNCert(google.protobuf.message.Message): "Root CA cert (ASCII text)" def __init__( - self, *, result: response_generic_pb2.EnumResultGeneric.ValueType | None = ..., cert: builtins.str | None = ... + self, + *, + result: response_generic_pb2.EnumResultGeneric.ValueType | None = ..., + cert: builtins.str | None = ... ) -> None: ... def HasField( self, @@ -273,7 +290,11 @@ class RequestSetCOHNSetting(google.protobuf.message.Message): "*\n 1 to enable COHN, 0 to disable COHN\n\n When set to 1, STA Mode connection will be dropped and camera will not automatically re-connect for COHN.\n " def __init__(self, *, cohn_active: builtins.bool | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["cohn_active", b"cohn_active"] + ) -> None: ... global___RequestSetCOHNSetting = RequestSetCOHNSetting diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.py index 8319589e..68482c40 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.py @@ -1,6 +1,3 @@ -# live_streaming_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder @@ -10,7 +7,7 @@ _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x14live_streaming.proto\x12\nopen_gopro"\xa4\x04\n\x16NotifyLiveStreamStatus\x12<\n\x12live_stream_status\x18\x01 \x01(\x0e2 .open_gopro.EnumLiveStreamStatus\x12:\n\x11live_stream_error\x18\x02 \x01(\x0e2\x1f.open_gopro.EnumLiveStreamError\x12\x1a\n\x12live_stream_encode\x18\x03 \x01(\x08\x12\x1b\n\x13live_stream_bitrate\x18\x04 \x01(\x05\x12K\n\'live_stream_window_size_supported_array\x18\x05 \x03(\x0e2\x1a.open_gopro.EnumWindowSize\x12$\n\x1clive_stream_encode_supported\x18\x06 \x01(\x08\x12(\n live_stream_max_lens_unsupported\x18\x07 \x01(\x08\x12*\n"live_stream_minimum_stream_bitrate\x18\x08 \x01(\x05\x12*\n"live_stream_maximum_stream_bitrate\x18\t \x01(\x05\x12"\n\x1alive_stream_lens_supported\x18\n \x01(\x08\x12>\n live_stream_lens_supported_array\x18\x0b \x03(\x0e2\x14.open_gopro.EnumLens"\xbc\x01\n\x1aRequestGetLiveStreamStatus\x12M\n\x1bregister_live_stream_status\x18\x01 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus\x12O\n\x1dunregister_live_stream_status\x18\x02 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus"\xe6\x01\n\x18RequestSetLiveStreamMode\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06encode\x18\x02 \x01(\x08\x12/\n\x0bwindow_size\x18\x03 \x01(\x0e2\x1a.open_gopro.EnumWindowSize\x12\x0c\n\x04cert\x18\x06 \x01(\x0c\x12\x17\n\x0fminimum_bitrate\x18\x07 \x01(\x05\x12\x17\n\x0fmaximum_bitrate\x18\x08 \x01(\x05\x12\x18\n\x10starting_bitrate\x18\t \x01(\x05\x12"\n\x04lens\x18\n \x01(\x0e2\x14.open_gopro.EnumLens*>\n\x08EnumLens\x12\r\n\tLENS_WIDE\x10\x00\x12\x0f\n\x0bLENS_LINEAR\x10\x04\x12\x12\n\x0eLENS_SUPERVIEW\x10\x03*\xde\x03\n\x13EnumLiveStreamError\x12\x1a\n\x16LIVE_STREAM_ERROR_NONE\x10\x00\x12\x1d\n\x19LIVE_STREAM_ERROR_NETWORK\x10\x01\x12"\n\x1eLIVE_STREAM_ERROR_CREATESTREAM\x10\x02\x12!\n\x1dLIVE_STREAM_ERROR_OUTOFMEMORY\x10\x03\x12!\n\x1dLIVE_STREAM_ERROR_INPUTSTREAM\x10\x04\x12\x1e\n\x1aLIVE_STREAM_ERROR_INTERNET\x10\x05\x12\x1f\n\x1bLIVE_STREAM_ERROR_OSNETWORK\x10\x06\x12,\n(LIVE_STREAM_ERROR_SELECTEDNETWORKTIMEOUT\x10\x07\x12#\n\x1fLIVE_STREAM_ERROR_SSL_HANDSHAKE\x10\x08\x12$\n LIVE_STREAM_ERROR_CAMERA_BLOCKED\x10\t\x12\x1d\n\x19LIVE_STREAM_ERROR_UNKNOWN\x10\n\x12"\n\x1eLIVE_STREAM_ERROR_SD_CARD_FULL\x10(\x12%\n!LIVE_STREAM_ERROR_SD_CARD_REMOVED\x10)*\x80\x02\n\x14EnumLiveStreamStatus\x12\x1a\n\x16LIVE_STREAM_STATE_IDLE\x10\x00\x12\x1c\n\x18LIVE_STREAM_STATE_CONFIG\x10\x01\x12\x1b\n\x17LIVE_STREAM_STATE_READY\x10\x02\x12\x1f\n\x1bLIVE_STREAM_STATE_STREAMING\x10\x03\x12&\n"LIVE_STREAM_STATE_COMPLETE_STAY_ON\x10\x04\x12$\n LIVE_STREAM_STATE_FAILED_STAY_ON\x10\x05\x12"\n\x1eLIVE_STREAM_STATE_RECONNECTING\x10\x06*\xbc\x01\n\x1cEnumRegisterLiveStreamStatus\x12&\n"REGISTER_LIVE_STREAM_STATUS_STATUS\x10\x01\x12%\n!REGISTER_LIVE_STREAM_STATUS_ERROR\x10\x02\x12$\n REGISTER_LIVE_STREAM_STATUS_MODE\x10\x03\x12\'\n#REGISTER_LIVE_STREAM_STATUS_BITRATE\x10\x04*P\n\x0eEnumWindowSize\x12\x13\n\x0fWINDOW_SIZE_480\x10\x04\x12\x13\n\x0fWINDOW_SIZE_720\x10\x07\x12\x14\n\x10WINDOW_SIZE_1080\x10\x0c' + b'\n\x14live_streaming.proto\x12\nopen_gopro"\xa4\x04\n\x16NotifyLiveStreamStatus\x12<\n\x12live_stream_status\x18\x01 \x01(\x0e2 .open_gopro.EnumLiveStreamStatus\x12:\n\x11live_stream_error\x18\x02 \x01(\x0e2\x1f.open_gopro.EnumLiveStreamError\x12\x1a\n\x12live_stream_encode\x18\x03 \x01(\x08\x12\x1b\n\x13live_stream_bitrate\x18\x04 \x01(\x05\x12K\n\'live_stream_window_size_supported_array\x18\x05 \x03(\x0e2\x1a.open_gopro.EnumWindowSize\x12$\n\x1clive_stream_encode_supported\x18\x06 \x01(\x08\x12(\n live_stream_max_lens_unsupported\x18\x07 \x01(\x08\x12*\n"live_stream_minimum_stream_bitrate\x18\x08 \x01(\x05\x12*\n"live_stream_maximum_stream_bitrate\x18\t \x01(\x05\x12"\n\x1alive_stream_lens_supported\x18\n \x01(\x08\x12>\n live_stream_lens_supported_array\x18\x0b \x03(\x0e2\x14.open_gopro.EnumLens"\xbc\x01\n\x1aRequestGetLiveStreamStatus\x12M\n\x1bregister_live_stream_status\x18\x01 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus\x12O\n\x1dunregister_live_stream_status\x18\x02 \x03(\x0e2(.open_gopro.EnumRegisterLiveStreamStatus"\xe6\x01\n\x18RequestSetLiveStreamMode\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06encode\x18\x02 \x01(\x08\x12/\n\x0bwindow_size\x18\x03 \x01(\x0e2\x1a.open_gopro.EnumWindowSize\x12\x0c\n\x04cert\x18\x06 \x01(\x0c\x12\x17\n\x0fminimum_bitrate\x18\x07 \x01(\x05\x12\x17\n\x0fmaximum_bitrate\x18\x08 \x01(\x05\x12\x18\n\x10starting_bitrate\x18\t \x01(\x05\x12"\n\x04lens\x18\n \x01(\x0e2\x14.open_gopro.EnumLens*>\n\x08EnumLens\x12\r\n\tLENS_WIDE\x10\x00\x12\x0f\n\x0bLENS_LINEAR\x10\x04\x12\x12\n\x0eLENS_SUPERVIEW\x10\x03*\xde\x03\n\x13EnumLiveStreamError\x12\x1a\n\x16LIVE_STREAM_ERROR_NONE\x10\x00\x12\x1d\n\x19LIVE_STREAM_ERROR_NETWORK\x10\x01\x12"\n\x1eLIVE_STREAM_ERROR_CREATESTREAM\x10\x02\x12!\n\x1dLIVE_STREAM_ERROR_OUTOFMEMORY\x10\x03\x12!\n\x1dLIVE_STREAM_ERROR_INPUTSTREAM\x10\x04\x12\x1e\n\x1aLIVE_STREAM_ERROR_INTERNET\x10\x05\x12\x1f\n\x1bLIVE_STREAM_ERROR_OSNETWORK\x10\x06\x12,\n(LIVE_STREAM_ERROR_SELECTEDNETWORKTIMEOUT\x10\x07\x12#\n\x1fLIVE_STREAM_ERROR_SSL_HANDSHAKE\x10\x08\x12$\n LIVE_STREAM_ERROR_CAMERA_BLOCKED\x10\t\x12\x1d\n\x19LIVE_STREAM_ERROR_UNKNOWN\x10\n\x12"\n\x1eLIVE_STREAM_ERROR_SD_CARD_FULL\x10(\x12%\n!LIVE_STREAM_ERROR_SD_CARD_REMOVED\x10)*\xa3\x02\n\x14EnumLiveStreamStatus\x12\x1a\n\x16LIVE_STREAM_STATE_IDLE\x10\x00\x12\x1c\n\x18LIVE_STREAM_STATE_CONFIG\x10\x01\x12\x1b\n\x17LIVE_STREAM_STATE_READY\x10\x02\x12\x1f\n\x1bLIVE_STREAM_STATE_STREAMING\x10\x03\x12&\n"LIVE_STREAM_STATE_COMPLETE_STAY_ON\x10\x04\x12$\n LIVE_STREAM_STATE_FAILED_STAY_ON\x10\x05\x12"\n\x1eLIVE_STREAM_STATE_RECONNECTING\x10\x06\x12!\n\x1dLIVE_STREAM_STATE_UNAVAILABLE\x10\x07*\xbc\x01\n\x1cEnumRegisterLiveStreamStatus\x12&\n"REGISTER_LIVE_STREAM_STATUS_STATUS\x10\x01\x12%\n!REGISTER_LIVE_STREAM_STATUS_ERROR\x10\x02\x12$\n REGISTER_LIVE_STREAM_STATUS_MODE\x10\x03\x12\'\n#REGISTER_LIVE_STREAM_STATUS_BITRATE\x10\x04*P\n\x0eEnumWindowSize\x12\x13\n\x0fWINDOW_SIZE_480\x10\x04\x12\x13\n\x0fWINDOW_SIZE_720\x10\x07\x12\x14\n\x10WINDOW_SIZE_1080\x10\x0c' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "live_streaming_pb2", globals()) @@ -21,11 +18,11 @@ _ENUMLIVESTREAMERROR._serialized_start = 1076 _ENUMLIVESTREAMERROR._serialized_end = 1554 _ENUMLIVESTREAMSTATUS._serialized_start = 1557 - _ENUMLIVESTREAMSTATUS._serialized_end = 1813 - _ENUMREGISTERLIVESTREAMSTATUS._serialized_start = 1816 - _ENUMREGISTERLIVESTREAMSTATUS._serialized_end = 2004 - _ENUMWINDOWSIZE._serialized_start = 2006 - _ENUMWINDOWSIZE._serialized_end = 2086 + _ENUMLIVESTREAMSTATUS._serialized_end = 1848 + _ENUMREGISTERLIVESTREAMSTATUS._serialized_start = 1851 + _ENUMREGISTERLIVESTREAMSTATUS._serialized_end = 2039 + _ENUMWINDOWSIZE._serialized_start = 2041 + _ENUMWINDOWSIZE._serialized_end = 2121 _NOTIFYLIVESTREAMSTATUS._serialized_start = 37 _NOTIFYLIVESTREAMSTATUS._serialized_end = 585 _REQUESTGETLIVESTREAMSTATUS._serialized_start = 588 diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.pyi index 1eb9200f..cc4c9d73 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/live_streaming_pb2.pyi @@ -45,7 +45,9 @@ class _EnumLiveStreamError: V: typing_extensions.TypeAlias = ValueType class _EnumLiveStreamErrorEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumLiveStreamError.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumLiveStreamError.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -76,7 +78,9 @@ class _EnumLiveStreamErrorEnumTypeWrapper( LIVE_STREAM_ERROR_SD_CARD_REMOVED: _EnumLiveStreamError.ValueType "Livestream stopped because sd card was removed" -class EnumLiveStreamError(_EnumLiveStreamError, metaclass=_EnumLiveStreamErrorEnumTypeWrapper): ... +class EnumLiveStreamError( + _EnumLiveStreamError, metaclass=_EnumLiveStreamErrorEnumTypeWrapper +): ... LIVE_STREAM_ERROR_NONE: EnumLiveStreamError.ValueType "No error (success)" @@ -111,7 +115,9 @@ class _EnumLiveStreamStatus: V: typing_extensions.TypeAlias = ValueType class _EnumLiveStreamStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumLiveStreamStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumLiveStreamStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -120,7 +126,7 @@ class _EnumLiveStreamStatusEnumTypeWrapper( LIVE_STREAM_STATE_CONFIG: _EnumLiveStreamStatus.ValueType "Livestream is being configured" LIVE_STREAM_STATE_READY: _EnumLiveStreamStatus.ValueType - "\n Livestream has finished configuration and is ready to start streaming\n " + "Livestream has finished configuration and is ready to start streaming" LIVE_STREAM_STATE_STREAMING: _EnumLiveStreamStatus.ValueType "Livestream is actively streaming" LIVE_STREAM_STATE_COMPLETE_STAY_ON: _EnumLiveStreamStatus.ValueType @@ -129,15 +135,19 @@ class _EnumLiveStreamStatusEnumTypeWrapper( "Live stream is exiting. An error occurred." LIVE_STREAM_STATE_RECONNECTING: _EnumLiveStreamStatus.ValueType "An error occurred during livestream and stream is attempting to reconnect." + LIVE_STREAM_STATE_UNAVAILABLE: _EnumLiveStreamStatus.ValueType + "Live stream setup is unavailable due to camera lens configuration" -class EnumLiveStreamStatus(_EnumLiveStreamStatus, metaclass=_EnumLiveStreamStatusEnumTypeWrapper): ... +class EnumLiveStreamStatus( + _EnumLiveStreamStatus, metaclass=_EnumLiveStreamStatusEnumTypeWrapper +): ... LIVE_STREAM_STATE_IDLE: EnumLiveStreamStatus.ValueType "Initial status. Livestream has not yet been configured" LIVE_STREAM_STATE_CONFIG: EnumLiveStreamStatus.ValueType "Livestream is being configured" LIVE_STREAM_STATE_READY: EnumLiveStreamStatus.ValueType -"\nLivestream has finished configuration and is ready to start streaming\n" +"Livestream has finished configuration and is ready to start streaming" LIVE_STREAM_STATE_STREAMING: EnumLiveStreamStatus.ValueType "Livestream is actively streaming" LIVE_STREAM_STATE_COMPLETE_STAY_ON: EnumLiveStreamStatus.ValueType @@ -146,6 +156,8 @@ LIVE_STREAM_STATE_FAILED_STAY_ON: EnumLiveStreamStatus.ValueType "Live stream is exiting. An error occurred." LIVE_STREAM_STATE_RECONNECTING: EnumLiveStreamStatus.ValueType "An error occurred during livestream and stream is attempting to reconnect." +LIVE_STREAM_STATE_UNAVAILABLE: EnumLiveStreamStatus.ValueType +"Live stream setup is unavailable due to camera lens configuration" global___EnumLiveStreamStatus = EnumLiveStreamStatus class _EnumRegisterLiveStreamStatus: @@ -153,7 +165,9 @@ class _EnumRegisterLiveStreamStatus: V: typing_extensions.TypeAlias = ValueType class _EnumRegisterLiveStreamStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumRegisterLiveStreamStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumRegisterLiveStreamStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -178,7 +192,9 @@ class _EnumWindowSize: V: typing_extensions.TypeAlias = ValueType class _EnumWindowSizeEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumWindowSize.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumWindowSize.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -228,7 +244,9 @@ class NotifyLiveStreamStatus(google.protobuf.message.Message): @property def live_stream_window_size_supported_array( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumWindowSize.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumWindowSize.ValueType + ]: """Set of currently supported resolutions""" live_stream_encode_supported: builtins.bool "Does the camera support encoding while live streaming?" @@ -244,7 +262,9 @@ class NotifyLiveStreamStatus(google.protobuf.message.Message): @property def live_stream_lens_supported_array( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumLens.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumLens.ValueType + ]: """Set of currently supported FOV options""" def __init__( @@ -262,7 +282,9 @@ class NotifyLiveStreamStatus(google.protobuf.message.Message): live_stream_minimum_stream_bitrate: builtins.int | None = ..., live_stream_maximum_stream_bitrate: builtins.int | None = ..., live_stream_lens_supported: builtins.bool | None = ..., - live_stream_lens_supported_array: collections.abc.Iterable[global___EnumLens.ValueType] | None = ... + live_stream_lens_supported_array: ( + collections.abc.Iterable[global___EnumLens.ValueType] | None + ) = ... ) -> None: ... def HasField( self, @@ -351,10 +373,12 @@ class RequestGetLiveStreamStatus(google.protobuf.message.Message): self, *, register_live_stream_status: ( - collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] | None + collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] + | None ) = ..., unregister_live_stream_status: ( - collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] | None + collections.abc.Iterable[global___EnumRegisterLiveStreamStatus.ValueType] + | None ) = ... ) -> None: ... def ClearField( @@ -391,7 +415,7 @@ class RequestSetLiveStreamMode(google.protobuf.message.Message): encode: builtins.bool "Save media to sdcard while streaming?" window_size: global___EnumWindowSize.ValueType - "*\n Resolution to use for live stream\n\n The set of supported lenses is only available from the `live_stream_window_size_supported_array` in @ref NotifyLiveStreamStatus)\n " + "*\n Resolution to use for live stream\n\n The set of supported resolutions is only available from the `live_stream_window_size_supported_array` in @ref NotifyLiveStreamStatus)\n " cert: builtins.bytes "Certificate for servers that require it in PEM format" minimum_bitrate: builtins.int diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/media_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/media_pb2.py index 94d1fef3..57bb24f0 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/media_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/media_pb2.py @@ -1,6 +1,3 @@ -# media_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.py index 770915ca..da703bc1 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.py @@ -1,6 +1,3 @@ -# network_management_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.pyi index c9f74c3d..28c03df8 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/network_management_pb2.pyi @@ -26,7 +26,9 @@ class _EnumProvisioning: V: typing_extensions.TypeAlias = ValueType class _EnumProvisioningEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumProvisioning.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumProvisioning.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -43,7 +45,9 @@ class _EnumProvisioningEnumTypeWrapper( PROVISIONING_ERROR_NO_INTERNET: _EnumProvisioning.ValueType PROVISIONING_ERROR_UNSUPPORTED_TYPE: _EnumProvisioning.ValueType -class EnumProvisioning(_EnumProvisioning, metaclass=_EnumProvisioningEnumTypeWrapper): ... +class EnumProvisioning( + _EnumProvisioning, metaclass=_EnumProvisioningEnumTypeWrapper +): ... PROVISIONING_UNKNOWN: EnumProvisioning.ValueType PROVISIONING_NEVER_STARTED: EnumProvisioning.ValueType @@ -64,7 +68,9 @@ class _EnumScanning: V: typing_extensions.TypeAlias = ValueType class _EnumScanningEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumScanning.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumScanning.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -90,7 +96,9 @@ class _EnumScanEntryFlags: V: typing_extensions.TypeAlias = ValueType class _EnumScanEntryFlagsEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumScanEntryFlags.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumScanEntryFlags.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -105,7 +113,9 @@ class _EnumScanEntryFlagsEnumTypeWrapper( "Camera is connected to this AP" SCAN_FLAG_UNSUPPORTED_TYPE: _EnumScanEntryFlags.ValueType -class EnumScanEntryFlags(_EnumScanEntryFlags, metaclass=_EnumScanEntryFlagsEnumTypeWrapper): ... +class EnumScanEntryFlags( + _EnumScanEntryFlags, metaclass=_EnumScanEntryFlagsEnumTypeWrapper +): ... SCAN_FLAG_OPEN: EnumScanEntryFlags.ValueType "This network does not require authentication" @@ -132,14 +142,20 @@ class NotifProvisioningState(google.protobuf.message.Message): provisioning_state: global___EnumProvisioning.ValueType "Provisioning / connection state" - def __init__(self, *, provisioning_state: global___EnumProvisioning.ValueType | None = ...) -> None: ... + def __init__( + self, *, provisioning_state: global___EnumProvisioning.ValueType | None = ... + ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["provisioning_state", b"provisioning_state"], + field_name: typing_extensions.Literal[ + "provisioning_state", b"provisioning_state" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["provisioning_state", b"provisioning_state"], + field_name: typing_extensions.Literal[ + "provisioning_state", b"provisioning_state" + ], ) -> None: ... global___NotifProvisioningState = NotifProvisioningState @@ -221,8 +237,12 @@ class RequestConnect(google.protobuf.message.Message): "AP SSID" def __init__(self, *, ssid: builtins.str | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ssid", b"ssid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ssid", b"ssid"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["ssid", b"ssid"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["ssid", b"ssid"] + ) -> None: ... global___RequestConnect = RequestConnect @@ -578,7 +598,9 @@ class ResponseGetApEntries(google.protobuf.message.Message): @property def entries( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResponseGetApEntries.ScanEntry]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___ResponseGetApEntries.ScanEntry + ]: """Array containing details about discovered APs""" def __init__( @@ -586,15 +608,21 @@ class ResponseGetApEntries(google.protobuf.message.Message): *, result: response_generic_pb2.EnumResultGeneric.ValueType | None = ..., scan_id: builtins.int | None = ..., - entries: collections.abc.Iterable[global___ResponseGetApEntries.ScanEntry] | None = ... + entries: ( + collections.abc.Iterable[global___ResponseGetApEntries.ScanEntry] | None + ) = ... ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["result", b"result", "scan_id", b"scan_id"], + field_name: typing_extensions.Literal[ + "result", b"result", "scan_id", b"scan_id" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["entries", b"entries", "result", b"result", "scan_id", b"scan_id"], + field_name: typing_extensions.Literal[ + "entries", b"entries", "result", b"result", "scan_id", b"scan_id" + ], ) -> None: ... global___ResponseGetApEntries = ResponseGetApEntries @@ -623,11 +651,15 @@ class ResponseStartScanning(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["result", b"result", "scanning_state", b"scanning_state"], + field_name: typing_extensions.Literal[ + "result", b"result", "scanning_state", b"scanning_state" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["result", b"result", "scanning_state", b"scanning_state"], + field_name: typing_extensions.Literal[ + "result", b"result", "scanning_state", b"scanning_state" + ], ) -> None: ... global___ResponseStartScanning = ResponseStartScanning diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.py index 666abc10..005725a1 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.py @@ -1,6 +1,3 @@ -# preset_status_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.pyi index 73bd5fc7..281ae231 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/preset_status_pb2.pyi @@ -25,7 +25,9 @@ class _EnumFlatMode: V: typing_extensions.TypeAlias = ValueType class _EnumFlatModeEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumFlatMode.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumFlatMode.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -85,7 +87,9 @@ class _EnumPresetGroup: V: typing_extensions.TypeAlias = ValueType class _EnumPresetGroupEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetGroup.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetGroup.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -105,7 +109,9 @@ class _EnumPresetGroupIcon: V: typing_extensions.TypeAlias = ValueType class _EnumPresetGroupIconEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetGroupIcon.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetGroupIcon.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -118,7 +124,9 @@ class _EnumPresetGroupIconEnumTypeWrapper( PRESET_GROUP_MAX_PHOTO_ICON_ID: _EnumPresetGroupIcon.ValueType PRESET_GROUP_MAX_TIMELAPSE_ICON_ID: _EnumPresetGroupIcon.ValueType -class EnumPresetGroupIcon(_EnumPresetGroupIcon, metaclass=_EnumPresetGroupIconEnumTypeWrapper): ... +class EnumPresetGroupIcon( + _EnumPresetGroupIcon, metaclass=_EnumPresetGroupIconEnumTypeWrapper +): ... PRESET_GROUP_VIDEO_ICON_ID: EnumPresetGroupIcon.ValueType PRESET_GROUP_PHOTO_ICON_ID: EnumPresetGroupIcon.ValueType @@ -135,7 +143,9 @@ class _EnumPresetIcon: V: typing_extensions.TypeAlias = ValueType class _EnumPresetIconEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetIcon.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetIcon.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -275,7 +285,9 @@ class _EnumPresetTitle: V: typing_extensions.TypeAlias = ValueType class _EnumPresetTitleEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumPresetTitle.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumPresetTitle.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -433,13 +445,21 @@ class NotifyPresetStatus(google.protobuf.message.Message): @property def preset_group_array( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PresetGroup]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___PresetGroup + ]: """List of currently available Preset Groups""" - def __init__(self, *, preset_group_array: collections.abc.Iterable[global___PresetGroup] | None = ...) -> None: ... + def __init__( + self, + *, + preset_group_array: collections.abc.Iterable[global___PresetGroup] | None = ... + ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal["preset_group_array", b"preset_group_array"], + field_name: typing_extensions.Literal[ + "preset_group_array", b"preset_group_array" + ], ) -> None: ... global___NotifyPresetStatus = NotifyPresetStatus @@ -477,7 +497,9 @@ class Preset(google.protobuf.message.Message): @property def setting_array( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PresetSetting]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___PresetSetting + ]: """Array of settings associated with this Preset""" is_modified: builtins.bool "Has Preset been modified from factory defaults? (False for user-defined Presets)" @@ -635,7 +657,9 @@ class PresetGroup(google.protobuf.message.Message): @property def preset_array( self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Preset]: + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___Preset + ]: """Array of Presets contained in this Preset Group""" can_add_preset: builtins.bool "Is there room in the group to add additional Presets?" @@ -652,7 +676,9 @@ class PresetGroup(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["can_add_preset", b"can_add_preset", "icon", b"icon", "id", b"id"], + field_name: typing_extensions.Literal[ + "can_add_preset", b"can_add_preset", "icon", b"icon", "id", b"id" + ], ) -> builtins.bool: ... def ClearField( self, @@ -688,15 +714,23 @@ class PresetSetting(google.protobuf.message.Message): 'Does this setting appear on the Preset "pill" in the camera UI?' def __init__( - self, *, id: builtins.int | None = ..., value: builtins.int | None = ..., is_caption: builtins.bool | None = ... + self, + *, + id: builtins.int | None = ..., + value: builtins.int | None = ..., + is_caption: builtins.bool | None = ... ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["id", b"id", "is_caption", b"is_caption", "value", b"value"], + field_name: typing_extensions.Literal[ + "id", b"id", "is_caption", b"is_caption", "value", b"value" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["id", b"id", "is_caption", b"is_caption", "value", b"value"], + field_name: typing_extensions.Literal[ + "id", b"id", "is_caption", b"is_caption", "value", b"value" + ], ) -> None: ... global___PresetSetting = PresetSetting diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.py index 28fe041f..788f4467 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.py @@ -1,6 +1,3 @@ -# request_get_preset_status_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder @@ -13,7 +10,9 @@ b'\n\x1frequest_get_preset_status.proto\x12\nopen_gopro"\xa6\x01\n\x16RequestGetPresetStatus\x12D\n\x16register_preset_status\x18\x01 \x03(\x0e2$.open_gopro.EnumRegisterPresetStatus\x12F\n\x18unregister_preset_status\x18\x02 \x03(\x0e2$.open_gopro.EnumRegisterPresetStatus*l\n\x18EnumRegisterPresetStatus\x12!\n\x1dREGISTER_PRESET_STATUS_PRESET\x10\x01\x12-\n)REGISTER_PRESET_STATUS_PRESET_GROUP_ARRAY\x10\x02' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "request_get_preset_status_pb2", globals()) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "request_get_preset_status_pb2", globals() +) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _ENUMREGISTERPRESETSTATUS._serialized_start = 216 diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.pyi index 13e7d1c8..50c4eb54 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/request_get_preset_status_pb2.pyi @@ -25,7 +25,9 @@ class _EnumRegisterPresetStatus: V: typing_extensions.TypeAlias = ValueType class _EnumRegisterPresetStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumRegisterPresetStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumRegisterPresetStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -34,7 +36,9 @@ class _EnumRegisterPresetStatusEnumTypeWrapper( REGISTER_PRESET_STATUS_PRESET_GROUP_ARRAY: _EnumRegisterPresetStatus.ValueType "Send notification when properties of a preset group change" -class EnumRegisterPresetStatus(_EnumRegisterPresetStatus, metaclass=_EnumRegisterPresetStatusEnumTypeWrapper): ... +class EnumRegisterPresetStatus( + _EnumRegisterPresetStatus, metaclass=_EnumRegisterPresetStatusEnumTypeWrapper +): ... REGISTER_PRESET_STATUS_PRESET: EnumRegisterPresetStatus.ValueType "Send notification when properties of a preset change" @@ -65,20 +69,28 @@ class RequestGetPresetStatus(google.protobuf.message.Message): @property def register_preset_status( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumRegisterPresetStatus.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumRegisterPresetStatus.ValueType + ]: """Array of Preset statuses to be notified about""" @property def unregister_preset_status( self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___EnumRegisterPresetStatus.ValueType]: + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + global___EnumRegisterPresetStatus.ValueType + ]: """Array of Preset statuses to stop being notified about""" def __init__( self, *, - register_preset_status: collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None = ..., - unregister_preset_status: collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None = ... + register_preset_status: ( + collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None + ) = ..., + unregister_preset_status: ( + collections.abc.Iterable[global___EnumRegisterPresetStatus.ValueType] | None + ) = ... ) -> None: ... def ClearField( self, diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.py index a61b782b..7af4a3e1 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.py @@ -1,6 +1,3 @@ -# response_generic_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.pyi index 85655c36..5d671591 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/response_generic_pb2.pyi @@ -23,7 +23,9 @@ class _EnumResultGeneric: V: typing_extensions.TypeAlias = ValueType class _EnumResultGenericEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumResultGeneric.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumResultGeneric.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -35,7 +37,9 @@ class _EnumResultGenericEnumTypeWrapper( RESULT_ARGUMENT_INVALID: _EnumResultGeneric.ValueType RESULT_RESOURCE_NOT_AVAILABLE: _EnumResultGeneric.ValueType -class EnumResultGeneric(_EnumResultGeneric, metaclass=_EnumResultGenericEnumTypeWrapper): ... +class EnumResultGeneric( + _EnumResultGeneric, metaclass=_EnumResultGenericEnumTypeWrapper +): ... RESULT_UNKNOWN: EnumResultGeneric.ValueType RESULT_SUCCESS: EnumResultGeneric.ValueType @@ -57,9 +61,15 @@ class ResponseGeneric(google.protobuf.message.Message): result: global___EnumResultGeneric.ValueType "Generic pass/fail/error info" - def __init__(self, *, result: global___EnumResultGeneric.ValueType | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["result", b"result"]) -> None: ... + def __init__( + self, *, result: global___EnumResultGeneric.ValueType | None = ... + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["result", b"result"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["result", b"result"] + ) -> None: ... global___ResponseGeneric = ResponseGeneric @@ -77,7 +87,9 @@ class Media(google.protobuf.message.Message): file: builtins.str "Filename of media" - def __init__(self, *, folder: builtins.str | None = ..., file: builtins.str | None = ...) -> None: ... + def __init__( + self, *, folder: builtins.str | None = ..., file: builtins.str | None = ... + ) -> None: ... def HasField( self, field_name: typing_extensions.Literal["file", b"file", "folder", b"folder"], diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.py index 543ced5f..9a354a9f 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.py @@ -1,6 +1,3 @@ -# set_camera_control_status_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder @@ -13,7 +10,9 @@ b'\n\x1fset_camera_control_status.proto\x12\nopen_gopro"c\n\x1dRequestSetCameraControlStatus\x12B\n\x15camera_control_status\x18\x01 \x02(\x0e2#.open_gopro.EnumCameraControlStatus*[\n\x17EnumCameraControlStatus\x12\x0f\n\x0bCAMERA_IDLE\x10\x00\x12\x12\n\x0eCAMERA_CONTROL\x10\x01\x12\x1b\n\x17CAMERA_EXTERNAL_CONTROL\x10\x02' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "set_camera_control_status_pb2", globals()) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "set_camera_control_status_pb2", globals() +) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _ENUMCAMERACONTROLSTATUS._serialized_start = 148 diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.pyi index 37b27336..05b92143 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/set_camera_control_status_pb2.pyi @@ -23,7 +23,9 @@ class _EnumCameraControlStatus: V: typing_extensions.TypeAlias = ValueType class _EnumCameraControlStatusEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EnumCameraControlStatus.ValueType], + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _EnumCameraControlStatus.ValueType + ], builtins.type, ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor @@ -32,7 +34,9 @@ class _EnumCameraControlStatusEnumTypeWrapper( "Can only be set by camera, not by app or third party" CAMERA_EXTERNAL_CONTROL: _EnumCameraControlStatus.ValueType -class EnumCameraControlStatus(_EnumCameraControlStatus, metaclass=_EnumCameraControlStatusEnumTypeWrapper): ... +class EnumCameraControlStatus( + _EnumCameraControlStatus, metaclass=_EnumCameraControlStatusEnumTypeWrapper +): ... CAMERA_IDLE: EnumCameraControlStatus.ValueType CAMERA_CONTROL: EnumCameraControlStatus.ValueType @@ -61,14 +65,22 @@ class RequestSetCameraControlStatus(google.protobuf.message.Message): camera_control_status: global___EnumCameraControlStatus.ValueType "Declare who is taking control of the camera" - def __init__(self, *, camera_control_status: global___EnumCameraControlStatus.ValueType | None = ...) -> None: ... + def __init__( + self, + *, + camera_control_status: global___EnumCameraControlStatus.ValueType | None = ... + ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal["camera_control_status", b"camera_control_status"], + field_name: typing_extensions.Literal[ + "camera_control_status", b"camera_control_status" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["camera_control_status", b"camera_control_status"], + field_name: typing_extensions.Literal[ + "camera_control_status", b"camera_control_status" + ], ) -> None: ... global___RequestSetCameraControlStatus = RequestSetCameraControlStatus diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.py b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.py index 97d913a0..d33378d6 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.py +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.py @@ -1,6 +1,3 @@ -# turbo_transfer_pb2.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). -# This copyright was auto-generated on Wed Mar 27 22:05:49 UTC 2024 - """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder diff --git a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.pyi b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.pyi index 0c79e66a..d02fc22a 100644 --- a/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.pyi +++ b/demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto/turbo_transfer_pb2.pyi @@ -30,7 +30,11 @@ class RequestSetTurboActive(google.protobuf.message.Message): "Enable or disable Turbo Transfer feature" def __init__(self, *, active: builtins.bool | None = ...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["active", b"active"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["active", b"active"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["active", b"active"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["active", b"active"] + ) -> None: ... global___RequestSetTurboActive = RequestSetTurboActive diff --git a/tools/proto_build/docker-compose.yml b/docker-compose.yml similarity index 65% rename from tools/proto_build/docker-compose.yml rename to docker-compose.yml index 5276db34..754a658b 100644 --- a/tools/proto_build/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,11 @@ services: proto-build: - build: . + build: + context: tools/proto_build container_name: proto-build + profiles: + - ephemeral volumes: - ./protobuf:/proto_in - - ./.build/protobuf/python:/proto_python_out + - ./.build/protobuf/python:/proto_python_out \ No newline at end of file