NAME

Google::Cloud::Apphub::V1::Service - Compiled Protocol Buffers messages for google/cloud/apphub/v1/service.proto

SYNOPSIS

use Google::Cloud::Apphub::V1::Service;

my $msg = Google::Cloud::Apphub::V1::Service::Service->new({
    name => $name,
    display_name => $display_name,
    description => $description,
    service_reference => $service_reference,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/apphub/v1/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::Apphub::V1::Service::Service

Service is an App Hub data model that contains a discovered service, which represents a network or API interface that exposes some functionality to clients for consumption over the network.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of a Service. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"`

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

    Type: String

    Optional. User-defined name for the Service. Can have a maximum length of 63 characters.

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

    Type: String

    Optional. User-defined description of a Service. Can have a maximum length of 2048 characters.

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

    Type: Message (Google::Cloud::Apphub::V1::Service::ServiceReference)

    Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

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

    Type: Message (Google::Cloud::Apphub::V1::Service::ServiceProperties)

    Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

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

    Type: Message (Google::Cloud::Apphub::V1::Attributes::Attributes)

    Optional. Consumer provided attributes.

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

    Type: String

    Required. Immutable. The resource name of the original discovered service.

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

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

    Output only. Create time.

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

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

    Output only. Update time.

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

    Type: String

    Output only. A universally unique identifier (UUID) for the `Service` in the UUID4 format.

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

    Type: Enum (Google::Cloud::Apphub::V1::Service::State)

    Output only. Service state.

Enum: Service::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

  • DETACHED => 4

Google::Cloud::Apphub::V1::Service::ServiceReference

Reference to an underlying networking resource that can comprise a Service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The underlying resource URI. For example, URI of Forwarding Rule, URL Map, and Backend Service.

Google::Cloud::Apphub::V1::Service::ServiceProperties

Properties of an underlying cloud resource that can comprise a Service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The service project identifier that the underlying cloud resource resides in.

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

    Type: String

    Output only. The location that the underlying resource resides in, for example, us-west1.

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

    Type: String

    Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

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

    Type: Message (Google::Cloud::Apphub::V1::Properties::FunctionalType)

    Output only. The type of the service.

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

    Type: Message (Google::Cloud::Apphub::V1::Properties::RegistrationType)

    Output only. The registration type of the service.

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

    Type: Message (Google::Cloud::Apphub::V1::Service::ServiceProperties::ExtendedMetadataEntry)

    Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}`

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

    Type: Message (Google::Cloud::Apphub::V1::Properties::Identity)

    Output only. The identity associated with the service.

Google::Cloud::Apphub::V1::Service::DiscoveredService

DiscoveredService is a network or API interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of the discovered service. Format: `"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"`

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

    Type: Message (Google::Cloud::Apphub::V1::Service::ServiceReference)

    Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

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

    Type: Message (Google::Cloud::Apphub::V1::Service::ServiceProperties)

    Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Apphub::V1::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.