blob: bc0b87a6c241d1c3c72c393a28bfc3480674fc49 [file] [log] [blame]
Wyatt Heplerde20d742021-06-02 23:34:14 -07001// Copyright 2021 The Pigweed Authors
2//
3// Licensed under the Apache License, Version 2.0 (the "License"); you may not
4// use this file except in compliance with the License. You may obtain a copy of
5// the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12// License for the specific language governing permissions and limitations under
13// the License.
14
15syntax = "proto3";
16
17package pw.tokenizer;
18
19import "google/protobuf/descriptor.proto";
20
21enum Tokenization {
22 // The field may contain plain text or any type of tokenized data (binary or
23 // prefixed Base64).
24 TOKENIZATION_OPTIONAL = 0;
25}
26
27// Define the tokenized option, which indicates the data format for text in a
28// bytes field.
29extend google.protobuf.FieldOptions {
30 // The field number was randomly selected from the reserved, internal use
31 // field numbers (50000-99999).
32 // TODO(pwbug/393): Register with the Protobuf Global Extension Registry:
33 // https://github.com/protocolbuffers/protobuf/blob/HEAD/docs/options.md
34 Tokenization format = 78576;
35}