set_ImageGeneration_data Subroutine

private impure elemental subroutine set_ImageGeneration_data(this, file_name, url, size, prompt, response_format, n, user_name)

Type Bound

ImageGeneration

Arguments

Type IntentOptional Attributes Name
class(ImageGeneration), intent(inout) :: this
character(len=*), intent(in), optional :: file_name
character(len=*), intent(in), optional :: url
character(len=*), intent(in), optional :: size
character(len=*), intent(in), optional :: prompt
character(len=*), intent(in), optional :: response_format
integer, intent(in), optional :: n
character(len=*), intent(in), optional :: user_name

Calls

proc~~set_imagegeneration_data~~CallsGraph proc~set_imagegeneration_data foropenai_ImageGeneration::ImageGeneration%set_ImageGeneration_data proc~load_imagegeneration_data foropenai_ImageGeneration::ImageGeneration%load_ImageGeneration_data proc~set_imagegeneration_data->proc~load_imagegeneration_data proc~set_file_name foropenai_base::openai%set_file_name proc~set_imagegeneration_data->proc~set_file_name proc~set_n~2 foropenai_ImageGeneration::ImageGeneration%set_n proc~set_imagegeneration_data->proc~set_n~2 proc~set_prompt~2 foropenai_ImageGeneration::ImageGeneration%set_prompt proc~set_imagegeneration_data->proc~set_prompt~2 proc~set_response_format~2 foropenai_ImageGeneration::ImageGeneration%set_response_format proc~set_imagegeneration_data->proc~set_response_format~2 proc~set_size foropenai_ImageGeneration::ImageGeneration%set_size proc~set_imagegeneration_data->proc~set_size proc~set_url~3 foropenai_ImageGeneration::ImageGeneration%set_url proc~set_imagegeneration_data->proc~set_url~3 proc~set_user_name~2 foropenai_ImageGeneration::ImageGeneration%set_user_name proc~set_imagegeneration_data->proc~set_user_name~2 proc~load_imagegeneration_data->proc~set_file_name proc~load_n~2 foropenai_ImageGeneration::ImageGeneration%load_n proc~load_imagegeneration_data->proc~load_n~2 proc~load_response_format~2 foropenai_ImageGeneration::ImageGeneration%load_response_format proc~load_imagegeneration_data->proc~load_response_format~2 proc~load_size foropenai_ImageGeneration::ImageGeneration%load_size proc~load_imagegeneration_data->proc~load_size proc~load_url~3 foropenai_ImageGeneration::ImageGeneration%load_url proc~load_imagegeneration_data->proc~load_url~3 proc~load_user_name~2 foropenai_ImageGeneration::ImageGeneration%load_user_name proc~load_imagegeneration_data->proc~load_user_name~2 destroy destroy proc~load_n~2->destroy get get proc~load_n~2->get initialize initialize proc~load_n~2->initialize load_file load_file proc~load_n~2->load_file proc~load_response_format~2->destroy proc~load_response_format~2->get proc~load_response_format~2->initialize proc~load_response_format~2->load_file proc~load_size->destroy proc~load_size->get proc~load_size->initialize proc~load_size->load_file proc~load_url~3->destroy proc~load_url~3->get proc~load_url~3->initialize proc~load_url~3->load_file proc~load_user_name~2->destroy proc~load_user_name~2->get proc~load_user_name~2->initialize proc~load_user_name~2->load_file

Called by

proc~~set_imagegeneration_data~~CalledByGraph proc~set_imagegeneration_data foropenai_ImageGeneration::ImageGeneration%set_ImageGeneration_data program~test_imagegeneration test_ImageGeneration program~test_imagegeneration->proc~set_imagegeneration_data

Source Code

   elemental impure subroutine set_ImageGeneration_data(this, file_name, &
      url, size, prompt, response_format, n, user_name)
      class(ImageGeneration),    intent(inout) :: this
      character(len=*), optional, intent(in)    :: file_name
      character(len=*), optional, intent(in)    :: url
      character(len=*), optional, intent(in)    :: size
      character(len=*), optional, intent(in)    :: prompt
      character(len=*), optional, intent(in)    :: response_format
      integer,          optional, intent(in)    :: n
      character(len=*), optional, intent(in)    :: user_name

      if (present(url)) call this%set_url(url=url)
      if (present(size)) call this%set_size(size=size)
      if (present(prompt)) call this%set_prompt(prompt=prompt)
      if (present(response_format)) call this%set_response_format(response_format=response_format)
      if (present(n)) call this%set_n(n=n)
      if (present(user_name)) call this%set_user_name(user_name=user_name)

      if (present(file_name)) then
         call this%set_file_name(file_name)
         call this%load(file_name)
      end if
   end subroutine set_ImageGeneration_data