Service Client: Google::Cloud::Apihub::V1::CollectService::ApiHubCollectClient
Client stub representing the remote ApiHubCollect gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to apihub.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Apihub::V1::CollectService - Compiled Protocol Buffers messages for google/cloud/apihub/v1/collect_service.proto
SYNOPSIS
use Google::Cloud::Apihub::V1::CollectService;
my $msg = Google::Cloud::Apihub::V1::CollectService::CollectApiDataRequest->new({
location => $location,
collection_type => $collection_type,
plugin_instance => $plugin_instance,
action_id => $action_id,
});
# Read or update a field
my $val = $msg->location();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Apihub::V1::CollectService::CollectApiDataRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/apihub/v1/collect_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::Apihub::V1::CollectService::CollectApiDataRequest
The CollectApiData method's request.
Inherits from Protobuf::Message.
Accessors
$msg->location()/$msg->location($value)Type:
StringRequired. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`
$msg->collection_type()/$msg->collection_type($value)Type:
Enum(Google::Cloud::Apihub::V1::CollectionType)Required. The type of collection. Applies to all entries in [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
$msg->plugin_instance()/$msg->plugin_instance($value)Type:
StringRequired. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
$msg->action_id()/$msg->action_id($value)Type:
StringRequired. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
$msg->api_data()/$msg->api_data($value)Type:
Message(Google::Cloud::Apihub::V1::CollectService::ApiData)Required. The API data to be collected.
Google::Cloud::Apihub::V1::CollectService::ApiData
The API data to be collected.
Inherits from Protobuf::Message.
Accessors
$msg->api_metadata_list()/$msg->api_metadata_list($value)Type:
Message(Google::Cloud::Apihub::V1::CollectService::ApiMetadataList)Optional. The list of API metadata.
Google::Cloud::Apihub::V1::CollectService::ApiMetadataList
The message to hold repeated API metadata.
Inherits from Protobuf::Message.
Accessors
$msg->api_metadata()/$msg->api_metadata($value)Type:
Message(Google::Cloud::Apihub::V1::CollectService::APIMetadata)Required. The list of API metadata.
Google::Cloud::Apihub::V1::CollectService::APIMetadata
The API metadata.
Inherits from Protobuf::Message.
Accessors
$msg->api()/$msg->api($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Api)Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.
$msg->versions()/$msg->versions($value)Type:
Message(Google::Cloud::Apihub::V1::CollectService::VersionMetadata)Optional. The list of versions present in an API resource.
$msg->original_id()/$msg->original_id($value)Type:
StringOptional. The unique identifier of the API in the system where it was originally created.
$msg->original_create_time()/$msg->original_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp indicating when the API was created at the source.
$msg->original_update_time()/$msg->original_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. Timestamp indicating when the API was last updated at the source.
Google::Cloud::Apihub::V1::CollectService::VersionMetadata
The metadata associated with a version of the API resource.
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Version)Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
$msg->specs()/$msg->specs($value)Type:
Message(Google::Cloud::Apihub::V1::CollectService::SpecMetadata)Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
$msg->deployments()/$msg->deployments($value)Type:
Message(Google::Cloud::Apihub::V1::CollectService::DeploymentMetadata)Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
$msg->original_id()/$msg->original_id($value)Type:
StringOptional. The unique identifier of the version in the system where it was originally created.
$msg->original_create_time()/$msg->original_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp indicating when the version was created at the source.
$msg->original_update_time()/$msg->original_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. Timestamp indicating when the version was last updated at the source.
Google::Cloud::Apihub::V1::CollectService::SpecMetadata
The metadata associated with a spec of the API version.
Inherits from Protobuf::Message.
Accessors
$msg->spec()/$msg->spec($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Spec)Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.
$msg->original_id()/$msg->original_id($value)Type:
StringOptional. The unique identifier of the spec in the system where it was originally created.
$msg->original_create_time()/$msg->original_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp indicating when the spec was created at the source.
$msg->original_update_time()/$msg->original_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. Timestamp indicating when the spec was last updated at the source.
Google::Cloud::Apihub::V1::CollectService::DeploymentMetadata
The metadata associated with a deployment.
Inherits from Protobuf::Message.
Accessors
$msg->deployment()/$msg->deployment($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Deployment)Required. The deployment resource to be pushed to Hub's collect layer. The ID of the deployment will be generated by Hub.
$msg->original_id()/$msg->original_id($value)Type:
StringOptional. The unique identifier of the deployment in the system where it was originally created.
$msg->original_create_time()/$msg->original_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp indicating when the deployment was created at the source.
$msg->original_update_time()/$msg->original_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. Timestamp indicating when the deployment was last updated at the source.
Google::Cloud::Apihub::V1::CollectService::CollectApiDataResponse
The CollectApiData method's response.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Apihub::V1::CollectService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.