11767c5feSopenharmony_ci// Copyright (C) 2017 The Libphonenumber Authors.
21767c5feSopenharmony_ci//
31767c5feSopenharmony_ci// Licensed under the Apache License, Version 2.0 (the "License");
41767c5feSopenharmony_ci// you may not use this file except in compliance with the License.
51767c5feSopenharmony_ci// You may obtain a copy of the License at
61767c5feSopenharmony_ci//
71767c5feSopenharmony_ci// http://www.apache.org/licenses/LICENSE-2.0
81767c5feSopenharmony_ci//
91767c5feSopenharmony_ci// Unless required by applicable law or agreed to in writing, software
101767c5feSopenharmony_ci// distributed under the License is distributed on an "AS IS" BASIS,
111767c5feSopenharmony_ci// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121767c5feSopenharmony_ci// See the License for the specific language governing permissions and
131767c5feSopenharmony_ci// limitations under the License.
141767c5feSopenharmony_ci
151767c5feSopenharmony_cisyntax = "proto3";
161767c5feSopenharmony_ci
171767c5feSopenharmony_cipackage i18n.phonenumbers.metadata;
181767c5feSopenharmony_ci
191767c5feSopenharmony_cioption java_package = "com.google.i18n.phonenumbers.metadata.proto";
201767c5feSopenharmony_ci
211767c5feSopenharmony_ci// The possible provenance which can be assigned to a range.
221767c5feSopenharmony_ci// This enum is NOT stable and must only be stored in text based protocol
231767c5feSopenharmony_ci// buffers.
241767c5feSopenharmony_cienum Provenance {
251767c5feSopenharmony_ci  // Having a distinct default/unknown enum with a zero value is a proto3 thing.
261767c5feSopenharmony_ci  // No data should actually ever have this value.
271767c5feSopenharmony_ci  UNKNOWN = 0;
281767c5feSopenharmony_ci
291767c5feSopenharmony_ci  // Indicates that the ranges were defined in an official ITU document. The
301767c5feSopenharmony_ci  // comment associated with this range should contain a link to the document.
311767c5feSopenharmony_ci  // This is the most trusted for of evidence and will usually replace any
321767c5feSopenharmony_ci  // previous "lower" provenance (though this is not always true for some
331767c5feSopenharmony_ci  // countries).
341767c5feSopenharmony_ci  ITU = 10;
351767c5feSopenharmony_ci
361767c5feSopenharmony_ci  // Indicates that the ranges were defined in an official IR21 document. The
371767c5feSopenharmony_ci  // comment associated with this range should contain a link to the document.
381767c5feSopenharmony_ci  // This is the most trusted for of evidence and will usually replace any
391767c5feSopenharmony_ci  // previous "lower" provenance (though this is not always true for some
401767c5feSopenharmony_ci  // countries).
411767c5feSopenharmony_ci  IR21 = 20;
421767c5feSopenharmony_ci
431767c5feSopenharmony_ci  // Indicates that evidence for a range was found in a website belonging to
441767c5feSopenharmony_ci  // an official, government endorsed entity (e.g. national telecoms operator),
451767c5feSopenharmony_ci  // but not part of either an official ITU or IR21 document.
461767c5feSopenharmony_ci  // The comment associated with this range should contain a URL to the
471767c5feSopenharmony_ci  // appropriate page where the evidence was found.
481767c5feSopenharmony_ci  GOVERNMENT = 30;
491767c5feSopenharmony_ci
501767c5feSopenharmony_ci  // Indicates that evidence for a range was found in a website belonging to a
511767c5feSopenharmony_ci  // telecoms operators (mobile carrier, MVNO etc...). The comment associated
521767c5feSopenharmony_ci  // with this range should contain a URL to the appropriate page where the
531767c5feSopenharmony_ci  // evidence was found.
541767c5feSopenharmony_ci  TELECOMS = 40;
551767c5feSopenharmony_ci
561767c5feSopenharmony_ci  // Indicates that evidence for a range was found in an unofficial website
571767c5feSopenharmony_ci  // (e.g Facebook or a general company home page). The comment associated
581767c5feSopenharmony_ci  // with this range should contain a URL to the appropriate page where the
591767c5feSopenharmony_ci  // evidence was found.
601767c5feSopenharmony_ci  WEB = 50;
611767c5feSopenharmony_ci
621767c5feSopenharmony_ci  // Used to indicate special situations in which a number is accepted as
631767c5feSopenharmony_ci  // valid, despite no citeable evidence. When this provenance the coment text
641767c5feSopenharmony_ci  // should indicate some bug report or internal reasoning as to why this range
651767c5feSopenharmony_ci  // should be accepted. This provenance should be used only in exceptional
661767c5feSopenharmony_ci  // circumstances and the comment may be scrubbed from externally published
671767c5feSopenharmony_ci  // versions of the range data.
681767c5feSopenharmony_ci  INTERNAL = 100;
691767c5feSopenharmony_ci}
70