github.com/hashicorp/go-plugin@v1.6.0/internal/plugin/grpc_stdio.pb.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  // Code generated by protoc-gen-go. DO NOT EDIT.
     5  // versions:
     6  // 	protoc-gen-go v1.31.0
     7  // 	protoc        (unknown)
     8  // source: internal/plugin/grpc_stdio.proto
     9  
    10  package plugin
    11  
    12  import (
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  type StdioData_Channel int32
    28  
    29  const (
    30  	StdioData_INVALID StdioData_Channel = 0
    31  	StdioData_STDOUT  StdioData_Channel = 1
    32  	StdioData_STDERR  StdioData_Channel = 2
    33  )
    34  
    35  // Enum value maps for StdioData_Channel.
    36  var (
    37  	StdioData_Channel_name = map[int32]string{
    38  		0: "INVALID",
    39  		1: "STDOUT",
    40  		2: "STDERR",
    41  	}
    42  	StdioData_Channel_value = map[string]int32{
    43  		"INVALID": 0,
    44  		"STDOUT":  1,
    45  		"STDERR":  2,
    46  	}
    47  )
    48  
    49  func (x StdioData_Channel) Enum() *StdioData_Channel {
    50  	p := new(StdioData_Channel)
    51  	*p = x
    52  	return p
    53  }
    54  
    55  func (x StdioData_Channel) String() string {
    56  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    57  }
    58  
    59  func (StdioData_Channel) Descriptor() protoreflect.EnumDescriptor {
    60  	return file_internal_plugin_grpc_stdio_proto_enumTypes[0].Descriptor()
    61  }
    62  
    63  func (StdioData_Channel) Type() protoreflect.EnumType {
    64  	return &file_internal_plugin_grpc_stdio_proto_enumTypes[0]
    65  }
    66  
    67  func (x StdioData_Channel) Number() protoreflect.EnumNumber {
    68  	return protoreflect.EnumNumber(x)
    69  }
    70  
    71  // Deprecated: Use StdioData_Channel.Descriptor instead.
    72  func (StdioData_Channel) EnumDescriptor() ([]byte, []int) {
    73  	return file_internal_plugin_grpc_stdio_proto_rawDescGZIP(), []int{0, 0}
    74  }
    75  
    76  // StdioData is a single chunk of stdout or stderr data that is streamed
    77  // from GRPCStdio.
    78  type StdioData struct {
    79  	state         protoimpl.MessageState
    80  	sizeCache     protoimpl.SizeCache
    81  	unknownFields protoimpl.UnknownFields
    82  
    83  	Channel StdioData_Channel `protobuf:"varint,1,opt,name=channel,proto3,enum=plugin.StdioData_Channel" json:"channel,omitempty"`
    84  	Data    []byte            `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
    85  }
    86  
    87  func (x *StdioData) Reset() {
    88  	*x = StdioData{}
    89  	if protoimpl.UnsafeEnabled {
    90  		mi := &file_internal_plugin_grpc_stdio_proto_msgTypes[0]
    91  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    92  		ms.StoreMessageInfo(mi)
    93  	}
    94  }
    95  
    96  func (x *StdioData) String() string {
    97  	return protoimpl.X.MessageStringOf(x)
    98  }
    99  
   100  func (*StdioData) ProtoMessage() {}
   101  
   102  func (x *StdioData) ProtoReflect() protoreflect.Message {
   103  	mi := &file_internal_plugin_grpc_stdio_proto_msgTypes[0]
   104  	if protoimpl.UnsafeEnabled && x != nil {
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		if ms.LoadMessageInfo() == nil {
   107  			ms.StoreMessageInfo(mi)
   108  		}
   109  		return ms
   110  	}
   111  	return mi.MessageOf(x)
   112  }
   113  
   114  // Deprecated: Use StdioData.ProtoReflect.Descriptor instead.
   115  func (*StdioData) Descriptor() ([]byte, []int) {
   116  	return file_internal_plugin_grpc_stdio_proto_rawDescGZIP(), []int{0}
   117  }
   118  
   119  func (x *StdioData) GetChannel() StdioData_Channel {
   120  	if x != nil {
   121  		return x.Channel
   122  	}
   123  	return StdioData_INVALID
   124  }
   125  
   126  func (x *StdioData) GetData() []byte {
   127  	if x != nil {
   128  		return x.Data
   129  	}
   130  	return nil
   131  }
   132  
   133  var File_internal_plugin_grpc_stdio_proto protoreflect.FileDescriptor
   134  
   135  var file_internal_plugin_grpc_stdio_proto_rawDesc = []byte{
   136  	0x0a, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69,
   137  	0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x74, 0x64, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
   138  	0x74, 0x6f, 0x12, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67,
   139  	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74,
   140  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x01, 0x0a, 0x09, 0x53, 0x74, 0x64, 0x69,
   141  	0x6f, 0x44, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
   142  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
   143  	0x53, 0x74, 0x64, 0x69, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65,
   144  	0x6c, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
   145  	0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2e,
   146  	0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56,
   147  	0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x44, 0x4f, 0x55, 0x54,
   148  	0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x44, 0x45, 0x52, 0x52, 0x10, 0x02, 0x32, 0x47,
   149  	0x0a, 0x09, 0x47, 0x52, 0x50, 0x43, 0x53, 0x74, 0x64, 0x69, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x53,
   150  	0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x64, 0x69, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
   151  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
   152  	0x74, 0x79, 0x1a, 0x11, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x64, 0x69,
   153  	0x6f, 0x44, 0x61, 0x74, 0x61, 0x30, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x70, 0x6c, 0x75,
   154  	0x67, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   155  }
   156  
   157  var (
   158  	file_internal_plugin_grpc_stdio_proto_rawDescOnce sync.Once
   159  	file_internal_plugin_grpc_stdio_proto_rawDescData = file_internal_plugin_grpc_stdio_proto_rawDesc
   160  )
   161  
   162  func file_internal_plugin_grpc_stdio_proto_rawDescGZIP() []byte {
   163  	file_internal_plugin_grpc_stdio_proto_rawDescOnce.Do(func() {
   164  		file_internal_plugin_grpc_stdio_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_plugin_grpc_stdio_proto_rawDescData)
   165  	})
   166  	return file_internal_plugin_grpc_stdio_proto_rawDescData
   167  }
   168  
   169  var file_internal_plugin_grpc_stdio_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   170  var file_internal_plugin_grpc_stdio_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   171  var file_internal_plugin_grpc_stdio_proto_goTypes = []interface{}{
   172  	(StdioData_Channel)(0), // 0: plugin.StdioData.Channel
   173  	(*StdioData)(nil),      // 1: plugin.StdioData
   174  	(*emptypb.Empty)(nil),  // 2: google.protobuf.Empty
   175  }
   176  var file_internal_plugin_grpc_stdio_proto_depIdxs = []int32{
   177  	0, // 0: plugin.StdioData.channel:type_name -> plugin.StdioData.Channel
   178  	2, // 1: plugin.GRPCStdio.StreamStdio:input_type -> google.protobuf.Empty
   179  	1, // 2: plugin.GRPCStdio.StreamStdio:output_type -> plugin.StdioData
   180  	2, // [2:3] is the sub-list for method output_type
   181  	1, // [1:2] is the sub-list for method input_type
   182  	1, // [1:1] is the sub-list for extension type_name
   183  	1, // [1:1] is the sub-list for extension extendee
   184  	0, // [0:1] is the sub-list for field type_name
   185  }
   186  
   187  func init() { file_internal_plugin_grpc_stdio_proto_init() }
   188  func file_internal_plugin_grpc_stdio_proto_init() {
   189  	if File_internal_plugin_grpc_stdio_proto != nil {
   190  		return
   191  	}
   192  	if !protoimpl.UnsafeEnabled {
   193  		file_internal_plugin_grpc_stdio_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   194  			switch v := v.(*StdioData); i {
   195  			case 0:
   196  				return &v.state
   197  			case 1:
   198  				return &v.sizeCache
   199  			case 2:
   200  				return &v.unknownFields
   201  			default:
   202  				return nil
   203  			}
   204  		}
   205  	}
   206  	type x struct{}
   207  	out := protoimpl.TypeBuilder{
   208  		File: protoimpl.DescBuilder{
   209  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   210  			RawDescriptor: file_internal_plugin_grpc_stdio_proto_rawDesc,
   211  			NumEnums:      1,
   212  			NumMessages:   1,
   213  			NumExtensions: 0,
   214  			NumServices:   1,
   215  		},
   216  		GoTypes:           file_internal_plugin_grpc_stdio_proto_goTypes,
   217  		DependencyIndexes: file_internal_plugin_grpc_stdio_proto_depIdxs,
   218  		EnumInfos:         file_internal_plugin_grpc_stdio_proto_enumTypes,
   219  		MessageInfos:      file_internal_plugin_grpc_stdio_proto_msgTypes,
   220  	}.Build()
   221  	File_internal_plugin_grpc_stdio_proto = out.File
   222  	file_internal_plugin_grpc_stdio_proto_rawDesc = nil
   223  	file_internal_plugin_grpc_stdio_proto_goTypes = nil
   224  	file_internal_plugin_grpc_stdio_proto_depIdxs = nil
   225  }