public void write()

in java/com/jetbrains/cef/remote/thrift_codegen/ContextMenuParams.java [1956:2037]


    public void write(com.jetbrains.cef.remote.thrift.protocol.TProtocol oprot, ContextMenuParams struct) throws com.jetbrains.cef.remote.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(X_FIELD_DESC);
      oprot.writeI32(struct.x);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(Y_FIELD_DESC);
      oprot.writeI32(struct.y);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(TYPE_FLAGS_FIELD_DESC);
      oprot.writeI32(struct.type_flags);
      oprot.writeFieldEnd();
      if (struct.link_url != null) {
        oprot.writeFieldBegin(LINK_URL_FIELD_DESC);
        oprot.writeString(struct.link_url);
        oprot.writeFieldEnd();
      }
      if (struct.unfiltered_link_url != null) {
        oprot.writeFieldBegin(UNFILTERED_LINK_URL_FIELD_DESC);
        oprot.writeString(struct.unfiltered_link_url);
        oprot.writeFieldEnd();
      }
      if (struct.source_url != null) {
        oprot.writeFieldBegin(SOURCE_URL_FIELD_DESC);
        oprot.writeString(struct.source_url);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(HAS_IMAGE_CONTENTS_FIELD_DESC);
      oprot.writeBool(struct.has_image_contents);
      oprot.writeFieldEnd();
      if (struct.title_text != null) {
        oprot.writeFieldBegin(TITLE_TEXT_FIELD_DESC);
        oprot.writeString(struct.title_text);
        oprot.writeFieldEnd();
      }
      if (struct.page_url != null) {
        oprot.writeFieldBegin(PAGE_URL_FIELD_DESC);
        oprot.writeString(struct.page_url);
        oprot.writeFieldEnd();
      }
      if (struct.frame_url != null) {
        oprot.writeFieldBegin(FRAME_URL_FIELD_DESC);
        oprot.writeString(struct.frame_url);
        oprot.writeFieldEnd();
      }
      if (struct.frame_charset != null) {
        oprot.writeFieldBegin(FRAME_CHARSET_FIELD_DESC);
        oprot.writeString(struct.frame_charset);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(MEDIA_TYPE_FIELD_DESC);
      oprot.writeI32(struct.media_type);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(MEDIA_STATE_FLAGS_FIELD_DESC);
      oprot.writeI32(struct.media_state_flags);
      oprot.writeFieldEnd();
      if (struct.selected_text != null) {
        oprot.writeFieldBegin(SELECTED_TEXT_FIELD_DESC);
        oprot.writeString(struct.selected_text);
        oprot.writeFieldEnd();
      }
      if (struct.misspelled_word != null) {
        oprot.writeFieldBegin(MISSPELLED_WORD_FIELD_DESC);
        oprot.writeString(struct.misspelled_word);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(IS_EDITABLE_FIELD_DESC);
      oprot.writeBool(struct.is_editable);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(IS_SPELLCHECK_ENABLED_FIELD_DESC);
      oprot.writeBool(struct.is_spellcheck_enabled);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(EDIT_STATE_FLAGS_FIELD_DESC);
      oprot.writeI32(struct.edit_state_flags);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(IS_CUSTOM_MENU_FIELD_DESC);
      oprot.writeBool(struct.is_custom_menu);
      oprot.writeFieldEnd();
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }