public static final class GenerateContentResponse.PromptFeedback.Builder extends GeneratedMessageV3.Builder<GenerateContentResponse.PromptFeedback.Builder> implements GenerateContentResponse.PromptFeedbackOrBuilder
Risultati del filtro dei contenuti per un prompt inviato nella richiesta.
Tipo di protobuf google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback
Membri ereditati
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)
Metodi statici
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Metodi
addAllSafetyRatings(Iterable<? extends SafetyRating> values)
public GenerateContentResponse.PromptFeedback.Builder addAllSafetyRatings(Iterable<? extends SafetyRating> values)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.SafetyRating>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateContentResponse.PromptFeedback.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Sostituzioni
addSafetyRatings(SafetyRating value)
public GenerateContentResponse.PromptFeedback.Builder addSafetyRatings(SafetyRating value)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatings(SafetyRating.Builder builderForValue)
public GenerateContentResponse.PromptFeedback.Builder addSafetyRatings(SafetyRating.Builder builderForValue)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatings(int index, SafetyRating value)
public GenerateContentResponse.PromptFeedback.Builder addSafetyRatings(int index, SafetyRating value)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatings(int index, SafetyRating.Builder builderForValue)
public GenerateContentResponse.PromptFeedback.Builder addSafetyRatings(int index, SafetyRating.Builder builderForValue)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatingsBuilder()
public SafetyRating.Builder addSafetyRatingsBuilder()
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addSafetyRatingsBuilder(int index)
public SafetyRating.Builder addSafetyRatingsBuilder(int index)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
index |
int
|
build()
public GenerateContentResponse.PromptFeedback build()
buildPartial()
public GenerateContentResponse.PromptFeedback buildPartial()
Clear()
public GenerateContentResponse.PromptFeedback.Builder clear()
Sostituzioni
clearBlockReason()
public GenerateContentResponse.PromptFeedback.Builder clearBlockReason()
Solo output. Motivo del blocco.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearBlockReasonMessage()
public GenerateContentResponse.PromptFeedback.Builder clearBlockReasonMessage()
Solo output. Un messaggio leggibile con il motivo del blocco.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
public GenerateContentResponse.PromptFeedback.Builder clearField(Descriptors.FieldDescriptor field)
Sostituzioni
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateContentResponse.PromptFeedback.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Sostituzioni
clearSafetyRatings()
public GenerateContentResponse.PromptFeedback.Builder clearSafetyRatings()
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public GenerateContentResponse.PromptFeedback.Builder clone()
Sostituzioni
getBlockReason()
public GenerateContentResponse.PromptFeedback.BlockedReason getBlockReason()
Solo output. Motivo del blocco.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBlockReasonMessage()
public String getBlockReasonMessage()
Solo output. Un messaggio leggibile con il motivo del blocco.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
String |
Il messaggio blockReasonMessage.
|
getBlockReasonMessageBytes()
public ByteString getBlockReasonMessageBytes()
Solo output. Un messaggio leggibile con il motivo del blocco.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
ByteString |
I byte di blockReasonMessage.
|
getBlockReasonValue()
public int getBlockReasonValue()
Solo output. Motivo del blocco.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
int |
Il valore numerico enum sul cavo per blockReason.
|
getDefaultInstanceForType()
public GenerateContentResponse.PromptFeedback getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Sostituzioni
getSafetyRatings(int index)
public SafetyRating getSafetyRatings(int index)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
index |
int
|
getSafetyRatingsBuilder(int index)
public SafetyRating.Builder getSafetyRatingsBuilder(int index)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
index |
int
|
getSafetyRatingsBuilderList()
public List<SafetyRating.Builder> getSafetyRatingsBuilderList()
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSafetyRatingsCount()
public int getSafetyRatingsCount()
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
int |
|
getSafetyRatingsList()
public List<SafetyRating> getSafetyRatingsList()
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSafetyRatingsOrBuilder(int index)
public SafetyRatingOrBuilder getSafetyRatingsOrBuilder(int index)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
index |
int
|
getSafetyRatingsOrBuilderList()
public List<? extends SafetyRatingOrBuilder> getSafetyRatingsOrBuilderList()
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
List<? extends com.google.cloud.vertexai.api.SafetyRatingOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Sostituzioni
isInitialized()
public final boolean isInitialized()
Restituisce |
Tipo |
Description |
boolean |
|
Sostituzioni
mergeFrom(GenerateContentResponse.PromptFeedback other)
public GenerateContentResponse.PromptFeedback.Builder mergeFrom(GenerateContentResponse.PromptFeedback other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateContentResponse.PromptFeedback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Sostituzioni
mergeFrom(Message other)
public GenerateContentResponse.PromptFeedback.Builder mergeFrom(Message other)
Parametro |
Nome |
Description |
other |
Message
|
Sostituzioni
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateContentResponse.PromptFeedback.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Sostituzioni
removeSafetyRatings(int index)
public GenerateContentResponse.PromptFeedback.Builder removeSafetyRatings(int index)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
index |
int
|
setBlockReason(GenerateContentResponse.PromptFeedback.BlockedReason value)
public GenerateContentResponse.PromptFeedback.Builder setBlockReason(GenerateContentResponse.PromptFeedback.BlockedReason value)
Solo output. Motivo del blocco.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setBlockReasonMessage(String value)
public GenerateContentResponse.PromptFeedback.Builder setBlockReasonMessage(String value)
Solo output. Un messaggio leggibile con il motivo del blocco.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
value |
String
Il parametro blockReasonMessage da impostare.
|
setBlockReasonMessageBytes(ByteString value)
public GenerateContentResponse.PromptFeedback.Builder setBlockReasonMessageBytes(ByteString value)
Solo output. Un messaggio leggibile con il motivo del blocco.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
value |
ByteString
I byte per blockReasonMessage da impostare.
|
setBlockReasonValue(int value)
public GenerateContentResponse.PromptFeedback.Builder setBlockReasonValue(int value)
Solo output. Motivo del blocco.
.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parametro |
Nome |
Description |
value |
int
Il valore numerico enum sul cavo da impostare per blockReason.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateContentResponse.PromptFeedback.Builder setField(Descriptors.FieldDescriptor field, Object value)
Sostituzioni
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateContentResponse.PromptFeedback.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Sostituzioni
setSafetyRatings(int index, SafetyRating value)
public GenerateContentResponse.PromptFeedback.Builder setSafetyRatings(int index, SafetyRating value)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
setSafetyRatings(int index, SafetyRating.Builder builderForValue)
public GenerateContentResponse.PromptFeedback.Builder setSafetyRatings(int index, SafetyRating.Builder builderForValue)
Solo output. Valutazioni della sicurezza.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateContentResponse.PromptFeedback.Builder setUnknownFields(UnknownFieldSet unknownFields)
Sostituzioni