Packages

Google API protobufs for Elixir/gRPC: Datastore, Bigtable, Pub/Sub, Storage, KMS, Tasks, Secret Manager, BigQuery, IAM, Logging, Long-Running Operations and AI Generative Language

Current section

Files

Jump to
googleapis_proto_ex lib google ai generativelanguage v1alpha prediction_service.pb.ex
Raw

lib/google/ai/generativelanguage/v1alpha/prediction_service.pb.ex

defmodule Google.Ai.Generativelanguage.V1alpha.PredictRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
field(:model, 1, type: :string, deprecated: false)
field(:instances, 2, repeated: true, type: Google.Protobuf.Value, deprecated: false)
field(:parameters, 3, type: Google.Protobuf.Value, deprecated: false)
end
defmodule Google.Ai.Generativelanguage.V1alpha.PredictResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
field(:predictions, 1, repeated: true, type: Google.Protobuf.Value)
end
defmodule Google.Ai.Generativelanguage.V1alpha.PredictionService.Service do
@moduledoc false
use GRPC.Service,
name: "google.ai.generativelanguage.v1alpha.PredictionService",
protoc_gen_elixir_version: "0.15.0"
rpc(
:Predict,
Google.Ai.Generativelanguage.V1alpha.PredictRequest,
Google.Ai.Generativelanguage.V1alpha.PredictResponse
)
end
defmodule Google.Ai.Generativelanguage.V1alpha.PredictionService.Stub do
@moduledoc false
use GRPC.Stub, service: Google.Ai.Generativelanguage.V1alpha.PredictionService.Service
end