code: public Oneof getOneof(String name) {
          for (Oneof oneof : getOneofs()) {
              if (name.equals(oneof.getName())) {
                  return oneof;
              }
          }
          return null;
      }
docs: Get oneof node by it's name.