@@ -3166,6 +3166,100 @@ message HitMatchedQueries {
31663166 }
31673167}
31683168
3169+ message ByteBuffer {
3170+
3171+ // The byte buffer array.
3172+ optional string array = 1 ;
3173+
3174+ // The byte buffer order.
3175+ optional ByteOrder order = 2 ;
3176+ }
3177+
3178+ message ColumnMeta {
3179+
3180+ // The name of a resource or configuration element.
3181+ optional string name = 1 ;
3182+
3183+ optional ColumnType column_type = 2 ;
3184+ }
3185+
3186+ message DataAsMap {
3187+
3188+ // The streaming content chunk.
3189+ optional string content = 1 ;
3190+
3191+ // Whether this is the last chunk.
3192+ optional bool is_last = 2 ;
3193+ }
3194+
3195+ message InferenceResults {
3196+
3197+ repeated Output output = 1 ;
3198+ }
3199+
3200+ message MlPredictModelStreamRequest {
3201+
3202+ ObjectMap parameters = 1 ;
3203+ }
3204+
3205+ message Output {
3206+
3207+ // The output name.
3208+ optional string name = 1 ;
3209+
3210+ optional MlResultDataType data_type = 2 ;
3211+
3212+ repeated int64 shape = 3 ;
3213+
3214+ repeated double data = 4 ;
3215+
3216+ optional ByteBuffer byte_buffer = 5 ;
3217+
3218+ // The output result.
3219+ optional string result = 6 ;
3220+
3221+ optional DataAsMap data_as_map = 7 ;
3222+ }
3223+
3224+ message PredictResponse {
3225+
3226+ repeated InferenceResults inference_results = 1 ;
3227+
3228+ optional Status status = 2 ;
3229+
3230+ optional PredictionResult prediction_result = 3 ;
3231+ }
3232+
3233+ message PredictionResult {
3234+
3235+ repeated ColumnMeta column_metas = 1 ;
3236+
3237+ repeated Rows rows = 2 ;
3238+ }
3239+
3240+ message Rows {
3241+
3242+ repeated Values values = 1 ;
3243+ }
3244+
3245+ message Values {
3246+
3247+ optional ColumnType column_type = 1 ;
3248+
3249+ // The value.
3250+ optional GeneralNumber value = 2 ;
3251+ }
3252+
3253+ message MlExecuteAgentStreamRequest {
3254+
3255+ string agent_id = 1 ;
3256+
3257+ // Global query parameters
3258+ optional GlobalParams global_params = 2 ;
3259+
3260+ optional MlPredictModelStreamRequest ml_predict_model_stream_request = 3 ;
3261+ }
3262+
31693263enum FieldValueFactorModifier {
31703264 FIELD_VALUE_FACTOR_MODIFIER_UNSPECIFIED = 0 ;
31713265 FIELD_VALUE_FACTOR_MODIFIER_LN = 1 ;
@@ -3501,6 +3595,44 @@ enum GeoExecution {
35013595 GEO_EXECUTION_MEMORY = 2 ;
35023596}
35033597
3598+ enum ByteOrder {
3599+ BYTE_ORDER_UNSPECIFIED = 0 ;
3600+ BYTE_ORDER_BIG_ENDIAN = 1 ;
3601+ BYTE_ORDER_LITTLE_ENDIAN = 2 ;
3602+ }
3603+
3604+ enum ColumnType {
3605+ COLUMN_TYPE_UNSPECIFIED = 0 ;
3606+ COLUMN_TYPE_BOOLEAN = 1 ;
3607+ COLUMN_TYPE_DOUBLE = 2 ;
3608+ COLUMN_TYPE_INTEGER = 3 ;
3609+ COLUMN_TYPE_STRING = 4 ;
3610+ }
3611+
3612+ enum MlResultDataType {
3613+ ML_RESULT_DATA_TYPE_UNSPECIFIED = 0 ;
3614+ ML_RESULT_DATA_TYPE_BOOLEAN = 1 ;
3615+ ML_RESULT_DATA_TYPE_FLOAT16 = 2 ;
3616+ ML_RESULT_DATA_TYPE_FLOAT32 = 3 ;
3617+ ML_RESULT_DATA_TYPE_FLOAT64 = 4 ;
3618+ ML_RESULT_DATA_TYPE_INT32 = 5 ;
3619+ ML_RESULT_DATA_TYPE_INT64 = 6 ;
3620+ ML_RESULT_DATA_TYPE_INT8 = 7 ;
3621+ ML_RESULT_DATA_TYPE_STRING = 8 ;
3622+ ML_RESULT_DATA_TYPE_UINT8 = 9 ;
3623+ ML_RESULT_DATA_TYPE_UNKNOWN = 10 ;
3624+ }
3625+
3626+ enum Status {
3627+ STATUS_UNSPECIFIED = 0 ;
3628+ STATUS_CANCELLED = 1 ;
3629+ STATUS_COMPLETED = 2 ;
3630+ STATUS_COMPLETED_WITH_ERROR = 3 ;
3631+ STATUS_CREATED = 4 ;
3632+ STATUS_FAILED = 5 ;
3633+ STATUS_RUNNING = 6 ;
3634+ }
3635+
35043636message ObjectMap {
35053637 map <string , Value > fields = 1 ;
35063638
0 commit comments