aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml
blob: 0d59961cccd71d6f0f24d008a327cf724ef0a252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<UserControl x:Class="Tango.PPC.UI.Views.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             xmlns:commonControls="clr-namespace:Tango.PPC.Common.Controls;assembly=Tango.PPC.Common"
			 xmlns:vm="clr-namespace:Tango.PPC.UI.ViewModels"
			 xmlns:global="clr-namespace:Tango.PPC.UI"
             xmlns:operations="clr-namespace:Tango.Integration.Operation;assembly=Tango.Integration"
             xmlns:local="clr-namespace:Tango.PPC.UI.Views"
             xmlns:notifications="clr-namespace:Tango.PPC.UI.Notifications"
             xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:components="clr-namespace:Tango.Touch.Components;assembly=Tango.Touch"
             xmlns:localConverters="clr-namespace:Tango.PPC.UI.Converters"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             mc:Ignorable="d" 
             d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">

    <UserControl.Resources>
        <localConverters:ItemBaseConverter x:Key="ItemBaseConverter" />
    </UserControl.Resources>

    <Grid Background="Transparent">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="PreviewMouseUp">
                <i:InvokeCommandAction Command="{Binding ScreenSaverExitCommand}" />
            </i:EventTrigger>
        </i:Interaction.Triggers>

        <touch:TouchPanel 
            HasMessageBox="{Binding NotificationProvider.HasMessageBox}" 
            CurrentMessageBox="{Binding NotificationProvider.CurrentMessageBox}" 
            HasDialog="{Binding NotificationProvider.HasDialog}"
            CurrentDialog="{Binding NotificationProvider.CurrentDialog}"
            IsBusy="{Binding NotificationProvider.IsInGlobalBusyState}"
            BusyMessage="{Binding NotificationProvider.GlobalBusyMessage}">
            <touch:TouchPanel.TaskBarElement>
                <Border DockPanel.Dock="Top" Background="Black" Padding="5">
                    <DockPanel>
                        <TextBlock VerticalAlignment="Center" DockPanel.Dock="Right" Text="{Binding CurrentDateTime,StringFormat='g'}" FontSize="16" Foreground="{StaticResource TangoPrimaryBackgroundBrush}"></TextBlock>
                        <touch:TouchIcon Width="20" Height="20" VerticalAlignment="Center">
                            <touch:TouchIcon.Style>
                                <Style TargetType="touch:TouchIcon" BasedOn="{StaticResource {x:Type touch:TouchIcon}}">
                                    <Setter Property="Icon" Value="WifiStrengthOff"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoGrayBrush}"></Setter>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding ConnectivityProvider.IsConnected}" Value="True">
                                            <Setter Property="Icon" Value="Wifi"></Setter>
                                            <Setter Property="Foreground" Value="{StaticResource TangoSuccessBrush}"></Setter>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </touch:TouchIcon.Style>
                        </touch:TouchIcon>

                        <touch:TouchIcon Margin="10 0 0 0" Width="18" Height="18" VerticalAlignment="Center">
                            <touch:TouchIcon.Style>
                                <Style TargetType="touch:TouchIcon" BasedOn="{StaticResource {x:Type touch:TouchIcon}}">
                                    <Setter Property="Icon" Value="LanDisconnect"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoGrayBrush}"></Setter>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding ConnectivityProvider.IsLanConnected}" Value="True">
                                            <Setter Property="Icon" Value="LanConnect"></Setter>
                                            <Setter Property="Foreground" Value="{StaticResource TangoSuccessBrush}"></Setter>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </touch:TouchIcon.Style>
                        </touch:TouchIcon>

                        <touch:TouchIcon Margin="10 0 0 0" Width="18" Height="18" VerticalAlignment="Center" Foreground="{StaticResource TangoSuccessBrush}" Icon="AccessPointNetwork" Visibility="{Binding HotSpotProvider.IsEnabled,Converter={StaticResource BooleanToVisibilityConverter}}" />

                        <touch:TouchIcon Margin="10 0 0 0" Width="18" Height="18" VerticalAlignment="Center" Icon="Bridge" Visibility="{Binding ExternalBridgeService.Enabled,Converter={StaticResource BooleanToVisibilityConverter}}">
                            <touch:TouchIcon.Style>
                                <Style TargetType="touch:TouchIcon">
                                    <Setter Property="Foreground" Value="{StaticResource TangoGrayBrush}"></Setter>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding ExternalBridgeService.HasSessions}" Value="True">
                                            <Setter Property="Foreground" Value="{StaticResource TangoSuccessBrush}"></Setter>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </touch:TouchIcon.Style>
                        </touch:TouchIcon>

                        <touch:TouchIcon Margin="10 0 0 0" Width="18" Height="18" VerticalAlignment="Center" Foreground="{StaticResource TangoSuccessBrush}" Icon="RemoteDesktop" Visibility="{Binding RemoteDesktopService.InSession,Converter={StaticResource BooleanToVisibilityConverter}}" />

                        <ItemsControl ItemsSource="{Binding NotificationProvider.TaskBarItems}">
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal" />
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>
                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <ContentControl Width="20" Height="20" VerticalAlignment="Center" Margin="10 0 0 0" Content="{Binding Converter={StaticResource ItemBaseConverter}}"/>
                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                        </ItemsControl>

                        <Image Margin="10 0 0 0" Width="18" Height="18" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="Fant">
                            <Image.Style>
                                <Style TargetType="Image">
                                    <Setter Property="Source" Value="/Images/GlobalStatus/machine-off.png"></Setter>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.Disconnected}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/machine-off.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.PowerUp}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/getting-ready.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.Standby}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/standby.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.ReadyToDye}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/ready-to-dye.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.GettingReady}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/getting-ready.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.Printing}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/dyeing.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.ShuttingDown}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/shutting-down.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.Error}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/error.png"></Setter>
                                        </DataTrigger>
                                        <DataTrigger Binding="{Binding MachineProvider.MachineOperator.Status}" Value="{x:Static operations:MachineStatuses.Service}">
                                            <Setter Property="Source" Value="/Images/GlobalStatus/service.png"></Setter>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </Image.Style>
                        </Image>
                        <Grid></Grid>
                    </DockPanel>
                </Border>
            </touch:TouchPanel.TaskBarElement>

            <controls:NavigationControl TransitionAlwaysFades="True" KeepElementsAttached="False" UseDefferedRendering="True" TransitionType="Zoom" x:Name="NavigationControl" x:FieldModifier="public">
                <local:LoadingView></local:LoadingView>
                <local:LoadingErrorView></local:LoadingErrorView>
                <local:NoPermissionsView></local:NoPermissionsView>
                <local:LoginView></local:LoginView>
                <local:LayoutView></local:LayoutView>
                <local:ExternalBridgeView></local:ExternalBridgeView>
                <local:MachineSetupView></local:MachineSetupView>
                <local:MachineUpdateView></local:MachineUpdateView>
                <local:RestartingSystemView></local:RestartingSystemView>
                <local:EmergencyView></local:EmergencyView>
                <local:RestartingView></local:RestartingView>
            </controls:NavigationControl>
        </touch:TouchPanel>

        <Grid Visibility="{Binding IsScreenSaverOn,Converter={StaticResource BooleanToVisibilityConverter}}" Background="Black">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="PreviewMouseUp">
                    <i:InvokeCommandAction Command="{Binding ScreenSaverExitCommand}" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Grid>
    </Grid>
</UserControl>
ss="o">= { ::google::protobuf::internal::AuxillaryParseTableField(), }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, }; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchRequest, limitswitchrid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchRequest, limitswitchrdisable_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(StubOptLimitSwitchRequest)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&_StubOptLimitSwitchRequest_default_instance_), }; namespace { void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "StubOptLimitSwitchRequest.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } } // namespace void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); _StubOptLimitSwitchRequest_default_instance_._instance.DefaultConstruct(); ::google::protobuf::internal::OnShutdownDestroyMessage( &_StubOptLimitSwitchRequest_default_instance_);} void InitDefaults() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); } namespace { void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\037StubOptLimitSwitchRequest.proto\022\017Tango" ".PMR.Stubs\"P\n\031StubOptLimitSwitchRequest\022" "\026\n\016LimitSwitchrId\030\001 \001(\r\022\033\n\023LimitSwitchrD" "isable\030\002 \001(\010B\033\n\031com.twine.tango.pmr.stub" "sb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 169); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "StubOptLimitSwitchRequest.proto", &protobuf_RegisterTypes); } } // anonymous namespace void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_StubOptLimitSwitchRequest_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int StubOptLimitSwitchRequest::kLimitSwitchrIdFieldNumber; const int StubOptLimitSwitchRequest::kLimitSwitchrDisableFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 StubOptLimitSwitchRequest::StubOptLimitSwitchRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_StubOptLimitSwitchRequest_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubOptLimitSwitchRequest) } StubOptLimitSwitchRequest::StubOptLimitSwitchRequest(const StubOptLimitSwitchRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&limitswitchrid_, &from.limitswitchrid_, static_cast<size_t>(reinterpret_cast<char*>(&limitswitchrdisable_) - reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(limitswitchrdisable_)); // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubOptLimitSwitchRequest) } void StubOptLimitSwitchRequest::SharedCtor() { ::memset(&limitswitchrid_, 0, static_cast<size_t>( reinterpret_cast<char*>(&limitswitchrdisable_) - reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(limitswitchrdisable_)); _cached_size_ = 0; } StubOptLimitSwitchRequest::~StubOptLimitSwitchRequest() { // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubOptLimitSwitchRequest) SharedDtor(); } void StubOptLimitSwitchRequest::SharedDtor() { } void StubOptLimitSwitchRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* StubOptLimitSwitchRequest::descriptor() { protobuf_StubOptLimitSwitchRequest_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_StubOptLimitSwitchRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const StubOptLimitSwitchRequest& StubOptLimitSwitchRequest::default_instance() { protobuf_StubOptLimitSwitchRequest_2eproto::InitDefaults(); return *internal_default_instance(); } StubOptLimitSwitchRequest* StubOptLimitSwitchRequest::New(::google::protobuf::Arena* arena) const { StubOptLimitSwitchRequest* n = new StubOptLimitSwitchRequest; if (arena != NULL) { arena->Own(n); } return n; } void StubOptLimitSwitchRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&limitswitchrid_, 0, static_cast<size_t>( reinterpret_cast<char*>(&limitswitchrdisable_) - reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(limitswitchrdisable_)); _internal_metadata_.Clear(); } bool StubOptLimitSwitchRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint32 LimitSwitchrId = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &limitswitchrid_))); } else { goto handle_unusual; } break; } // bool LimitSwitchrDisable = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &limitswitchrdisable_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Tango.PMR.Stubs.StubOptLimitSwitchRequest) return true; failure: // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubOptLimitSwitchRequest) return false; #undef DO_ } void StubOptLimitSwitchRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // uint32 LimitSwitchrId = 1; if (this->limitswitchrid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limitswitchrid(), output); } // bool LimitSwitchrDisable = 2; if (this->limitswitchrdisable() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->limitswitchrdisable(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:Tango.PMR.Stubs.StubOptLimitSwitchRequest) } ::google::protobuf::uint8* StubOptLimitSwitchRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // uint32 LimitSwitchrId = 1; if (this->limitswitchrid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limitswitchrid(), target); } // bool LimitSwitchrDisable = 2; if (this->limitswitchrdisable() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->limitswitchrdisable(), target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:Tango.PMR.Stubs.StubOptLimitSwitchRequest) return target; } size_t StubOptLimitSwitchRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // uint32 LimitSwitchrId = 1; if (this->limitswitchrid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->limitswitchrid()); } // bool LimitSwitchrDisable = 2; if (this->limitswitchrdisable() != 0) { total_size += 1 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void StubOptLimitSwitchRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) GOOGLE_DCHECK_NE(&from, this); const StubOptLimitSwitchRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const StubOptLimitSwitchRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubOptLimitSwitchRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubOptLimitSwitchRequest) MergeFrom(*source); } } void StubOptLimitSwitchRequest::MergeFrom(const StubOptLimitSwitchRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.limitswitchrid() != 0) { set_limitswitchrid(from.limitswitchrid()); } if (from.limitswitchrdisable() != 0) { set_limitswitchrdisable(from.limitswitchrdisable()); } } void StubOptLimitSwitchRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) if (&from == this) return; Clear(); MergeFrom(from); } void StubOptLimitSwitchRequest::CopyFrom(const StubOptLimitSwitchRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool StubOptLimitSwitchRequest::IsInitialized() const { return true; } void StubOptLimitSwitchRequest::Swap(StubOptLimitSwitchRequest* other) { if (other == this) return; InternalSwap(other); } void StubOptLimitSwitchRequest::InternalSwap(StubOptLimitSwitchRequest* other) { using std::swap; swap(limitswitchrid_, other->limitswitchrid_); swap(limitswitchrdisable_, other->limitswitchrdisable_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata StubOptLimitSwitchRequest::GetMetadata() const { protobuf_StubOptLimitSwitchRequest_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_StubOptLimitSwitchRequest_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // StubOptLimitSwitchRequest // uint32 LimitSwitchrId = 1; void StubOptLimitSwitchRequest::clear_limitswitchrid() { limitswitchrid_ = 0u; } ::google::protobuf::uint32 StubOptLimitSwitchRequest::limitswitchrid() const { // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrId) return limitswitchrid_; } void StubOptLimitSwitchRequest::set_limitswitchrid(::google::protobuf::uint32 value) { limitswitchrid_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrId) } // bool LimitSwitchrDisable = 2; void StubOptLimitSwitchRequest::clear_limitswitchrdisable() { limitswitchrdisable_ = false; } bool StubOptLimitSwitchRequest::limitswitchrdisable() const { // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrDisable) return limitswitchrdisable_; } void StubOptLimitSwitchRequest::set_limitswitchrdisable(bool value) { limitswitchrdisable_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrDisable) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Stubs } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope)