mirror of https://github.com/cncf/xds.git
Duplicate all protos from udpa tree to xds tree (#17)
* duplicate udpa protos in xds tree Signed-off-by: Mark D. Roth <roth@google.com> * remove udpa refs from xds tree Signed-off-by: Mark D. Roth <roth@google.com> * update build rules and generate go protos Signed-off-by: Mark D. Roth <roth@google.com> * add deprecation comments all over the place Signed-off-by: Mark D. Roth <roth@google.com>pull/18/head
parent
a5af100101
commit
cb28da3451
63 changed files with 3257 additions and 255 deletions
@ -1,28 +1,33 @@ |
||||
load(":envoy_http_archive.bzl", "udpa_http_archive") |
||||
load(":envoy_http_archive.bzl", "xds_http_archive") |
||||
load(":repository_locations.bzl", "REPOSITORY_LOCATIONS") |
||||
|
||||
def udpa_api_dependencies(): |
||||
udpa_http_archive( |
||||
def xds_api_dependencies(): |
||||
xds_http_archive( |
||||
"bazel_gazelle", |
||||
locations = REPOSITORY_LOCATIONS, |
||||
) |
||||
udpa_http_archive( |
||||
xds_http_archive( |
||||
"com_envoyproxy_protoc_gen_validate", |
||||
locations = REPOSITORY_LOCATIONS, |
||||
) |
||||
udpa_http_archive( |
||||
xds_http_archive( |
||||
name = "com_github_grpc_grpc", |
||||
locations = REPOSITORY_LOCATIONS, |
||||
) |
||||
udpa_http_archive( |
||||
xds_http_archive( |
||||
name = "com_google_googleapis", |
||||
locations = REPOSITORY_LOCATIONS, |
||||
) |
||||
udpa_http_archive( |
||||
xds_http_archive( |
||||
"com_google_protobuf", |
||||
locations = REPOSITORY_LOCATIONS, |
||||
) |
||||
udpa_http_archive( |
||||
xds_http_archive( |
||||
"io_bazel_rules_go", |
||||
locations = REPOSITORY_LOCATIONS, |
||||
) |
||||
|
||||
# Old name for backward compatibility. |
||||
# TODO(roth): Remove once all callers are updated to use the new name. |
||||
def udpa_api_dependencies(): |
||||
xds_api_dependencies() |
||||
|
@ -0,0 +1,417 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/annotations/v3/migrate.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
proto "github.com/golang/protobuf/proto" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
type MigrateAnnotation struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
Rename string `protobuf:"bytes,1,opt,name=rename,proto3" json:"rename,omitempty"` |
||||
} |
||||
|
||||
func (x *MigrateAnnotation) Reset() { |
||||
*x = MigrateAnnotation{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_annotations_v3_migrate_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *MigrateAnnotation) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*MigrateAnnotation) ProtoMessage() {} |
||||
|
||||
func (x *MigrateAnnotation) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_annotations_v3_migrate_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use MigrateAnnotation.ProtoReflect.Descriptor instead.
|
||||
func (*MigrateAnnotation) Descriptor() ([]byte, []int) { |
||||
return file_xds_annotations_v3_migrate_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *MigrateAnnotation) GetRename() string { |
||||
if x != nil { |
||||
return x.Rename |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
type FieldMigrateAnnotation struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
Rename string `protobuf:"bytes,1,opt,name=rename,proto3" json:"rename,omitempty"` |
||||
OneofPromotion string `protobuf:"bytes,2,opt,name=oneof_promotion,json=oneofPromotion,proto3" json:"oneof_promotion,omitempty"` |
||||
} |
||||
|
||||
func (x *FieldMigrateAnnotation) Reset() { |
||||
*x = FieldMigrateAnnotation{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_annotations_v3_migrate_proto_msgTypes[1] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *FieldMigrateAnnotation) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*FieldMigrateAnnotation) ProtoMessage() {} |
||||
|
||||
func (x *FieldMigrateAnnotation) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_annotations_v3_migrate_proto_msgTypes[1] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use FieldMigrateAnnotation.ProtoReflect.Descriptor instead.
|
||||
func (*FieldMigrateAnnotation) Descriptor() ([]byte, []int) { |
||||
return file_xds_annotations_v3_migrate_proto_rawDescGZIP(), []int{1} |
||||
} |
||||
|
||||
func (x *FieldMigrateAnnotation) GetRename() string { |
||||
if x != nil { |
||||
return x.Rename |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
func (x *FieldMigrateAnnotation) GetOneofPromotion() string { |
||||
if x != nil { |
||||
return x.OneofPromotion |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
type FileMigrateAnnotation struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
MoveToPackage string `protobuf:"bytes,2,opt,name=move_to_package,json=moveToPackage,proto3" json:"move_to_package,omitempty"` |
||||
} |
||||
|
||||
func (x *FileMigrateAnnotation) Reset() { |
||||
*x = FileMigrateAnnotation{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_annotations_v3_migrate_proto_msgTypes[2] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *FileMigrateAnnotation) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*FileMigrateAnnotation) ProtoMessage() {} |
||||
|
||||
func (x *FileMigrateAnnotation) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_annotations_v3_migrate_proto_msgTypes[2] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use FileMigrateAnnotation.ProtoReflect.Descriptor instead.
|
||||
func (*FileMigrateAnnotation) Descriptor() ([]byte, []int) { |
||||
return file_xds_annotations_v3_migrate_proto_rawDescGZIP(), []int{2} |
||||
} |
||||
|
||||
func (x *FileMigrateAnnotation) GetMoveToPackage() string { |
||||
if x != nil { |
||||
return x.MoveToPackage |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
var file_xds_annotations_v3_migrate_proto_extTypes = []protoimpl.ExtensionInfo{ |
||||
{ |
||||
ExtendedType: (*descriptorpb.MessageOptions)(nil), |
||||
ExtensionType: (*MigrateAnnotation)(nil), |
||||
Field: 112948430, |
||||
Name: "xds.annotations.v3.message_migrate", |
||||
Tag: "bytes,112948430,opt,name=message_migrate", |
||||
Filename: "xds/annotations/v3/migrate.proto", |
||||
}, |
||||
{ |
||||
ExtendedType: (*descriptorpb.FieldOptions)(nil), |
||||
ExtensionType: (*FieldMigrateAnnotation)(nil), |
||||
Field: 112948430, |
||||
Name: "xds.annotations.v3.field_migrate", |
||||
Tag: "bytes,112948430,opt,name=field_migrate", |
||||
Filename: "xds/annotations/v3/migrate.proto", |
||||
}, |
||||
{ |
||||
ExtendedType: (*descriptorpb.EnumOptions)(nil), |
||||
ExtensionType: (*MigrateAnnotation)(nil), |
||||
Field: 112948430, |
||||
Name: "xds.annotations.v3.enum_migrate", |
||||
Tag: "bytes,112948430,opt,name=enum_migrate", |
||||
Filename: "xds/annotations/v3/migrate.proto", |
||||
}, |
||||
{ |
||||
ExtendedType: (*descriptorpb.EnumValueOptions)(nil), |
||||
ExtensionType: (*MigrateAnnotation)(nil), |
||||
Field: 112948430, |
||||
Name: "xds.annotations.v3.enum_value_migrate", |
||||
Tag: "bytes,112948430,opt,name=enum_value_migrate", |
||||
Filename: "xds/annotations/v3/migrate.proto", |
||||
}, |
||||
{ |
||||
ExtendedType: (*descriptorpb.FileOptions)(nil), |
||||
ExtensionType: (*FileMigrateAnnotation)(nil), |
||||
Field: 112948430, |
||||
Name: "xds.annotations.v3.file_migrate", |
||||
Tag: "bytes,112948430,opt,name=file_migrate", |
||||
Filename: "xds/annotations/v3/migrate.proto", |
||||
}, |
||||
} |
||||
|
||||
// Extension fields to descriptorpb.MessageOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.MigrateAnnotation message_migrate = 112948430;
|
||||
E_MessageMigrate = &file_xds_annotations_v3_migrate_proto_extTypes[0] |
||||
) |
||||
|
||||
// Extension fields to descriptorpb.FieldOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.FieldMigrateAnnotation field_migrate = 112948430;
|
||||
E_FieldMigrate = &file_xds_annotations_v3_migrate_proto_extTypes[1] |
||||
) |
||||
|
||||
// Extension fields to descriptorpb.EnumOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.MigrateAnnotation enum_migrate = 112948430;
|
||||
E_EnumMigrate = &file_xds_annotations_v3_migrate_proto_extTypes[2] |
||||
) |
||||
|
||||
// Extension fields to descriptorpb.EnumValueOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.MigrateAnnotation enum_value_migrate = 112948430;
|
||||
E_EnumValueMigrate = &file_xds_annotations_v3_migrate_proto_extTypes[3] |
||||
) |
||||
|
||||
// Extension fields to descriptorpb.FileOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.FileMigrateAnnotation file_migrate = 112948430;
|
||||
E_FileMigrate = &file_xds_annotations_v3_migrate_proto_extTypes[4] |
||||
) |
||||
|
||||
var File_xds_annotations_v3_migrate_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_annotations_v3_migrate_proto_rawDesc = []byte{ |
||||
0x0a, 0x20, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2f, 0x76, 0x33, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, |
||||
0x74, 0x6f, 0x12, 0x12, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, |
||||
0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x33, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, |
||||
0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2b, 0x0a, 0x11, 0x4d, 0x69, 0x67, 0x72, |
||||
0x61, 0x74, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, |
||||
0x06, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, |
||||
0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x59, 0x0a, 0x16, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x69, |
||||
0x67, 0x72, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, |
||||
0x16, 0x0a, 0x06, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
||||
0x06, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, |
||||
0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, |
||||
0x52, 0x0e, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x22, 0x3f, 0x0a, 0x15, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x41, |
||||
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x6f, 0x76, |
||||
0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, |
||||
0x28, 0x09, 0x52, 0x0d, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, |
||||
0x65, 0x3a, 0x72, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x69, 0x67, |
||||
0x72, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, |
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xce, 0xe9, 0xed, 0x35, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, |
||||
0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
||||
0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, |
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x69, |
||||
0x67, 0x72, 0x61, 0x74, 0x65, 0x3a, 0x71, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, |
||||
0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, |
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xce, 0xe9, 0xed, 0x35, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, |
||||
0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
||||
0x2e, 0x76, 0x33, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, |
||||
0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, |
||||
0x64, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x3a, 0x69, 0x0a, 0x0c, 0x65, 0x6e, 0x75, 0x6d, |
||||
0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
||||
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4f, |
||||
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xce, 0xe9, 0xed, 0x35, 0x20, 0x01, 0x28, 0x0b, 0x32, |
||||
0x25, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x6e, 0x6f, |
||||
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x4d, 0x69, 0x67, 0x72, |
||||
0x61, 0x74, 0x65, 0x3a, 0x79, 0x0a, 0x12, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, |
||||
0x65, 0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
||||
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, |
||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xce, 0xe9, 0xed, |
||||
0x35, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, |
||||
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, |
||||
0x74, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x65, 0x6e, |
||||
0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x3a, 0x6d, |
||||
0x0a, 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, |
||||
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, |
||||
0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xce, 0xe9, 0xed, |
||||
0x35, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, |
||||
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x33, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4d, |
||||
0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x52, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x42, 0x2b, 0x5a, |
||||
0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, |
||||
0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, |
||||
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
||||
0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_xds_annotations_v3_migrate_proto_rawDescOnce sync.Once |
||||
file_xds_annotations_v3_migrate_proto_rawDescData = file_xds_annotations_v3_migrate_proto_rawDesc |
||||
) |
||||
|
||||
func file_xds_annotations_v3_migrate_proto_rawDescGZIP() []byte { |
||||
file_xds_annotations_v3_migrate_proto_rawDescOnce.Do(func() { |
||||
file_xds_annotations_v3_migrate_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_annotations_v3_migrate_proto_rawDescData) |
||||
}) |
||||
return file_xds_annotations_v3_migrate_proto_rawDescData |
||||
} |
||||
|
||||
var file_xds_annotations_v3_migrate_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
||||
var file_xds_annotations_v3_migrate_proto_goTypes = []interface{}{ |
||||
(*MigrateAnnotation)(nil), // 0: xds.annotations.v3.MigrateAnnotation
|
||||
(*FieldMigrateAnnotation)(nil), // 1: xds.annotations.v3.FieldMigrateAnnotation
|
||||
(*FileMigrateAnnotation)(nil), // 2: xds.annotations.v3.FileMigrateAnnotation
|
||||
(*descriptorpb.MessageOptions)(nil), // 3: google.protobuf.MessageOptions
|
||||
(*descriptorpb.FieldOptions)(nil), // 4: google.protobuf.FieldOptions
|
||||
(*descriptorpb.EnumOptions)(nil), // 5: google.protobuf.EnumOptions
|
||||
(*descriptorpb.EnumValueOptions)(nil), // 6: google.protobuf.EnumValueOptions
|
||||
(*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions
|
||||
} |
||||
var file_xds_annotations_v3_migrate_proto_depIdxs = []int32{ |
||||
3, // 0: xds.annotations.v3.message_migrate:extendee -> google.protobuf.MessageOptions
|
||||
4, // 1: xds.annotations.v3.field_migrate:extendee -> google.protobuf.FieldOptions
|
||||
5, // 2: xds.annotations.v3.enum_migrate:extendee -> google.protobuf.EnumOptions
|
||||
6, // 3: xds.annotations.v3.enum_value_migrate:extendee -> google.protobuf.EnumValueOptions
|
||||
7, // 4: xds.annotations.v3.file_migrate:extendee -> google.protobuf.FileOptions
|
||||
0, // 5: xds.annotations.v3.message_migrate:type_name -> xds.annotations.v3.MigrateAnnotation
|
||||
1, // 6: xds.annotations.v3.field_migrate:type_name -> xds.annotations.v3.FieldMigrateAnnotation
|
||||
0, // 7: xds.annotations.v3.enum_migrate:type_name -> xds.annotations.v3.MigrateAnnotation
|
||||
0, // 8: xds.annotations.v3.enum_value_migrate:type_name -> xds.annotations.v3.MigrateAnnotation
|
||||
2, // 9: xds.annotations.v3.file_migrate:type_name -> xds.annotations.v3.FileMigrateAnnotation
|
||||
10, // [10:10] is the sub-list for method output_type
|
||||
10, // [10:10] is the sub-list for method input_type
|
||||
5, // [5:10] is the sub-list for extension type_name
|
||||
0, // [0:5] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_annotations_v3_migrate_proto_init() } |
||||
func file_xds_annotations_v3_migrate_proto_init() { |
||||
if File_xds_annotations_v3_migrate_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_xds_annotations_v3_migrate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*MigrateAnnotation); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_xds_annotations_v3_migrate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*FieldMigrateAnnotation); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_xds_annotations_v3_migrate_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*FileMigrateAnnotation); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_annotations_v3_migrate_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 3, |
||||
NumExtensions: 5, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_xds_annotations_v3_migrate_proto_goTypes, |
||||
DependencyIndexes: file_xds_annotations_v3_migrate_proto_depIdxs, |
||||
MessageInfos: file_xds_annotations_v3_migrate_proto_msgTypes, |
||||
ExtensionInfos: file_xds_annotations_v3_migrate_proto_extTypes, |
||||
}.Build() |
||||
File_xds_annotations_v3_migrate_proto = out.File |
||||
file_xds_annotations_v3_migrate_proto_rawDesc = nil |
||||
file_xds_annotations_v3_migrate_proto_goTypes = nil |
||||
file_xds_annotations_v3_migrate_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,243 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/annotations/v3/migrate.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
||||
|
||||
// Validate checks the field values on MigrateAnnotation with the rules defined
|
||||
// in the proto definition for this message. If any rules are violated, an
|
||||
// error is returned.
|
||||
func (m *MigrateAnnotation) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
// no validation rules for Rename
|
||||
|
||||
return nil |
||||
} |
||||
|
||||
// MigrateAnnotationValidationError is the validation error returned by
|
||||
// MigrateAnnotation.Validate if the designated constraints aren't met.
|
||||
type MigrateAnnotationValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e MigrateAnnotationValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e MigrateAnnotationValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e MigrateAnnotationValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e MigrateAnnotationValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e MigrateAnnotationValidationError) ErrorName() string { |
||||
return "MigrateAnnotationValidationError" |
||||
} |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e MigrateAnnotationValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sMigrateAnnotation.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = MigrateAnnotationValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = MigrateAnnotationValidationError{} |
||||
|
||||
// Validate checks the field values on FieldMigrateAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *FieldMigrateAnnotation) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
// no validation rules for Rename
|
||||
|
||||
// no validation rules for OneofPromotion
|
||||
|
||||
return nil |
||||
} |
||||
|
||||
// FieldMigrateAnnotationValidationError is the validation error returned by
|
||||
// FieldMigrateAnnotation.Validate if the designated constraints aren't met.
|
||||
type FieldMigrateAnnotationValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e FieldMigrateAnnotationValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e FieldMigrateAnnotationValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e FieldMigrateAnnotationValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e FieldMigrateAnnotationValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e FieldMigrateAnnotationValidationError) ErrorName() string { |
||||
return "FieldMigrateAnnotationValidationError" |
||||
} |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e FieldMigrateAnnotationValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sFieldMigrateAnnotation.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = FieldMigrateAnnotationValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = FieldMigrateAnnotationValidationError{} |
||||
|
||||
// Validate checks the field values on FileMigrateAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *FileMigrateAnnotation) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
// no validation rules for MoveToPackage
|
||||
|
||||
return nil |
||||
} |
||||
|
||||
// FileMigrateAnnotationValidationError is the validation error returned by
|
||||
// FileMigrateAnnotation.Validate if the designated constraints aren't met.
|
||||
type FileMigrateAnnotationValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e FileMigrateAnnotationValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e FileMigrateAnnotationValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e FileMigrateAnnotationValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e FileMigrateAnnotationValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e FileMigrateAnnotationValidationError) ErrorName() string { |
||||
return "FileMigrateAnnotationValidationError" |
||||
} |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e FileMigrateAnnotationValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sFileMigrateAnnotation.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = FileMigrateAnnotationValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = FileMigrateAnnotationValidationError{} |
@ -0,0 +1,202 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/annotations/v3/security.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
proto "github.com/golang/protobuf/proto" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
type FieldSecurityAnnotation struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
ConfigureForUntrustedDownstream bool `protobuf:"varint,1,opt,name=configure_for_untrusted_downstream,json=configureForUntrustedDownstream,proto3" json:"configure_for_untrusted_downstream,omitempty"` |
||||
ConfigureForUntrustedUpstream bool `protobuf:"varint,2,opt,name=configure_for_untrusted_upstream,json=configureForUntrustedUpstream,proto3" json:"configure_for_untrusted_upstream,omitempty"` |
||||
} |
||||
|
||||
func (x *FieldSecurityAnnotation) Reset() { |
||||
*x = FieldSecurityAnnotation{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_annotations_v3_security_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *FieldSecurityAnnotation) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*FieldSecurityAnnotation) ProtoMessage() {} |
||||
|
||||
func (x *FieldSecurityAnnotation) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_annotations_v3_security_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use FieldSecurityAnnotation.ProtoReflect.Descriptor instead.
|
||||
func (*FieldSecurityAnnotation) Descriptor() ([]byte, []int) { |
||||
return file_xds_annotations_v3_security_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *FieldSecurityAnnotation) GetConfigureForUntrustedDownstream() bool { |
||||
if x != nil { |
||||
return x.ConfigureForUntrustedDownstream |
||||
} |
||||
return false |
||||
} |
||||
|
||||
func (x *FieldSecurityAnnotation) GetConfigureForUntrustedUpstream() bool { |
||||
if x != nil { |
||||
return x.ConfigureForUntrustedUpstream |
||||
} |
||||
return false |
||||
} |
||||
|
||||
var file_xds_annotations_v3_security_proto_extTypes = []protoimpl.ExtensionInfo{ |
||||
{ |
||||
ExtendedType: (*descriptorpb.FieldOptions)(nil), |
||||
ExtensionType: (*FieldSecurityAnnotation)(nil), |
||||
Field: 99044135, |
||||
Name: "xds.annotations.v3.security", |
||||
Tag: "bytes,99044135,opt,name=security", |
||||
Filename: "xds/annotations/v3/security.proto", |
||||
}, |
||||
} |
||||
|
||||
// Extension fields to descriptorpb.FieldOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.FieldSecurityAnnotation security = 99044135;
|
||||
E_Security = &file_xds_annotations_v3_security_proto_extTypes[0] |
||||
) |
||||
|
||||
var File_xds_annotations_v3_security_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_annotations_v3_security_proto_rawDesc = []byte{ |
||||
0x0a, 0x21, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, |
||||
0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
||||
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, |
||||
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, |
||||
0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, |
||||
0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x17, 0x46, |
||||
0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x41, 0x6e, 0x6e, 0x6f, |
||||
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x22, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
||||
0x75, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, |
||||
0x64, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, |
||||
0x28, 0x08, 0x52, 0x1f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x46, 0x6f, 0x72, |
||||
0x55, 0x6e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, |
||||
0x65, 0x61, 0x6d, 0x12, 0x47, 0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, |
||||
0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x75, |
||||
0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1d, 0x63, |
||||
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x6e, 0x74, 0x72, 0x75, |
||||
0x73, 0x74, 0x65, 0x64, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x3a, 0x69, 0x0a, 0x08, |
||||
0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
||||
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, |
||||
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xa7, 0x96, 0x9d, 0x2f, 0x20, 0x01, 0x28, 0x0b, |
||||
0x32, 0x2b, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, |
||||
0x6e, 0x73, 0x2e, 0x76, 0x33, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x63, 0x75, 0x72, |
||||
0x69, 0x74, 0x79, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, |
||||
0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x42, 0x33, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, |
||||
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, |
||||
0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2f, 0x76, 0x33, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, 0x72, |
||||
0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_xds_annotations_v3_security_proto_rawDescOnce sync.Once |
||||
file_xds_annotations_v3_security_proto_rawDescData = file_xds_annotations_v3_security_proto_rawDesc |
||||
) |
||||
|
||||
func file_xds_annotations_v3_security_proto_rawDescGZIP() []byte { |
||||
file_xds_annotations_v3_security_proto_rawDescOnce.Do(func() { |
||||
file_xds_annotations_v3_security_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_annotations_v3_security_proto_rawDescData) |
||||
}) |
||||
return file_xds_annotations_v3_security_proto_rawDescData |
||||
} |
||||
|
||||
var file_xds_annotations_v3_security_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
||||
var file_xds_annotations_v3_security_proto_goTypes = []interface{}{ |
||||
(*FieldSecurityAnnotation)(nil), // 0: xds.annotations.v3.FieldSecurityAnnotation
|
||||
(*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions
|
||||
} |
||||
var file_xds_annotations_v3_security_proto_depIdxs = []int32{ |
||||
1, // 0: xds.annotations.v3.security:extendee -> google.protobuf.FieldOptions
|
||||
0, // 1: xds.annotations.v3.security:type_name -> xds.annotations.v3.FieldSecurityAnnotation
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
1, // [1:2] is the sub-list for extension type_name
|
||||
0, // [0:1] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_annotations_v3_security_proto_init() } |
||||
func file_xds_annotations_v3_security_proto_init() { |
||||
if File_xds_annotations_v3_security_proto != nil { |
||||
return |
||||
} |
||||
file_xds_annotations_v3_status_proto_init() |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_xds_annotations_v3_security_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*FieldSecurityAnnotation); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_annotations_v3_security_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 1, |
||||
NumExtensions: 1, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_xds_annotations_v3_security_proto_goTypes, |
||||
DependencyIndexes: file_xds_annotations_v3_security_proto_depIdxs, |
||||
MessageInfos: file_xds_annotations_v3_security_proto_msgTypes, |
||||
ExtensionInfos: file_xds_annotations_v3_security_proto_extTypes, |
||||
}.Build() |
||||
File_xds_annotations_v3_security_proto = out.File |
||||
file_xds_annotations_v3_security_proto_rawDesc = nil |
||||
file_xds_annotations_v3_security_proto_goTypes = nil |
||||
file_xds_annotations_v3_security_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,105 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/annotations/v3/security.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
||||
|
||||
// Validate checks the field values on FieldSecurityAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *FieldSecurityAnnotation) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
// no validation rules for ConfigureForUntrustedDownstream
|
||||
|
||||
// no validation rules for ConfigureForUntrustedUpstream
|
||||
|
||||
return nil |
||||
} |
||||
|
||||
// FieldSecurityAnnotationValidationError is the validation error returned by
|
||||
// FieldSecurityAnnotation.Validate if the designated constraints aren't met.
|
||||
type FieldSecurityAnnotationValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e FieldSecurityAnnotationValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e FieldSecurityAnnotationValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e FieldSecurityAnnotationValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e FieldSecurityAnnotationValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e FieldSecurityAnnotationValidationError) ErrorName() string { |
||||
return "FieldSecurityAnnotationValidationError" |
||||
} |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e FieldSecurityAnnotationValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sFieldSecurityAnnotation.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = FieldSecurityAnnotationValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = FieldSecurityAnnotationValidationError{} |
@ -0,0 +1,98 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/annotations/v3/sensitive.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
proto "github.com/golang/protobuf/proto" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
||||
reflect "reflect" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
var file_xds_annotations_v3_sensitive_proto_extTypes = []protoimpl.ExtensionInfo{ |
||||
{ |
||||
ExtendedType: (*descriptorpb.FieldOptions)(nil), |
||||
ExtensionType: (*bool)(nil), |
||||
Field: 61008053, |
||||
Name: "xds.annotations.v3.sensitive", |
||||
Tag: "varint,61008053,opt,name=sensitive", |
||||
Filename: "xds/annotations/v3/sensitive.proto", |
||||
}, |
||||
} |
||||
|
||||
// Extension fields to descriptorpb.FieldOptions.
|
||||
var ( |
||||
// optional bool sensitive = 61008053;
|
||||
E_Sensitive = &file_xds_annotations_v3_sensitive_proto_extTypes[0] |
||||
) |
||||
|
||||
var File_xds_annotations_v3_sensitive_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_annotations_v3_sensitive_proto_rawDesc = []byte{ |
||||
0x0a, 0x22, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x70, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, |
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x33, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, |
||||
0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x3e, 0x0a, 0x09, 0x73, 0x65, |
||||
0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, |
||||
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xb5, 0xd1, 0x8b, 0x1d, 0x20, 0x01, 0x28, 0x08, 0x52, |
||||
0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, |
||||
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, |
||||
0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
||||
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var file_xds_annotations_v3_sensitive_proto_goTypes = []interface{}{ |
||||
(*descriptorpb.FieldOptions)(nil), // 0: google.protobuf.FieldOptions
|
||||
} |
||||
var file_xds_annotations_v3_sensitive_proto_depIdxs = []int32{ |
||||
0, // 0: xds.annotations.v3.sensitive:extendee -> google.protobuf.FieldOptions
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
0, // [0:1] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_annotations_v3_sensitive_proto_init() } |
||||
func file_xds_annotations_v3_sensitive_proto_init() { |
||||
if File_xds_annotations_v3_sensitive_proto != nil { |
||||
return |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_annotations_v3_sensitive_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 0, |
||||
NumExtensions: 1, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_xds_annotations_v3_sensitive_proto_goTypes, |
||||
DependencyIndexes: file_xds_annotations_v3_sensitive_proto_depIdxs, |
||||
ExtensionInfos: file_xds_annotations_v3_sensitive_proto_extTypes, |
||||
}.Build() |
||||
File_xds_annotations_v3_sensitive_proto = out.File |
||||
file_xds_annotations_v3_sensitive_proto_rawDesc = nil |
||||
file_xds_annotations_v3_sensitive_proto_goTypes = nil |
||||
file_xds_annotations_v3_sensitive_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,34 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/annotations/v3/sensitive.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
@ -0,0 +1,184 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/annotations/v3/versioning.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
proto "github.com/golang/protobuf/proto" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
type VersioningAnnotation struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
PreviousMessageType string `protobuf:"bytes,1,opt,name=previous_message_type,json=previousMessageType,proto3" json:"previous_message_type,omitempty"` |
||||
} |
||||
|
||||
func (x *VersioningAnnotation) Reset() { |
||||
*x = VersioningAnnotation{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_annotations_v3_versioning_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *VersioningAnnotation) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*VersioningAnnotation) ProtoMessage() {} |
||||
|
||||
func (x *VersioningAnnotation) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_annotations_v3_versioning_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use VersioningAnnotation.ProtoReflect.Descriptor instead.
|
||||
func (*VersioningAnnotation) Descriptor() ([]byte, []int) { |
||||
return file_xds_annotations_v3_versioning_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *VersioningAnnotation) GetPreviousMessageType() string { |
||||
if x != nil { |
||||
return x.PreviousMessageType |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
var file_xds_annotations_v3_versioning_proto_extTypes = []protoimpl.ExtensionInfo{ |
||||
{ |
||||
ExtendedType: (*descriptorpb.MessageOptions)(nil), |
||||
ExtensionType: (*VersioningAnnotation)(nil), |
||||
Field: 92389011, |
||||
Name: "xds.annotations.v3.versioning", |
||||
Tag: "bytes,92389011,opt,name=versioning", |
||||
Filename: "xds/annotations/v3/versioning.proto", |
||||
}, |
||||
} |
||||
|
||||
// Extension fields to descriptorpb.MessageOptions.
|
||||
var ( |
||||
// optional xds.annotations.v3.VersioningAnnotation versioning = 92389011;
|
||||
E_Versioning = &file_xds_annotations_v3_versioning_proto_extTypes[0] |
||||
) |
||||
|
||||
var File_xds_annotations_v3_versioning_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_annotations_v3_versioning_proto_rawDesc = []byte{ |
||||
0x0a, 0x23, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2f, 0x76, 0x33, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, |
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, |
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x33, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
||||
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, |
||||
0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x14, 0x56, |
||||
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
||||
0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, |
||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, |
||||
0x28, 0x09, 0x52, 0x13, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, |
||||
0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x6c, 0x0a, 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, |
||||
0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, |
||||
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x93, 0xfd, 0x86, 0x2c, 0x20, 0x01, 0x28, 0x0b, 0x32, |
||||
0x28, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x73, 0x2e, 0x76, 0x33, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, |
||||
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, |
||||
0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, |
||||
0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x2f, |
||||
0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, |
||||
0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_xds_annotations_v3_versioning_proto_rawDescOnce sync.Once |
||||
file_xds_annotations_v3_versioning_proto_rawDescData = file_xds_annotations_v3_versioning_proto_rawDesc |
||||
) |
||||
|
||||
func file_xds_annotations_v3_versioning_proto_rawDescGZIP() []byte { |
||||
file_xds_annotations_v3_versioning_proto_rawDescOnce.Do(func() { |
||||
file_xds_annotations_v3_versioning_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_annotations_v3_versioning_proto_rawDescData) |
||||
}) |
||||
return file_xds_annotations_v3_versioning_proto_rawDescData |
||||
} |
||||
|
||||
var file_xds_annotations_v3_versioning_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
||||
var file_xds_annotations_v3_versioning_proto_goTypes = []interface{}{ |
||||
(*VersioningAnnotation)(nil), // 0: xds.annotations.v3.VersioningAnnotation
|
||||
(*descriptorpb.MessageOptions)(nil), // 1: google.protobuf.MessageOptions
|
||||
} |
||||
var file_xds_annotations_v3_versioning_proto_depIdxs = []int32{ |
||||
1, // 0: xds.annotations.v3.versioning:extendee -> google.protobuf.MessageOptions
|
||||
0, // 1: xds.annotations.v3.versioning:type_name -> xds.annotations.v3.VersioningAnnotation
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
1, // [1:2] is the sub-list for extension type_name
|
||||
0, // [0:1] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_annotations_v3_versioning_proto_init() } |
||||
func file_xds_annotations_v3_versioning_proto_init() { |
||||
if File_xds_annotations_v3_versioning_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_xds_annotations_v3_versioning_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*VersioningAnnotation); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_annotations_v3_versioning_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 1, |
||||
NumExtensions: 1, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_xds_annotations_v3_versioning_proto_goTypes, |
||||
DependencyIndexes: file_xds_annotations_v3_versioning_proto_depIdxs, |
||||
MessageInfos: file_xds_annotations_v3_versioning_proto_msgTypes, |
||||
ExtensionInfos: file_xds_annotations_v3_versioning_proto_extTypes, |
||||
}.Build() |
||||
File_xds_annotations_v3_versioning_proto = out.File |
||||
file_xds_annotations_v3_versioning_proto_rawDesc = nil |
||||
file_xds_annotations_v3_versioning_proto_goTypes = nil |
||||
file_xds_annotations_v3_versioning_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,103 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/annotations/v3/versioning.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
||||
|
||||
// Validate checks the field values on VersioningAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *VersioningAnnotation) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
// no validation rules for PreviousMessageType
|
||||
|
||||
return nil |
||||
} |
||||
|
||||
// VersioningAnnotationValidationError is the validation error returned by
|
||||
// VersioningAnnotation.Validate if the designated constraints aren't met.
|
||||
type VersioningAnnotationValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e VersioningAnnotationValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e VersioningAnnotationValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e VersioningAnnotationValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e VersioningAnnotationValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e VersioningAnnotationValidationError) ErrorName() string { |
||||
return "VersioningAnnotationValidationError" |
||||
} |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e VersioningAnnotationValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sVersioningAnnotation.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = VersioningAnnotationValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = VersioningAnnotationValidationError{} |
@ -0,0 +1,223 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/data/orca/v3/orca_load_report.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
||||
proto "github.com/golang/protobuf/proto" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
type OrcaLoadReport struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
CpuUtilization float64 `protobuf:"fixed64,1,opt,name=cpu_utilization,json=cpuUtilization,proto3" json:"cpu_utilization,omitempty"` |
||||
MemUtilization float64 `protobuf:"fixed64,2,opt,name=mem_utilization,json=memUtilization,proto3" json:"mem_utilization,omitempty"` |
||||
Rps uint64 `protobuf:"varint,3,opt,name=rps,proto3" json:"rps,omitempty"` |
||||
RequestCost map[string]float64 `protobuf:"bytes,4,rep,name=request_cost,json=requestCost,proto3" json:"request_cost,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` |
||||
Utilization map[string]float64 `protobuf:"bytes,5,rep,name=utilization,proto3" json:"utilization,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) Reset() { |
||||
*x = OrcaLoadReport{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_data_orca_v3_orca_load_report_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*OrcaLoadReport) ProtoMessage() {} |
||||
|
||||
func (x *OrcaLoadReport) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_data_orca_v3_orca_load_report_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use OrcaLoadReport.ProtoReflect.Descriptor instead.
|
||||
func (*OrcaLoadReport) Descriptor() ([]byte, []int) { |
||||
return file_xds_data_orca_v3_orca_load_report_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) GetCpuUtilization() float64 { |
||||
if x != nil { |
||||
return x.CpuUtilization |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) GetMemUtilization() float64 { |
||||
if x != nil { |
||||
return x.MemUtilization |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) GetRps() uint64 { |
||||
if x != nil { |
||||
return x.Rps |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) GetRequestCost() map[string]float64 { |
||||
if x != nil { |
||||
return x.RequestCost |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (x *OrcaLoadReport) GetUtilization() map[string]float64 { |
||||
if x != nil { |
||||
return x.Utilization |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
var File_xds_data_orca_v3_orca_load_report_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_data_orca_v3_orca_load_report_proto_rawDesc = []byte{ |
||||
0x0a, 0x27, 0x78, 0x64, 0x73, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6f, 0x72, 0x63, 0x61, 0x2f, |
||||
0x76, 0x33, 0x2f, 0x6f, 0x72, 0x63, 0x61, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x70, |
||||
0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x64, 0x73, 0x2e, 0x64, |
||||
0x61, 0x74, 0x61, 0x2e, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x76, 0x33, 0x1a, 0x17, 0x76, 0x61, 0x6c, |
||||
0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x04, 0x0a, 0x0e, 0x4f, 0x72, 0x63, 0x61, 0x4c, 0x6f, 0x61, |
||||
0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x45, 0x0a, 0x0f, 0x63, 0x70, 0x75, 0x5f, 0x75, |
||||
0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, |
||||
0x42, 0x1c, 0xfa, 0x42, 0x0b, 0x12, 0x09, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
||||
0xfa, 0x42, 0x0b, 0x12, 0x09, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3f, 0x52, 0x0e, |
||||
0x63, 0x70, 0x75, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, |
||||
0x0a, 0x0f, 0x6d, 0x65, 0x6d, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, |
||||
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x1c, 0xfa, 0x42, 0x0b, 0x12, 0x09, 0x29, 0x00, |
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x42, 0x0b, 0x12, 0x09, 0x19, 0x00, 0x00, 0x00, |
||||
0x00, 0x00, 0x00, 0xf0, 0x3f, 0x52, 0x0e, 0x6d, 0x65, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, |
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, |
||||
0x28, 0x04, 0x52, 0x03, 0x72, 0x70, 0x73, 0x12, 0x54, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, |
||||
0x73, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, |
||||
0x78, 0x64, 0x73, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x76, 0x33, |
||||
0x2e, 0x4f, 0x72, 0x63, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, |
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, |
||||
0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x7b, 0x0a, |
||||
0x0b, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x03, |
||||
0x28, 0x0b, 0x32, 0x31, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6f, 0x72, |
||||
0x63, 0x61, 0x2e, 0x76, 0x33, 0x2e, 0x4f, 0x72, 0x63, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, |
||||
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x26, 0xfa, 0x42, 0x10, 0x9a, 0x01, 0x0d, 0x2a, 0x0b, 0x12, |
||||
0x09, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x42, 0x10, 0x9a, 0x01, 0x0d, |
||||
0x2a, 0x0b, 0x12, 0x09, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3f, 0x52, 0x0b, 0x75, |
||||
0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x3e, 0x0a, 0x10, 0x52, 0x65, |
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, |
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, |
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, |
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x55, 0x74, |
||||
0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, |
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, |
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, |
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x5d, 0x0a, 0x1b, 0x63, 0x6f, |
||||
0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x64, 0x61, 0x74, |
||||
0x61, 0x2e, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x76, 0x33, 0x42, 0x13, 0x4f, 0x72, 0x63, 0x61, 0x4c, |
||||
0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
||||
0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, |
||||
0x66, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x64, 0x61, 0x74, |
||||
0x61, 0x2f, 0x6f, 0x72, 0x63, 0x61, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
||||
0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_xds_data_orca_v3_orca_load_report_proto_rawDescOnce sync.Once |
||||
file_xds_data_orca_v3_orca_load_report_proto_rawDescData = file_xds_data_orca_v3_orca_load_report_proto_rawDesc |
||||
) |
||||
|
||||
func file_xds_data_orca_v3_orca_load_report_proto_rawDescGZIP() []byte { |
||||
file_xds_data_orca_v3_orca_load_report_proto_rawDescOnce.Do(func() { |
||||
file_xds_data_orca_v3_orca_load_report_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_data_orca_v3_orca_load_report_proto_rawDescData) |
||||
}) |
||||
return file_xds_data_orca_v3_orca_load_report_proto_rawDescData |
||||
} |
||||
|
||||
var file_xds_data_orca_v3_orca_load_report_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
||||
var file_xds_data_orca_v3_orca_load_report_proto_goTypes = []interface{}{ |
||||
(*OrcaLoadReport)(nil), // 0: xds.data.orca.v3.OrcaLoadReport
|
||||
nil, // 1: xds.data.orca.v3.OrcaLoadReport.RequestCostEntry
|
||||
nil, // 2: xds.data.orca.v3.OrcaLoadReport.UtilizationEntry
|
||||
} |
||||
var file_xds_data_orca_v3_orca_load_report_proto_depIdxs = []int32{ |
||||
1, // 0: xds.data.orca.v3.OrcaLoadReport.request_cost:type_name -> xds.data.orca.v3.OrcaLoadReport.RequestCostEntry
|
||||
2, // 1: xds.data.orca.v3.OrcaLoadReport.utilization:type_name -> xds.data.orca.v3.OrcaLoadReport.UtilizationEntry
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_data_orca_v3_orca_load_report_proto_init() } |
||||
func file_xds_data_orca_v3_orca_load_report_proto_init() { |
||||
if File_xds_data_orca_v3_orca_load_report_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_xds_data_orca_v3_orca_load_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*OrcaLoadReport); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_data_orca_v3_orca_load_report_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 3, |
||||
NumExtensions: 0, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_xds_data_orca_v3_orca_load_report_proto_goTypes, |
||||
DependencyIndexes: file_xds_data_orca_v3_orca_load_report_proto_depIdxs, |
||||
MessageInfos: file_xds_data_orca_v3_orca_load_report_proto_msgTypes, |
||||
}.Build() |
||||
File_xds_data_orca_v3_orca_load_report_proto = out.File |
||||
file_xds_data_orca_v3_orca_load_report_proto_rawDesc = nil |
||||
file_xds_data_orca_v3_orca_load_report_proto_goTypes = nil |
||||
file_xds_data_orca_v3_orca_load_report_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,131 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/data/orca/v3/orca_load_report.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
||||
|
||||
// Validate checks the field values on OrcaLoadReport with the rules defined in
|
||||
// the proto definition for this message. If any rules are violated, an error
|
||||
// is returned.
|
||||
func (m *OrcaLoadReport) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
if val := m.GetCpuUtilization(); val < 0 || val > 1 { |
||||
return OrcaLoadReportValidationError{ |
||||
field: "CpuUtilization", |
||||
reason: "value must be inside range [0, 1]", |
||||
} |
||||
} |
||||
|
||||
if val := m.GetMemUtilization(); val < 0 || val > 1 { |
||||
return OrcaLoadReportValidationError{ |
||||
field: "MemUtilization", |
||||
reason: "value must be inside range [0, 1]", |
||||
} |
||||
} |
||||
|
||||
// no validation rules for Rps
|
||||
|
||||
// no validation rules for RequestCost
|
||||
|
||||
for key, val := range m.GetUtilization() { |
||||
_ = val |
||||
|
||||
// no validation rules for Utilization[key]
|
||||
|
||||
if val := val; val < 0 || val > 1 { |
||||
return OrcaLoadReportValidationError{ |
||||
field: fmt.Sprintf("Utilization[%v]", key), |
||||
reason: "value must be inside range [0, 1]", |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
return nil |
||||
} |
||||
|
||||
// OrcaLoadReportValidationError is the validation error returned by
|
||||
// OrcaLoadReport.Validate if the designated constraints aren't met.
|
||||
type OrcaLoadReportValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e OrcaLoadReportValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e OrcaLoadReportValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e OrcaLoadReportValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e OrcaLoadReportValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e OrcaLoadReportValidationError) ErrorName() string { return "OrcaLoadReportValidationError" } |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e OrcaLoadReportValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sOrcaLoadReport.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = OrcaLoadReportValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = OrcaLoadReportValidationError{} |
@ -0,0 +1,300 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/service/orca/v3/orca.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
context "context" |
||||
v3 "github.com/cncf/xds/go/xds/data/orca/v3" |
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
||||
proto "github.com/golang/protobuf/proto" |
||||
duration "github.com/golang/protobuf/ptypes/duration" |
||||
grpc "google.golang.org/grpc" |
||||
codes "google.golang.org/grpc/codes" |
||||
status "google.golang.org/grpc/status" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
type OrcaLoadReportRequest struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
ReportInterval *duration.Duration `protobuf:"bytes,1,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"` |
||||
RequestCostNames []string `protobuf:"bytes,2,rep,name=request_cost_names,json=requestCostNames,proto3" json:"request_cost_names,omitempty"` |
||||
} |
||||
|
||||
func (x *OrcaLoadReportRequest) Reset() { |
||||
*x = OrcaLoadReportRequest{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_service_orca_v3_orca_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *OrcaLoadReportRequest) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*OrcaLoadReportRequest) ProtoMessage() {} |
||||
|
||||
func (x *OrcaLoadReportRequest) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_service_orca_v3_orca_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use OrcaLoadReportRequest.ProtoReflect.Descriptor instead.
|
||||
func (*OrcaLoadReportRequest) Descriptor() ([]byte, []int) { |
||||
return file_xds_service_orca_v3_orca_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *OrcaLoadReportRequest) GetReportInterval() *duration.Duration { |
||||
if x != nil { |
||||
return x.ReportInterval |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (x *OrcaLoadReportRequest) GetRequestCostNames() []string { |
||||
if x != nil { |
||||
return x.RequestCostNames |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
var File_xds_service_orca_v3_orca_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_service_orca_v3_orca_proto_rawDesc = []byte{ |
||||
0x0a, 0x1e, 0x78, 0x64, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x6f, 0x72, |
||||
0x63, 0x61, 0x2f, 0x76, 0x33, 0x2f, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
||||
0x12, 0x13, 0x78, 0x64, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6f, 0x72, |
||||
0x63, 0x61, 0x2e, 0x76, 0x33, 0x1a, 0x27, 0x78, 0x64, 0x73, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, |
||||
0x6f, 0x72, 0x63, 0x61, 0x2f, 0x76, 0x33, 0x2f, 0x6f, 0x72, 0x63, 0x61, 0x5f, 0x6c, 0x6f, 0x61, |
||||
0x64, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, |
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, |
||||
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, |
||||
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, |
||||
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x15, 0x4f, 0x72, 0x63, 0x61, |
||||
0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
||||
0x74, 0x12, 0x42, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, |
||||
0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, |
||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, |
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x74, |
||||
0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
||||
0x5f, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
||||
0x09, 0x52, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x4e, 0x61, |
||||
0x6d, 0x65, 0x73, 0x32, 0x75, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x63, 0x61, 0x53, 0x65, |
||||
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, |
||||
0x6f, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2a, 0x2e, 0x78, 0x64, 0x73, |
||||
0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x76, 0x33, |
||||
0x2e, 0x4f, 0x72, 0x63, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, |
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x64, 0x61, 0x74, |
||||
0x61, 0x2e, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x76, 0x33, 0x2e, 0x4f, 0x72, 0x63, 0x61, 0x4c, 0x6f, |
||||
0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x30, 0x01, 0x42, 0x59, 0x0a, 0x1e, 0x63, 0x6f, |
||||
0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x73, 0x65, 0x72, |
||||
0x76, 0x69, 0x63, 0x65, 0x2e, 0x6f, 0x72, 0x63, 0x61, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x4f, 0x72, |
||||
0x63, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, |
||||
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, |
||||
0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x6f, 0x72, |
||||
0x63, 0x61, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_xds_service_orca_v3_orca_proto_rawDescOnce sync.Once |
||||
file_xds_service_orca_v3_orca_proto_rawDescData = file_xds_service_orca_v3_orca_proto_rawDesc |
||||
) |
||||
|
||||
func file_xds_service_orca_v3_orca_proto_rawDescGZIP() []byte { |
||||
file_xds_service_orca_v3_orca_proto_rawDescOnce.Do(func() { |
||||
file_xds_service_orca_v3_orca_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_service_orca_v3_orca_proto_rawDescData) |
||||
}) |
||||
return file_xds_service_orca_v3_orca_proto_rawDescData |
||||
} |
||||
|
||||
var file_xds_service_orca_v3_orca_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
||||
var file_xds_service_orca_v3_orca_proto_goTypes = []interface{}{ |
||||
(*OrcaLoadReportRequest)(nil), // 0: xds.service.orca.v3.OrcaLoadReportRequest
|
||||
(*duration.Duration)(nil), // 1: google.protobuf.Duration
|
||||
(*v3.OrcaLoadReport)(nil), // 2: xds.data.orca.v3.OrcaLoadReport
|
||||
} |
||||
var file_xds_service_orca_v3_orca_proto_depIdxs = []int32{ |
||||
1, // 0: xds.service.orca.v3.OrcaLoadReportRequest.report_interval:type_name -> google.protobuf.Duration
|
||||
0, // 1: xds.service.orca.v3.OpenRcaService.StreamCoreMetrics:input_type -> xds.service.orca.v3.OrcaLoadReportRequest
|
||||
2, // 2: xds.service.orca.v3.OpenRcaService.StreamCoreMetrics:output_type -> xds.data.orca.v3.OrcaLoadReport
|
||||
2, // [2:3] is the sub-list for method output_type
|
||||
1, // [1:2] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_service_orca_v3_orca_proto_init() } |
||||
func file_xds_service_orca_v3_orca_proto_init() { |
||||
if File_xds_service_orca_v3_orca_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_xds_service_orca_v3_orca_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*OrcaLoadReportRequest); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_service_orca_v3_orca_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 1, |
||||
NumExtensions: 0, |
||||
NumServices: 1, |
||||
}, |
||||
GoTypes: file_xds_service_orca_v3_orca_proto_goTypes, |
||||
DependencyIndexes: file_xds_service_orca_v3_orca_proto_depIdxs, |
||||
MessageInfos: file_xds_service_orca_v3_orca_proto_msgTypes, |
||||
}.Build() |
||||
File_xds_service_orca_v3_orca_proto = out.File |
||||
file_xds_service_orca_v3_orca_proto_rawDesc = nil |
||||
file_xds_service_orca_v3_orca_proto_goTypes = nil |
||||
file_xds_service_orca_v3_orca_proto_depIdxs = nil |
||||
} |
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context |
||||
var _ grpc.ClientConnInterface |
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6 |
||||
|
||||
// OpenRcaServiceClient is the client API for OpenRcaService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type OpenRcaServiceClient interface { |
||||
StreamCoreMetrics(ctx context.Context, in *OrcaLoadReportRequest, opts ...grpc.CallOption) (OpenRcaService_StreamCoreMetricsClient, error) |
||||
} |
||||
|
||||
type openRcaServiceClient struct { |
||||
cc grpc.ClientConnInterface |
||||
} |
||||
|
||||
func NewOpenRcaServiceClient(cc grpc.ClientConnInterface) OpenRcaServiceClient { |
||||
return &openRcaServiceClient{cc} |
||||
} |
||||
|
||||
func (c *openRcaServiceClient) StreamCoreMetrics(ctx context.Context, in *OrcaLoadReportRequest, opts ...grpc.CallOption) (OpenRcaService_StreamCoreMetricsClient, error) { |
||||
stream, err := c.cc.NewStream(ctx, &_OpenRcaService_serviceDesc.Streams[0], "/xds.service.orca.v3.OpenRcaService/StreamCoreMetrics", opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
x := &openRcaServiceStreamCoreMetricsClient{stream} |
||||
if err := x.ClientStream.SendMsg(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if err := x.ClientStream.CloseSend(); err != nil { |
||||
return nil, err |
||||
} |
||||
return x, nil |
||||
} |
||||
|
||||
type OpenRcaService_StreamCoreMetricsClient interface { |
||||
Recv() (*v3.OrcaLoadReport, error) |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
type openRcaServiceStreamCoreMetricsClient struct { |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
func (x *openRcaServiceStreamCoreMetricsClient) Recv() (*v3.OrcaLoadReport, error) { |
||||
m := new(v3.OrcaLoadReport) |
||||
if err := x.ClientStream.RecvMsg(m); err != nil { |
||||
return nil, err |
||||
} |
||||
return m, nil |
||||
} |
||||
|
||||
// OpenRcaServiceServer is the server API for OpenRcaService service.
|
||||
type OpenRcaServiceServer interface { |
||||
StreamCoreMetrics(*OrcaLoadReportRequest, OpenRcaService_StreamCoreMetricsServer) error |
||||
} |
||||
|
||||
// UnimplementedOpenRcaServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedOpenRcaServiceServer struct { |
||||
} |
||||
|
||||
func (*UnimplementedOpenRcaServiceServer) StreamCoreMetrics(*OrcaLoadReportRequest, OpenRcaService_StreamCoreMetricsServer) error { |
||||
return status.Errorf(codes.Unimplemented, "method StreamCoreMetrics not implemented") |
||||
} |
||||
|
||||
func RegisterOpenRcaServiceServer(s *grpc.Server, srv OpenRcaServiceServer) { |
||||
s.RegisterService(&_OpenRcaService_serviceDesc, srv) |
||||
} |
||||
|
||||
func _OpenRcaService_StreamCoreMetrics_Handler(srv interface{}, stream grpc.ServerStream) error { |
||||
m := new(OrcaLoadReportRequest) |
||||
if err := stream.RecvMsg(m); err != nil { |
||||
return err |
||||
} |
||||
return srv.(OpenRcaServiceServer).StreamCoreMetrics(m, &openRcaServiceStreamCoreMetricsServer{stream}) |
||||
} |
||||
|
||||
type OpenRcaService_StreamCoreMetricsServer interface { |
||||
Send(*v3.OrcaLoadReport) error |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
type openRcaServiceStreamCoreMetricsServer struct { |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
func (x *openRcaServiceStreamCoreMetricsServer) Send(m *v3.OrcaLoadReport) error { |
||||
return x.ServerStream.SendMsg(m) |
||||
} |
||||
|
||||
var _OpenRcaService_serviceDesc = grpc.ServiceDesc{ |
||||
ServiceName: "xds.service.orca.v3.OpenRcaService", |
||||
HandlerType: (*OpenRcaServiceServer)(nil), |
||||
Methods: []grpc.MethodDesc{}, |
||||
Streams: []grpc.StreamDesc{ |
||||
{ |
||||
StreamName: "StreamCoreMetrics", |
||||
Handler: _OpenRcaService_StreamCoreMetrics_Handler, |
||||
ServerStreams: true, |
||||
}, |
||||
}, |
||||
Metadata: "xds/service/orca/v3/orca.proto", |
||||
} |
@ -0,0 +1,111 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/service/orca/v3/orca.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
||||
|
||||
// Validate checks the field values on OrcaLoadReportRequest with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *OrcaLoadReportRequest) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
if v, ok := interface{}(m.GetReportInterval()).(interface{ Validate() error }); ok { |
||||
if err := v.Validate(); err != nil { |
||||
return OrcaLoadReportRequestValidationError{ |
||||
field: "ReportInterval", |
||||
reason: "embedded message failed validation", |
||||
cause: err, |
||||
} |
||||
} |
||||
} |
||||
|
||||
return nil |
||||
} |
||||
|
||||
// OrcaLoadReportRequestValidationError is the validation error returned by
|
||||
// OrcaLoadReportRequest.Validate if the designated constraints aren't met.
|
||||
type OrcaLoadReportRequestValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e OrcaLoadReportRequestValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e OrcaLoadReportRequestValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e OrcaLoadReportRequestValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e OrcaLoadReportRequestValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e OrcaLoadReportRequestValidationError) ErrorName() string { |
||||
return "OrcaLoadReportRequestValidationError" |
||||
} |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e OrcaLoadReportRequestValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sOrcaLoadReportRequest.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = OrcaLoadReportRequestValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = OrcaLoadReportRequestValidationError{} |
@ -0,0 +1,171 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.18.0
|
||||
// source: xds/type/v3/typed_struct.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
||||
proto "github.com/golang/protobuf/proto" |
||||
_struct "github.com/golang/protobuf/ptypes/struct" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4 |
||||
|
||||
type TypedStruct struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` |
||||
Value *_struct.Struct `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
||||
} |
||||
|
||||
func (x *TypedStruct) Reset() { |
||||
*x = TypedStruct{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_xds_type_v3_typed_struct_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *TypedStruct) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*TypedStruct) ProtoMessage() {} |
||||
|
||||
func (x *TypedStruct) ProtoReflect() protoreflect.Message { |
||||
mi := &file_xds_type_v3_typed_struct_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use TypedStruct.ProtoReflect.Descriptor instead.
|
||||
func (*TypedStruct) Descriptor() ([]byte, []int) { |
||||
return file_xds_type_v3_typed_struct_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *TypedStruct) GetTypeUrl() string { |
||||
if x != nil { |
||||
return x.TypeUrl |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
func (x *TypedStruct) GetValue() *_struct.Struct { |
||||
if x != nil { |
||||
return x.Value |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
var File_xds_type_v3_typed_struct_proto protoreflect.FileDescriptor |
||||
|
||||
var file_xds_type_v3_typed_struct_proto_rawDesc = []byte{ |
||||
0x0a, 0x1e, 0x78, 0x64, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x74, 0x79, |
||||
0x70, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
||||
0x12, 0x0b, 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x17, 0x76, |
||||
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, |
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x0b, 0x54, 0x79, 0x70, 0x65, 0x64, 0x53, 0x74, 0x72, |
||||
0x75, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, |
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x2d, |
||||
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, |
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
||||
0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x50, 0x0a, |
||||
0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x78, 0x64, 0x73, 0x2e, |
||||
0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x10, 0x54, 0x79, 0x70, 0x65, 0x64, 0x53, 0x74, |
||||
0x72, 0x75, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, |
||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 0x73, |
||||
0x2f, 0x67, 0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 0x62, |
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_xds_type_v3_typed_struct_proto_rawDescOnce sync.Once |
||||
file_xds_type_v3_typed_struct_proto_rawDescData = file_xds_type_v3_typed_struct_proto_rawDesc |
||||
) |
||||
|
||||
func file_xds_type_v3_typed_struct_proto_rawDescGZIP() []byte { |
||||
file_xds_type_v3_typed_struct_proto_rawDescOnce.Do(func() { |
||||
file_xds_type_v3_typed_struct_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_type_v3_typed_struct_proto_rawDescData) |
||||
}) |
||||
return file_xds_type_v3_typed_struct_proto_rawDescData |
||||
} |
||||
|
||||
var file_xds_type_v3_typed_struct_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
||||
var file_xds_type_v3_typed_struct_proto_goTypes = []interface{}{ |
||||
(*TypedStruct)(nil), // 0: xds.type.v3.TypedStruct
|
||||
(*_struct.Struct)(nil), // 1: google.protobuf.Struct
|
||||
} |
||||
var file_xds_type_v3_typed_struct_proto_depIdxs = []int32{ |
||||
1, // 0: xds.type.v3.TypedStruct.value:type_name -> google.protobuf.Struct
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_xds_type_v3_typed_struct_proto_init() } |
||||
func file_xds_type_v3_typed_struct_proto_init() { |
||||
if File_xds_type_v3_typed_struct_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_xds_type_v3_typed_struct_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*TypedStruct); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_xds_type_v3_typed_struct_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 1, |
||||
NumExtensions: 0, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_xds_type_v3_typed_struct_proto_goTypes, |
||||
DependencyIndexes: file_xds_type_v3_typed_struct_proto_depIdxs, |
||||
MessageInfos: file_xds_type_v3_typed_struct_proto_msgTypes, |
||||
}.Build() |
||||
File_xds_type_v3_typed_struct_proto = out.File |
||||
file_xds_type_v3_typed_struct_proto_rawDesc = nil |
||||
file_xds_type_v3_typed_struct_proto_goTypes = nil |
||||
file_xds_type_v3_typed_struct_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,111 @@ |
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/type/v3/typed_struct.proto
|
||||
|
||||
package v3 |
||||
|
||||
import ( |
||||
"bytes" |
||||
"errors" |
||||
"fmt" |
||||
"net" |
||||
"net/mail" |
||||
"net/url" |
||||
"regexp" |
||||
"strings" |
||||
"time" |
||||
"unicode/utf8" |
||||
|
||||
"google.golang.org/protobuf/types/known/anypb" |
||||
) |
||||
|
||||
// ensure the imports are used
|
||||
var ( |
||||
_ = bytes.MinRead |
||||
_ = errors.New("") |
||||
_ = fmt.Print |
||||
_ = utf8.UTFMax |
||||
_ = (*regexp.Regexp)(nil) |
||||
_ = (*strings.Reader)(nil) |
||||
_ = net.IPv4len |
||||
_ = time.Duration(0) |
||||
_ = (*url.URL)(nil) |
||||
_ = (*mail.Address)(nil) |
||||
_ = anypb.Any{} |
||||
) |
||||
|
||||
// Validate checks the field values on TypedStruct with the rules defined in
|
||||
// the proto definition for this message. If any rules are violated, an error
|
||||
// is returned.
|
||||
func (m *TypedStruct) Validate() error { |
||||
if m == nil { |
||||
return nil |
||||
} |
||||
|
||||
// no validation rules for TypeUrl
|
||||
|
||||
if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { |
||||
if err := v.Validate(); err != nil { |
||||
return TypedStructValidationError{ |
||||
field: "Value", |
||||
reason: "embedded message failed validation", |
||||
cause: err, |
||||
} |
||||
} |
||||
} |
||||
|
||||
return nil |
||||
} |
||||
|
||||
// TypedStructValidationError is the validation error returned by
|
||||
// TypedStruct.Validate if the designated constraints aren't met.
|
||||
type TypedStructValidationError struct { |
||||
field string |
||||
reason string |
||||
cause error |
||||
key bool |
||||
} |
||||
|
||||
// Field function returns field value.
|
||||
func (e TypedStructValidationError) Field() string { return e.field } |
||||
|
||||
// Reason function returns reason value.
|
||||
func (e TypedStructValidationError) Reason() string { return e.reason } |
||||
|
||||
// Cause function returns cause value.
|
||||
func (e TypedStructValidationError) Cause() error { return e.cause } |
||||
|
||||
// Key function returns key value.
|
||||
func (e TypedStructValidationError) Key() bool { return e.key } |
||||
|
||||
// ErrorName returns error name.
|
||||
func (e TypedStructValidationError) ErrorName() string { return "TypedStructValidationError" } |
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e TypedStructValidationError) Error() string { |
||||
cause := "" |
||||
if e.cause != nil { |
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause) |
||||
} |
||||
|
||||
key := "" |
||||
if e.key { |
||||
key = "key for " |
||||
} |
||||
|
||||
return fmt.Sprintf( |
||||
"invalid %sTypedStruct.%s: %s%s", |
||||
key, |
||||
e.field, |
||||
e.reason, |
||||
cause) |
||||
} |
||||
|
||||
var _ error = TypedStructValidationError{} |
||||
|
||||
var _ interface { |
||||
Field() string |
||||
Reason() string |
||||
Key() bool |
||||
Cause() error |
||||
ErrorName() string |
||||
} = TypedStructValidationError{} |
@ -0,0 +1,10 @@ |
||||
# THESE PROTOS ARE DEPRECATED |
||||
|
||||
We are no longer using the "UDPA" name, and we are moving away from the |
||||
protos in this tree. Users should prefer the corresponding protos in |
||||
the xds tree instead. |
||||
|
||||
No new changes will be accepted for protos in this tree. If you want to |
||||
change something, make the change to the corresponding proto in the xds |
||||
tree instead, and then change your protos to use the xds proto instead |
||||
of the udpa proto. |
@ -1,5 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "udpa_proto_package") |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
udpa_proto_package() |
||||
xds_proto_package() |
||||
|
@ -1,5 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "udpa_proto_package") |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
udpa_proto_package() |
||||
xds_proto_package() |
||||
|
@ -1,5 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "udpa_proto_package") |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
udpa_proto_package() |
||||
xds_proto_package() |
||||
|
@ -1,5 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "udpa_proto_package") |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
udpa_proto_package() |
||||
xds_proto_package() |
||||
|
@ -0,0 +1,46 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.annotations.v3; |
||||
|
||||
import "google/protobuf/descriptor.proto"; |
||||
|
||||
option go_package = "github.com/cncf/xds/go/xds/annotations/v3"; |
||||
|
||||
// Magic number in this file derived from top 28bit of SHA256 digest of |
||||
// "xds.annotation.v3.migrate". |
||||
extend google.protobuf.MessageOptions { |
||||
MigrateAnnotation message_migrate = 112948430; |
||||
} |
||||
extend google.protobuf.FieldOptions { |
||||
FieldMigrateAnnotation field_migrate = 112948430; |
||||
} |
||||
extend google.protobuf.EnumOptions { |
||||
MigrateAnnotation enum_migrate = 112948430; |
||||
} |
||||
extend google.protobuf.EnumValueOptions { |
||||
MigrateAnnotation enum_value_migrate = 112948430; |
||||
} |
||||
extend google.protobuf.FileOptions { |
||||
FileMigrateAnnotation file_migrate = 112948430; |
||||
} |
||||
|
||||
message MigrateAnnotation { |
||||
// Rename the message/enum/enum value in next version. |
||||
string rename = 1; |
||||
} |
||||
|
||||
message FieldMigrateAnnotation { |
||||
// Rename the field in next version. |
||||
string rename = 1; |
||||
|
||||
// Add the field to a named oneof in next version. If this already exists, the |
||||
// field will join its siblings under the oneof, otherwise a new oneof will be |
||||
// created with the given name. |
||||
string oneof_promotion = 2; |
||||
} |
||||
|
||||
message FileMigrateAnnotation { |
||||
// Move all types in the file to another package, this implies changing proto |
||||
// file path. |
||||
string move_to_package = 2; |
||||
} |
@ -0,0 +1,30 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.annotations.v3; |
||||
|
||||
import "xds/annotations/v3/status.proto"; |
||||
|
||||
import "google/protobuf/descriptor.proto"; |
||||
|
||||
option go_package = "github.com/cncf/xds/go/xds/annotations/v3"; |
||||
|
||||
// All annotations in this file are experimental and subject to change. Their |
||||
// only consumer today is the Envoy APIs and SecuritAnnotationValidator protoc |
||||
// plugin in this repository. |
||||
option (xds.annotations.v3.file_status).work_in_progress = true; |
||||
|
||||
extend google.protobuf.FieldOptions { |
||||
// Magic number is the 28 most significant bits in the sha256sum of |
||||
// "xds.annotations.v3.security". |
||||
FieldSecurityAnnotation security = 99044135; |
||||
} |
||||
|
||||
// These annotations indicate metadata for the purpose of understanding the |
||||
// security significance of fields. |
||||
message FieldSecurityAnnotation { |
||||
// Field should be set in the presence of untrusted downstreams. |
||||
bool configure_for_untrusted_downstream = 1; |
||||
|
||||
// Field should be set in the presence of untrusted upstreams. |
||||
bool configure_for_untrusted_upstream = 2; |
||||
} |
@ -0,0 +1,16 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.annotations.v3; |
||||
|
||||
import "google/protobuf/descriptor.proto"; |
||||
|
||||
option go_package = "github.com/cncf/xds/go/xds/annotations/v3"; |
||||
|
||||
extend google.protobuf.FieldOptions { |
||||
// Magic number is the 28 most significant bits in the sha256sum of "xds.annotations.v3.sensitive". |
||||
// When set to true, `sensitive` indicates that this field contains sensitive data, such as |
||||
// personally identifiable information, passwords, or private keys, and should be redacted for |
||||
// display by tools aware of this annotation. Note that that this has no effect on standard |
||||
// Protobuf functions such as `TextFormat::PrintToString`. |
||||
bool sensitive = 61008053; |
||||
} |
@ -0,0 +1,20 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.annotations.v3; |
||||
|
||||
import "google/protobuf/descriptor.proto"; |
||||
|
||||
option go_package = "github.com/cncf/xds/go/xds/annotations/v3"; |
||||
|
||||
extend google.protobuf.MessageOptions { |
||||
// Magic number is the 28 most significant bits in the sha256sum of |
||||
// "xds.annotations.v3.versioning". |
||||
VersioningAnnotation versioning = 92389011; |
||||
} |
||||
|
||||
message VersioningAnnotation { |
||||
// Track the previous message type. E.g. this message might be |
||||
// xds.foo.v3alpha.Foo and it was previously xds.bar.v2.Bar. This |
||||
// information is consumed by UDPA via proto descriptors. |
||||
string previous_message_type = 1; |
||||
} |
@ -1,5 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "udpa_proto_package") |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
udpa_proto_package(deps = ["//udpa/annotations:pkg"]) |
||||
xds_proto_package(deps = ["//xds/annotations/v3:pkg"]) |
||||
|
@ -0,0 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
xds_proto_package() |
@ -0,0 +1,36 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.data.orca.v3; |
||||
|
||||
option java_outer_classname = "OrcaLoadReportProto"; |
||||
option java_multiple_files = true; |
||||
option java_package = "com.github.xds.data.orca.v3"; |
||||
option go_package = "github.com/cncf/xds/go/xds/data/orca/v3"; |
||||
|
||||
import "validate/validate.proto"; |
||||
|
||||
// See section `ORCA load report format` of the design document in |
||||
// :ref:`https://github.com/envoyproxy/envoy/issues/6614`. |
||||
|
||||
message OrcaLoadReport { |
||||
// CPU utilization expressed as a fraction of available CPU resources. This |
||||
// should be derived from the latest sample or measurement. |
||||
double cpu_utilization = 1 [(validate.rules).double.gte = 0, (validate.rules).double.lte = 1]; |
||||
|
||||
// Memory utilization expressed as a fraction of available memory |
||||
// resources. This should be derived from the latest sample or measurement. |
||||
double mem_utilization = 2 [(validate.rules).double.gte = 0, (validate.rules).double.lte = 1]; |
||||
|
||||
// Total RPS being served by an endpoint. This should cover all services that an endpoint is |
||||
// responsible for. |
||||
uint64 rps = 3; |
||||
|
||||
// Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of |
||||
// storage) associated with the request. |
||||
map<string, double> request_cost = 4; |
||||
|
||||
// Resource utilization values. Each value is expressed as a fraction of total resources |
||||
// available, derived from the latest sample or measurement. |
||||
map<string, double> utilization = 5 |
||||
[(validate.rules).map.values.double.gte = 0, (validate.rules).map.values.double.lte = 1]; |
||||
} |
@ -0,0 +1,10 @@ |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
xds_proto_package( |
||||
has_services = True, |
||||
deps = [ |
||||
"//xds/data/orca/v3:pkg", |
||||
], |
||||
) |
@ -0,0 +1,38 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.service.orca.v3; |
||||
|
||||
option java_outer_classname = "OrcaProto"; |
||||
option java_multiple_files = true; |
||||
option java_package = "com.github.xds.service.orca.v3"; |
||||
option go_package = "github.com/cncf/xds/go/xds/service/orca/v3"; |
||||
|
||||
import "xds/data/orca/v3/orca_load_report.proto"; |
||||
|
||||
import "google/protobuf/duration.proto"; |
||||
|
||||
import "validate/validate.proto"; |
||||
|
||||
// See section `Out-of-band (OOB) reporting` of the design document in |
||||
// :ref:`https://github.com/envoyproxy/envoy/issues/6614`. |
||||
|
||||
// Out-of-band (OOB) load reporting service for the additional load reporting |
||||
// agent that does not sit in the request path. Reports are periodically sampled |
||||
// with sufficient frequency to provide temporal association with requests. |
||||
// OOB reporting compensates the limitation of in-band reporting in revealing |
||||
// costs for backends that do not provide a steady stream of telemetry such as |
||||
// long running stream operations and zero QPS services. This is a server |
||||
// streaming service, client needs to terminate current RPC and initiate |
||||
// a new call to change backend reporting frequency. |
||||
service OpenRcaService { |
||||
rpc StreamCoreMetrics(OrcaLoadReportRequest) returns (stream xds.data.orca.v3.OrcaLoadReport); |
||||
} |
||||
|
||||
message OrcaLoadReportRequest { |
||||
// Interval for generating Open RCA core metric responses. |
||||
google.protobuf.Duration report_interval = 1; |
||||
// Request costs to collect. If this is empty, all known requests costs tracked by |
||||
// the load reporting agent will be returned. This provides an opportunity for |
||||
// the client to selectively obtain a subset of tracked costs. |
||||
repeated string request_cost_names = 2; |
||||
} |
@ -0,0 +1,5 @@ |
||||
load("//bazel:api_build_system.bzl", "xds_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
xds_proto_package() |
@ -0,0 +1,43 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package xds.type.v3; |
||||
|
||||
option java_outer_classname = "TypedStructProto"; |
||||
option java_multiple_files = true; |
||||
option java_package = "com.github.xds.type.v3"; |
||||
option go_package = "github.com/cncf/xds/go/xds/type/v3"; |
||||
|
||||
import "validate/validate.proto"; |
||||
import "google/protobuf/struct.proto"; |
||||
|
||||
// A TypedStruct contains an arbitrary JSON serialized protocol buffer message with a URL that |
||||
// describes the type of the serialized message. This is very similar to google.protobuf.Any, |
||||
// instead of having protocol buffer binary, this employs google.protobuf.Struct as value. |
||||
// |
||||
// This message is intended to be embedded inside Any, so it shouldn't be directly referred |
||||
// from other UDPA messages. |
||||
// |
||||
// When packing an opaque extension config, packing the expected type into Any is preferred |
||||
// wherever possible for its efficiency. TypedStruct should be used only if a proto descriptor |
||||
// is not available, for example if: |
||||
// - A control plane sends opaque message that is originally from external source in human readable |
||||
// format such as JSON or YAML. |
||||
// - The control plane doesn't have the knowledge of the protocol buffer schema hence it cannot |
||||
// serialize the message in protocol buffer binary format. |
||||
// - The DPLB doesn't have have the knowledge of the protocol buffer schema its plugin or extension |
||||
// uses. This has to be indicated in the DPLB capability negotiation. |
||||
// |
||||
// When a DPLB receives a TypedStruct in Any, it should: |
||||
// - Check if the type_url of the TypedStruct matches the type the extension expects. |
||||
// - Convert value to the type described in type_url and perform validation. |
||||
// TODO(lizan): Figure out how TypeStruct should be used with DPLB extensions that doesn't link |
||||
// protobuf descriptor with DPLB itself, (e.g. gRPC LB Plugin, Envoy WASM extensions). |
||||
message TypedStruct { |
||||
// A URL that uniquely identifies the type of the serialize protocol buffer message. |
||||
// This has same semantics and format described in google.protobuf.Any: |
||||
// https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto |
||||
string type_url = 1; |
||||
|
||||
// A JSON representation of the above specified type. |
||||
google.protobuf.Struct value = 2; |
||||
} |
Loading…
Reference in new issue