public static final class GenerateContentResponse.PromptFeedback extends GeneratedMessageV3 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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Campi statici
BLOCK_REASON_FIELD_NUMBER
public static final int BLOCK_REASON_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
BLOCK_REASON_MESSAGE_FIELD_NUMBER
public static final int BLOCK_REASON_MESSAGE_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
SAFETY_RATINGS_FIELD_NUMBER
public static final int SAFETY_RATINGS_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
Metodi statici
getDefaultInstance()
public static GenerateContentResponse.PromptFeedback getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static GenerateContentResponse.PromptFeedback.Builder newBuilder()
newBuilder(GenerateContentResponse.PromptFeedback prototype)
public static GenerateContentResponse.PromptFeedback.Builder newBuilder(GenerateContentResponse.PromptFeedback prototype)
parseDelimitedFrom(InputStream input)
public static GenerateContentResponse.PromptFeedback parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateContentResponse.PromptFeedback parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static GenerateContentResponse.PromptFeedback parseFrom(byte[] data)
Parametro |
Nome |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GenerateContentResponse.PromptFeedback parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static GenerateContentResponse.PromptFeedback parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GenerateContentResponse.PromptFeedback parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static GenerateContentResponse.PromptFeedback parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateContentResponse.PromptFeedback parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static GenerateContentResponse.PromptFeedback parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateContentResponse.PromptFeedback parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static GenerateContentResponse.PromptFeedback parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GenerateContentResponse.PromptFeedback parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<GenerateContentResponse.PromptFeedback> parser()
Metodi
è uguale a(obj oggetto)
public boolean equals(Object obj)
Parametro |
Nome |
Description |
obj |
Object
|
Restituisce |
Tipo |
Description |
boolean |
|
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()
getParserForType()
public Parser<GenerateContentResponse.PromptFeedback> getParserForType()
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
|
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> |
|
getSerializedSize()
public int getSerializedSize()
Restituisce |
Tipo |
Description |
int |
|
Sostituzioni
hashCode()
Restituisce |
Tipo |
Description |
int |
|
Sostituzioni
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Sostituzioni
isInitialized()
public final boolean isInitialized()
Restituisce |
Tipo |
Description |
boolean |
|
Sostituzioni
newBuilderForType()
public GenerateContentResponse.PromptFeedback.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GenerateContentResponse.PromptFeedback.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Sostituzioni
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Restituisce |
Tipo |
Description |
Object |
|
Sostituzioni
toBuilder()
public GenerateContentResponse.PromptFeedback.Builder toBuilder()
writeTo(output di CodedOutputStream)
public void writeTo(CodedOutputStream output)
Sostituzioni