| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
v3 "github.com/cncf/xds/go/xds/data/orca/v3" |
| 11 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 12 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 13 |
durationpb "google.golang.org/protobuf/types/known/durationpb" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type OrcaLoadReportRequest struct { |
| 27 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 28 |
ReportInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"` |
| 29 |
RequestCostNames []string `protobuf:"bytes,2,rep,name=request_cost_names,json=requestCostNames,proto3" json:"request_cost_names,omitempty"` |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
sizeCache protoimpl.SizeCache |
| 32 |
} |
| 33 |
|
| 34 |
func (x *OrcaLoadReportRequest) Reset() { |
| 35 |
*x = OrcaLoadReportRequest{} |
| 36 |
mi := &file_xds_service_orca_v3_orca_proto_msgTypes[0] |
| 37 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 38 |
ms.StoreMessageInfo(mi) |
| 39 |
} |
| 40 |
|
| 41 |
func (x *OrcaLoadReportRequest) String() string { |
| 42 |
return protoimpl.X.MessageStringOf(x) |
| 43 |
} |
| 44 |
|
| 45 |
func (*OrcaLoadReportRequest) ProtoMessage() {} |
| 46 |
|
| 47 |
func (x *OrcaLoadReportRequest) ProtoReflect() protoreflect.Message { |
| 48 |
mi := &file_xds_service_orca_v3_orca_proto_msgTypes[0] |
| 49 |
if x != nil { |
| 50 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 51 |
if ms.LoadMessageInfo() == nil { |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
return ms |
| 55 |
} |
| 56 |
return mi.MessageOf(x) |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
func (*OrcaLoadReportRequest) Descriptor() ([]byte, []int) { |
| 61 |
return file_xds_service_orca_v3_orca_proto_rawDescGZIP(), []int{0} |
| 62 |
} |
| 63 |
|
| 64 |
func (x *OrcaLoadReportRequest) GetReportInterval() *durationpb.Duration { |
| 65 |
if x != nil { |
| 66 |
return x.ReportInterval |
| 67 |
} |
| 68 |
return nil |
| 69 |
} |
| 70 |
|
| 71 |
func (x *OrcaLoadReportRequest) GetRequestCostNames() []string { |
| 72 |
if x != nil { |
| 73 |
return x.RequestCostNames |
| 74 |
} |
| 75 |
return nil |
| 76 |
} |
| 77 |
|
| 78 |
var File_xds_service_orca_v3_orca_proto protoreflect.FileDescriptor |
| 79 |
|
| 80 |
const file_xds_service_orca_v3_orca_proto_rawDesc = "" + |
| 81 |
"\n" + |
| 82 |
"\x1exds/service/orca/v3/orca.proto\x12\x13xds.service.orca.v3\x1a'xds/data/orca/v3/orca_load_report.proto\x1a\x1egoogle/protobuf/duration.proto\"\x89\x01\n" + |
| 83 |
"\x15OrcaLoadReportRequest\x12B\n" + |
| 84 |
"\x0freport_interval\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x0ereportInterval\x12,\n" + |
| 85 |
"\x12request_cost_names\x18\x02 \x03(\tR\x10requestCostNames2u\n" + |
| 86 |
"\x0eOpenRcaService\x12c\n" + |
| 87 |
"\x11StreamCoreMetrics\x12*.xds.service.orca.v3.OrcaLoadReportRequest\x1a .xds.data.orca.v3.OrcaLoadReport0\x01BY\n" + |
| 88 |
"\x1ecom.github.xds.service.orca.v3B\tOrcaProtoP\x01Z*github.com/cncf/xds/go/xds/service/orca/v3b\x06proto3" |
| 89 |
|
| 90 |
var ( |
| 91 |
file_xds_service_orca_v3_orca_proto_rawDescOnce sync.Once |
| 92 |
file_xds_service_orca_v3_orca_proto_rawDescData []byte |
| 93 |
) |
| 94 |
|
| 95 |
func file_xds_service_orca_v3_orca_proto_rawDescGZIP() []byte { |
| 96 |
file_xds_service_orca_v3_orca_proto_rawDescOnce.Do(func() { |
| 97 |
file_xds_service_orca_v3_orca_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_service_orca_v3_orca_proto_rawDesc), len(file_xds_service_orca_v3_orca_proto_rawDesc))) |
| 98 |
}) |
| 99 |
return file_xds_service_orca_v3_orca_proto_rawDescData |
| 100 |
} |
| 101 |
|
| 102 |
var file_xds_service_orca_v3_orca_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 103 |
var file_xds_service_orca_v3_orca_proto_goTypes = []any{ |
| 104 |
(*OrcaLoadReportRequest)(nil), |
| 105 |
(*durationpb.Duration)(nil), |
| 106 |
(*v3.OrcaLoadReport)(nil), |
| 107 |
} |
| 108 |
var file_xds_service_orca_v3_orca_proto_depIdxs = []int32{ |
| 109 |
1, |
| 110 |
0, |
| 111 |
2, |
| 112 |
2, |
| 113 |
1, |
| 114 |
1, |
| 115 |
1, |
| 116 |
0, |
| 117 |
} |
| 118 |
|
| 119 |
func init() { file_xds_service_orca_v3_orca_proto_init() } |
| 120 |
func file_xds_service_orca_v3_orca_proto_init() { |
| 121 |
if File_xds_service_orca_v3_orca_proto != nil { |
| 122 |
return |
| 123 |
} |
| 124 |
type x struct{} |
| 125 |
out := protoimpl.TypeBuilder{ |
| 126 |
File: protoimpl.DescBuilder{ |
| 127 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 128 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_service_orca_v3_orca_proto_rawDesc), len(file_xds_service_orca_v3_orca_proto_rawDesc)), |
| 129 |
NumEnums: 0, |
| 130 |
NumMessages: 1, |
| 131 |
NumExtensions: 0, |
| 132 |
NumServices: 1, |
| 133 |
}, |
| 134 |
GoTypes: file_xds_service_orca_v3_orca_proto_goTypes, |
| 135 |
DependencyIndexes: file_xds_service_orca_v3_orca_proto_depIdxs, |
| 136 |
MessageInfos: file_xds_service_orca_v3_orca_proto_msgTypes, |
| 137 |
}.Build() |
| 138 |
File_xds_service_orca_v3_orca_proto = out.File |
| 139 |
file_xds_service_orca_v3_orca_proto_goTypes = nil |
| 140 |
file_xds_service_orca_v3_orca_proto_depIdxs = nil |
| 141 |
} |