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.
terraform/internal/stacksplugin/stacksproto1/stacksproto1.pb.go

270 lines
7.9 KiB

// Copyright IBM Corp. 2014, 2026
// SPDX-License-Identifier: BUSL-1.1
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.3
// source: stacksproto1.proto
package stacksproto1
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)
)
// CommandRequest is used to request the execution of a specific command with
// provided flags. It is the raw args from the HCP Terraform command.
type CommandRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
DependenciesServer uint32 `protobuf:"varint,2,opt,name=dependencies_server,json=dependenciesServer,proto3" json:"dependencies_server,omitempty"`
PackagesServer uint32 `protobuf:"varint,3,opt,name=packages_server,json=packagesServer,proto3" json:"packages_server,omitempty"`
StacksServer uint32 `protobuf:"varint,4,opt,name=stacks_server,json=stacksServer,proto3" json:"stacks_server,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CommandRequest) Reset() {
*x = CommandRequest{}
mi := &file_stacksproto1_proto_msgTypes[0]
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_stacksproto1_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 CommandRequest.ProtoReflect.Descriptor instead.
func (*CommandRequest) Descriptor() ([]byte, []int) {
return file_stacksproto1_proto_rawDescGZIP(), []int{0}
}
func (x *CommandRequest) GetArgs() []string {
if x != nil {
return x.Args
}
return nil
}
func (x *CommandRequest) GetDependenciesServer() uint32 {
if x != nil {
return x.DependenciesServer
}
return 0
}
func (x *CommandRequest) GetPackagesServer() uint32 {
if x != nil {
return x.PackagesServer
}
return 0
}
func (x *CommandRequest) GetStacksServer() uint32 {
if x != nil {
return x.StacksServer
}
return 0
}
// CommandResponse contains the result of the command execution, including any
// output or errors.
type CommandResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Data:
//
// *CommandResponse_ExitCode
// *CommandResponse_Stdout
// *CommandResponse_Stderr
Data isCommandResponse_Data `protobuf_oneof:"data"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CommandResponse) Reset() {
*x = CommandResponse{}
mi := &file_stacksproto1_proto_msgTypes[1]
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_stacksproto1_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 CommandResponse.ProtoReflect.Descriptor instead.
func (*CommandResponse) Descriptor() ([]byte, []int) {
return file_stacksproto1_proto_rawDescGZIP(), []int{1}
}
func (x *CommandResponse) GetData() isCommandResponse_Data {
if x != nil {
return x.Data
}
return nil
}
func (x *CommandResponse) GetExitCode() int32 {
if x != nil {
if x, ok := x.Data.(*CommandResponse_ExitCode); ok {
return x.ExitCode
}
}
return 0
}
func (x *CommandResponse) GetStdout() []byte {
if x != nil {
if x, ok := x.Data.(*CommandResponse_Stdout); ok {
return x.Stdout
}
}
return nil
}
func (x *CommandResponse) GetStderr() []byte {
if x != nil {
if x, ok := x.Data.(*CommandResponse_Stderr); ok {
return x.Stderr
}
}
return nil
}
type isCommandResponse_Data interface {
isCommandResponse_Data()
}
type CommandResponse_ExitCode struct {
ExitCode int32 `protobuf:"varint,1,opt,name=exitCode,proto3,oneof"`
}
type CommandResponse_Stdout struct {
Stdout []byte `protobuf:"bytes,2,opt,name=stdout,proto3,oneof"`
}
type CommandResponse_Stderr struct {
Stderr []byte `protobuf:"bytes,3,opt,name=stderr,proto3,oneof"`
}
func (*CommandResponse_ExitCode) isCommandResponse_Data() {}
func (*CommandResponse_Stdout) isCommandResponse_Data() {}
func (*CommandResponse_Stderr) isCommandResponse_Data() {}
var File_stacksproto1_proto protoreflect.FileDescriptor
const file_stacksproto1_proto_rawDesc = "" +
"\n" +
"\x12stacksproto1.proto\x12\fstacksproto1\"\xa3\x01\n" +
"\x0eCommandRequest\x12\x12\n" +
"\x04args\x18\x01 \x03(\tR\x04args\x12/\n" +
"\x13dependencies_server\x18\x02 \x01(\rR\x12dependenciesServer\x12'\n" +
"\x0fpackages_server\x18\x03 \x01(\rR\x0epackagesServer\x12#\n" +
"\rstacks_server\x18\x04 \x01(\rR\fstacksServer\"k\n" +
"\x0fCommandResponse\x12\x1c\n" +
"\bexitCode\x18\x01 \x01(\x05H\x00R\bexitCode\x12\x18\n" +
"\x06stdout\x18\x02 \x01(\fH\x00R\x06stdout\x12\x18\n" +
"\x06stderr\x18\x03 \x01(\fH\x00R\x06stderrB\x06\n" +
"\x04data2\\\n" +
"\x0eCommandService\x12J\n" +
"\aExecute\x12\x1c.stacksproto1.CommandRequest\x1a\x1d.stacksproto1.CommandResponse\"\x000\x01BCZAgithub.com/hashicorp/terraform/internal/stacksplugin/stacksproto1b\x06proto3"
var (
file_stacksproto1_proto_rawDescOnce sync.Once
file_stacksproto1_proto_rawDescData []byte
)
func file_stacksproto1_proto_rawDescGZIP() []byte {
file_stacksproto1_proto_rawDescOnce.Do(func() {
file_stacksproto1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stacksproto1_proto_rawDesc), len(file_stacksproto1_proto_rawDesc)))
})
return file_stacksproto1_proto_rawDescData
}
var file_stacksproto1_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_stacksproto1_proto_goTypes = []any{
(*CommandRequest)(nil), // 0: stacksproto1.CommandRequest
(*CommandResponse)(nil), // 1: stacksproto1.CommandResponse
}
var file_stacksproto1_proto_depIdxs = []int32{
0, // 0: stacksproto1.CommandService.Execute:input_type -> stacksproto1.CommandRequest
1, // 1: stacksproto1.CommandService.Execute:output_type -> stacksproto1.CommandResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_stacksproto1_proto_init() }
func file_stacksproto1_proto_init() {
if File_stacksproto1_proto != nil {
return
}
file_stacksproto1_proto_msgTypes[1].OneofWrappers = []any{
(*CommandResponse_ExitCode)(nil),
(*CommandResponse_Stdout)(nil),
(*CommandResponse_Stderr)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_stacksproto1_proto_rawDesc), len(file_stacksproto1_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_stacksproto1_proto_goTypes,
DependencyIndexes: file_stacksproto1_proto_depIdxs,
MessageInfos: file_stacksproto1_proto_msgTypes,
}.Build()
File_stacksproto1_proto = out.File
file_stacksproto1_proto_goTypes = nil
file_stacksproto1_proto_depIdxs = nil
}