| // 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: cloudproto1.proto | |
| package cloudproto1 | |
| 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"` | |
| unknownFields protoimpl.UnknownFields | |
| sizeCache protoimpl.SizeCache | |
| } | |
| func (x *CommandRequest) Reset() { | |
| *x = CommandRequest{} | |
| mi := &file_cloudproto1_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_cloudproto1_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_cloudproto1_proto_rawDescGZIP(), []int{0} | |
| } | |
| func (x *CommandRequest) GetArgs() []string { | |
| if x != nil { | |
| return x.Args | |
| } | |
| return nil | |
| } | |
| // 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_cloudproto1_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_cloudproto1_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_cloudproto1_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_cloudproto1_proto protoreflect.FileDescriptor | |
| const file_cloudproto1_proto_rawDesc = "" + | |
| "\n" + | |
| "\x11cloudproto1.proto\x12\vcloudproto1\"$\n" + | |
| "\x0eCommandRequest\x12\x12\n" + | |
| "\x04args\x18\x01 \x03(\tR\x04args\"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" + | |
| "\x04data2Z\n" + | |
| "\x0eCommandService\x12H\n" + | |
| "\aExecute\x12\x1b.cloudproto1.CommandRequest\x1a\x1c.cloudproto1.CommandResponse\"\x000\x01BAZ?github.com/hashicorp/terraform/internal/cloudplugin/cloudproto1b\x06proto3" | |
| var ( | |
| file_cloudproto1_proto_rawDescOnce sync.Once | |
| file_cloudproto1_proto_rawDescData []byte | |
| ) | |
| func file_cloudproto1_proto_rawDescGZIP() []byte { | |
| file_cloudproto1_proto_rawDescOnce.Do(func() { | |
| file_cloudproto1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cloudproto1_proto_rawDesc), len(file_cloudproto1_proto_rawDesc))) | |
| }) | |
| return file_cloudproto1_proto_rawDescData | |
| } | |
| var file_cloudproto1_proto_msgTypes = make([]protoimpl.MessageInfo, 2) | |
| var file_cloudproto1_proto_goTypes = []any{ | |
| (*CommandRequest)(nil), // 0: cloudproto1.CommandRequest | |
| (*CommandResponse)(nil), // 1: cloudproto1.CommandResponse | |
| } | |
| var file_cloudproto1_proto_depIdxs = []int32{ | |
| 0, // 0: cloudproto1.CommandService.Execute:input_type -> cloudproto1.CommandRequest | |
| 1, // 1: cloudproto1.CommandService.Execute:output_type -> cloudproto1.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_cloudproto1_proto_init() } | |
| func file_cloudproto1_proto_init() { | |
| if File_cloudproto1_proto != nil { | |
| return | |
| } | |
| file_cloudproto1_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_cloudproto1_proto_rawDesc), len(file_cloudproto1_proto_rawDesc)), | |
| NumEnums: 0, | |
| NumMessages: 2, | |
| NumExtensions: 0, | |
| NumServices: 1, | |
| }, | |
| GoTypes: file_cloudproto1_proto_goTypes, | |
| DependencyIndexes: file_cloudproto1_proto_depIdxs, | |
| MessageInfos: file_cloudproto1_proto_msgTypes, | |
| }.Build() | |
| File_cloudproto1_proto = out.File | |
| file_cloudproto1_proto_goTypes = nil | |
| file_cloudproto1_proto_depIdxs = nil | |
| } |