# Service enfonica.numbering.v1beta1.RegulatoryListings

## Methods

| CreateRegulatoryListing |
| -- |
| <span class="e-code">rpc CreateRegulatoryListing(<span class="e-code">[CreateRegulatoryListingRequest](#createregulatorylistingrequest)</span>) returns (<span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span>)</span><br/><br/>Creates a regulatory listing.<br/><br/>By creating a regulatory listing, you acknowledge that the person or entity located at the specified address is the only party that will be utilizing phone numbers associated with this regulatory listing. You acknowledge that Enfonica may process the information provided for the purpose of identity verification, and will share this information with local telecommunications providers or authorities where required by local law. You understand that Enfonica phone numbers may be taken out of service if inaccurate or false information has been provided.<br/><br/>The caller must have `numbering.regulatoryListings.create` permission on the project. |

| DeleteRegulatoryListing |
| -- |
| <span class="e-code">rpc DeleteRegulatoryListing(<span class="e-code">[DeleteRegulatoryListingRequest](#deleteregulatorylistingrequest)</span>) returns (<span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty" target="_blank">google.protobuf.Empty</a></span>)</span><br/><br/>Deletes a regulatory listing. Regulatory listings that are associated with an active phone number instance cannot be deleted.<br/><br/>The caller must have `numbering.regulatoryListings.delete` permission on the project. |

| GetRegulatoryListing |
| -- |
| <span class="e-code">rpc GetRegulatoryListing(<span class="e-code">[GetRegulatoryListingRequest](#getregulatorylistingrequest)</span>) returns (<span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span>)</span><br/><br/>Retrieves a regulatory listing.<br/><br/>The caller must have `numbering.regulatoryListings.get` permission on the project. |

| ListRegulatoryListings |
| -- |
| <span class="e-code">rpc ListRegulatoryListings(<span class="e-code">[ListRegulatoryListingsRequest](#listregulatorylistingsrequest)</span>) returns (<span class="e-code">[ListRegulatoryListingsResponse](#listregulatorylistingsresponse)</span>)</span><br/><br/>Lists all regulatory listings.<br/><br/>List returns regulatory listings sorted by `create_time` descending.<br/><br/>The caller must have `numbering.regulatoryListings.list` permission on the project. |

| SearchRegulatoryListings |
| -- |
| <span class="e-code">rpc SearchRegulatoryListings(<span class="e-code">[SearchRegulatoryListingsRequest](#searchregulatorylistingsrequest)</span>) returns (<span class="e-code">[SearchRegulatoryListingsResponse](#searchregulatorylistingsresponse)</span>)</span><br/><br/>Searches all usable regulatory listings with the specified number type.<br/><br/>List returns regulatory listings sorted by `create_time` descending.<br/><br/>The caller must have `numbering.regulatoryListings.list` permission on the project. |

| UpdateRegulatoryListing |
| -- |
| <span class="e-code">rpc UpdateRegulatoryListing(<span class="e-code">[UpdateRegulatoryListingRequest](#updateregulatorylistingrequest)</span>) returns (<span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span>)</span><br/><br/>Updates a regulatory listing.<br/><br/>The caller must have `numbering.regulatoryListings.update` permission on the project. |

## Resource: RegulatoryListing

The regulatory listing resource.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Resource name of the regulatory listing. It must match the pattern `projects/*/regulatoryListings/*`
<span class="e-code">display_name</span> | <span class="e-code">string</span><br/>The display name of the regulatory listing. Max length 100 characters.
<span class="e-code">address</span> | <span class="e-code">[GenericAddress](#genericaddress)</span><br/>Immutable. The address of this regulatory listing.
<span class="e-code">person</span> | <span class="e-code">[PersonDetails](#persondetails)</span><br/>Immutable. The person associated with the listing.
<span class="e-code">business</span> | <span class="e-code">[BusinessDetails](#businessdetails)</span><br/>Immutable. The business or corporation associated with the listing.
<span class="e-code">create_time</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp" target="_blank">google.protobuf.Timestamp</a></span><br/>Output only. The creation time of the regulatory listing.
<span class="e-code">valid</span> | <span class="e-code">boolean</span><br/>Output only. Whether this regulatory listing is considered valid. This state may change after manual review.
<span class="e-code">verified</span> | <span class="e-code">boolean</span><br/>Output only. Whether this regulatory listing has been verified. Verification is only required for some types of phone numbers, and is performed at request by Enfonica.

## BusinessDetails

The details of a business or corporation.

Fields | &nbsp;
--|--
<span class="e-code">business</span> | <span class="e-code">string</span><br/>Required. The full legal name of the business. Maximum length 200 characters.

## GenericAddress

An address in a generic format.

The validation of some fields varies based on `region_code`. For example: - AU/NZ: locality (city) required, adminsitrative_area (city) required, postal_code required with 4 digits. - US: locality (city) required, adminsitrative_area (city) required, postal_code required with 5 digits.

Fields | &nbsp;
--|--
<span class="e-code">address_lines[]</span> | <span class="e-code">string</span><br/>Required. The address lines. Maximum length of each line is 200 characters. Must specify 1 or 2 lines.
<span class="e-code">locality</span> | <span class="e-code">string</span><br/>Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town.<br/><br/>In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use address_lines.
<span class="e-code">administrative_area</span> | <span class="e-code">string</span><br/>Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture.<br/><br/>Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.
<span class="e-code">postal_code</span> | <span class="e-code">string</span><br/>The postal code. Maximum 16 characters.
<span class="e-code">region_code</span> | <span class="e-code">string</span><br/>Required. The alpha-2 country code (capitalized).

## PersonDetails

The details of a person.

Fields | &nbsp;
--|--
<span class="e-code">given_name</span> | <span class="e-code">string</span><br/>Required. The given name of the person. Maximum length 100 characters.
<span class="e-code">family_name</span> | <span class="e-code">string</span><br/>Required. The family name of the person. Maximum length 100 characters.

## CreateRegulatoryListingRequest

Request to create a new regulatory listing.

Fields | &nbsp;
--|--
<span class="e-code">parent</span> | <span class="e-code">string</span><br/>Required. The project under which to create the regulatory listing in the form `projects/*`.
<span class="e-code">regulatory_listing</span> | <span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span><br/>Required. The resource to be created.

## GetRegulatoryListingRequest

The GetRegulatoryListing request message.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Required. The resource name of the regulatory listing to retrieve. Must be of the form `projects/*/regulatoryListings/*`.

## ListRegulatoryListingsRequest

The ListRegulatoryListings request.

Fields | &nbsp;
--|--
<span class="e-code">parent</span> | <span class="e-code">string</span><br/>Required. The project under which to list regulatory listing, in the form `projects/*`.
<span class="e-code">page_size</span> | <span class="e-code">int32</span><br/>The maximum number of regulatory listing to return in the response. Default value of 10 and maximum value of 100.
<span class="e-code">page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `ListRegulatoryListings` that indicates where this listing should continue from.

## ListRegulatoryListingsResponse

The ListRegulatoryListings response.

Fields | &nbsp;
--|--
<span class="e-code">regulatory_listings[]</span> | <span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span><br/>A possibly paginated list of regulatory listing that are direct descendants of the specified parent resource.
<span class="e-code">next_page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `ListRegulatoryListings` that indicates from where listing should continue.

## UpdateRegulatoryListingRequest

The UpdateRegulatoryListing request message.

Fields | &nbsp;
--|--
<span class="e-code">regulatory_listing</span> | <span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span><br/>Required. The updated definition of the RegulatoryListing.
<span class="e-code">update_mask</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask" target="_blank">google.protobuf.FieldMask</a></span><br/>Fields to be updated.

## DeleteRegulatoryListingRequest

The DeleteRegulatoryListing request message.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Required. The resource name of the regulatory listing to be deleted. Must be of the form `projects/*/regulatoryListings/*`.

## SearchRegulatoryListingsRequest

The SearchRegulatoryListings request.

Fields | &nbsp;
--|--
<span class="e-code">parent</span> | <span class="e-code">string</span><br/>Required. The project under which to list regulatory listing, in the form `projects/*`.
<span class="e-code">page_size</span> | <span class="e-code">int32</span><br/>The maximum number of regulatory listing to return in the response. Default value of 10 and maximum value of 100.
<span class="e-code">page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `ListRegulatoryListings` that indicates where this listing should continue from.
<span class="e-code">region_code</span> | <span class="e-code">string</span><br/>Required. The region code of the number that the regulatory listing must be usable with.
<span class="e-code">number_type</span> | <span class="e-code">[PhoneNumber.PhoneNumberType](/docs/phone-numbers/api-reference/rpc/enfonica.numbering.v1beta1/PhoneNumbers/#phonenumberphonenumbertype)</span><br/>Required. The type of number that the regulatory listing must be usable with.

## SearchRegulatoryListingsResponse

The SearchRegulatoryListings response.

Fields | &nbsp;
--|--
<span class="e-code">regulatory_listings[]</span> | <span class="e-code">[RegulatoryListing](#resource-regulatorylisting)</span><br/>A possibly paginated list of regulatory listing that are direct descendants of the specified parent resource.
<span class="e-code">next_page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `ListRegulatoryListings` that indicates from where listing should continue.

