You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/gen/controller/servers/services/upstream_message_service.pb.go

471 lines
17 KiB

// Copyright (c) HashiCorp, Inc.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc (unknown)
// source: controller/servers/services/v1/upstream_message_service.proto
package services
import (
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)
)
// defines the set of unknown message types
type MsgType int32
const (
MsgType_MSG_TYPE_UNSPECIFIED MsgType = 0
MsgType_MSG_TYPE_ECHO MsgType = 1 // currently this only used for testing.
MsgType_MSG_TYPE_UNWRAP_KEYS MsgType = 2
MsgType_MSG_TYPE_VERIFY_SIGNATURE MsgType = 3
MsgType_MSG_TYPE_CLOSE_SESSION_RECORDING MsgType = 4
MsgType_MSG_TYPE_CLOSE_CONNECTION_RECORDING MsgType = 5
MsgType_MSG_TYPE_CREATE_CHANNEL_RECORDING MsgType = 6
)
// Enum value maps for MsgType.
var (
MsgType_name = map[int32]string{
0: "MSG_TYPE_UNSPECIFIED",
1: "MSG_TYPE_ECHO",
2: "MSG_TYPE_UNWRAP_KEYS",
3: "MSG_TYPE_VERIFY_SIGNATURE",
4: "MSG_TYPE_CLOSE_SESSION_RECORDING",
5: "MSG_TYPE_CLOSE_CONNECTION_RECORDING",
6: "MSG_TYPE_CREATE_CHANNEL_RECORDING",
}
MsgType_value = map[string]int32{
"MSG_TYPE_UNSPECIFIED": 0,
"MSG_TYPE_ECHO": 1,
"MSG_TYPE_UNWRAP_KEYS": 2,
"MSG_TYPE_VERIFY_SIGNATURE": 3,
"MSG_TYPE_CLOSE_SESSION_RECORDING": 4,
"MSG_TYPE_CLOSE_CONNECTION_RECORDING": 5,
"MSG_TYPE_CREATE_CHANNEL_RECORDING": 6,
}
)
func (x MsgType) Enum() *MsgType {
p := new(MsgType)
*p = x
return p
}
func (x MsgType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MsgType) Descriptor() protoreflect.EnumDescriptor {
return file_controller_servers_services_v1_upstream_message_service_proto_enumTypes[0].Descriptor()
}
func (MsgType) Type() protoreflect.EnumType {
return &file_controller_servers_services_v1_upstream_message_service_proto_enumTypes[0]
}
func (x MsgType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MsgType.Descriptor instead.
func (MsgType) EnumDescriptor() ([]byte, []int) {
return file_controller_servers_services_v1_upstream_message_service_proto_rawDescGZIP(), []int{0}
}
type UpstreamMessageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// the node credentials key id for the worker originated the request
OriginatingWorkerKeyId string `protobuf:"bytes,10,opt,name=originating_worker_key_id,json=originatingWorkerKeyId,proto3" json:"originating_worker_key_id,omitempty" class:"public"` // @gotags: `class:"public"
// the type of the encrypted_message which must have a
// RegisterUpstreamMessageHandler or codesUnimplemented will be returned
MsgType MsgType `protobuf:"varint,20,opt,name=msg_type,json=msgType,proto3,enum=controller.servers.services.v1.MsgType" json:"msg_type,omitempty"`
// message will either be encrypted (ct) or plaintext (pt) based on its
// msg_type
//
// Types that are valid to be assigned to Message:
//
// *UpstreamMessageRequest_Ct
// *UpstreamMessageRequest_Pt
Message isUpstreamMessageRequest_Message `protobuf_oneof:"message"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpstreamMessageRequest) Reset() {
*x = UpstreamMessageRequest{}
mi := &file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpstreamMessageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpstreamMessageRequest) ProtoMessage() {}
func (x *UpstreamMessageRequest) ProtoReflect() protoreflect.Message {
mi := &file_controller_servers_services_v1_upstream_message_service_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 UpstreamMessageRequest.ProtoReflect.Descriptor instead.
func (*UpstreamMessageRequest) Descriptor() ([]byte, []int) {
return file_controller_servers_services_v1_upstream_message_service_proto_rawDescGZIP(), []int{0}
}
func (x *UpstreamMessageRequest) GetOriginatingWorkerKeyId() string {
if x != nil {
return x.OriginatingWorkerKeyId
}
return ""
}
func (x *UpstreamMessageRequest) GetMsgType() MsgType {
if x != nil {
return x.MsgType
}
return MsgType_MSG_TYPE_UNSPECIFIED
}
func (x *UpstreamMessageRequest) GetMessage() isUpstreamMessageRequest_Message {
if x != nil {
return x.Message
}
return nil
}
func (x *UpstreamMessageRequest) GetCt() []byte {
if x != nil {
if x, ok := x.Message.(*UpstreamMessageRequest_Ct); ok {
return x.Ct
}
}
return nil
}
func (x *UpstreamMessageRequest) GetPt() []byte {
if x != nil {
if x, ok := x.Message.(*UpstreamMessageRequest_Pt); ok {
return x.Pt
}
}
return nil
}
type isUpstreamMessageRequest_Message interface {
isUpstreamMessageRequest_Message()
}
type UpstreamMessageRequest_Ct struct {
// the encrypted upstream message. This message is encrypted with the
// originating worker's types.NodeCredentials.
Ct []byte `protobuf:"bytes,30,opt,name=ct,proto3,oneof" class:"secret"` // @gotags: `class:"secret"
}
type UpstreamMessageRequest_Pt struct {
// the plaintext upstream message.
Pt []byte `protobuf:"bytes,40,opt,name=pt,proto3,oneof" class:"public"` // @gotags: `class:"public"
}
func (*UpstreamMessageRequest_Ct) isUpstreamMessageRequest_Message() {}
func (*UpstreamMessageRequest_Pt) isUpstreamMessageRequest_Message() {}
type UpstreamMessageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// the encryped response message. This message is encrypted with the
// originating worker's types.NodeCredentials.
// message will either be encrypted (ct) or plaintext (pt) based on its
// msg_type
//
// Types that are valid to be assigned to Message:
//
// *UpstreamMessageResponse_Ct
// *UpstreamMessageResponse_Pt
Message isUpstreamMessageResponse_Message `protobuf_oneof:"message"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpstreamMessageResponse) Reset() {
*x = UpstreamMessageResponse{}
mi := &file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpstreamMessageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpstreamMessageResponse) ProtoMessage() {}
func (x *UpstreamMessageResponse) ProtoReflect() protoreflect.Message {
mi := &file_controller_servers_services_v1_upstream_message_service_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 UpstreamMessageResponse.ProtoReflect.Descriptor instead.
func (*UpstreamMessageResponse) Descriptor() ([]byte, []int) {
return file_controller_servers_services_v1_upstream_message_service_proto_rawDescGZIP(), []int{1}
}
func (x *UpstreamMessageResponse) GetMessage() isUpstreamMessageResponse_Message {
if x != nil {
return x.Message
}
return nil
}
func (x *UpstreamMessageResponse) GetCt() []byte {
if x != nil {
if x, ok := x.Message.(*UpstreamMessageResponse_Ct); ok {
return x.Ct
}
}
return nil
}
func (x *UpstreamMessageResponse) GetPt() []byte {
if x != nil {
if x, ok := x.Message.(*UpstreamMessageResponse_Pt); ok {
return x.Pt
}
}
return nil
}
type isUpstreamMessageResponse_Message interface {
isUpstreamMessageResponse_Message()
}
type UpstreamMessageResponse_Ct struct {
// the encrypted upstream message. This message is encrypted with the
// originating worker's types.NodeCredentials.
Ct []byte `protobuf:"bytes,10,opt,name=ct,proto3,oneof" class:"secret"` // @gotags: `class:"secret"
}
type UpstreamMessageResponse_Pt struct {
// the plaintext upstream message.
Pt []byte `protobuf:"bytes,20,opt,name=pt,proto3,oneof" class:"public"` // @gotags: `class:"public"
}
func (*UpstreamMessageResponse_Ct) isUpstreamMessageResponse_Message() {}
func (*UpstreamMessageResponse_Pt) isUpstreamMessageResponse_Message() {}
type EchoUpstreamMessageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Msg string `protobuf:"bytes,10,opt,name=msg,proto3" json:"msg,omitempty" class:"secret"` // @gotags: `class:"secret"
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EchoUpstreamMessageRequest) Reset() {
*x = EchoUpstreamMessageRequest{}
mi := &file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EchoUpstreamMessageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EchoUpstreamMessageRequest) ProtoMessage() {}
func (x *EchoUpstreamMessageRequest) ProtoReflect() protoreflect.Message {
mi := &file_controller_servers_services_v1_upstream_message_service_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 EchoUpstreamMessageRequest.ProtoReflect.Descriptor instead.
func (*EchoUpstreamMessageRequest) Descriptor() ([]byte, []int) {
return file_controller_servers_services_v1_upstream_message_service_proto_rawDescGZIP(), []int{2}
}
func (x *EchoUpstreamMessageRequest) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
type EchoUpstreamMessageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Msg string `protobuf:"bytes,10,opt,name=msg,proto3" json:"msg,omitempty" class:"secret"` // @gotags: `class:"secret"
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EchoUpstreamMessageResponse) Reset() {
*x = EchoUpstreamMessageResponse{}
mi := &file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EchoUpstreamMessageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EchoUpstreamMessageResponse) ProtoMessage() {}
func (x *EchoUpstreamMessageResponse) ProtoReflect() protoreflect.Message {
mi := &file_controller_servers_services_v1_upstream_message_service_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 EchoUpstreamMessageResponse.ProtoReflect.Descriptor instead.
func (*EchoUpstreamMessageResponse) Descriptor() ([]byte, []int) {
return file_controller_servers_services_v1_upstream_message_service_proto_rawDescGZIP(), []int{3}
}
func (x *EchoUpstreamMessageResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
var File_controller_servers_services_v1_upstream_message_service_proto protoreflect.FileDescriptor
const file_controller_servers_services_v1_upstream_message_service_proto_rawDesc = "" +
"\n" +
"=controller/servers/services/v1/upstream_message_service.proto\x12\x1econtroller.servers.services.v1\"\xc6\x01\n" +
"\x16UpstreamMessageRequest\x129\n" +
"\x19originating_worker_key_id\x18\n" +
" \x01(\tR\x16originatingWorkerKeyId\x12B\n" +
"\bmsg_type\x18\x14 \x01(\x0e2'.controller.servers.services.v1.MsgTypeR\amsgType\x12\x10\n" +
"\x02ct\x18\x1e \x01(\fH\x00R\x02ct\x12\x10\n" +
"\x02pt\x18( \x01(\fH\x00R\x02ptB\t\n" +
"\amessage\"H\n" +
"\x17UpstreamMessageResponse\x12\x10\n" +
"\x02ct\x18\n" +
" \x01(\fH\x00R\x02ct\x12\x10\n" +
"\x02pt\x18\x14 \x01(\fH\x00R\x02ptB\t\n" +
"\amessage\".\n" +
"\x1aEchoUpstreamMessageRequest\x12\x10\n" +
"\x03msg\x18\n" +
" \x01(\tR\x03msg\"/\n" +
"\x1bEchoUpstreamMessageResponse\x12\x10\n" +
"\x03msg\x18\n" +
" \x01(\tR\x03msg*\xe5\x01\n" +
"\aMsgType\x12\x18\n" +
"\x14MSG_TYPE_UNSPECIFIED\x10\x00\x12\x11\n" +
"\rMSG_TYPE_ECHO\x10\x01\x12\x18\n" +
"\x14MSG_TYPE_UNWRAP_KEYS\x10\x02\x12\x1d\n" +
"\x19MSG_TYPE_VERIFY_SIGNATURE\x10\x03\x12$\n" +
" MSG_TYPE_CLOSE_SESSION_RECORDING\x10\x04\x12'\n" +
"#MSG_TYPE_CLOSE_CONNECTION_RECORDING\x10\x05\x12%\n" +
"!MSG_TYPE_CREATE_CHANNEL_RECORDING\x10\x062\x9f\x01\n" +
"\x16UpstreamMessageService\x12\x84\x01\n" +
"\x0fUpstreamMessage\x126.controller.servers.services.v1.UpstreamMessageRequest\x1a7.controller.servers.services.v1.UpstreamMessageResponse\"\x00BQZOgithub.com/hashicorp/boundary/internal/gen/controller/servers/services;servicesb\x06proto3"
var (
file_controller_servers_services_v1_upstream_message_service_proto_rawDescOnce sync.Once
file_controller_servers_services_v1_upstream_message_service_proto_rawDescData []byte
)
func file_controller_servers_services_v1_upstream_message_service_proto_rawDescGZIP() []byte {
file_controller_servers_services_v1_upstream_message_service_proto_rawDescOnce.Do(func() {
file_controller_servers_services_v1_upstream_message_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_servers_services_v1_upstream_message_service_proto_rawDesc), len(file_controller_servers_services_v1_upstream_message_service_proto_rawDesc)))
})
return file_controller_servers_services_v1_upstream_message_service_proto_rawDescData
}
var file_controller_servers_services_v1_upstream_message_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_controller_servers_services_v1_upstream_message_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_servers_services_v1_upstream_message_service_proto_goTypes = []any{
(MsgType)(0), // 0: controller.servers.services.v1.MsgType
(*UpstreamMessageRequest)(nil), // 1: controller.servers.services.v1.UpstreamMessageRequest
(*UpstreamMessageResponse)(nil), // 2: controller.servers.services.v1.UpstreamMessageResponse
(*EchoUpstreamMessageRequest)(nil), // 3: controller.servers.services.v1.EchoUpstreamMessageRequest
(*EchoUpstreamMessageResponse)(nil), // 4: controller.servers.services.v1.EchoUpstreamMessageResponse
}
var file_controller_servers_services_v1_upstream_message_service_proto_depIdxs = []int32{
0, // 0: controller.servers.services.v1.UpstreamMessageRequest.msg_type:type_name -> controller.servers.services.v1.MsgType
1, // 1: controller.servers.services.v1.UpstreamMessageService.UpstreamMessage:input_type -> controller.servers.services.v1.UpstreamMessageRequest
2, // 2: controller.servers.services.v1.UpstreamMessageService.UpstreamMessage:output_type -> controller.servers.services.v1.UpstreamMessageResponse
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_controller_servers_services_v1_upstream_message_service_proto_init() }
func file_controller_servers_services_v1_upstream_message_service_proto_init() {
if File_controller_servers_services_v1_upstream_message_service_proto != nil {
return
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].OneofWrappers = []any{
(*UpstreamMessageRequest_Ct)(nil),
(*UpstreamMessageRequest_Pt)(nil),
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].OneofWrappers = []any{
(*UpstreamMessageResponse_Ct)(nil),
(*UpstreamMessageResponse_Pt)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_servers_services_v1_upstream_message_service_proto_rawDesc), len(file_controller_servers_services_v1_upstream_message_service_proto_rawDesc)),
NumEnums: 1,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_controller_servers_services_v1_upstream_message_service_proto_goTypes,
DependencyIndexes: file_controller_servers_services_v1_upstream_message_service_proto_depIdxs,
EnumInfos: file_controller_servers_services_v1_upstream_message_service_proto_enumTypes,
MessageInfos: file_controller_servers_services_v1_upstream_message_service_proto_msgTypes,
}.Build()
File_controller_servers_services_v1_upstream_message_service_proto = out.File
file_controller_servers_services_v1_upstream_message_service_proto_goTypes = nil
file_controller_servers_services_v1_upstream_message_service_proto_depIdxs = nil
}