public final class SafetyRating extends GeneratedMessageV3 implements SafetyRatingOrBuilder
Valutazione di sicurezza corrispondente ai contenuti generati.
Tipo di protobuf google.cloud.vertexai.v1.SafetyRating
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
BLOCKED_FIELD_NUMBER
public static final int BLOCKED_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
PROBABILITY_FIELD_NUMBER
public static final int PROBABILITY_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
Metodi statici
getDefaultInstance()
public static SafetyRating getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SafetyRating.Builder newBuilder()
newBuilder(SafetyRating prototype)
public static SafetyRating.Builder newBuilder(SafetyRating prototype)
public static SafetyRating parseDelimitedFrom(InputStream input)
public static SafetyRating parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SafetyRating parseFrom(byte[] data)
Parametro |
Nome |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SafetyRating parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SafetyRating parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SafetyRating parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SafetyRating parseFrom(CodedInputStream input)
public static SafetyRating parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SafetyRating parseFrom(InputStream input)
public static SafetyRating parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SafetyRating parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SafetyRating parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SafetyRating> parser()
Metodi
è uguale a(obj oggetto)
public boolean equals(Object obj)
Parametro |
Nome |
Description |
obj |
Object
|
Restituisce |
Tipo |
Description |
boolean |
|
Sostituzioni
getBlocked()
public boolean getBlocked()
Solo output. Indica se i contenuti sono stati esclusi a causa di questa classificazione.
bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
boolean |
Bloccato.
|
getCategory()
public HarmCategory getCategory()
Solo output. Categoria danno.
.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCategoryValue()
public int getCategoryValue()
Solo output. Categoria danno.
.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
int |
Il valore numerico enum sul cavo per la categoria.
|
getDefaultInstanceForType()
public SafetyRating getDefaultInstanceForType()
getParserForType()
public Parser<SafetyRating> getParserForType()
Sostituzioni
getProbability()
public SafetyRating.HarmProbability getProbability()
Solo output. Livelli di probabilità di danno nei contenuti.
.google.cloud.vertexai.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getProbabilityValue()
public int getProbabilityValue()
Solo output. Livelli di probabilità di danno nei contenuti.
.google.cloud.vertexai.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Restituisce |
Tipo |
Description |
int |
Il valore numerico enum sul filo per la probabilità.
|
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 SafetyRating.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SafetyRating.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Sostituzioni
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Restituisce |
Tipo |
Description |
Object |
|
Sostituzioni
toBuilder()
public SafetyRating.Builder toBuilder()
writeTo(output di CodedOutputStream)
public void writeTo(CodedOutputStream output)
Sostituzioni