// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.10 // protoc v3.12.4 // source: plugin.proto package pluginv1 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) ) type GetInfoRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetInfoRequest) Reset() { *x = GetInfoRequest{} mi := &file_plugin_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetInfoRequest) ProtoMessage() {} func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { mi := &file_plugin_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 GetInfoRequest.ProtoReflect.Descriptor instead. func (*GetInfoRequest) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{0} } type GetInfoResponse struct { state protoimpl.MessageState `protogen:"open.v1"` PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` PluginVersion string `protobuf:"bytes,2,opt,name=plugin_version,json=pluginVersion,proto3" json:"plugin_version,omitempty"` ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` TransportApiVersion uint32 `protobuf:"varint,4,opt,name=transport_api_version,json=transportApiVersion,proto3" json:"transport_api_version,omitempty"` Capabilities []string `protobuf:"bytes,5,rep,name=capabilities,proto3" json:"capabilities,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetInfoResponse) Reset() { *x = GetInfoResponse{} mi := &file_plugin_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetInfoResponse) ProtoMessage() {} func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { mi := &file_plugin_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 GetInfoResponse.ProtoReflect.Descriptor instead. func (*GetInfoResponse) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{1} } func (x *GetInfoResponse) GetPluginId() string { if x != nil { return x.PluginId } return "" } func (x *GetInfoResponse) GetPluginVersion() string { if x != nil { return x.PluginVersion } return "" } func (x *GetInfoResponse) GetProtocolVersion() uint32 { if x != nil { return x.ProtocolVersion } return 0 } func (x *GetInfoResponse) GetTransportApiVersion() uint32 { if x != nil { return x.TransportApiVersion } return 0 } func (x *GetInfoResponse) GetCapabilities() []string { if x != nil { return x.Capabilities } return nil } type HealthRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HealthRequest) Reset() { *x = HealthRequest{} mi := &file_plugin_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HealthRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*HealthRequest) ProtoMessage() {} func (x *HealthRequest) ProtoReflect() protoreflect.Message { mi := &file_plugin_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 HealthRequest.ProtoReflect.Descriptor instead. func (*HealthRequest) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{2} } type HealthResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HealthResponse) Reset() { *x = HealthResponse{} mi := &file_plugin_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HealthResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*HealthResponse) ProtoMessage() {} func (x *HealthResponse) ProtoReflect() protoreflect.Message { mi := &file_plugin_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 HealthResponse.ProtoReflect.Descriptor instead. func (*HealthResponse) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{3} } func (x *HealthResponse) GetHealthy() bool { if x != nil { return x.Healthy } return false } func (x *HealthResponse) GetMessage() string { if x != nil { return x.Message } return "" } type ValidateConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ValidateConfigRequest) Reset() { *x = ValidateConfigRequest{} mi := &file_plugin_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ValidateConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ValidateConfigRequest) ProtoMessage() {} func (x *ValidateConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[4] 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 ValidateConfigRequest.ProtoReflect.Descriptor instead. func (*ValidateConfigRequest) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{4} } func (x *ValidateConfigRequest) GetConfigJson() []byte { if x != nil { return x.ConfigJson } return nil } type ValidateConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` NormalizedConfigJson []byte `protobuf:"bytes,3,opt,name=normalized_config_json,json=normalizedConfigJson,proto3" json:"normalized_config_json,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ValidateConfigResponse) Reset() { *x = ValidateConfigResponse{} mi := &file_plugin_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ValidateConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ValidateConfigResponse) ProtoMessage() {} func (x *ValidateConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[5] 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 ValidateConfigResponse.ProtoReflect.Descriptor instead. func (*ValidateConfigResponse) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{5} } func (x *ValidateConfigResponse) GetValid() bool { if x != nil { return x.Valid } return false } func (x *ValidateConfigResponse) GetMessage() string { if x != nil { return x.Message } return "" } func (x *ValidateConfigResponse) GetNormalizedConfigJson() []byte { if x != nil { return x.NormalizedConfigJson } return nil } type ApplyConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ApplyConfigRequest) Reset() { *x = ApplyConfigRequest{} mi := &file_plugin_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ApplyConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ApplyConfigRequest) ProtoMessage() {} func (x *ApplyConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[6] 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 ApplyConfigRequest.ProtoReflect.Descriptor instead. func (*ApplyConfigRequest) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{6} } func (x *ApplyConfigRequest) GetConfigJson() []byte { if x != nil { return x.ConfigJson } return nil } type ApplyConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ApplyConfigResponse) Reset() { *x = ApplyConfigResponse{} mi := &file_plugin_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ApplyConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ApplyConfigResponse) ProtoMessage() {} func (x *ApplyConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[7] 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 ApplyConfigResponse.ProtoReflect.Descriptor instead. func (*ApplyConfigResponse) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{7} } func (x *ApplyConfigResponse) GetApplied() bool { if x != nil { return x.Applied } return false } func (x *ApplyConfigResponse) GetMessage() string { if x != nil { return x.Message } return "" } type TestConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TestConfigRequest) Reset() { *x = TestConfigRequest{} mi := &file_plugin_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TestConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*TestConfigRequest) ProtoMessage() {} func (x *TestConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[8] 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 TestConfigRequest.ProtoReflect.Descriptor instead. func (*TestConfigRequest) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{8} } func (x *TestConfigRequest) GetConfigJson() []byte { if x != nil { return x.ConfigJson } return nil } type TestConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` LatencyMs int64 `protobuf:"varint,3,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TestConfigResponse) Reset() { *x = TestConfigResponse{} mi := &file_plugin_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TestConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*TestConfigResponse) ProtoMessage() {} func (x *TestConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[9] 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 TestConfigResponse.ProtoReflect.Descriptor instead. func (*TestConfigResponse) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{9} } func (x *TestConfigResponse) GetSuccess() bool { if x != nil { return x.Success } return false } func (x *TestConfigResponse) GetMessage() string { if x != nil { return x.Message } return "" } func (x *TestConfigResponse) GetLatencyMs() int64 { if x != nil { return x.LatencyMs } return 0 } type HeaderValues struct { state protoimpl.MessageState `protogen:"open.v1"` Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HeaderValues) Reset() { *x = HeaderValues{} mi := &file_plugin_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HeaderValues) String() string { return protoimpl.X.MessageStringOf(x) } func (*HeaderValues) ProtoMessage() {} func (x *HeaderValues) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[10] 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 HeaderValues.ProtoReflect.Descriptor instead. func (*HeaderValues) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{10} } func (x *HeaderValues) GetValues() []string { if x != nil { return x.Values } return nil } type ForwardRequestStart struct { state protoimpl.MessageState `protogen:"open.v1"` RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` Headers map[string]*HeaderValues `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` ProxyUrl string `protobuf:"bytes,6,opt,name=proxy_url,json=proxyUrl,proto3" json:"proxy_url,omitempty"` AccountId int64 `protobuf:"varint,7,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountConcurrency int32 `protobuf:"varint,8,opt,name=account_concurrency,json=accountConcurrency,proto3" json:"account_concurrency,omitempty"` Platform string `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform,omitempty"` AccountType string `protobuf:"bytes,10,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"` ContentLength int64 `protobuf:"varint,11,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` HasBody bool `protobuf:"varint,12,opt,name=has_body,json=hasBody,proto3" json:"has_body,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ForwardRequestStart) Reset() { *x = ForwardRequestStart{} mi := &file_plugin_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForwardRequestStart) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForwardRequestStart) ProtoMessage() {} func (x *ForwardRequestStart) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[11] 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 ForwardRequestStart.ProtoReflect.Descriptor instead. func (*ForwardRequestStart) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{11} } func (x *ForwardRequestStart) GetRequestId() string { if x != nil { return x.RequestId } return "" } func (x *ForwardRequestStart) GetMethod() string { if x != nil { return x.Method } return "" } func (x *ForwardRequestStart) GetUrl() string { if x != nil { return x.Url } return "" } func (x *ForwardRequestStart) GetHost() string { if x != nil { return x.Host } return "" } func (x *ForwardRequestStart) GetHeaders() map[string]*HeaderValues { if x != nil { return x.Headers } return nil } func (x *ForwardRequestStart) GetProxyUrl() string { if x != nil { return x.ProxyUrl } return "" } func (x *ForwardRequestStart) GetAccountId() int64 { if x != nil { return x.AccountId } return 0 } func (x *ForwardRequestStart) GetAccountConcurrency() int32 { if x != nil { return x.AccountConcurrency } return 0 } func (x *ForwardRequestStart) GetPlatform() string { if x != nil { return x.Platform } return "" } func (x *ForwardRequestStart) GetAccountType() string { if x != nil { return x.AccountType } return "" } func (x *ForwardRequestStart) GetContentLength() int64 { if x != nil { return x.ContentLength } return 0 } func (x *ForwardRequestStart) GetHasBody() bool { if x != nil { return x.HasBody } return false } type ForwardRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Frame: // // *ForwardRequest_Start // *ForwardRequest_BodyChunk // *ForwardRequest_BodyEnd Frame isForwardRequest_Frame `protobuf_oneof:"frame"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ForwardRequest) Reset() { *x = ForwardRequest{} mi := &file_plugin_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForwardRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForwardRequest) ProtoMessage() {} func (x *ForwardRequest) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[12] 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 ForwardRequest.ProtoReflect.Descriptor instead. func (*ForwardRequest) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{12} } func (x *ForwardRequest) GetFrame() isForwardRequest_Frame { if x != nil { return x.Frame } return nil } func (x *ForwardRequest) GetStart() *ForwardRequestStart { if x != nil { if x, ok := x.Frame.(*ForwardRequest_Start); ok { return x.Start } } return nil } func (x *ForwardRequest) GetBodyChunk() []byte { if x != nil { if x, ok := x.Frame.(*ForwardRequest_BodyChunk); ok { return x.BodyChunk } } return nil } func (x *ForwardRequest) GetBodyEnd() bool { if x != nil { if x, ok := x.Frame.(*ForwardRequest_BodyEnd); ok { return x.BodyEnd } } return false } type isForwardRequest_Frame interface { isForwardRequest_Frame() } type ForwardRequest_Start struct { Start *ForwardRequestStart `protobuf:"bytes,1,opt,name=start,proto3,oneof"` } type ForwardRequest_BodyChunk struct { BodyChunk []byte `protobuf:"bytes,2,opt,name=body_chunk,json=bodyChunk,proto3,oneof"` } type ForwardRequest_BodyEnd struct { BodyEnd bool `protobuf:"varint,3,opt,name=body_end,json=bodyEnd,proto3,oneof"` } func (*ForwardRequest_Start) isForwardRequest_Frame() {} func (*ForwardRequest_BodyChunk) isForwardRequest_Frame() {} func (*ForwardRequest_BodyEnd) isForwardRequest_Frame() {} type ForwardResponseStart struct { state protoimpl.MessageState `protogen:"open.v1"` StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` ProtocolMajor int32 `protobuf:"varint,4,opt,name=protocol_major,json=protocolMajor,proto3" json:"protocol_major,omitempty"` ProtocolMinor int32 `protobuf:"varint,5,opt,name=protocol_minor,json=protocolMinor,proto3" json:"protocol_minor,omitempty"` Headers map[string]*HeaderValues `protobuf:"bytes,6,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` ContentLength int64 `protobuf:"varint,7,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ForwardResponseStart) Reset() { *x = ForwardResponseStart{} mi := &file_plugin_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForwardResponseStart) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForwardResponseStart) ProtoMessage() {} func (x *ForwardResponseStart) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[13] 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 ForwardResponseStart.ProtoReflect.Descriptor instead. func (*ForwardResponseStart) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{13} } func (x *ForwardResponseStart) GetStatusCode() int32 { if x != nil { return x.StatusCode } return 0 } func (x *ForwardResponseStart) GetStatus() string { if x != nil { return x.Status } return "" } func (x *ForwardResponseStart) GetProtocol() string { if x != nil { return x.Protocol } return "" } func (x *ForwardResponseStart) GetProtocolMajor() int32 { if x != nil { return x.ProtocolMajor } return 0 } func (x *ForwardResponseStart) GetProtocolMinor() int32 { if x != nil { return x.ProtocolMinor } return 0 } func (x *ForwardResponseStart) GetHeaders() map[string]*HeaderValues { if x != nil { return x.Headers } return nil } func (x *ForwardResponseStart) GetContentLength() int64 { if x != nil { return x.ContentLength } return 0 } type ForwardResponseEnd struct { state protoimpl.MessageState `protogen:"open.v1"` BytesReceived int64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"` DurationMs int64 `protobuf:"varint,2,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ForwardResponseEnd) Reset() { *x = ForwardResponseEnd{} mi := &file_plugin_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForwardResponseEnd) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForwardResponseEnd) ProtoMessage() {} func (x *ForwardResponseEnd) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[14] 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 ForwardResponseEnd.ProtoReflect.Descriptor instead. func (*ForwardResponseEnd) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{14} } func (x *ForwardResponseEnd) GetBytesReceived() int64 { if x != nil { return x.BytesReceived } return 0 } func (x *ForwardResponseEnd) GetDurationMs() int64 { if x != nil { return x.DurationMs } return 0 } type ForwardResponseError struct { state protoimpl.MessageState `protogen:"open.v1"` Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` RequestSent bool `protobuf:"varint,3,opt,name=request_sent,json=requestSent,proto3" json:"request_sent,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ForwardResponseError) Reset() { *x = ForwardResponseError{} mi := &file_plugin_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForwardResponseError) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForwardResponseError) ProtoMessage() {} func (x *ForwardResponseError) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[15] 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 ForwardResponseError.ProtoReflect.Descriptor instead. func (*ForwardResponseError) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{15} } func (x *ForwardResponseError) GetCode() string { if x != nil { return x.Code } return "" } func (x *ForwardResponseError) GetMessage() string { if x != nil { return x.Message } return "" } func (x *ForwardResponseError) GetRequestSent() bool { if x != nil { return x.RequestSent } return false } type ForwardResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Frame: // // *ForwardResponse_Start // *ForwardResponse_BodyChunk // *ForwardResponse_End // *ForwardResponse_Error Frame isForwardResponse_Frame `protobuf_oneof:"frame"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ForwardResponse) Reset() { *x = ForwardResponse{} mi := &file_plugin_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForwardResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForwardResponse) ProtoMessage() {} func (x *ForwardResponse) ProtoReflect() protoreflect.Message { mi := &file_plugin_proto_msgTypes[16] 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 ForwardResponse.ProtoReflect.Descriptor instead. func (*ForwardResponse) Descriptor() ([]byte, []int) { return file_plugin_proto_rawDescGZIP(), []int{16} } func (x *ForwardResponse) GetFrame() isForwardResponse_Frame { if x != nil { return x.Frame } return nil } func (x *ForwardResponse) GetStart() *ForwardResponseStart { if x != nil { if x, ok := x.Frame.(*ForwardResponse_Start); ok { return x.Start } } return nil } func (x *ForwardResponse) GetBodyChunk() []byte { if x != nil { if x, ok := x.Frame.(*ForwardResponse_BodyChunk); ok { return x.BodyChunk } } return nil } func (x *ForwardResponse) GetEnd() *ForwardResponseEnd { if x != nil { if x, ok := x.Frame.(*ForwardResponse_End); ok { return x.End } } return nil } func (x *ForwardResponse) GetError() *ForwardResponseError { if x != nil { if x, ok := x.Frame.(*ForwardResponse_Error); ok { return x.Error } } return nil } type isForwardResponse_Frame interface { isForwardResponse_Frame() } type ForwardResponse_Start struct { Start *ForwardResponseStart `protobuf:"bytes,1,opt,name=start,proto3,oneof"` } type ForwardResponse_BodyChunk struct { BodyChunk []byte `protobuf:"bytes,2,opt,name=body_chunk,json=bodyChunk,proto3,oneof"` } type ForwardResponse_End struct { End *ForwardResponseEnd `protobuf:"bytes,3,opt,name=end,proto3,oneof"` } type ForwardResponse_Error struct { Error *ForwardResponseError `protobuf:"bytes,4,opt,name=error,proto3,oneof"` } func (*ForwardResponse_Start) isForwardResponse_Frame() {} func (*ForwardResponse_BodyChunk) isForwardResponse_Frame() {} func (*ForwardResponse_End) isForwardResponse_Frame() {} func (*ForwardResponse_Error) isForwardResponse_Frame() {} var File_plugin_proto protoreflect.FileDescriptor const file_plugin_proto_rawDesc = "" + "\n" + "\fplugin.proto\x12\x11sub2api.plugin.v1\"\x10\n" + "\x0eGetInfoRequest\"\xd8\x01\n" + "\x0fGetInfoResponse\x12\x1b\n" + "\tplugin_id\x18\x01 \x01(\tR\bpluginId\x12%\n" + "\x0eplugin_version\x18\x02 \x01(\tR\rpluginVersion\x12)\n" + "\x10protocol_version\x18\x03 \x01(\rR\x0fprotocolVersion\x122\n" + "\x15transport_api_version\x18\x04 \x01(\rR\x13transportApiVersion\x12\"\n" + "\fcapabilities\x18\x05 \x03(\tR\fcapabilities\"\x0f\n" + "\rHealthRequest\"D\n" + "\x0eHealthResponse\x12\x18\n" + "\ahealthy\x18\x01 \x01(\bR\ahealthy\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\"8\n" + "\x15ValidateConfigRequest\x12\x1f\n" + "\vconfig_json\x18\x01 \x01(\fR\n" + "configJson\"~\n" + "\x16ValidateConfigResponse\x12\x14\n" + "\x05valid\x18\x01 \x01(\bR\x05valid\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\x124\n" + "\x16normalized_config_json\x18\x03 \x01(\fR\x14normalizedConfigJson\"5\n" + "\x12ApplyConfigRequest\x12\x1f\n" + "\vconfig_json\x18\x01 \x01(\fR\n" + "configJson\"I\n" + "\x13ApplyConfigResponse\x12\x18\n" + "\aapplied\x18\x01 \x01(\bR\aapplied\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\"4\n" + "\x11TestConfigRequest\x12\x1f\n" + "\vconfig_json\x18\x01 \x01(\fR\n" + "configJson\"g\n" + "\x12TestConfigResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\x12\x1d\n" + "\n" + "latency_ms\x18\x03 \x01(\x03R\tlatencyMs\"&\n" + "\fHeaderValues\x12\x16\n" + "\x06values\x18\x01 \x03(\tR\x06values\"\x8c\x04\n" + "\x13ForwardRequestStart\x12\x1d\n" + "\n" + "request_id\x18\x01 \x01(\tR\trequestId\x12\x16\n" + "\x06method\x18\x02 \x01(\tR\x06method\x12\x10\n" + "\x03url\x18\x03 \x01(\tR\x03url\x12\x12\n" + "\x04host\x18\x04 \x01(\tR\x04host\x12M\n" + "\aheaders\x18\x05 \x03(\v23.sub2api.plugin.v1.ForwardRequestStart.HeadersEntryR\aheaders\x12\x1b\n" + "\tproxy_url\x18\x06 \x01(\tR\bproxyUrl\x12\x1d\n" + "\n" + "account_id\x18\a \x01(\x03R\taccountId\x12/\n" + "\x13account_concurrency\x18\b \x01(\x05R\x12accountConcurrency\x12\x1a\n" + "\bplatform\x18\t \x01(\tR\bplatform\x12!\n" + "\faccount_type\x18\n" + " \x01(\tR\vaccountType\x12%\n" + "\x0econtent_length\x18\v \x01(\x03R\rcontentLength\x12\x19\n" + "\bhas_body\x18\f \x01(\bR\ahasBody\x1a[\n" + "\fHeadersEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + "\x05value\x18\x02 \x01(\v2\x1f.sub2api.plugin.v1.HeaderValuesR\x05value:\x028\x01\"\x97\x01\n" + "\x0eForwardRequest\x12>\n" + "\x05start\x18\x01 \x01(\v2&.sub2api.plugin.v1.ForwardRequestStartH\x00R\x05start\x12\x1f\n" + "\n" + "body_chunk\x18\x02 \x01(\fH\x00R\tbodyChunk\x12\x1b\n" + "\bbody_end\x18\x03 \x01(\bH\x00R\abodyEndB\a\n" + "\x05frame\"\x8d\x03\n" + "\x14ForwardResponseStart\x12\x1f\n" + "\vstatus_code\x18\x01 \x01(\x05R\n" + "statusCode\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12\x1a\n" + "\bprotocol\x18\x03 \x01(\tR\bprotocol\x12%\n" + "\x0eprotocol_major\x18\x04 \x01(\x05R\rprotocolMajor\x12%\n" + "\x0eprotocol_minor\x18\x05 \x01(\x05R\rprotocolMinor\x12N\n" + "\aheaders\x18\x06 \x03(\v24.sub2api.plugin.v1.ForwardResponseStart.HeadersEntryR\aheaders\x12%\n" + "\x0econtent_length\x18\a \x01(\x03R\rcontentLength\x1a[\n" + "\fHeadersEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + "\x05value\x18\x02 \x01(\v2\x1f.sub2api.plugin.v1.HeaderValuesR\x05value:\x028\x01\"\\\n" + "\x12ForwardResponseEnd\x12%\n" + "\x0ebytes_received\x18\x01 \x01(\x03R\rbytesReceived\x12\x1f\n" + "\vduration_ms\x18\x02 \x01(\x03R\n" + "durationMs\"g\n" + "\x14ForwardResponseError\x12\x12\n" + "\x04code\x18\x01 \x01(\tR\x04code\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\x12!\n" + "\frequest_sent\x18\x03 \x01(\bR\vrequestSent\"\xf8\x01\n" + "\x0fForwardResponse\x12?\n" + "\x05start\x18\x01 \x01(\v2'.sub2api.plugin.v1.ForwardResponseStartH\x00R\x05start\x12\x1f\n" + "\n" + "body_chunk\x18\x02 \x01(\fH\x00R\tbodyChunk\x129\n" + "\x03end\x18\x03 \x01(\v2%.sub2api.plugin.v1.ForwardResponseEndH\x00R\x03end\x12?\n" + "\x05error\x18\x04 \x01(\v2'.sub2api.plugin.v1.ForwardResponseErrorH\x00R\x05errorB\a\n" + "\x05frame2\xa8\x04\n" + "\x0fTransportPlugin\x12P\n" + "\aGetInfo\x12!.sub2api.plugin.v1.GetInfoRequest\x1a\".sub2api.plugin.v1.GetInfoResponse\x12M\n" + "\x06Health\x12 .sub2api.plugin.v1.HealthRequest\x1a!.sub2api.plugin.v1.HealthResponse\x12e\n" + "\x0eValidateConfig\x12(.sub2api.plugin.v1.ValidateConfigRequest\x1a).sub2api.plugin.v1.ValidateConfigResponse\x12\\\n" + "\vApplyConfig\x12%.sub2api.plugin.v1.ApplyConfigRequest\x1a&.sub2api.plugin.v1.ApplyConfigResponse\x12Y\n" + "\n" + "TestConfig\x12$.sub2api.plugin.v1.TestConfigRequest\x1a%.sub2api.plugin.v1.TestConfigResponse\x12T\n" + "\aForward\x12!.sub2api.plugin.v1.ForwardRequest\x1a\".sub2api.plugin.v1.ForwardResponse(\x010\x01B7Z5github.com/Wei-Shaw/sub2api/pkg/pluginapi/v1;pluginv1b\x06proto3" var ( file_plugin_proto_rawDescOnce sync.Once file_plugin_proto_rawDescData []byte ) func file_plugin_proto_rawDescGZIP() []byte { file_plugin_proto_rawDescOnce.Do(func() { file_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_plugin_proto_rawDesc), len(file_plugin_proto_rawDesc))) }) return file_plugin_proto_rawDescData } var file_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_plugin_proto_goTypes = []any{ (*GetInfoRequest)(nil), // 0: sub2api.plugin.v1.GetInfoRequest (*GetInfoResponse)(nil), // 1: sub2api.plugin.v1.GetInfoResponse (*HealthRequest)(nil), // 2: sub2api.plugin.v1.HealthRequest (*HealthResponse)(nil), // 3: sub2api.plugin.v1.HealthResponse (*ValidateConfigRequest)(nil), // 4: sub2api.plugin.v1.ValidateConfigRequest (*ValidateConfigResponse)(nil), // 5: sub2api.plugin.v1.ValidateConfigResponse (*ApplyConfigRequest)(nil), // 6: sub2api.plugin.v1.ApplyConfigRequest (*ApplyConfigResponse)(nil), // 7: sub2api.plugin.v1.ApplyConfigResponse (*TestConfigRequest)(nil), // 8: sub2api.plugin.v1.TestConfigRequest (*TestConfigResponse)(nil), // 9: sub2api.plugin.v1.TestConfigResponse (*HeaderValues)(nil), // 10: sub2api.plugin.v1.HeaderValues (*ForwardRequestStart)(nil), // 11: sub2api.plugin.v1.ForwardRequestStart (*ForwardRequest)(nil), // 12: sub2api.plugin.v1.ForwardRequest (*ForwardResponseStart)(nil), // 13: sub2api.plugin.v1.ForwardResponseStart (*ForwardResponseEnd)(nil), // 14: sub2api.plugin.v1.ForwardResponseEnd (*ForwardResponseError)(nil), // 15: sub2api.plugin.v1.ForwardResponseError (*ForwardResponse)(nil), // 16: sub2api.plugin.v1.ForwardResponse nil, // 17: sub2api.plugin.v1.ForwardRequestStart.HeadersEntry nil, // 18: sub2api.plugin.v1.ForwardResponseStart.HeadersEntry } var file_plugin_proto_depIdxs = []int32{ 17, // 0: sub2api.plugin.v1.ForwardRequestStart.headers:type_name -> sub2api.plugin.v1.ForwardRequestStart.HeadersEntry 11, // 1: sub2api.plugin.v1.ForwardRequest.start:type_name -> sub2api.plugin.v1.ForwardRequestStart 18, // 2: sub2api.plugin.v1.ForwardResponseStart.headers:type_name -> sub2api.plugin.v1.ForwardResponseStart.HeadersEntry 13, // 3: sub2api.plugin.v1.ForwardResponse.start:type_name -> sub2api.plugin.v1.ForwardResponseStart 14, // 4: sub2api.plugin.v1.ForwardResponse.end:type_name -> sub2api.plugin.v1.ForwardResponseEnd 15, // 5: sub2api.plugin.v1.ForwardResponse.error:type_name -> sub2api.plugin.v1.ForwardResponseError 10, // 6: sub2api.plugin.v1.ForwardRequestStart.HeadersEntry.value:type_name -> sub2api.plugin.v1.HeaderValues 10, // 7: sub2api.plugin.v1.ForwardResponseStart.HeadersEntry.value:type_name -> sub2api.plugin.v1.HeaderValues 0, // 8: sub2api.plugin.v1.TransportPlugin.GetInfo:input_type -> sub2api.plugin.v1.GetInfoRequest 2, // 9: sub2api.plugin.v1.TransportPlugin.Health:input_type -> sub2api.plugin.v1.HealthRequest 4, // 10: sub2api.plugin.v1.TransportPlugin.ValidateConfig:input_type -> sub2api.plugin.v1.ValidateConfigRequest 6, // 11: sub2api.plugin.v1.TransportPlugin.ApplyConfig:input_type -> sub2api.plugin.v1.ApplyConfigRequest 8, // 12: sub2api.plugin.v1.TransportPlugin.TestConfig:input_type -> sub2api.plugin.v1.TestConfigRequest 12, // 13: sub2api.plugin.v1.TransportPlugin.Forward:input_type -> sub2api.plugin.v1.ForwardRequest 1, // 14: sub2api.plugin.v1.TransportPlugin.GetInfo:output_type -> sub2api.plugin.v1.GetInfoResponse 3, // 15: sub2api.plugin.v1.TransportPlugin.Health:output_type -> sub2api.plugin.v1.HealthResponse 5, // 16: sub2api.plugin.v1.TransportPlugin.ValidateConfig:output_type -> sub2api.plugin.v1.ValidateConfigResponse 7, // 17: sub2api.plugin.v1.TransportPlugin.ApplyConfig:output_type -> sub2api.plugin.v1.ApplyConfigResponse 9, // 18: sub2api.plugin.v1.TransportPlugin.TestConfig:output_type -> sub2api.plugin.v1.TestConfigResponse 16, // 19: sub2api.plugin.v1.TransportPlugin.Forward:output_type -> sub2api.plugin.v1.ForwardResponse 14, // [14:20] is the sub-list for method output_type 8, // [8:14] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_plugin_proto_init() } func file_plugin_proto_init() { if File_plugin_proto != nil { return } file_plugin_proto_msgTypes[12].OneofWrappers = []any{ (*ForwardRequest_Start)(nil), (*ForwardRequest_BodyChunk)(nil), (*ForwardRequest_BodyEnd)(nil), } file_plugin_proto_msgTypes[16].OneofWrappers = []any{ (*ForwardResponse_Start)(nil), (*ForwardResponse_BodyChunk)(nil), (*ForwardResponse_End)(nil), (*ForwardResponse_Error)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_plugin_proto_rawDesc), len(file_plugin_proto_rawDesc)), NumEnums: 0, NumMessages: 19, NumExtensions: 0, NumServices: 1, }, GoTypes: file_plugin_proto_goTypes, DependencyIndexes: file_plugin_proto_depIdxs, MessageInfos: file_plugin_proto_msgTypes, }.Build() File_plugin_proto = out.File file_plugin_proto_goTypes = nil file_plugin_proto_depIdxs = nil }