Cloud AI Platform v1 API - Class GenerateContentResponse (2.24.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
NameDescription
otherGenerateContentResponse

Properties

Candidates

public RepeatedField<Candidate> Candidates { get; }

Output only. Generated candidates.

Property Value
TypeDescription
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
TypeDescription
GenerateContentResponseTypesPromptFeedback

UsageMetadata

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

Usage metadata about the response(s).

Property Value
TypeDescription
GenerateContentResponseTypesUsageMetadata