Cloud AI Platform v1 API - Class GenerateContentResponse (3.2.0)

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

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

Response message for [PredictionService.GenerateContent].

Inheritance

object > GenerateContentResponse

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.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

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