publicstaticfinalclass GenerateContentResponse.PromptFeedback.BuilderextendsGeneratedMessageV3.Builder<GenerateContentResponse.PromptFeedback.Builder>implementsGenerateContentResponse.PromptFeedbackOrBuilder
Content filter results for a prompt sent in the request.
Protobuf type google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addAllSafetyRatings(Iterable<? extends SafetyRating> values)
publicGenerateContentResponse.PromptFeedback.BuilderaddAllSafetyRatings(Iterable<?extendsSafetyRating>values)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.SafetyRating>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicGenerateContentResponse.PromptFeedback.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
addSafetyRatings(SafetyRating value)
publicGenerateContentResponse.PromptFeedback.BuilderaddSafetyRatings(SafetyRatingvalue)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatings(SafetyRating.Builder builderForValue)
publicGenerateContentResponse.PromptFeedback.BuilderaddSafetyRatings(SafetyRating.BuilderbuilderForValue)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatings(int index, SafetyRating value)
publicGenerateContentResponse.PromptFeedback.BuilderaddSafetyRatings(intindex,SafetyRatingvalue)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatings(int index, SafetyRating.Builder builderForValue)
publicGenerateContentResponse.PromptFeedback.BuilderaddSafetyRatings(intindex,SafetyRating.BuilderbuilderForValue)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatingsBuilder()
publicSafetyRating.BuilderaddSafetyRatingsBuilder()
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatingsBuilder(int index)
publicSafetyRating.BuilderaddSafetyRatingsBuilder(intindex)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
build()
publicGenerateContentResponse.PromptFeedbackbuild()
buildPartial()
publicGenerateContentResponse.PromptFeedbackbuildPartial()
clear()
publicGenerateContentResponse.PromptFeedback.Builderclear()
Overrides
clearBlockReason()
publicGenerateContentResponse.PromptFeedback.BuilderclearBlockReason()
Output only. Blocked reason.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearBlockReasonMessage()
publicGenerateContentResponse.PromptFeedback.BuilderclearBlockReasonMessage()
Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
publicGenerateContentResponse.PromptFeedback.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
publicGenerateContentResponse.PromptFeedback.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clearSafetyRatings()
publicGenerateContentResponse.PromptFeedback.BuilderclearSafetyRatings()
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
publicGenerateContentResponse.PromptFeedback.Builderclone()
Overrides
getBlockReason()
publicGenerateContentResponse.PromptFeedback.BlockedReasongetBlockReason()
Output only. Blocked reason.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBlockReasonMessage()
publicStringgetBlockReasonMessage()
Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The blockReasonMessage.
|
getBlockReasonMessageBytes()
publicByteStringgetBlockReasonMessageBytes()
Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for blockReasonMessage.
|
getBlockReasonValue()
publicintgetBlockReasonValue()
Output only. Blocked reason.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for blockReason.
|
getDefaultInstanceForType()
publicGenerateContentResponse.PromptFeedbackgetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getSafetyRatings(int index)
publicSafetyRatinggetSafetyRatings(intindex)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSafetyRatingsBuilder(int index)
publicSafetyRating.BuildergetSafetyRatingsBuilder(intindex)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSafetyRatingsBuilderList()
publicList<SafetyRating.Builder>getSafetyRatingsBuilderList()
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSafetyRatingsCount()
publicintgetSafetyRatingsCount()
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
getSafetyRatingsList()
publicList<SafetyRating>getSafetyRatingsList()
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSafetyRatingsOrBuilder(int index)
publicSafetyRatingOrBuildergetSafetyRatingsOrBuilder(intindex)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSafetyRatingsOrBuilderList()
publicList<?extendsSafetyRatingOrBuilder>getSafetyRatingsOrBuilderList()
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.vertexai.api.SafetyRatingOrBuilder> |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(GenerateContentResponse.PromptFeedback other)
publicGenerateContentResponse.PromptFeedback.BuildermergeFrom(GenerateContentResponse.PromptFeedbackother)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicGenerateContentResponse.PromptFeedback.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicGenerateContentResponse.PromptFeedback.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalGenerateContentResponse.PromptFeedback.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
removeSafetyRatings(int index)
publicGenerateContentResponse.PromptFeedback.BuilderremoveSafetyRatings(intindex)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
setBlockReason(GenerateContentResponse.PromptFeedback.BlockedReason value)
publicGenerateContentResponse.PromptFeedback.BuildersetBlockReason(GenerateContentResponse.PromptFeedback.BlockedReasonvalue)
Output only. Blocked reason.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setBlockReasonMessage(String value)
publicGenerateContentResponse.PromptFeedback.BuildersetBlockReasonMessage(Stringvalue)
Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
value |
String
The blockReasonMessage to set.
|
setBlockReasonMessageBytes(ByteString value)
publicGenerateContentResponse.PromptFeedback.BuildersetBlockReasonMessageBytes(ByteStringvalue)
Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for blockReasonMessage to set.
|
setBlockReasonValue(int value)
publicGenerateContentResponse.PromptFeedback.BuildersetBlockReasonValue(intvalue)
Output only. Blocked reason.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
value |
int
The enum numeric value on the wire for blockReason to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
publicGenerateContentResponse.PromptFeedback.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicGenerateContentResponse.PromptFeedback.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setSafetyRatings(int index, SafetyRating value)
publicGenerateContentResponse.PromptFeedback.BuildersetSafetyRatings(intindex,SafetyRatingvalue)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
setSafetyRatings(int index, SafetyRating.Builder builderForValue)
publicGenerateContentResponse.PromptFeedback.BuildersetSafetyRatings(intindex,SafetyRating.BuilderbuilderForValue)
Output only. Safety ratings.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalGenerateContentResponse.PromptFeedback.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides