github.com/hashicorp/go-plugin@v1.6.0/internal/plugin/grpc_broker.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_broker.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 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 type ConnInfo struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` 32 Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` 33 Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` 34 Knock *ConnInfo_Knock `protobuf:"bytes,4,opt,name=knock,proto3" json:"knock,omitempty"` 35 } 36 37 func (x *ConnInfo) Reset() { 38 *x = ConnInfo{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_internal_plugin_grpc_broker_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *ConnInfo) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*ConnInfo) ProtoMessage() {} 51 52 func (x *ConnInfo) ProtoReflect() protoreflect.Message { 53 mi := &file_internal_plugin_grpc_broker_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use ConnInfo.ProtoReflect.Descriptor instead. 65 func (*ConnInfo) Descriptor() ([]byte, []int) { 66 return file_internal_plugin_grpc_broker_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *ConnInfo) GetServiceId() uint32 { 70 if x != nil { 71 return x.ServiceId 72 } 73 return 0 74 } 75 76 func (x *ConnInfo) GetNetwork() string { 77 if x != nil { 78 return x.Network 79 } 80 return "" 81 } 82 83 func (x *ConnInfo) GetAddress() string { 84 if x != nil { 85 return x.Address 86 } 87 return "" 88 } 89 90 func (x *ConnInfo) GetKnock() *ConnInfo_Knock { 91 if x != nil { 92 return x.Knock 93 } 94 return nil 95 } 96 97 type ConnInfo_Knock struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 Knock bool `protobuf:"varint,1,opt,name=knock,proto3" json:"knock,omitempty"` 103 Ack bool `protobuf:"varint,2,opt,name=ack,proto3" json:"ack,omitempty"` 104 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` 105 } 106 107 func (x *ConnInfo_Knock) Reset() { 108 *x = ConnInfo_Knock{} 109 if protoimpl.UnsafeEnabled { 110 mi := &file_internal_plugin_grpc_broker_proto_msgTypes[1] 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 ms.StoreMessageInfo(mi) 113 } 114 } 115 116 func (x *ConnInfo_Knock) String() string { 117 return protoimpl.X.MessageStringOf(x) 118 } 119 120 func (*ConnInfo_Knock) ProtoMessage() {} 121 122 func (x *ConnInfo_Knock) ProtoReflect() protoreflect.Message { 123 mi := &file_internal_plugin_grpc_broker_proto_msgTypes[1] 124 if protoimpl.UnsafeEnabled && x != nil { 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 if ms.LoadMessageInfo() == nil { 127 ms.StoreMessageInfo(mi) 128 } 129 return ms 130 } 131 return mi.MessageOf(x) 132 } 133 134 // Deprecated: Use ConnInfo_Knock.ProtoReflect.Descriptor instead. 135 func (*ConnInfo_Knock) Descriptor() ([]byte, []int) { 136 return file_internal_plugin_grpc_broker_proto_rawDescGZIP(), []int{0, 0} 137 } 138 139 func (x *ConnInfo_Knock) GetKnock() bool { 140 if x != nil { 141 return x.Knock 142 } 143 return false 144 } 145 146 func (x *ConnInfo_Knock) GetAck() bool { 147 if x != nil { 148 return x.Ack 149 } 150 return false 151 } 152 153 func (x *ConnInfo_Knock) GetError() string { 154 if x != nil { 155 return x.Error 156 } 157 return "" 158 } 159 160 var File_internal_plugin_grpc_broker_proto protoreflect.FileDescriptor 161 162 var file_internal_plugin_grpc_broker_proto_rawDesc = []byte{ 163 0x0a, 0x21, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 164 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 165 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x22, 0xd2, 0x01, 0x0a, 0x08, 166 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 167 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x65, 168 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 169 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 170 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 171 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x6b, 172 0x6e, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x6c, 0x75, 173 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4b, 0x6e, 0x6f, 174 0x63, 0x6b, 0x52, 0x05, 0x6b, 0x6e, 0x6f, 0x63, 0x6b, 0x1a, 0x45, 0x0a, 0x05, 0x4b, 0x6e, 0x6f, 175 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x6b, 0x6e, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 176 0x08, 0x52, 0x05, 0x6b, 0x6e, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x63, 0x6b, 0x18, 177 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 178 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 179 0x32, 0x43, 0x0a, 0x0a, 0x47, 0x52, 0x50, 0x43, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x12, 0x35, 180 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x10, 0x2e, 181 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 182 0x10, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x6e, 0x66, 183 0x6f, 0x28, 0x01, 0x30, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 184 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 185 } 186 187 var ( 188 file_internal_plugin_grpc_broker_proto_rawDescOnce sync.Once 189 file_internal_plugin_grpc_broker_proto_rawDescData = file_internal_plugin_grpc_broker_proto_rawDesc 190 ) 191 192 func file_internal_plugin_grpc_broker_proto_rawDescGZIP() []byte { 193 file_internal_plugin_grpc_broker_proto_rawDescOnce.Do(func() { 194 file_internal_plugin_grpc_broker_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_plugin_grpc_broker_proto_rawDescData) 195 }) 196 return file_internal_plugin_grpc_broker_proto_rawDescData 197 } 198 199 var file_internal_plugin_grpc_broker_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 200 var file_internal_plugin_grpc_broker_proto_goTypes = []interface{}{ 201 (*ConnInfo)(nil), // 0: plugin.ConnInfo 202 (*ConnInfo_Knock)(nil), // 1: plugin.ConnInfo.Knock 203 } 204 var file_internal_plugin_grpc_broker_proto_depIdxs = []int32{ 205 1, // 0: plugin.ConnInfo.knock:type_name -> plugin.ConnInfo.Knock 206 0, // 1: plugin.GRPCBroker.StartStream:input_type -> plugin.ConnInfo 207 0, // 2: plugin.GRPCBroker.StartStream:output_type -> plugin.ConnInfo 208 2, // [2:3] is the sub-list for method output_type 209 1, // [1:2] is the sub-list for method input_type 210 1, // [1:1] is the sub-list for extension type_name 211 1, // [1:1] is the sub-list for extension extendee 212 0, // [0:1] is the sub-list for field type_name 213 } 214 215 func init() { file_internal_plugin_grpc_broker_proto_init() } 216 func file_internal_plugin_grpc_broker_proto_init() { 217 if File_internal_plugin_grpc_broker_proto != nil { 218 return 219 } 220 if !protoimpl.UnsafeEnabled { 221 file_internal_plugin_grpc_broker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 222 switch v := v.(*ConnInfo); i { 223 case 0: 224 return &v.state 225 case 1: 226 return &v.sizeCache 227 case 2: 228 return &v.unknownFields 229 default: 230 return nil 231 } 232 } 233 file_internal_plugin_grpc_broker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 234 switch v := v.(*ConnInfo_Knock); i { 235 case 0: 236 return &v.state 237 case 1: 238 return &v.sizeCache 239 case 2: 240 return &v.unknownFields 241 default: 242 return nil 243 } 244 } 245 } 246 type x struct{} 247 out := protoimpl.TypeBuilder{ 248 File: protoimpl.DescBuilder{ 249 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 250 RawDescriptor: file_internal_plugin_grpc_broker_proto_rawDesc, 251 NumEnums: 0, 252 NumMessages: 2, 253 NumExtensions: 0, 254 NumServices: 1, 255 }, 256 GoTypes: file_internal_plugin_grpc_broker_proto_goTypes, 257 DependencyIndexes: file_internal_plugin_grpc_broker_proto_depIdxs, 258 MessageInfos: file_internal_plugin_grpc_broker_proto_msgTypes, 259 }.Build() 260 File_internal_plugin_grpc_broker_proto = out.File 261 file_internal_plugin_grpc_broker_proto_rawDesc = nil 262 file_internal_plugin_grpc_broker_proto_goTypes = nil 263 file_internal_plugin_grpc_broker_proto_depIdxs = nil 264 }