950 lines
30 KiB
Go
950 lines
30 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: controlplane/v1/controlplane.proto
|
|
|
|
package controlplanev1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 ResourceDescriptor struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
SchemaJson string `protobuf:"bytes,3,opt,name=schema_json,json=schemaJson,proto3" json:"schema_json,omitempty"`
|
|
Commands []string `protobuf:"bytes,4,rep,name=commands,proto3" json:"commands,omitempty"`
|
|
// ApplyMode is "live", "restart-required", or "domain-managed".
|
|
ApplyMode string `protobuf:"bytes,5,opt,name=apply_mode,json=applyMode,proto3" json:"apply_mode,omitempty"`
|
|
// QueryService and command_service identify an existing domain API when
|
|
// the resource is not stored as a generic JSON document.
|
|
QueryService string `protobuf:"bytes,6,opt,name=query_service,json=queryService,proto3" json:"query_service,omitempty"`
|
|
CommandService string `protobuf:"bytes,7,opt,name=command_service,json=commandService,proto3" json:"command_service,omitempty"`
|
|
// DefaultsJson is the factory value a client can restore this resource to.
|
|
// Empty when the resource has no shipped default.
|
|
DefaultsJson string `protobuf:"bytes,8,opt,name=defaults_json,json=defaultsJson,proto3" json:"defaults_json,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResourceDescriptor) Reset() {
|
|
*x = ResourceDescriptor{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResourceDescriptor) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResourceDescriptor) ProtoMessage() {}
|
|
|
|
func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_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 ResourceDescriptor.ProtoReflect.Descriptor instead.
|
|
func (*ResourceDescriptor) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetSchemaJson() string {
|
|
if x != nil {
|
|
return x.SchemaJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetCommands() []string {
|
|
if x != nil {
|
|
return x.Commands
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetApplyMode() string {
|
|
if x != nil {
|
|
return x.ApplyMode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetQueryService() string {
|
|
if x != nil {
|
|
return x.QueryService
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetCommandService() string {
|
|
if x != nil {
|
|
return x.CommandService
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResourceDescriptor) GetDefaultsJson() string {
|
|
if x != nil {
|
|
return x.DefaultsJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CatalogRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CatalogRequest) Reset() {
|
|
*x = CatalogRequest{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CatalogRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CatalogRequest) ProtoMessage() {}
|
|
|
|
func (x *CatalogRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_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 CatalogRequest.ProtoReflect.Descriptor instead.
|
|
func (*CatalogRequest) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type CatalogResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Resources []*ResourceDescriptor `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CatalogResponse) Reset() {
|
|
*x = CatalogResponse{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CatalogResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CatalogResponse) ProtoMessage() {}
|
|
|
|
func (x *CatalogResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_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 CatalogResponse.ProtoReflect.Descriptor instead.
|
|
func (*CatalogResponse) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CatalogResponse) GetResources() []*ResourceDescriptor {
|
|
if x != nil {
|
|
return x.Resources
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Resource struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
ValueJson []byte `protobuf:"bytes,3,opt,name=value_json,json=valueJson,proto3" json:"value_json,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
OrgId string `protobuf:"bytes,5,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Resource) Reset() {
|
|
*x = Resource{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Resource) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Resource) ProtoMessage() {}
|
|
|
|
func (x *Resource) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[3]
|
|
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 Resource.ProtoReflect.Descriptor instead.
|
|
func (*Resource) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Resource) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Resource) GetVersion() int64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Resource) GetValueJson() []byte {
|
|
if x != nil {
|
|
return x.ValueJson
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Resource) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Resource) GetOrgId() string {
|
|
if x != nil {
|
|
return x.OrgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Every request that names a resource acts in one org's copy of it: the org
|
|
// the State Store derives from the caller's principal, else the default org.
|
|
type QueryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryRequest) Reset() {
|
|
*x = QueryRequest{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRequest) ProtoMessage() {}
|
|
|
|
func (x *QueryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[4]
|
|
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 QueryRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryRequest) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *QueryRequest) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type QueryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryResponse) Reset() {
|
|
*x = QueryResponse{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryResponse) ProtoMessage() {}
|
|
|
|
func (x *QueryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[5]
|
|
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 QueryResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryResponse) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *QueryResponse) GetResource() *Resource {
|
|
if x != nil {
|
|
return x.Resource
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Revision is one entry of a resource's audit trail: the value that version
|
|
// held, and who changed it from where.
|
|
type Revision struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
ValueJson []byte `protobuf:"bytes,2,opt,name=value_json,json=valueJson,proto3" json:"value_json,omitempty"`
|
|
Actor string `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"`
|
|
Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
|
|
RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
At *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=at,proto3" json:"at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Revision) Reset() {
|
|
*x = Revision{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Revision) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Revision) ProtoMessage() {}
|
|
|
|
func (x *Revision) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[6]
|
|
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 Revision.ProtoReflect.Descriptor instead.
|
|
func (*Revision) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *Revision) GetVersion() int64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Revision) GetValueJson() []byte {
|
|
if x != nil {
|
|
return x.ValueJson
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Revision) GetActor() string {
|
|
if x != nil {
|
|
return x.Actor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Revision) GetSource() string {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Revision) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Revision) GetAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.At
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type HistoryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
// Limit caps the revisions returned, newest first. Zero means the server's
|
|
// own default.
|
|
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HistoryRequest) Reset() {
|
|
*x = HistoryRequest{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HistoryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HistoryRequest) ProtoMessage() {}
|
|
|
|
func (x *HistoryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[7]
|
|
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 HistoryRequest.ProtoReflect.Descriptor instead.
|
|
func (*HistoryRequest) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *HistoryRequest) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HistoryRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HistoryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Revisions []*Revision `protobuf:"bytes,1,rep,name=revisions,proto3" json:"revisions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HistoryResponse) Reset() {
|
|
*x = HistoryResponse{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HistoryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HistoryResponse) ProtoMessage() {}
|
|
|
|
func (x *HistoryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[8]
|
|
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 HistoryResponse.ProtoReflect.Descriptor instead.
|
|
func (*HistoryResponse) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *HistoryResponse) GetRevisions() []*Revision {
|
|
if x != nil {
|
|
return x.Revisions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommandRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
|
|
ValueJson []byte `protobuf:"bytes,3,opt,name=value_json,json=valueJson,proto3" json:"value_json,omitempty"`
|
|
ExpectedVersion int64 `protobuf:"varint,4,opt,name=expected_version,json=expectedVersion,proto3" json:"expected_version,omitempty"`
|
|
RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
// Actor and source are supplied by a trusted service adapter, never copied
|
|
// from browser/request JSON.
|
|
Actor string `protobuf:"bytes,6,opt,name=actor,proto3" json:"actor,omitempty"`
|
|
Source string `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CommandRequest) Reset() {
|
|
*x = CommandRequest{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CommandRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandRequest) ProtoMessage() {}
|
|
|
|
func (x *CommandRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[9]
|
|
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 CommandRequest.ProtoReflect.Descriptor instead.
|
|
func (*CommandRequest) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *CommandRequest) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandRequest) GetCommand() string {
|
|
if x != nil {
|
|
return x.Command
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandRequest) GetValueJson() []byte {
|
|
if x != nil {
|
|
return x.ValueJson
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CommandRequest) GetExpectedVersion() int64 {
|
|
if x != nil {
|
|
return x.ExpectedVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CommandRequest) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandRequest) GetActor() string {
|
|
if x != nil {
|
|
return x.Actor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandRequest) GetSource() string {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CommandResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CommandResponse) Reset() {
|
|
*x = CommandResponse{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CommandResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandResponse) ProtoMessage() {}
|
|
|
|
func (x *CommandResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[10]
|
|
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 CommandResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommandResponse) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *CommandResponse) GetResource() *Resource {
|
|
if x != nil {
|
|
return x.Resource
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WatchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
AfterVersion int64 `protobuf:"varint,2,opt,name=after_version,json=afterVersion,proto3" json:"after_version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchRequest) Reset() {
|
|
*x = WatchRequest{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchRequest) ProtoMessage() {}
|
|
|
|
func (x *WatchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[11]
|
|
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 WatchRequest.ProtoReflect.Descriptor instead.
|
|
func (*WatchRequest) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *WatchRequest) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WatchRequest) GetAfterVersion() int64 {
|
|
if x != nil {
|
|
return x.AfterVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WatchResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchResponse) Reset() {
|
|
*x = WatchResponse{}
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchResponse) ProtoMessage() {}
|
|
|
|
func (x *WatchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controlplane_v1_controlplane_proto_msgTypes[12]
|
|
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 WatchResponse.ProtoReflect.Descriptor instead.
|
|
func (*WatchResponse) Descriptor() ([]byte, []int) {
|
|
return file_controlplane_v1_controlplane_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *WatchResponse) GetResource() *Resource {
|
|
if x != nil {
|
|
return x.Resource
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WatchResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_controlplane_v1_controlplane_proto protoreflect.FileDescriptor
|
|
|
|
const file_controlplane_v1_controlplane_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\"controlplane/v1/controlplane.proto\x12\x0fcontrolplane.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x02\n" +
|
|
"\x12ResourceDescriptor\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x14\n" +
|
|
"\x05title\x18\x02 \x01(\tR\x05title\x12\x1f\n" +
|
|
"\vschema_json\x18\x03 \x01(\tR\n" +
|
|
"schemaJson\x12\x1a\n" +
|
|
"\bcommands\x18\x04 \x03(\tR\bcommands\x12\x1d\n" +
|
|
"\n" +
|
|
"apply_mode\x18\x05 \x01(\tR\tapplyMode\x12#\n" +
|
|
"\rquery_service\x18\x06 \x01(\tR\fqueryService\x12'\n" +
|
|
"\x0fcommand_service\x18\a \x01(\tR\x0ecommandService\x12#\n" +
|
|
"\rdefaults_json\x18\b \x01(\tR\fdefaultsJson\"\x10\n" +
|
|
"\x0eCatalogRequest\"T\n" +
|
|
"\x0fCatalogResponse\x12A\n" +
|
|
"\tresources\x18\x01 \x03(\v2#.controlplane.v1.ResourceDescriptorR\tresources\"\xa9\x01\n" +
|
|
"\bResource\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x03R\aversion\x12\x1d\n" +
|
|
"\n" +
|
|
"value_json\x18\x03 \x01(\fR\tvalueJson\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x15\n" +
|
|
"\x06org_id\x18\x05 \x01(\tR\x05orgId\"0\n" +
|
|
"\fQueryRequest\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kindJ\x04\b\x02\x10\x03R\x06org_id\"F\n" +
|
|
"\rQueryResponse\x125\n" +
|
|
"\bresource\x18\x01 \x01(\v2\x19.controlplane.v1.ResourceR\bresource\"\xbc\x01\n" +
|
|
"\bRevision\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x03R\aversion\x12\x1d\n" +
|
|
"\n" +
|
|
"value_json\x18\x02 \x01(\fR\tvalueJson\x12\x14\n" +
|
|
"\x05actor\x18\x03 \x01(\tR\x05actor\x12\x16\n" +
|
|
"\x06source\x18\x04 \x01(\tR\x06source\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x05 \x01(\tR\trequestId\x12*\n" +
|
|
"\x02at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x02at\"H\n" +
|
|
"\x0eHistoryRequest\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x14\n" +
|
|
"\x05limit\x18\x02 \x01(\x05R\x05limitJ\x04\b\x03\x10\x04R\x06org_id\"J\n" +
|
|
"\x0fHistoryResponse\x127\n" +
|
|
"\trevisions\x18\x01 \x03(\v2\x19.controlplane.v1.RevisionR\trevisions\"\xe3\x01\n" +
|
|
"\x0eCommandRequest\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x18\n" +
|
|
"\acommand\x18\x02 \x01(\tR\acommand\x12\x1d\n" +
|
|
"\n" +
|
|
"value_json\x18\x03 \x01(\fR\tvalueJson\x12)\n" +
|
|
"\x10expected_version\x18\x04 \x01(\x03R\x0fexpectedVersion\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x05 \x01(\tR\trequestId\x12\x14\n" +
|
|
"\x05actor\x18\x06 \x01(\tR\x05actor\x12\x16\n" +
|
|
"\x06source\x18\a \x01(\tR\x06sourceJ\x04\b\b\x10\tR\x06org_id\"H\n" +
|
|
"\x0fCommandResponse\x125\n" +
|
|
"\bresource\x18\x01 \x01(\v2\x19.controlplane.v1.ResourceR\bresource\"U\n" +
|
|
"\fWatchRequest\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12#\n" +
|
|
"\rafter_version\x18\x02 \x01(\x03R\fafterVersionJ\x04\b\x03\x10\x04R\x06org_id\"\\\n" +
|
|
"\rWatchResponse\x125\n" +
|
|
"\bresource\x18\x01 \x01(\v2\x19.controlplane.v1.ResourceR\bresource\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error2\x91\x03\n" +
|
|
"\x13ControlPlaneService\x12L\n" +
|
|
"\aCatalog\x12\x1f.controlplane.v1.CatalogRequest\x1a .controlplane.v1.CatalogResponse\x12F\n" +
|
|
"\x05Query\x12\x1d.controlplane.v1.QueryRequest\x1a\x1e.controlplane.v1.QueryResponse\x12L\n" +
|
|
"\aHistory\x12\x1f.controlplane.v1.HistoryRequest\x1a .controlplane.v1.HistoryResponse\x12L\n" +
|
|
"\aCommand\x12\x1f.controlplane.v1.CommandRequest\x1a .controlplane.v1.CommandResponse\x12H\n" +
|
|
"\x05Watch\x12\x1d.controlplane.v1.WatchRequest\x1a\x1e.controlplane.v1.WatchResponse0\x01B\xdc\x01\n" +
|
|
"\x13com.controlplane.v1B\x11ControlplaneProtoP\x01ZUgithub.com/samcharles93/archie-core/internal/contracts/controlplane/v1;controlplanev1\xa2\x02\x03CXX\xaa\x02\x0fControlplane.V1\xca\x02\x0fControlplane\\V1\xe2\x02\x1bControlplane\\V1\\GPBMetadata\xea\x02\x10Controlplane::V1b\x06proto3"
|
|
|
|
var (
|
|
file_controlplane_v1_controlplane_proto_rawDescOnce sync.Once
|
|
file_controlplane_v1_controlplane_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_controlplane_v1_controlplane_proto_rawDescGZIP() []byte {
|
|
file_controlplane_v1_controlplane_proto_rawDescOnce.Do(func() {
|
|
file_controlplane_v1_controlplane_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controlplane_v1_controlplane_proto_rawDesc), len(file_controlplane_v1_controlplane_proto_rawDesc)))
|
|
})
|
|
return file_controlplane_v1_controlplane_proto_rawDescData
|
|
}
|
|
|
|
var file_controlplane_v1_controlplane_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
var file_controlplane_v1_controlplane_proto_goTypes = []any{
|
|
(*ResourceDescriptor)(nil), // 0: controlplane.v1.ResourceDescriptor
|
|
(*CatalogRequest)(nil), // 1: controlplane.v1.CatalogRequest
|
|
(*CatalogResponse)(nil), // 2: controlplane.v1.CatalogResponse
|
|
(*Resource)(nil), // 3: controlplane.v1.Resource
|
|
(*QueryRequest)(nil), // 4: controlplane.v1.QueryRequest
|
|
(*QueryResponse)(nil), // 5: controlplane.v1.QueryResponse
|
|
(*Revision)(nil), // 6: controlplane.v1.Revision
|
|
(*HistoryRequest)(nil), // 7: controlplane.v1.HistoryRequest
|
|
(*HistoryResponse)(nil), // 8: controlplane.v1.HistoryResponse
|
|
(*CommandRequest)(nil), // 9: controlplane.v1.CommandRequest
|
|
(*CommandResponse)(nil), // 10: controlplane.v1.CommandResponse
|
|
(*WatchRequest)(nil), // 11: controlplane.v1.WatchRequest
|
|
(*WatchResponse)(nil), // 12: controlplane.v1.WatchResponse
|
|
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
|
|
}
|
|
var file_controlplane_v1_controlplane_proto_depIdxs = []int32{
|
|
0, // 0: controlplane.v1.CatalogResponse.resources:type_name -> controlplane.v1.ResourceDescriptor
|
|
13, // 1: controlplane.v1.Resource.updated_at:type_name -> google.protobuf.Timestamp
|
|
3, // 2: controlplane.v1.QueryResponse.resource:type_name -> controlplane.v1.Resource
|
|
13, // 3: controlplane.v1.Revision.at:type_name -> google.protobuf.Timestamp
|
|
6, // 4: controlplane.v1.HistoryResponse.revisions:type_name -> controlplane.v1.Revision
|
|
3, // 5: controlplane.v1.CommandResponse.resource:type_name -> controlplane.v1.Resource
|
|
3, // 6: controlplane.v1.WatchResponse.resource:type_name -> controlplane.v1.Resource
|
|
1, // 7: controlplane.v1.ControlPlaneService.Catalog:input_type -> controlplane.v1.CatalogRequest
|
|
4, // 8: controlplane.v1.ControlPlaneService.Query:input_type -> controlplane.v1.QueryRequest
|
|
7, // 9: controlplane.v1.ControlPlaneService.History:input_type -> controlplane.v1.HistoryRequest
|
|
9, // 10: controlplane.v1.ControlPlaneService.Command:input_type -> controlplane.v1.CommandRequest
|
|
11, // 11: controlplane.v1.ControlPlaneService.Watch:input_type -> controlplane.v1.WatchRequest
|
|
2, // 12: controlplane.v1.ControlPlaneService.Catalog:output_type -> controlplane.v1.CatalogResponse
|
|
5, // 13: controlplane.v1.ControlPlaneService.Query:output_type -> controlplane.v1.QueryResponse
|
|
8, // 14: controlplane.v1.ControlPlaneService.History:output_type -> controlplane.v1.HistoryResponse
|
|
10, // 15: controlplane.v1.ControlPlaneService.Command:output_type -> controlplane.v1.CommandResponse
|
|
12, // 16: controlplane.v1.ControlPlaneService.Watch:output_type -> controlplane.v1.WatchResponse
|
|
12, // [12:17] is the sub-list for method output_type
|
|
7, // [7:12] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_controlplane_v1_controlplane_proto_init() }
|
|
func file_controlplane_v1_controlplane_proto_init() {
|
|
if File_controlplane_v1_controlplane_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controlplane_v1_controlplane_proto_rawDesc), len(file_controlplane_v1_controlplane_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 13,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_controlplane_v1_controlplane_proto_goTypes,
|
|
DependencyIndexes: file_controlplane_v1_controlplane_proto_depIdxs,
|
|
MessageInfos: file_controlplane_v1_controlplane_proto_msgTypes,
|
|
}.Build()
|
|
File_controlplane_v1_controlplane_proto = out.File
|
|
file_controlplane_v1_controlplane_proto_goTypes = nil
|
|
file_controlplane_v1_controlplane_proto_depIdxs = nil
|
|
}
|