Skip to content

Instantly share code, notes, and snippets.

View devoncarew's full-sized avatar

Devon Carew devoncarew

View GitHub Profile
@devoncarew
devoncarew / generativelanguage.dart
Created May 28, 2025 01:36
generativelanguage API generated from the protos
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@devoncarew
devoncarew / generativelanguage.dart
Created May 28, 2025 01:29
generativelanguage API generated from the discovery docs
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This is a generated file - do not edit.
import 'dart:typed_data';
import 'package:google_api_base/base.dart';
import 'package:google_api_base/src/encoding.dart';
// Copyright 2024 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
import 'package:url_launcher/link.dart';
void main() {

Google API client for the Cloud Functions API.

Manages lightweight user-provided functions executed in response to events.

For additional documentation, see https://cloud.google.com/functions.

Getting started

To get started, create an instance of CloudFunctions:

google.iam.credentials.v1.iamcredentials
State count 4
SubstitutionsEntry count 3
google.firestore.v1
Operator count 3
FieldsEntry count 2
LabelsEntry count 3
google.iam.v3.iam
AnnotationsEntry count 2
google.cloud.tpu.v2.tpu

Supported MIME types

MIME type Default ext Additional exts
application/andrew-inset ez
application/applixware aw
application/atom+xml atom
import 'dart:core' hide Duration;
import 'dart:core' as core show Duration;
void main() {
final howLong = core.Duration(seconds: 1);
for (var i = 0; i < 10; i++) {
print('hello ${i + 1}; $howLong');
}
}
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// Generated from google/protobuf/descriptor.proto.
//
// Package 'google.protobuf'.
// ignore_for_file: constant_identifier_names
import 'dart:typed_data';
import 'package:fixnum/fixnum.dart';
import 'package:protolino/protolino.dart';
//
// Generated code. Do not modify.
// source: descriptor.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import