Cloud AI Platform v1beta1 API - Class GenerateContentResponse (1.0.0-beta04)

public sealed class GenerateContentResponse : IMessage<GenerateContentResponse>, IEquatable<GenerateContentResponse>, IDeepCloneable<GenerateContentResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class GenerateContentResponse.

Response message for [PredictionService.GenerateContent].

Inheritance

object > GenerateContentResponse

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

GenerateContentResponse()

public GenerateContentResponse()

GenerateContentResponse(GenerateContentResponse)

public GenerateContentResponse(GenerateContentResponse other)
Parameter
Name Description
other GenerateContentResponse

Properties

Candidates

public RepeatedField<Candidate> Candidates { get; }

Output only. Generated candidates.

Property Value
Type Description
RepeatedFieldCandidate

ModelVersion

public string ModelVersion { get; set; }

Output only. The model version used to generate the response.

Property Value
Type Description
string

PromptFeedback

public GenerateContentResponse.Types.PromptFeedback PromptFeedback { get; set; }

Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.

Property Value
Type Description
GenerateContentResponseTypesPromptFeedback

UsageMetadata

public GenerateContentResponse.Types.UsageMetadata UsageMetadata { get; set; }

Usage metadata about the response(s).

Property Value
Type Description
GenerateContentResponseTypesUsageMetadata