blob: e72617a995d1e41196d72e21217df8d71951eb65 [file]
// Copyright 2026 Google LLC
//
// 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
//
// https://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.
//
edition = "2023";
package credentio;
import "cbor/tags.proto";
option java_multiple_files = true;
option java_outer_classname = "AssetTypeOuterClass";
// The asset type assertion provides a way to more completely describe an asset
// specifically additional context on how to parse or otherwise process it when
// its `dc:format` is insufficient. It can also be used to describe externally
// referenced or related assets such as AI/ML models.
//
// See
// https://spec.c2pa.org/specifications/specifications/2.4/specs/C2PA_Specification.html#_asset_type
// for more details.
message AssetType {
// The type of asset. This can either be a custom value or one of the provided
// choices in
// https://spec.c2pa.org/specifications/specifications/2.4/specs/C2PA_Specification.html#_schema_and_example_11.
// If a custom value is used, it must satisfy the regex specified in the C2PA
// spec linked above.
string type = 1 [(cbor.tags) = { is_required: true }];
// Version of the asset.
string version = 2;
}