Class Callback (0.1.0)

public final class Callback extends GeneratedMessage implements CallbackOrBuilder

A callback defines the custom logic to be executed at various stages of agent interaction.

Protobuf type google.cloud.ces.v1.Callback

Implements

CallbackOrBuilder

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISABLED_FIELD_NUMBER

public static final int DISABLED_FIELD_NUMBER
Field Value
Type Description
int

PROACTIVE_EXECUTION_ENABLED_FIELD_NUMBER

public static final int PROACTIVE_EXECUTION_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

PYTHON_CODE_FIELD_NUMBER

public static final int PYTHON_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Callback getDefaultInstance()
Returns
Type Description
Callback

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Callback.Builder newBuilder()
Returns
Type Description
Callback.Builder

newBuilder(Callback prototype)

public static Callback.Builder newBuilder(Callback prototype)
Parameter
Name Description
prototype Callback
Returns
Type Description
Callback.Builder

parseDelimitedFrom(InputStream input)

public static Callback parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Callback
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Callback parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Callback
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Callback parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Callback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Callback parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Callback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Callback parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Callback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Callback parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Callback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Callback parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Callback
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Callback parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Callback
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Callback parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Callback
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Callback parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Callback
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Callback parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Callback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Callback parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Callback
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Callback> parser()
Returns
Type Description
Parser<Callback>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCallbackCase()

public Callback.CallbackCase getCallbackCase()
Returns
Type Description
Callback.CallbackCase

getDefaultInstanceForType()

public Callback getDefaultInstanceForType()
Returns
Type Description
Callback

getDescription()

public String getDescription()

Optional. Human-readable description of the callback.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Human-readable description of the callback.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDisabled()

public boolean getDisabled()

Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.

bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disabled.

getParserForType()

public Parser<Callback> getParserForType()
Returns
Type Description
Parser<Callback>
Overrides

getProactiveExecutionEnabled()

public boolean getProactiveExecutionEnabled()

Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. ENABLE WITH CAUTION. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.

bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The proactiveExecutionEnabled.

getPythonCode()

public String getPythonCode()

Required. The python code to execute for the callback.

string python_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The pythonCode.

getPythonCodeBytes()

public ByteString getPythonCodeBytes()

Required. The python code to execute for the callback.

string python_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for pythonCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasPythonCode()

public boolean hasPythonCode()

Required. The python code to execute for the callback.

string python_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the pythonCode field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Callback.Builder newBuilderForType()
Returns
Type Description
Callback.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Callback.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Callback.Builder
Overrides

toBuilder()

public Callback.Builder toBuilder()
Returns
Type Description
Callback.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException