Service Client: Google::Cloud::Visionai::V1::StreamsService::StreamsServiceClient

Client stub representing the remote StreamsService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to visionai.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Visionai::V1::StreamsService - Compiled Protocol Buffers messages for google/cloud/visionai/v1/streams_service.proto

SYNOPSIS

use Google::Cloud::Visionai::V1::StreamsService;

my $msg = Google::Cloud::Visionai::V1::StreamsService::ListClustersRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
    filter => $filter,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Visionai::V1::StreamsService::ListClustersRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1/streams_service.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::Visionai::V1::StreamsService::ListClustersRequest

Message for requesting list of Clusters.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListClustersRequest.

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

    Type: Int32

    Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Filtering results.

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

    Type: String

    Hint for how to order the results.

Google::Cloud::Visionai::V1::StreamsService::ListClustersResponse

Message for response to listing Clusters.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Visionai::V1::Common::Cluster)

    The list of Cluster.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Visionai::V1::StreamsService::GetClusterRequest

Message for getting a Cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Visionai::V1::StreamsService::CreateClusterRequest

Message for creating a Cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. Id of the requesting object.

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

    Type: Message (Google::Cloud::Visionai::V1::Common::Cluster)

    Required. The resource being created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::UpdateClusterRequest

Message for updating a Cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the Cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Visionai::V1::Common::Cluster)

    Required. The resource being updated

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::DeleteClusterRequest

Message for deleting a Cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::ListStreamsRequest

Message for requesting list of Streams.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListStreamsRequest.

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

    Type: Int32

    Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Filtering results.

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

    Type: String

    Hint for how to order the results.

Google::Cloud::Visionai::V1::StreamsService::ListStreamsResponse

Message for response to listing Streams.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Stream)

    The list of Stream.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Visionai::V1::StreamsService::GetStreamRequest

Message for getting a Stream.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Visionai::V1::StreamsService::CreateStreamRequest

Message for creating a Stream.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. Id of the requesting object.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Stream)

    Required. The resource being created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::UpdateStreamRequest

Message for updating a Stream.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the Stream resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Stream)

    Required. The resource being updated.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::DeleteStreamRequest

Message for deleting a Stream.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::GetStreamThumbnailRequest

Message for getting the thumbnail of a Stream.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the stream for to get the thumbnail from.

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

    Type: String

    Required. The name of the GCS object to store the thumbnail image.

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

    Type: String

    Optional. The name of the event. If unspecified, the thumbnail will be retrieved from the latest event.

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

    Type: String

    Optional. An optional request ID to identify the requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::GetStreamThumbnailResponse

Message for the response of GetStreamThumbnail. The empty response message indicates the thumbnail image has been uploaded to GCS successfully.

Inherits from Protobuf::Message.

Google::Cloud::Visionai::V1::StreamsService::GenerateStreamHlsTokenRequest

Request message for getting the auth token to access the stream HLS contents.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the stream.

Google::Cloud::Visionai::V1::StreamsService::GenerateStreamHlsTokenResponse

Response message for GenerateStreamHlsToken.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The generated JWT token.

    The caller should insert this token to the authorization header of the HTTP requests to get the HLS playlist manifest and the video chunks. eg: curl -H "Authorization: Bearer $TOKEN" https://domain.com/test-stream.playback/master.m3u8

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The expiration time of the token.

Google::Cloud::Visionai::V1::StreamsService::ListEventsRequest

Message for requesting list of Events.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListEventsRequest.

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

    Type: Int32

    Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Filtering results.

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

    Type: String

    Hint for how to order the results.

Google::Cloud::Visionai::V1::StreamsService::ListEventsResponse

Message for response to listing Events.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Event)

    The list of Event.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Visionai::V1::StreamsService::GetEventRequest

Message for getting a Event.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Visionai::V1::StreamsService::CreateEventRequest

Message for creating a Event.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. Id of the requesting object.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Event)

    Required. The resource being created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::UpdateEventRequest

Message for updating a Event.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the Event resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Event)

    Required. The resource being updated.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::DeleteEventRequest

Message for deleting a Event.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::ListSeriesRequest

Message for requesting list of Series.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListSeriesRequest.

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

    Type: Int32

    Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Filtering results.

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

    Type: String

    Hint for how to order the results.

Google::Cloud::Visionai::V1::StreamsService::ListSeriesResponse

Message for response to listing Series.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Series)

    The list of Series.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Visionai::V1::StreamsService::GetSeriesRequest

Message for getting a Series.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Visionai::V1::StreamsService::CreateSeriesRequest

Message for creating a Series.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. Id of the requesting object.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Series)

    Required. The resource being created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::UpdateSeriesRequest

Message for updating a Series.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the Series resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Series)

    Required. The resource being updated

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::DeleteSeriesRequest

Message for deleting a Series.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Visionai::V1::StreamsService::MaterializeChannelRequest

Message for materializing a channel.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. Id of the channel.

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

    Type: Message (Google::Cloud::Visionai::V1::StreamsResources::Channel)

    Required. The resource being created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1::StreamsService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.