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 v1beta3 discuss_service.pb.ex
Raw

lib/google/ai/generativelanguage/v1beta3/discuss_service.pb.ex

defmodule Google.Ai.Generativelanguage.V1beta3.GenerateMessageRequest do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.GenerateMessageRequest",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :model, 1, type: :string, deprecated: false
field :prompt, 2, type: Google.Ai.Generativelanguage.V1beta3.MessagePrompt, deprecated: false
field :temperature, 3, proto3_optional: true, type: :float, deprecated: false
field :candidate_count, 4,
proto3_optional: true,
type: :int32,
json_name: "candidateCount",
deprecated: false
field :top_p, 5, proto3_optional: true, type: :float, json_name: "topP", deprecated: false
field :top_k, 6, proto3_optional: true, type: :int32, json_name: "topK", deprecated: false
end
defmodule Google.Ai.Generativelanguage.V1beta3.GenerateMessageResponse do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.GenerateMessageResponse",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :candidates, 1, repeated: true, type: Google.Ai.Generativelanguage.V1beta3.Message
field :messages, 2, repeated: true, type: Google.Ai.Generativelanguage.V1beta3.Message
field :filters, 3, repeated: true, type: Google.Ai.Generativelanguage.V1beta3.ContentFilter
end
defmodule Google.Ai.Generativelanguage.V1beta3.Message do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.Message",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :author, 1, type: :string, deprecated: false
field :content, 2, type: :string, deprecated: false
field :citation_metadata, 3,
proto3_optional: true,
type: Google.Ai.Generativelanguage.V1beta3.CitationMetadata,
json_name: "citationMetadata",
deprecated: false
end
defmodule Google.Ai.Generativelanguage.V1beta3.MessagePrompt do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.MessagePrompt",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :context, 1, type: :string, deprecated: false
field :examples, 2,
repeated: true,
type: Google.Ai.Generativelanguage.V1beta3.Example,
deprecated: false
field :messages, 3,
repeated: true,
type: Google.Ai.Generativelanguage.V1beta3.Message,
deprecated: false
end
defmodule Google.Ai.Generativelanguage.V1beta3.Example do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.Example",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :input, 1, type: Google.Ai.Generativelanguage.V1beta3.Message, deprecated: false
field :output, 2, type: Google.Ai.Generativelanguage.V1beta3.Message, deprecated: false
end
defmodule Google.Ai.Generativelanguage.V1beta3.CountMessageTokensRequest do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.CountMessageTokensRequest",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :model, 1, type: :string, deprecated: false
field :prompt, 2, type: Google.Ai.Generativelanguage.V1beta3.MessagePrompt, deprecated: false
end
defmodule Google.Ai.Generativelanguage.V1beta3.CountMessageTokensResponse do
@moduledoc false
use Protobuf,
full_name: "google.ai.generativelanguage.v1beta3.CountMessageTokensResponse",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field :token_count, 1, type: :int32, json_name: "tokenCount"
end
defmodule Google.Ai.Generativelanguage.V1beta3.DiscussService.Service do
@moduledoc false
use GRPC.Service,
name: "google.ai.generativelanguage.v1beta3.DiscussService",
protoc_gen_elixir_version: "0.17.0"
rpc :GenerateMessage,
Google.Ai.Generativelanguage.V1beta3.GenerateMessageRequest,
Google.Ai.Generativelanguage.V1beta3.GenerateMessageResponse
rpc :CountMessageTokens,
Google.Ai.Generativelanguage.V1beta3.CountMessageTokensRequest,
Google.Ai.Generativelanguage.V1beta3.CountMessageTokensResponse
end
defmodule Google.Ai.Generativelanguage.V1beta3.DiscussService.Stub do
@moduledoc false
use GRPC.Stub, service: Google.Ai.Generativelanguage.V1beta3.DiscussService.Service
end