title: Google Cloud Compute - MetaData is not set for VM-Instance
body: <p>My code is setting the following MetaData for the instance. The Request is processed properly but the MetaData is not showing up in the Cloud Console. I tried a number of variations to set the MetaData.
  Is there a way to see the requests I made to the API in the Google Cloud Console?
  Do you have any suggestions on setting the metadata object better or even functional?</p>
  <pre><code>        Instance instance = new Instance();
      log.debug(gsi.getInstanceId()+&quot; is being created&quot;);
      instance.setName(gsi.getInstanceId());
      instance.setMachineType(MACHINE_TYPE);
      Metadata metaData = new Metadata();
      metaData = metaData.set(&quot;gslt&quot;,gsi.getGameServerLoginToken());
      metaData = metaData.set(&quot;rcon&quot;,gsi.getRcon());
      instance.setMetadata(metaData);
      try {
          Compute.Instances.Insert insert = compute
                  .instances()
                  .insert(PROJECT_ID,REGION,instance)
                  .setSourceInstanceTemplate(INSTANCE_TEMPLATE)
                  .setZone(REGION)
                  .setProject(PROJECT_ID);
          Operation op = insert.execute();
  
          var context = this;
          Thread thread = new Thread(() -&gt; {
              try {
                  blockUntilComplete(compute,op,300*1000);
                  instanceEventPublisher.publishInstanceCreatedEvent(context, instance.getName());
              } catch (Exception e) {
                  e.printStackTrace();
              }
          });
          thread.start();
      } catch (IOException e) {
          e.printStackTrace();
      } catch (Exception e) {
          e.printStackTrace();
          e.getLocalizedMessage();
      }
  </code></pre>
  <p>I will send additional information if needed.</p>