public static final class Guardrail.CodeCallback extends GeneratedMessage implements Guardrail.CodeCallbackOrBuilder
Guardrail that blocks the conversation based on the code callbacks
provided.
Protobuf type google.cloud.ces.v1.Guardrail.CodeCallback
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AFTER_AGENT_CALLBACK_FIELD_NUMBER
public static final int AFTER_AGENT_CALLBACK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AFTER_MODEL_CALLBACK_FIELD_NUMBER
public static final int AFTER_MODEL_CALLBACK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BEFORE_AGENT_CALLBACK_FIELD_NUMBER
public static final int BEFORE_AGENT_CALLBACK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BEFORE_MODEL_CALLBACK_FIELD_NUMBER
public static final int BEFORE_MODEL_CALLBACK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Guardrail.CodeCallback getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Guardrail.CodeCallback.Builder newBuilder()
newBuilder(Guardrail.CodeCallback prototype)
public static Guardrail.CodeCallback.Builder newBuilder(Guardrail.CodeCallback prototype)
public static Guardrail.CodeCallback parseDelimitedFrom(InputStream input)
public static Guardrail.CodeCallback parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Guardrail.CodeCallback parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Guardrail.CodeCallback parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Guardrail.CodeCallback parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Guardrail.CodeCallback parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Guardrail.CodeCallback parseFrom(CodedInputStream input)
public static Guardrail.CodeCallback parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Guardrail.CodeCallback parseFrom(InputStream input)
public static Guardrail.CodeCallback parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Guardrail.CodeCallback parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Guardrail.CodeCallback parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Guardrail.CodeCallback> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAfterAgentCallback()
public Callback getAfterAgentCallback()
Optional. The callback to execute after the agent is called.
Each callback function is expected to return a structure (e.g., a dict or
object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Callback |
The afterAgentCallback.
|
getAfterAgentCallbackOrBuilder()
public CallbackOrBuilder getAfterAgentCallbackOrBuilder()
Optional. The callback to execute after the agent is called.
Each callback function is expected to return a structure (e.g., a dict or
object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL];
getAfterModelCallback()
public Callback getAfterModelCallback()
Optional. The callback to execute after the model is called. If there are
multiple calls to the model, the callback will be executed multiple
times. Each callback function is expected to return a structure (e.g., a
dict or object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Callback |
The afterModelCallback.
|
getAfterModelCallbackOrBuilder()
public CallbackOrBuilder getAfterModelCallbackOrBuilder()
Optional. The callback to execute after the model is called. If there are
multiple calls to the model, the callback will be executed multiple
times. Each callback function is expected to return a structure (e.g., a
dict or object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL];
getBeforeAgentCallback()
public Callback getBeforeAgentCallback()
Optional. The callback to execute before the agent is called.
Each callback function is expected to return a structure (e.g., a dict or
object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Callback |
The beforeAgentCallback.
|
getBeforeAgentCallbackOrBuilder()
public CallbackOrBuilder getBeforeAgentCallbackOrBuilder()
Optional. The callback to execute before the agent is called.
Each callback function is expected to return a structure (e.g., a dict or
object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL];
getBeforeModelCallback()
public Callback getBeforeModelCallback()
Optional. The callback to execute before the model is called. If there
are multiple calls to the model, the callback will be executed multiple
times. Each callback function is expected to return a structure (e.g., a
dict or object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Callback |
The beforeModelCallback.
|
getBeforeModelCallbackOrBuilder()
public CallbackOrBuilder getBeforeModelCallbackOrBuilder()
Optional. The callback to execute before the model is called. If there
are multiple calls to the model, the callback will be executed multiple
times. Each callback function is expected to return a structure (e.g., a
dict or object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public Guardrail.CodeCallback getDefaultInstanceForType()
getParserForType()
public Parser<Guardrail.CodeCallback> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasAfterAgentCallback()
public boolean hasAfterAgentCallback()
Optional. The callback to execute after the agent is called.
Each callback function is expected to return a structure (e.g., a dict or
object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the afterAgentCallback field is set.
|
hasAfterModelCallback()
public boolean hasAfterModelCallback()
Optional. The callback to execute after the model is called. If there are
multiple calls to the model, the callback will be executed multiple
times. Each callback function is expected to return a structure (e.g., a
dict or object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the afterModelCallback field is set.
|
hasBeforeAgentCallback()
public boolean hasBeforeAgentCallback()
Optional. The callback to execute before the agent is called.
Each callback function is expected to return a structure (e.g., a dict or
object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the beforeAgentCallback field is set.
|
hasBeforeModelCallback()
public boolean hasBeforeModelCallback()
Optional. The callback to execute before the model is called. If there
are multiple calls to the model, the callback will be executed multiple
times. Each callback function is expected to return a structure (e.g., a
dict or object) containing at least:
- 'decision': Either 'OK' or 'TRIGGER'.
- 'reason': A string explaining the decision.
A 'TRIGGER' decision may halt further processing.
.google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the beforeModelCallback field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Guardrail.CodeCallback.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Guardrail.CodeCallback.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Guardrail.CodeCallback.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides