Service Client: Google::Cloud::Servicedirectory::V1::RegistrationService::RegistrationServiceClient

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

target

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

credentials

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

NAME

Google::Cloud::Servicedirectory::V1::RegistrationService - Compiled Protocol Buffers messages for google/cloud/servicedirectory/v1/registration_service.proto

SYNOPSIS

use Google::Cloud::Servicedirectory::V1::RegistrationService;

my $msg = Google::Cloud::Servicedirectory::V1::RegistrationService::CreateNamespaceRequest->new({
    parent => $parent,
    namespace_id => $namespace_id,
    namespace => $namespace,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/servicedirectory/v1/registration_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::Servicedirectory::V1::RegistrationService::CreateNamespaceRequest

The request message for [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the project and location the namespace will be created in.

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

    Type: String

    Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

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

    Type: Message (Google::Cloud::Servicedirectory::V1::Namespace::Namespace)

    Required. A namespace with initial fields set.

Google::Cloud::Servicedirectory::V1::RegistrationService::ListNamespacesRequest

The request message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the project and location whose namespaces you'd like to list.

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

    Type: Int32

    Optional. The maximum number of items to return.

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

    Type: String

    Optional. The next_page_token value returned from a previous List request, if any.

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

    Type: String

    Optional. The filter to list results by.

    General `filter` string syntax: `<field> <operator> <value> (<logical connector>)`

    * `<field>` can be `name` or `labels.<key>` for map field * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `<value>` must be the same data type as field * `<logical connector>` can be `AND`, `OR`, `NOT`

    Examples of valid filters:

    * `labels.owner` returns namespaces that have a label with the key `owner`, this is the same as `labels:owner` * `labels.owner=sd` returns namespaces that have key/value `owner=sd` * `name>projects/my-project/locations/us-east1/namespaces/namespace-c` returns namespaces that have name that is alphabetically later than the string, so "namespace-e" is returned but "namespace-a" is not * `labels.owner!=sd AND labels.foo=bar` returns namespaces that have `owner` in label key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that namespace doesn't have a field called "doesnotexist". Since the filter does not match any namespaces, it returns no results

    For more information about filtering, see [API Filtering](https://aip.dev/160).

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

    Type: String

    Optional. The order to list results by.

    General `order_by` string syntax: `<field> (<asc|desc>) (,)`

    * `<field>` allows value: `name` * `<asc|desc>` ascending or descending order by `<field>`. If this is left blank, `asc` is used

    Note that an empty `order_by` string results in default order, which is order by `name` in ascending order.

Google::Cloud::Servicedirectory::V1::RegistrationService::ListNamespacesResponse

The response message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Servicedirectory::V1::Namespace::Namespace)

    The list of namespaces.

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

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Servicedirectory::V1::RegistrationService::GetNamespaceRequest

The request message for [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1.RegistrationService.GetNamespace].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the namespace to retrieve.

Google::Cloud::Servicedirectory::V1::RegistrationService::UpdateNamespaceRequest

The request message for [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Servicedirectory::V1::RegistrationService::DeleteNamespaceRequest

The request message for [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the namespace to delete.

Google::Cloud::Servicedirectory::V1::RegistrationService::CreateServiceRequest

The request message for [RegistrationService.CreateService][google.cloud.servicedirectory.v1.RegistrationService.CreateService].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the namespace this service will belong to.

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

    Type: String

    Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

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

    Type: Message (Google::Cloud::Servicedirectory::V1::Service::Service)

    Required. A service with initial fields set.

Google::Cloud::Servicedirectory::V1::RegistrationService::ListServicesRequest

The request message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the namespace whose services you'd like to list.

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

    Type: Int32

    Optional. The maximum number of items to return.

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

    Type: String

    Optional. The next_page_token value returned from a previous List request, if any.

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

    Type: String

    Optional. The filter to list results by.

    General `filter` string syntax: `<field> <operator> <value> (<logical connector>)`

    * `<field>` can be `name` or `annotations.<key>` for map field * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `<value>` must be the same data type as field * `<logical connector>` can be `AND`, `OR`, `NOT`

    Examples of valid filters:

    * `annotations.owner` returns services that have a annotation with the key `owner`, this is the same as `annotations:owner` * `annotations.protocol=gRPC` returns services that have key/value `protocol=gRPC` * `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c` returns services that have name that is alphabetically later than the string, so "service-e" is returned but "service-a" is not * `annotations.owner!=sd AND annotations.foo=bar` returns services that have `owner` in annotation key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that service doesn't have a field called "doesnotexist". Since the filter does not match any services, it returns no results

    For more information about filtering, see [API Filtering](https://aip.dev/160).

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

    Type: String

    Optional. The order to list results by.

    General `order_by` string syntax: `<field> (<asc|desc>) (,)`

    * `<field>` allows value: `name` * `<asc|desc>` ascending or descending order by `<field>`. If this is left blank, `asc` is used

    Note that an empty `order_by` string results in default order, which is order by `name` in ascending order.

Google::Cloud::Servicedirectory::V1::RegistrationService::ListServicesResponse

The response message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Servicedirectory::V1::Service::Service)

    The list of services.

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

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Servicedirectory::V1::RegistrationService::GetServiceRequest

The request message for [RegistrationService.GetService][google.cloud.servicedirectory.v1.RegistrationService.GetService]. This should not be used for looking up a service. Instead, use the `resolve` method as it contains all endpoints and associated annotations.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the service to get.

Google::Cloud::Servicedirectory::V1::RegistrationService::UpdateServiceRequest

The request message for [RegistrationService.UpdateService][google.cloud.servicedirectory.v1.RegistrationService.UpdateService].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Servicedirectory::V1::RegistrationService::DeleteServiceRequest

The request message for [RegistrationService.DeleteService][google.cloud.servicedirectory.v1.RegistrationService.DeleteService].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the service to delete.

Google::Cloud::Servicedirectory::V1::RegistrationService::CreateEndpointRequest

The request message for [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the service that this endpoint provides.

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

    Type: String

    Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

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

    Type: Message (Google::Cloud::Servicedirectory::V1::Endpoint::Endpoint)

    Required. A endpoint with initial fields set.

Google::Cloud::Servicedirectory::V1::RegistrationService::ListEndpointsRequest

The request message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the service whose endpoints you'd like to list.

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

    Type: Int32

    Optional. The maximum number of items to return.

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

    Type: String

    Optional. The next_page_token value returned from a previous List request, if any.

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

    Type: String

    Optional. The filter to list results by.

    General `filter` string syntax: `<field> <operator> <value> (<logical connector>)`

    * `<field>` can be `name`, `address`, `port`, or `annotations.<key>` for map field * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `<value>` must be the same data type as field * `<logical connector>` can be `AND`, `OR`, `NOT`

    Examples of valid filters:

    * `annotations.owner` returns endpoints that have a annotation with the key `owner`, this is the same as `annotations:owner` * `annotations.protocol=gRPC` returns endpoints that have key/value `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this address * `port>8080` returns endpoints that have port number larger than 8080 * `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` returns endpoints that have name that is alphabetically later than the string, so "endpoint-e" is returned but "endpoint-a" is not * `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that have `owner` in annotation key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that endpoint doesn't have a field called "doesnotexist". Since the filter does not match any endpoints, it returns no results

    For more information about filtering, see [API Filtering](https://aip.dev/160).

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

    Type: String

    Optional. The order to list results by.

    General `order_by` string syntax: `<field> (<asc|desc>) (,)`

    * `<field>` allows values: `name`, `address`, `port` * `<asc|desc>` ascending or descending order by `<field>`. If this is left blank, `asc` is used

    Note that an empty `order_by` string results in default order, which is order by `name` in ascending order.

Google::Cloud::Servicedirectory::V1::RegistrationService::ListEndpointsResponse

The response message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Servicedirectory::V1::Endpoint::Endpoint)

    The list of endpoints.

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

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Servicedirectory::V1::RegistrationService::GetEndpointRequest

The request message for [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint]. This should not be used to lookup endpoints at runtime. Instead, use the `resolve` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the endpoint to get.

Google::Cloud::Servicedirectory::V1::RegistrationService::UpdateEndpointRequest

The request message for [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Servicedirectory::V1::RegistrationService::DeleteEndpointRequest

The request message for [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the endpoint to delete.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Servicedirectory::V1::RegistrationService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.