Service Client: Google::Cloud::Chronicle::V1::Search::SearchServiceClient
Client stub representing the remote SearchService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to chronicle.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Chronicle::V1::Search - Compiled Protocol Buffers messages for google/cloud/chronicle/v1/search.proto
SYNOPSIS
use Google::Cloud::Chronicle::V1::Search;
my $msg = Google::Cloud::Chronicle::V1::Search::SearchSession->new({
name => $name,
query => $query,
time_range => $time_range,
dialect => $dialect,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Chronicle::V1::Search::SearchSession->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/chronicle/v1/search.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Chronicle::V1::Search::SearchSession
SearchSession represents an asynchronous search session.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the search session. Format: projects/{project}/locations/{location}/instances/{instance}/searchSessions/{search_session}
$msg->query()/$msg->query($value)Type:
StringRequired. The search query, in the dialect set in `dialect`. Example: 'ip=/172.*/ AND metadata.event_type!="NETWORK_CONNECTION" AND ( target.ip = "3.225.179.73" OR target.ip = "23.47.48.70")'
$msg->time_range()/$msg->time_range($value)Type:
Message(Google::Type::Interval::Interval)Required. Time range to search for [Inclusive start time, exclusive end time).
$msg->dialect()/$msg->dialect($value)Type:
Enum(Google::Cloud::Chronicle::V1::QueryDialect)Optional. Specifies how to parse the 'query' string. If not specified, the query will be parsed as YL2.
$msg->draft_data_access_scope()/$msg->draft_data_access_scope($value)Type:
Message(Google::Cloud::Chronicle::V1::DataAccessControl::DataAccessScope)Optional. Data access scope used to filter events. This is intended to be used by admins to preview in-development scopes. Should only be called by users with global access. If the caller does not have global access, the request will fail.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::SearchSessionMetadata)Output only. Metadata about the search session.
Google::Cloud::Chronicle::V1::Search::SearchedResult
SearchedResult contains the results of a Search operation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the search results. Format: projects/{project}/locations/{location}/instances/{instance}/searchSessions/{search_session}/searchedResults/{searched_result}
$msg->result_row()/$msg->result_row($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ResultRow)Contains a flexible row which can support a standard UDM Event, Stats, Entity Context, Join result, Data Table, etc.
Google::Cloud::Chronicle::V1::Search::SearchRequest
Request message for the Search method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the instance on which to perform the search. Format: projects/{project}/locations/{location}/instances/{instance}
$msg->query()/$msg->query($value)Type:
StringRequired. The search query, in the dialect set in `dialect`. Example: 'ip=/172.*/ AND metadata.event_type!="NETWORK_CONNECTION" AND ( target.ip = "3.225.179.73" OR target.ip = "23.47.48.70")'
$msg->time_range()/$msg->time_range($value)Type:
Message(Google::Type::Interval::Interval)Required. Time range to search for [Inclusive start time, exclusive end time).
$msg->dialect()/$msg->dialect($value)Type:
Enum(Google::Cloud::Chronicle::V1::QueryDialect)Optional. Specifies the dialect the Search Query is written in. If not specified, the query will be parsed as YL2.
$msg->draft_data_access_scope()/$msg->draft_data_access_scope($value)Type:
Message(Google::Cloud::Chronicle::V1::DataAccessControl::DataAccessScope)Optional. Data access scope used to filter events. This is intended to be used by admins to preview in-development scopes. Should only be called by users with global access. If the caller does not have global access, the request will fail.
$msg->result_limit()/$msg->result_limit($value)Type:
Int32Optional. Requested maximum number of rows to materialize. The service may return fewer. If unspecified, a server-side default of 10,000 is used. The maximum value is 1,000,000. Some dialects have a lower maximum; see `QueryDialect`.
$msg->simulated_data_visibility()/$msg->simulated_data_visibility($value)Type:
Enum(Google::Cloud::Chronicle::V1::SimulatedDataVisibility)Optional. Specifies visibility of simulated data to include in search results.
Google::Cloud::Chronicle::V1::Search::ListSearchedResultsRequest
Request message for the ListSearchedResults method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent SearchSession resource name. Format: projects/{project}/locations/{location}/instances/{instance}/searchSessions/{search_session}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of results to return. The service may return fewer. If unspecified, at most 100 results will be returned. The maximum value is 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListSearchedResults` call. Provide this to retrieve the subsequent page.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. The column to sort the results on. Example: "event_timestamp desc", "principal.hostname asc". Multi-columnar sorting is not supported.
$msg->skip()/$msg->skip($value)Type:
Int32Optional. The number of results to skip before starting to return results. This field should not be used in conjunction with page_token.
Google::Cloud::Chronicle::V1::Search::ListSearchedResultsResponse
Response message for the ListSearchedResults method.
Inherits from Protobuf::Message.
Accessors
$msg->searched_results()/$msg->searched_results($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::SearchedResult)List of Searched Results.
$msg->total_size()/$msg->total_size($value)Type:
Int32Total number of rows in the result set of the search query.
$msg->column_names()/$msg->column_names($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ColumnNames)List of column names for the outcome section of the query result.
$msg->column_schema()/$msg->column_schema($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ColumnSchema)Column schema for the results based on the query columns. Contains metadata like data source, event_name etc.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Chronicle::V1::Search::SearchSessionMetadata
Metadata about the search session.
Inherits from Protobuf::Message.
Accessors
$msg->operation_id()/$msg->operation_id($value)Type:
StringOutput only. The operation id corresponding to the search session which can be used to poll the operation resource to know its state and progress.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The start time of the session.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The end time of the session, if done.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the search results expire.
$msg->result_row_count()/$msg->result_row_count($value)Type:
Int32Output only. Total number of rows returned in the search session.
$msg->more_data_available()/$msg->more_data_available($value)Type:
BoolOutput only. If true, there are more search results available than what can be returned and have been omitted.
Google::Cloud::Chronicle::V1::Search::SearchOperationMetadata
Metadata for the google.longrunning.Operation returned by the Search method.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Chronicle::V1::SearchOperationMetadata::State)Output only. State of the Search operation.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The start time of the search.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The end time of the search, if done.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the search results expire.
$msg->progress()/$msg->progress($value)Type:
Int32Output only. Progress Percentage of the search LRO, ranges from 0 to 100.
$msg->datatable_export_metadata()/$msg->datatable_export_metadata($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::DataTableExportMetadata)Output only. Metadata of the data table export operation if the search results are written to a Data Table.
Enum: SearchOperationMetadata::State
STATE_UNSPECIFIED=>0RUNNING=>1SUCCEEDED=>2FAILED=>3CANCELLED=>4EXPIRED=>5
Google::Cloud::Chronicle::V1::Search::DataTableExportMetadata
Metadata about a DataTable export operation.
Inherits from Protobuf::Message.
Accessors
$msg->error()/$msg->error($value)Type:
Message(Google::Rpc::Status::Status)The error result of the export operation in case of failure.
$msg->result_metadata()/$msg->result_metadata($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::DataTableExportMetadata::ResultMetadata)Metadata about the export operation's result in case of success.
$msg->data_table()/$msg->data_table($value)Type:
StringThe name of the DataTable.
Google::Cloud::Chronicle::V1::Search::TableMetadata
Metadata about a table used in a query.
Inherits from Protobuf::Message.
Accessors
$msg->table()/$msg->table($value)Type:
StringThe alias of the table in the query.
$msg->data_source()/$msg->data_source($value)Type:
Enum(Google::Cloud::Chronicle::V1::TableMetadata::DataSource)The type of data source.
$msg->index()/$msg->index($value)Type:
Int32The index of the table in the query.
Enum: TableMetadata::DataSource
DATA_SOURCE_UNSPECIFIED=>0EVENTS=>1ENTITY_CONTEXT=>2DATA_TABLES=>3DETECTIONS=>4SOAR_CASE=>5SOAR_CASE_HISTORY=>6
Google::Cloud::Chronicle::V1::Search::ColumnSchema
Schema of the tables used in a query.
Inherits from Protobuf::Message.
Accessors
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::TableMetadata)Metadata about the tables used in the query.
Google::Cloud::Chronicle::V1::Search::ColumnNames
List of column names for the outcome section of the query result.
Inherits from Protobuf::Message.
Accessors
$msg->names()/$msg->names($value)Type:
StringList of column names.
Google::Cloud::Chronicle::V1::Search::ResultRow
ResultRow is a flexible collection that captures a search result row. It can currently support UDM Events, Entity Contexts, Data Tables, Join results, etc. and will support all other data sources in the future.
Inherits from Protobuf::Message.
Accessors
$msg->event_record()/$msg->event_record($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::EventRecord)UDM event.
$msg->stats_record()/$msg->stats_record($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::StatsRecord)Stats record.
$msg->entity_context_record()/$msg->entity_context_record($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::EntityContextRecord)Entity context graph.
$msg->join_record()/$msg->join_record($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::JoinRecord)Join results.
$msg->detection_record()/$msg->detection_record($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::DetectionRecord)Detection.
$msg->data_table_record()/$msg->data_table_record($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::DataTableRecord)Data table.
$msg->outcomes()/$msg->outcomes($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ColumnType)Outcome fields for an event specified in query request.
Google::Cloud::Chronicle::V1::Search::StatsRecord
StatsRecord contains a row in the response of a stats query.
Inherits from Protobuf::Message.
Accessors
$msg->results()/$msg->results($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::StatsColumnData)Contains all columns resulting from a stats query and one row of values.
Google::Cloud::Chronicle::V1::Search::StatsColumnData
Represents a single column with a single cell in the set of columns returned as the stats query result.
Inherits from Protobuf::Message.
Accessors
$msg->column()/$msg->column($value)Type:
StringUsed to store column names.
$msg->values()/$msg->values($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ColumnType)Store the values in a single column.
Google::Cloud::Chronicle::V1::Search::ColumnType
Singular vs list of values in a single column.
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ColumnType::ColumnValue)Single value in a column.
$msg->list()/$msg->list($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::ColumnType::ColumnValueList)List of values in a column e.g. IPs.
Google::Cloud::Chronicle::V1::Search::SearchDataTableRowCell
Contains a key-value pair of column name and its value. It represents a cell in the Data Table.
Inherits from Protobuf::Message.
Accessors
$msg->column()/$msg->column($value)Type:
StringThe name of the column.
$msg->value()/$msg->value($value)Type:
StringThe value of the column.
Google::Cloud::Chronicle::V1::Search::DataTableRecord
DataTableRecord contains information about a Data table.
Inherits from Protobuf::Message.
Accessors
$msg->data_table()/$msg->data_table($value)Type:
StringThe resource name of the Data table. Format: projects/{project_id}/locations/{location}/instances/{instances}/dataTables/{data_table}
$msg->cells()/$msg->cells($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::SearchDataTableRowCell)Stores information about a single row of a Data table.
Google::Cloud::Chronicle::V1::Search::EventRecord
EventRecord stores information about a UDM event.
Inherits from Protobuf::Message.
Accessors
$msg->event()/$msg->event($value)Type:
Message(Google::Cloud::Chronicle::V1::Event::Event)The UDM Event.
$msg->event_log_token()/$msg->event_log_token($value)Type:
BytesRaw log tokens mapped to the event. Can be used to locate the raw log entry that generated the event.
$msg->alert_number()/$msg->alert_number($value)Type:
Int32If the event should be treated as an alert, the unique identifier for the alert.
$msg->alert_view_id()/$msg->alert_view_id($value)Type:
BytesAlert View specific Id. Helps create a link to Alert View.
$msg->annotations()/$msg->annotations($value)Type:
Enum(Google::Cloud::Chronicle::V1::EventRecord::Annotation)Annotations added to an event.
$msg->detections()/$msg->detections($value)Type:
Message(Google::Backstory::Collection::Collection)Detections associated with an event.
$msg->table()/$msg->table($value)Type:
StringUser defined table name for the event in joins query.
Enum: EventRecord::Annotation
ANNOTATION_UNSPECIFIED=>0ANNOTATION_ALERT=>1
Google::Cloud::Chronicle::V1::Search::EntityContextRecord
EntityContextRecord stores information about a entity context graph.
Inherits from Protobuf::Message.
Accessors
$msg->entity()/$msg->entity($value)Type:
Message(Google::Cloud::Chronicle::V1::Entity::Entity)The entity information to be retrieved with UDM ECG search.
$msg->event_log_token()/$msg->event_log_token($value)Type:
StringRaw log tokens mapped to the event that created the entity. This is only for entity context events.
$msg->timed()/$msg->timed($value)Type:
BoolIf the entity is timed or not.
$msg->table()/$msg->table($value)Type:
StringUser defined table name for the entity in joins query.
Google::Cloud::Chronicle::V1::Search::JoinRecord
JoinRecord stores information about a join result.
Inherits from Protobuf::Message.
Accessors
$msg->events()/$msg->events($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::EventRecord)The events that are joined.
$msg->entities()/$msg->entities($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::EntityContextRecord)The entities that are joined.
$msg->data_tables()/$msg->data_tables($value)Type:
Message(Google::Cloud::Chronicle::V1::Search::DataTableRecord)The data tables that are joined.
Google::Cloud::Chronicle::V1::Search::DetectionRecord
DetectionRecord stores information about a detection.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
BytesThe ID of the detection.
$msg->collection()/$msg->collection($value)Type:
Message(Google::Backstory::Collection::Collection)The detection.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Chronicle::V1::Search::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.