public static final class Guardrail.CodeCallback.Builder extends GeneratedMessage.Builder<Guardrail.CodeCallback.Builder> implements Guardrail.CodeCallbackOrBuilderGuardrail that blocks the conversation based on the code callbacks provided.
Protobuf type google.cloud.ces.v1.Guardrail.CodeCallback
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Guardrail.CodeCallback.BuilderImplements
Guardrail.CodeCallbackOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Guardrail.CodeCallback build()| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback |
|
buildPartial()
public Guardrail.CodeCallback buildPartial()| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback |
|
clear()
public Guardrail.CodeCallback.Builder clear()| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
clearAfterAgentCallback()
public Guardrail.CodeCallback.Builder clearAfterAgentCallback()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 |
Guardrail.CodeCallback.Builder |
|
clearAfterModelCallback()
public Guardrail.CodeCallback.Builder clearAfterModelCallback()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 |
Guardrail.CodeCallback.Builder |
|
clearBeforeAgentCallback()
public Guardrail.CodeCallback.Builder clearBeforeAgentCallback()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 |
Guardrail.CodeCallback.Builder |
|
clearBeforeModelCallback()
public Guardrail.CodeCallback.Builder clearBeforeModelCallback()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 |
Guardrail.CodeCallback.Builder |
|
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. |
getAfterAgentCallbackBuilder()
public Callback.Builder getAfterAgentCallbackBuilder()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.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
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. |
getAfterModelCallbackBuilder()
public Callback.Builder getAfterModelCallbackBuilder()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.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
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. |
getBeforeAgentCallbackBuilder()
public Callback.Builder getBeforeAgentCallbackBuilder()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.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
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. |
getBeforeModelCallbackBuilder()
public Callback.Builder getBeforeModelCallbackBuilder()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.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
getDefaultInstanceForType()
public Guardrail.CodeCallback getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAfterAgentCallback(Callback value)
public Guardrail.CodeCallback.Builder mergeAfterAgentCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
mergeAfterModelCallback(Callback value)
public Guardrail.CodeCallback.Builder mergeAfterModelCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
mergeBeforeAgentCallback(Callback value)
public Guardrail.CodeCallback.Builder mergeBeforeAgentCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
mergeBeforeModelCallback(Callback value)
public Guardrail.CodeCallback.Builder mergeBeforeModelCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
mergeFrom(Guardrail.CodeCallback other)
public Guardrail.CodeCallback.Builder mergeFrom(Guardrail.CodeCallback other)| Parameter | |
|---|---|
| Name | Description |
other |
Guardrail.CodeCallback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Guardrail.CodeCallback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Guardrail.CodeCallback.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setAfterAgentCallback(Callback value)
public Guardrail.CodeCallback.Builder setAfterAgentCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setAfterAgentCallback(Callback.Builder builderForValue)
public Guardrail.CodeCallback.Builder setAfterAgentCallback(Callback.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Callback.Builder |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setAfterModelCallback(Callback value)
public Guardrail.CodeCallback.Builder setAfterModelCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setAfterModelCallback(Callback.Builder builderForValue)
public Guardrail.CodeCallback.Builder setAfterModelCallback(Callback.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Callback.Builder |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setBeforeAgentCallback(Callback value)
public Guardrail.CodeCallback.Builder setBeforeAgentCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setBeforeAgentCallback(Callback.Builder builderForValue)
public Guardrail.CodeCallback.Builder setBeforeAgentCallback(Callback.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Callback.Builder |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setBeforeModelCallback(Callback value)
public Guardrail.CodeCallback.Builder setBeforeModelCallback(Callback value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Callback |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|
setBeforeModelCallback(Callback.Builder builderForValue)
public Guardrail.CodeCallback.Builder setBeforeModelCallback(Callback.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Callback.Builder |
| Returns | |
|---|---|
| Type | Description |
Guardrail.CodeCallback.Builder |
|