Class ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest
Return a list of tokens based on the input text.
Inheritance
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest
Implements
Inherited Members
Namespace: Google.Apis.Aiplatform.v1
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest : AiplatformBaseServiceRequest<GoogleCloudAiplatformV1ComputeTokensResponse>, IClientServiceRequest<GoogleCloudAiplatformV1ComputeTokensResponse>, IClientServiceRequest
Constructors
ComputeTokensRequest(IClientService, GoogleCloudAiplatformV1ComputeTokensRequest, string)
Constructs a new ComputeTokens request.
Declaration
public ComputeTokensRequest(IClientService service, GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudAiplatformV1ComputeTokensRequest | body | |
string | endpoint |
Properties
Endpoint
Required. The name of the Endpoint requested to get lists of tokens and token ids.
Declaration
[RequestParameter("endpoint", RequestParameterType.Path)]
public virtual string Endpoint { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes ComputeTokens parameter list.
Declaration
protected override void InitParameters()