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: String

    Identifier. The resource name of the search session. Format: projects/{project}/locations/{location}/instances/{instance}/searchSessions/{search_session}

  • $msg->query() / $msg->query($value)

    Type: String

    Required. 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: String

    Identifier. 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: String

    Required. 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: String

    Required. 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: Int32

    Optional. 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: String

    Required. The parent SearchSession resource name. Format: projects/{project}/locations/{location}/instances/{instance}/searchSessions/{search_session}

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. 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: String

    Optional. A page token, received from a previous `ListSearchedResults` call. Provide this to retrieve the subsequent page.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. 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: Int32

    Optional. 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: Int32

    Total 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: String

    A 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: String

    Output 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: Int32

    Output only. Total number of rows returned in the search session.

  • $msg->more_data_available() / $msg->more_data_available($value)

    Type: Bool

    Output 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

Enum: SearchOperationMetadata::State

  • STATE_UNSPECIFIED => 0

  • RUNNING => 1

  • SUCCEEDED => 2

  • FAILED => 3

  • CANCELLED => 4

  • EXPIRED => 5

Google::Cloud::Chronicle::V1::Search::DataTableExportMetadata

Metadata about a DataTable export operation.

Inherits from Protobuf::Message.

Accessors

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: String

    The 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: Int32

    The index of the table in the query.

Enum: TableMetadata::DataSource

  • DATA_SOURCE_UNSPECIFIED => 0

  • EVENTS => 1

  • ENTITY_CONTEXT => 2

  • DATA_TABLES => 3

  • DETECTIONS => 4

  • SOAR_CASE => 5

  • SOAR_CASE_HISTORY => 6

Google::Cloud::Chronicle::V1::Search::ColumnSchema

Schema of the tables used in a query.

Inherits from Protobuf::Message.

Accessors

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: String

    List 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

Google::Cloud::Chronicle::V1::Search::StatsRecord

StatsRecord contains a row in the response of a stats query.

Inherits from Protobuf::Message.

Accessors

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

Google::Cloud::Chronicle::V1::Search::ColumnType

Singular vs list of values in a single column.

Inherits from Protobuf::Message.

Accessors

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: String

    The name of the column.

  • $msg->value() / $msg->value($value)

    Type: String

    The 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: String

    The 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: Bytes

    Raw 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: Int32

    If the event should be treated as an alert, the unique identifier for the alert.

  • $msg->alert_view_id() / $msg->alert_view_id($value)

    Type: Bytes

    Alert 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: String

    User defined table name for the event in joins query.

Enum: EventRecord::Annotation

  • ANNOTATION_UNSPECIFIED => 0

  • ANNOTATION_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: String

    Raw log tokens mapped to the event that created the entity. This is only for entity context events.

  • $msg->timed() / $msg->timed($value)

    Type: Bool

    If the entity is timed or not.

  • $msg->table() / $msg->table($value)

    Type: String

    User 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

Google::Cloud::Chronicle::V1::Search::DetectionRecord

DetectionRecord stores information about a detection.

Inherits from Protobuf::Message.

Accessors

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.