blob: dc062790f87d1039f8bb7bd1337e405f615ea733 [file] [log] [blame]
syntax = "proto3";
package xds.core.v3;
import "google/protobuf/any.proto";
import "xds/annotations/v3/status.proto";
import "xds/core/v3/resource_name.proto";
option java_outer_classname = "ResourceProto";
option java_multiple_files = true;
option java_package = "com.github.xds.core.v3";
option go_package = "github.com/cncf/xds/go/xds/core/v3";
option (xds.annotations.v3.file_status).work_in_progress = true;
// xDS resource wrapper. This encapsulates a xDS resource when appearing in an
// xDS transport discovery response or when accessed as a filesystem object.
message Resource {
// Resource name. This may be omitted for filesystem resources.
ResourceName name = 1;
// The resource's logical version. It is illegal to have the same named xDS
// resource name at a given version with different resource payloads.
string version = 2;
// The resource payload, including type URL.
google.protobuf.Any resource = 3;
}