target.apidocs.com.google.api.services.firebaseml.v2beta.FirebaseML.Projects.Locations.Publishers.Models.html Maven / Gradle / Ivy
FirebaseML.Projects.Locations.Publishers.Models (Firebase ML API v2beta-rev20241217-2.0.0)
com.google.api.services.firebaseml.v2beta
Class FirebaseML.Projects.Locations.Publishers.Models
- java.lang.Object
-
- com.google.api.services.firebaseml.v2beta.FirebaseML.Projects.Locations.Publishers.Models
-
- Enclosing class:
- FirebaseML.Projects.Locations.Publishers
public class FirebaseML.Projects.Locations.Publishers.Models
extends Object
The "models" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
FirebaseML.Projects.Locations.Publishers.Models.CountTokens
class
FirebaseML.Projects.Locations.Publishers.Models.GenerateContent
class
FirebaseML.Projects.Locations.Publishers.Models.StreamGenerateContent
-
Constructor Summary
Constructors
Constructor and Description
Models()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
FirebaseML.Projects.Locations.Publishers.Models.CountTokens
countTokens(String endpoint,
GoogleCloudAiplatformV1beta1CountTokensRequest content)
Perform a token counting.
FirebaseML.Projects.Locations.Publishers.Models.GenerateContent
generateContent(String model,
GoogleCloudAiplatformV1beta1GenerateContentRequest content)
Generate content with multimodal inputs.
FirebaseML.Projects.Locations.Publishers.Models.StreamGenerateContent
streamGenerateContent(String model,
GoogleCloudAiplatformV1beta1GenerateContentRequest content)
Generate content with multimodal inputs with streaming support.
-
-
Method Detail
-
countTokens
public FirebaseML.Projects.Locations.Publishers.Models.CountTokens countTokens(String endpoint,
GoogleCloudAiplatformV1beta1CountTokensRequest content)
throws IOException
Perform a token counting.
Create a request for the method "models.countTokens".
This request holds the parameters needed by the firebaseml server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
endpoint
- Required. The name of the Endpoint requested to perform token counting. Format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`
content
- the GoogleCloudAiplatformV1beta1CountTokensRequest
- Returns:
- the request
- Throws:
IOException
-
generateContent
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent generateContent(String model,
GoogleCloudAiplatformV1beta1GenerateContentRequest content)
throws IOException
Generate content with multimodal inputs.
Create a request for the method "models.generateContent".
This request holds the parameters needed by the firebaseml server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
model
- Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher
model format: `projects/{project}/locations/{location}/publishers/models` Tuned model
endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
content
- the GoogleCloudAiplatformV1beta1GenerateContentRequest
- Returns:
- the request
- Throws:
IOException
-
streamGenerateContent
public FirebaseML.Projects.Locations.Publishers.Models.StreamGenerateContent streamGenerateContent(String model,
GoogleCloudAiplatformV1beta1GenerateContentRequest content)
throws IOException
Generate content with multimodal inputs with streaming support.
Create a request for the method "models.streamGenerateContent".
This request holds the parameters needed by the firebaseml server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
model
- Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher
model format: `projects/{project}/locations/{location}/publishers/models` Tuned model
endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
content
- the GoogleCloudAiplatformV1beta1GenerateContentRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy