355 lines
11 KiB
Go
355 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v7.36.0
|
|
// source: bd2/state/control/v1/control.proto
|
|
|
|
package controlv1
|
|
|
|
import (
|
|
v1 "bd2server/gen/state/v1"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
type Severity int32
|
|
|
|
const (
|
|
Severity_SEVERITY_UNSPECIFIED Severity = 0
|
|
Severity_SEVERITY_WARNING Severity = 1
|
|
Severity_SEVERITY_ERROR Severity = 2
|
|
)
|
|
|
|
// Enum value maps for Severity.
|
|
var (
|
|
Severity_name = map[int32]string{
|
|
0: "SEVERITY_UNSPECIFIED",
|
|
1: "SEVERITY_WARNING",
|
|
2: "SEVERITY_ERROR",
|
|
}
|
|
Severity_value = map[string]int32{
|
|
"SEVERITY_UNSPECIFIED": 0,
|
|
"SEVERITY_WARNING": 1,
|
|
"SEVERITY_ERROR": 2,
|
|
}
|
|
)
|
|
|
|
func (x Severity) Enum() *Severity {
|
|
p := new(Severity)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Severity) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Severity) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_bd2_state_control_v1_control_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Severity) Type() protoreflect.EnumType {
|
|
return &file_bd2_state_control_v1_control_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Severity) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Severity.Descriptor instead.
|
|
func (Severity) EnumDescriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v1_control_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type CheckRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BridgeApiVersion uint32 `protobuf:"varint,1,opt,name=bridge_api_version,json=bridgeApiVersion,proto3" json:"bridge_api_version,omitempty"`
|
|
SourceSha256 []byte `protobuf:"bytes,2,opt,name=source_sha256,json=sourceSha256,proto3" json:"source_sha256,omitempty"`
|
|
Snapshot *v1.Snapshot `protobuf:"bytes,10,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckRequest) Reset() {
|
|
*x = CheckRequest{}
|
|
mi := &file_bd2_state_control_v1_control_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckRequest) ProtoMessage() {}
|
|
|
|
func (x *CheckRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v1_control_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
|
|
func (*CheckRequest) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v1_control_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CheckRequest) GetBridgeApiVersion() uint32 {
|
|
if x != nil {
|
|
return x.BridgeApiVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CheckRequest) GetSourceSha256() []byte {
|
|
if x != nil {
|
|
return x.SourceSha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CheckRequest) GetSnapshot() *v1.Snapshot {
|
|
if x != nil {
|
|
return x.Snapshot
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Violation struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=bd2.state.control.v1.Severity" json:"severity,omitempty"`
|
|
Path []string `protobuf:"bytes,3,rep,name=path,proto3" json:"path,omitempty"`
|
|
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
|
|
RelatedIds []uint64 `protobuf:"varint,5,rep,packed,name=related_ids,json=relatedIds,proto3" json:"related_ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Violation) Reset() {
|
|
*x = Violation{}
|
|
mi := &file_bd2_state_control_v1_control_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Violation) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Violation) ProtoMessage() {}
|
|
|
|
func (x *Violation) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v1_control_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Violation.ProtoReflect.Descriptor instead.
|
|
func (*Violation) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v1_control_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Violation) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Violation) GetSeverity() Severity {
|
|
if x != nil {
|
|
return x.Severity
|
|
}
|
|
return Severity_SEVERITY_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Violation) GetPath() []string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Violation) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Violation) GetRelatedIds() []uint64 {
|
|
if x != nil {
|
|
return x.RelatedIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CheckResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BridgeApiVersion uint32 `protobuf:"varint,1,opt,name=bridge_api_version,json=bridgeApiVersion,proto3" json:"bridge_api_version,omitempty"`
|
|
SourceSha256 []byte `protobuf:"bytes,2,opt,name=source_sha256,json=sourceSha256,proto3" json:"source_sha256,omitempty"`
|
|
Violations []*Violation `protobuf:"bytes,10,rep,name=violations,proto3" json:"violations,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckResponse) Reset() {
|
|
*x = CheckResponse{}
|
|
mi := &file_bd2_state_control_v1_control_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckResponse) ProtoMessage() {}
|
|
|
|
func (x *CheckResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v1_control_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
|
|
func (*CheckResponse) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v1_control_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CheckResponse) GetBridgeApiVersion() uint32 {
|
|
if x != nil {
|
|
return x.BridgeApiVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CheckResponse) GetSourceSha256() []byte {
|
|
if x != nil {
|
|
return x.SourceSha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CheckResponse) GetViolations() []*Violation {
|
|
if x != nil {
|
|
return x.Violations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_bd2_state_control_v1_control_proto protoreflect.FileDescriptor
|
|
|
|
const file_bd2_state_control_v1_control_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\"bd2/state/control/v1/control.proto\x12\x14bd2.state.control.v1\x1a\x18bd2/state/v1/state.proto\"\x95\x01\n" +
|
|
"\fCheckRequest\x12,\n" +
|
|
"\x12bridge_api_version\x18\x01 \x01(\rR\x10bridgeApiVersion\x12#\n" +
|
|
"\rsource_sha256\x18\x02 \x01(\fR\fsourceSha256\x122\n" +
|
|
"\bsnapshot\x18\n" +
|
|
" \x01(\v2\x16.bd2.state.v1.SnapshotR\bsnapshot\"\xaa\x01\n" +
|
|
"\tViolation\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12:\n" +
|
|
"\bseverity\x18\x02 \x01(\x0e2\x1e.bd2.state.control.v1.SeverityR\bseverity\x12\x12\n" +
|
|
"\x04path\x18\x03 \x03(\tR\x04path\x12\x18\n" +
|
|
"\amessage\x18\x04 \x01(\tR\amessage\x12\x1f\n" +
|
|
"\vrelated_ids\x18\x05 \x03(\x04R\n" +
|
|
"relatedIds\"\xa3\x01\n" +
|
|
"\rCheckResponse\x12,\n" +
|
|
"\x12bridge_api_version\x18\x01 \x01(\rR\x10bridgeApiVersion\x12#\n" +
|
|
"\rsource_sha256\x18\x02 \x01(\fR\fsourceSha256\x12?\n" +
|
|
"\n" +
|
|
"violations\x18\n" +
|
|
" \x03(\v2\x1f.bd2.state.control.v1.ViolationR\n" +
|
|
"violations*N\n" +
|
|
"\bSeverity\x12\x18\n" +
|
|
"\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x14\n" +
|
|
"\x10SEVERITY_WARNING\x10\x01\x12\x12\n" +
|
|
"\x0eSEVERITY_ERROR\x10\x02B*Z(bd2server/gen/state/control/v1;controlv1b\x06proto3"
|
|
|
|
var (
|
|
file_bd2_state_control_v1_control_proto_rawDescOnce sync.Once
|
|
file_bd2_state_control_v1_control_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_bd2_state_control_v1_control_proto_rawDescGZIP() []byte {
|
|
file_bd2_state_control_v1_control_proto_rawDescOnce.Do(func() {
|
|
file_bd2_state_control_v1_control_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_bd2_state_control_v1_control_proto_rawDesc), len(file_bd2_state_control_v1_control_proto_rawDesc)))
|
|
})
|
|
return file_bd2_state_control_v1_control_proto_rawDescData
|
|
}
|
|
|
|
var file_bd2_state_control_v1_control_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_bd2_state_control_v1_control_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_bd2_state_control_v1_control_proto_goTypes = []any{
|
|
(Severity)(0), // 0: bd2.state.control.v1.Severity
|
|
(*CheckRequest)(nil), // 1: bd2.state.control.v1.CheckRequest
|
|
(*Violation)(nil), // 2: bd2.state.control.v1.Violation
|
|
(*CheckResponse)(nil), // 3: bd2.state.control.v1.CheckResponse
|
|
(*v1.Snapshot)(nil), // 4: bd2.state.v1.Snapshot
|
|
}
|
|
var file_bd2_state_control_v1_control_proto_depIdxs = []int32{
|
|
4, // 0: bd2.state.control.v1.CheckRequest.snapshot:type_name -> bd2.state.v1.Snapshot
|
|
0, // 1: bd2.state.control.v1.Violation.severity:type_name -> bd2.state.control.v1.Severity
|
|
2, // 2: bd2.state.control.v1.CheckResponse.violations:type_name -> bd2.state.control.v1.Violation
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_bd2_state_control_v1_control_proto_init() }
|
|
func file_bd2_state_control_v1_control_proto_init() {
|
|
if File_bd2_state_control_v1_control_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_bd2_state_control_v1_control_proto_rawDesc), len(file_bd2_state_control_v1_control_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_bd2_state_control_v1_control_proto_goTypes,
|
|
DependencyIndexes: file_bd2_state_control_v1_control_proto_depIdxs,
|
|
EnumInfos: file_bd2_state_control_v1_control_proto_enumTypes,
|
|
MessageInfos: file_bd2_state_control_v1_control_proto_msgTypes,
|
|
}.Build()
|
|
File_bd2_state_control_v1_control_proto = out.File
|
|
file_bd2_state_control_v1_control_proto_goTypes = nil
|
|
file_bd2_state_control_v1_control_proto_depIdxs = nil
|
|
}
|