All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wgtwo.common.v0.phonenumber.proto Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
// Copyright 2020 Working Group Two AS
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

package wgtwo.common.v0;

option go_package = "github.com/working-group-two/wgtwoapis/wgtwo/common/v0";

option java_package = "com.wgtwo.api.v0.common";
option java_outer_classname = "PhoneNumberProto";

message PhoneNumber {

    /* Phone number formatted as E.164 with leading plus sign
     *
     * This contains of three components:
     * - The plus prefix
     * - Country code, max 3 digits
     * - Subscriber number
     *
     * Test your number at https://libphonenumber.appspot.com/
     * Example: +12024561111
     */
    string e164 = 1;
}

message TextAddress {
    string text_address = 1;
}

// Any phone number that is tied to a specific country.
// Does not contain the prefix '+' nor a country code.
message NationalPhoneNumber {
    string national_phone_number = 1;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy