code: public static GetStatusPOptions toGetStatusOptions(ExistsPOptions existsOptions) {
      GetStatusPOptions.Builder getStatusOptionsBuilder = GetStatusPOptions.newBuilder();
      if (existsOptions.hasCommonOptions()) {
        getStatusOptionsBuilder.setCommonOptions(existsOptions.getCommonOptions());
      }
      if (existsOptions.hasLoadMetadataType()) {
        getStatusOptionsBuilder.setLoadMetadataType(existsOptions.getLoadMetadataType());
      }
      return getStatusOptionsBuilder.build();
    }
docs: Converts from proto type to options.
  
  @param existsOptions the proto options to convert
  @return the converted proto options