Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.PublishersResource.ModelsResource

The "models" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.PublishersResource.ModelsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.CountTokensRequest

Export(GoogleCloudAiplatformV1beta1ExportPublisherModelRequest, string, string)

Exports a publisher model to a user provided Google Cloud Storage bucket.

Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ExportRequest Export(GoogleCloudAiplatformV1beta1ExportPublisherModelRequest body, string parent, string name)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1ExportPublisherModelRequest body

The body of the request.

string parent

Required. The Location to export the model weights from Format: projects/{project}/locations/{location}

string name

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}@{version_id}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ExportRequest

FetchPredictOperation(GoogleCloudAiplatformV1beta1FetchPredictOperationRequest, string)

Fetch an asynchronous online prediction operation.

Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.FetchPredictOperationRequest FetchPredictOperation(GoogleCloudAiplatformV1beta1FetchPredictOperationRequest body, string endpoint)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1FetchPredictOperationRequest body

The body of the request.

string endpoint

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint} or projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.FetchPredictOperationRequest

FetchPublisherModelConfig(string)

Fetches the configs of publisher models.

Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.FetchPublisherModelConfigRequest FetchPublisherModelConfig(string name)
Parameters
Type Name Description
string name

Required. The name of the publisher model, in the format of projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.FetchPublisherModelConfigRequest

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: projects/{project}/locations/{location}/publishers/*/models/* Tuned model endpoint format: projects/{project}/locations/{location}/endpoints/{endpoint}

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: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictRequest

PredictLongRunning(GoogleCloudAiplatformV1beta1PredictLongRunningRequest, string)

Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictLongRunningRequest PredictLongRunning(GoogleCloudAiplatformV1beta1PredictLongRunningRequest body, string endpoint)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1PredictLongRunningRequest body

The body of the request.

string endpoint

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint} or projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictLongRunningRequest

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: projects/{project}/locations/{location}/endpoints/{endpoint}

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: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ServerStreamingPredictRequest

SetPublisherModelConfig(GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest, string)

Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config.

Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.SetPublisherModelConfigRequest SetPublisherModelConfig(GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest body, string name)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest body

The body of the request.

string name

Required. The name of the publisher model, in the format of projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.SetPublisherModelConfigRequest

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: projects/{project}/locations/{location}/publishers/*/models/* Tuned model endpoint format: projects/{project}/locations/{location}/endpoints/{endpoint}

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: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamRawPredictRequest
In this article
Back to top Generated by DocFX