Class ProjectsResource.LocationsResource.PublishersResource.ModelsResource
The "models" collection of methods.
Inherited Members
Namespace: Google.Apis.Aiplatform.v1beta1
Assembly: Google.Apis.Aiplatform.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.PublishersResource.ModelsResource
Constructors
ModelsResource(IClientService)
Constructs a new resource.
Declaration
public ModelsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
ComputeTokens(GoogleCloudAiplatformV1beta1ComputeTokensRequest, string)
Return a list of tokens based on the input text.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest ComputeTokens(GoogleCloudAiplatformV1beta1ComputeTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1ComputeTokensRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to get lists of tokens and token ids. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest |
CountTokens(GoogleCloudAiplatformV1beta1CountTokensRequest, string)
Perform a token counting.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.CountTokensRequest CountTokens(GoogleCloudAiplatformV1beta1CountTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1CountTokensRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to perform token counting. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.CountTokensRequest |
GenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest, string)
Generate content with multimodal inputs.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.GenerateContentRequest GenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest body, string model)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1GenerateContentRequest | body | The body of the request. |
string | model | Required. The fully qualified name of the publisher model or tuned model endpoint to use.
Publisher model format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.GenerateContentRequest |
GetIamPolicy(string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type | Name | Description |
---|---|---|
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.GetIamPolicyRequest |
Predict(GoogleCloudAiplatformV1beta1PredictRequest, string)
Perform an online prediction.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictRequest Predict(GoogleCloudAiplatformV1beta1PredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1PredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictRequest |
RawPredict(GoogleCloudAiplatformV1beta1RawPredictRequest, string)
Perform an online prediction with an arbitrary HTTP payload. The response includes the following
HTTP headers: * X-Vertex-AI-Endpoint-Id
: ID of the Endpoint that served this prediction. *
X-Vertex-AI-Deployed-Model-Id
: ID of the Endpoint's DeployedModel that served this prediction.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.RawPredictRequest RawPredict(GoogleCloudAiplatformV1beta1RawPredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1RawPredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.RawPredictRequest |
ServerStreamingPredict(GoogleCloudAiplatformV1beta1StreamingPredictRequest, string)
Perform a server-side streaming online prediction request for Vertex LLM streaming.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ServerStreamingPredictRequest ServerStreamingPredict(GoogleCloudAiplatformV1beta1StreamingPredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1StreamingPredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ServerStreamingPredictRequest |
StreamGenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest, string)
Generate content with multimodal inputs with streaming support.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamGenerateContentRequest StreamGenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest body, string model)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1GenerateContentRequest | body | The body of the request. |
string | model | Required. The fully qualified name of the publisher model or tuned model endpoint to use.
Publisher model format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamGenerateContentRequest |
StreamRawPredict(GoogleCloudAiplatformV1beta1StreamRawPredictRequest, string)
Perform a streaming online prediction with an arbitrary HTTP payload.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamRawPredictRequest StreamRawPredict(GoogleCloudAiplatformV1beta1StreamRawPredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1StreamRawPredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamRawPredictRequest |