Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132183

qtprotobufgen: oneof fields provide mutable accessors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Protocol Buffers
    • None

    Description

      E.g.:

      message ChatMessage {
          string username = 1;
          int64 timestamp = 2;
          oneof content {
              TextMessage text = 3;
              FileMessage file = 4;
              UserStatus user_status = 5;
          }
      } 

       

          QPB_QTCHAT_CLIENT_PROTO_EXPORT bool hasText() const;
          QPB_QTCHAT_CLIENT_PROTO_EXPORT TextMessage &text() const;    QPB_QTCHAT_CLIENT_PROTO_EXPORT bool hasFile() const;
          QPB_QTCHAT_CLIENT_PROTO_EXPORT FileMessage &file() const; 

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              semlanik Alexey Edelev
              dennisoberst Dennis Oberst
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes