public sealed class EmbedContentRequest : IMessage<EmbedContentRequest>, IEquatable<EmbedContentRequest>, IDeepCloneable<EmbedContentRequest>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1 API class EmbedContentRequest.
Request message for [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].
Implements
IMessageEmbedContentRequest, IEquatableEmbedContentRequest, IDeepCloneableEmbedContentRequest, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Constructors
EmbedContentRequest()
public EmbedContentRequest()EmbedContentRequest(EmbedContentRequest)
public EmbedContentRequest(EmbedContentRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
EmbedContentRequest |
Properties
AutoTruncate
[Obsolete]
public bool AutoTruncate { get; set; }Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. Whether to silently truncate the input content if it's longer than the maximum sequence length.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Content
public Content Content { get; set; }Required. Input content to be embedded.
| Property Value | |
|---|---|
| Type | Description |
Content |
|
EmbedContentConfig
public EmbedContentRequest.Types.EmbedContentConfig EmbedContentConfig { get; set; }Optional. Configuration for the EmbedContent request.
| Property Value | |
|---|---|
| Type | Description |
EmbedContentRequestTypesEmbedContentConfig |
|
HasAutoTruncate
[Obsolete]
public bool HasAutoTruncate { get; }Gets whether the "auto_truncate" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasModel
public bool HasModel { get; }Gets whether the "model" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasOutputDimensionality
[Obsolete]
public bool HasOutputDimensionality { get; }Gets whether the "output_dimensionality" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTaskType
[Obsolete]
public bool HasTaskType { get; }Gets whether the "task_type" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTitle
[Obsolete]
public bool HasTitle { get; }Gets whether the "title" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Model
public string Model { get; set; }Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
| Property Value | |
|---|---|
| Type | Description |
string |
|
ModelAsEndpointName
public EndpointName ModelAsEndpointName { get; set; }EndpointName-typed view over the Model resource name property.
| Property Value | |
|---|---|
| Type | Description |
EndpointName |
|
OutputDimensionality
[Obsolete]
public int OutputDimensionality { get; set; }Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
| Property Value | |
|---|---|
| Type | Description |
int |
|
TaskType
[Obsolete]
public EmbedContentRequest.Types.EmbeddingTaskType TaskType { get; set; }Optional. Deprecated: Please use EmbedContentConfig.task_type instead. The task type of the embedding.
| Property Value | |
|---|---|
| Type | Description |
EmbedContentRequestTypesEmbeddingTaskType |
|
Title
[Obsolete]
public string Title { get; set; }Optional. Deprecated: Please use EmbedContentConfig.title instead. The title for the text.
| Property Value | |
|---|---|
| Type | Description |
string |
|