diff --git a/Readme.md b/Readme.md index cf8a4061..f7a83257 100644 --- a/Readme.md +++ b/Readme.md @@ -4,6 +4,12 @@ This is the Dapr SDK for Go, based on the auto-generated proto client.
For more info on Dapr and gRPC, visit [this link](https://github.com/dapr/docs/tree/master/howto/create-grpc-app). +## Update the latest gRPC proto clients + +```sh +./protogen.sh +``` + ## Installation ``` diff --git a/dapr/proto/common/v1/common.pb.go b/dapr/proto/common/v1/common.pb.go index 3e6ef062..e8aff8f1 100644 --- a/dapr/proto/common/v1/common.pb.go +++ b/dapr/proto/common/v1/common.pb.go @@ -1,12 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: dapr/proto/common/v1/common.proto -package v1 +package common import ( fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" math "math" ) @@ -69,6 +70,93 @@ func (HTTPExtension_Verb) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0c448f683ad359d5, []int{0, 0} } +// Enum describing the supported concurrency for state. +type StateOptions_StateConcurrency int32 + +const ( + StateOptions_CONCURRENCY_UNSPECIFIED StateOptions_StateConcurrency = 0 + StateOptions_CONCURRENCY_FIRST_WRITE StateOptions_StateConcurrency = 1 + StateOptions_CONCURRENCY_LAST_WRITE StateOptions_StateConcurrency = 2 +) + +var StateOptions_StateConcurrency_name = map[int32]string{ + 0: "CONCURRENCY_UNSPECIFIED", + 1: "CONCURRENCY_FIRST_WRITE", + 2: "CONCURRENCY_LAST_WRITE", +} + +var StateOptions_StateConcurrency_value = map[string]int32{ + "CONCURRENCY_UNSPECIFIED": 0, + "CONCURRENCY_FIRST_WRITE": 1, + "CONCURRENCY_LAST_WRITE": 2, +} + +func (x StateOptions_StateConcurrency) String() string { + return proto.EnumName(StateOptions_StateConcurrency_name, int32(x)) +} + +func (StateOptions_StateConcurrency) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0c448f683ad359d5, []int{4, 0} +} + +// Enum describing the supported consistency for state. +type StateOptions_StateConsistency int32 + +const ( + StateOptions_CONSISTENCY_UNSPECIFIED StateOptions_StateConsistency = 0 + StateOptions_CONSISTENCY_EVENTUAL StateOptions_StateConsistency = 1 + StateOptions_CONSISTENCY_STRONG StateOptions_StateConsistency = 2 +) + +var StateOptions_StateConsistency_name = map[int32]string{ + 0: "CONSISTENCY_UNSPECIFIED", + 1: "CONSISTENCY_EVENTUAL", + 2: "CONSISTENCY_STRONG", +} + +var StateOptions_StateConsistency_value = map[string]int32{ + "CONSISTENCY_UNSPECIFIED": 0, + "CONSISTENCY_EVENTUAL": 1, + "CONSISTENCY_STRONG": 2, +} + +func (x StateOptions_StateConsistency) String() string { + return proto.EnumName(StateOptions_StateConsistency_name, int32(x)) +} + +func (StateOptions_StateConsistency) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0c448f683ad359d5, []int{4, 1} +} + +// Enum describing the support retry pattern +type StateRetryPolicy_RetryPattern int32 + +const ( + StateRetryPolicy_RETRY_UNSPECIFIED StateRetryPolicy_RetryPattern = 0 + StateRetryPolicy_RETRY_LINEAR StateRetryPolicy_RetryPattern = 1 + StateRetryPolicy_RETRY_EXPONENTIAL StateRetryPolicy_RetryPattern = 2 +) + +var StateRetryPolicy_RetryPattern_name = map[int32]string{ + 0: "RETRY_UNSPECIFIED", + 1: "RETRY_LINEAR", + 2: "RETRY_EXPONENTIAL", +} + +var StateRetryPolicy_RetryPattern_value = map[string]int32{ + "RETRY_UNSPECIFIED": 0, + "RETRY_LINEAR": 1, + "RETRY_EXPONENTIAL": 2, +} + +func (x StateRetryPolicy_RetryPattern) String() string { + return proto.EnumName(StateRetryPolicy_RetryPattern_name, int32(x)) +} + +func (StateRetryPolicy_RetryPattern) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0c448f683ad359d5, []int{5, 0} +} + // HTTPExtension includes HTTP verb and querystring // when Dapr runtime delivers HTTP content. // @@ -77,9 +165,7 @@ func (HTTPExtension_Verb) EnumDescriptor() ([]byte, []int) { // // Dapr runtime will parse POST as a verb and extract querystring to quersytring map. type HTTPExtension struct { - // verb is HTTP verb. - // - // This is required. + // Required. HTTP verb. Verb HTTPExtension_Verb `protobuf:"varint,1,opt,name=verb,proto3,enum=dapr.proto.common.v1.HTTPExtension_Verb" json:"verb,omitempty"` // querystring includes HTTP querystring. Querystring map[string]string `protobuf:"bytes,2,rep,name=querystring,proto3" json:"querystring,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -127,25 +213,24 @@ func (m *HTTPExtension) GetQuerystring() map[string]string { return nil } +// InvokeRequest is the message to invoke a method with the data. +// This message is used in InvokeService of Dapr gRPC Service and OnInvoke +// of AppCallback gRPC service. type InvokeRequest struct { - // method is a method name which will be invoked by caller. - // - // This field is required. + // Required. method is a method name which will be invoked by caller. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` - // data conveys bytes value or Protobuf message which caller sent. + // Required. Bytes value or Protobuf message which caller sent. // Dapr treats Any.value as bytes type if Any.type_url is unset. - // - // This field is required. Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - // content_type is the type of data content. + // The type of data content. // // This field is required if data delivers http request body // Otherwise, this is optional. ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` - // http_extension includes http specific fields if request conveys - // http-compatible request. + // HTTP specific fields if request conveys http-compatible request. // - // This field is optional. + // This field is required for http-compatible request. Otherwise, + // this field is optional. HttpExtension *HTTPExtension `protobuf:"bytes,4,opt,name=http_extension,json=httpExtension,proto3" json:"http_extension,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -205,14 +290,14 @@ func (m *InvokeRequest) GetHttpExtension() *HTTPExtension { return nil } +// InvokeResponse is the response message inclduing data and its content type +// from app callback. +// This message is used in InvokeService of Dapr gRPC Service and OnInvoke +// of AppCallback gRPC service. type InvokeResponse struct { - // data conveys the content body of InvokeService response. - // - // This field is required. + // Required. The content body of InvokeService response. Data *any.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - // content_type is the type of data content. - // - // This field is required. + // Required. The type of data content. ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -258,46 +343,269 @@ func (m *InvokeResponse) GetContentType() string { return "" } +// StateSaveRequest represents state and options to save the state value. +type StateSaveRequest struct { + // Required. The state key + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Required. The state data for key + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + // The entity tag which represents the specific version of data. + // The exact ETag format is defined by the corresponding data store. + Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` + // The metadata which will be passed to state store component. + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Options for concurrency, consistency, and retry_policy to save the state. + Options *StateOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateSaveRequest) Reset() { *m = StateSaveRequest{} } +func (m *StateSaveRequest) String() string { return proto.CompactTextString(m) } +func (*StateSaveRequest) ProtoMessage() {} +func (*StateSaveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_0c448f683ad359d5, []int{3} +} + +func (m *StateSaveRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateSaveRequest.Unmarshal(m, b) +} +func (m *StateSaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateSaveRequest.Marshal(b, m, deterministic) +} +func (m *StateSaveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateSaveRequest.Merge(m, src) +} +func (m *StateSaveRequest) XXX_Size() int { + return xxx_messageInfo_StateSaveRequest.Size(m) +} +func (m *StateSaveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateSaveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateSaveRequest proto.InternalMessageInfo + +func (m *StateSaveRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *StateSaveRequest) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *StateSaveRequest) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +func (m *StateSaveRequest) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *StateSaveRequest) GetOptions() *StateOptions { + if m != nil { + return m.Options + } + return nil +} + +// StateOptions configures concurrency, consistency, and retry policy for state operations +type StateOptions struct { + Concurrency StateOptions_StateConcurrency `protobuf:"varint,1,opt,name=concurrency,proto3,enum=dapr.proto.common.v1.StateOptions_StateConcurrency" json:"concurrency,omitempty"` + Consistency StateOptions_StateConsistency `protobuf:"varint,2,opt,name=consistency,proto3,enum=dapr.proto.common.v1.StateOptions_StateConsistency" json:"consistency,omitempty"` + RetryPolicy *StateRetryPolicy `protobuf:"bytes,3,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateOptions) Reset() { *m = StateOptions{} } +func (m *StateOptions) String() string { return proto.CompactTextString(m) } +func (*StateOptions) ProtoMessage() {} +func (*StateOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_0c448f683ad359d5, []int{4} +} + +func (m *StateOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateOptions.Unmarshal(m, b) +} +func (m *StateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateOptions.Marshal(b, m, deterministic) +} +func (m *StateOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateOptions.Merge(m, src) +} +func (m *StateOptions) XXX_Size() int { + return xxx_messageInfo_StateOptions.Size(m) +} +func (m *StateOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StateOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StateOptions proto.InternalMessageInfo + +func (m *StateOptions) GetConcurrency() StateOptions_StateConcurrency { + if m != nil { + return m.Concurrency + } + return StateOptions_CONCURRENCY_UNSPECIFIED +} + +func (m *StateOptions) GetConsistency() StateOptions_StateConsistency { + if m != nil { + return m.Consistency + } + return StateOptions_CONSISTENCY_UNSPECIFIED +} + +func (m *StateOptions) GetRetryPolicy() *StateRetryPolicy { + if m != nil { + return m.RetryPolicy + } + return nil +} + +// StateRetryPolicy represents retry policy to set and delete state operations. +type StateRetryPolicy struct { + // Maximum number of retries. + Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` + // Retry pattern. + Pattern StateRetryPolicy_RetryPattern `protobuf:"varint,2,opt,name=pattern,proto3,enum=dapr.proto.common.v1.StateRetryPolicy_RetryPattern" json:"pattern,omitempty"` + // Initial delay between retries. + Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateRetryPolicy) Reset() { *m = StateRetryPolicy{} } +func (m *StateRetryPolicy) String() string { return proto.CompactTextString(m) } +func (*StateRetryPolicy) ProtoMessage() {} +func (*StateRetryPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_0c448f683ad359d5, []int{5} +} + +func (m *StateRetryPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateRetryPolicy.Unmarshal(m, b) +} +func (m *StateRetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateRetryPolicy.Marshal(b, m, deterministic) +} +func (m *StateRetryPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateRetryPolicy.Merge(m, src) +} +func (m *StateRetryPolicy) XXX_Size() int { + return xxx_messageInfo_StateRetryPolicy.Size(m) +} +func (m *StateRetryPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_StateRetryPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_StateRetryPolicy proto.InternalMessageInfo + +func (m *StateRetryPolicy) GetThreshold() int32 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *StateRetryPolicy) GetPattern() StateRetryPolicy_RetryPattern { + if m != nil { + return m.Pattern + } + return StateRetryPolicy_RETRY_UNSPECIFIED +} + +func (m *StateRetryPolicy) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + func init() { proto.RegisterEnum("dapr.proto.common.v1.HTTPExtension_Verb", HTTPExtension_Verb_name, HTTPExtension_Verb_value) + proto.RegisterEnum("dapr.proto.common.v1.StateOptions_StateConcurrency", StateOptions_StateConcurrency_name, StateOptions_StateConcurrency_value) + proto.RegisterEnum("dapr.proto.common.v1.StateOptions_StateConsistency", StateOptions_StateConsistency_name, StateOptions_StateConsistency_value) + proto.RegisterEnum("dapr.proto.common.v1.StateRetryPolicy_RetryPattern", StateRetryPolicy_RetryPattern_name, StateRetryPolicy_RetryPattern_value) proto.RegisterType((*HTTPExtension)(nil), "dapr.proto.common.v1.HTTPExtension") proto.RegisterMapType((map[string]string)(nil), "dapr.proto.common.v1.HTTPExtension.QuerystringEntry") proto.RegisterType((*InvokeRequest)(nil), "dapr.proto.common.v1.InvokeRequest") proto.RegisterType((*InvokeResponse)(nil), "dapr.proto.common.v1.InvokeResponse") + proto.RegisterType((*StateSaveRequest)(nil), "dapr.proto.common.v1.StateSaveRequest") + proto.RegisterMapType((map[string]string)(nil), "dapr.proto.common.v1.StateSaveRequest.MetadataEntry") + proto.RegisterType((*StateOptions)(nil), "dapr.proto.common.v1.StateOptions") + proto.RegisterType((*StateRetryPolicy)(nil), "dapr.proto.common.v1.StateRetryPolicy") } func init() { proto.RegisterFile("dapr/proto/common/v1/common.proto", fileDescriptor_0c448f683ad359d5) } var fileDescriptor_0c448f683ad359d5 = []byte{ - // 479 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x5f, 0x6f, 0xda, 0x3c, - 0x14, 0xc6, 0xdf, 0x84, 0x00, 0xed, 0xa1, 0x20, 0xcb, 0x42, 0xaf, 0x58, 0x77, 0xd3, 0xb2, 0x1b, - 0xa4, 0x69, 0x8e, 0x60, 0xbb, 0x98, 0xa6, 0x69, 0x12, 0x05, 0xab, 0xed, 0x34, 0x01, 0x4b, 0xbd, - 0x5e, 0x4c, 0x9a, 0xaa, 0x04, 0xbc, 0x10, 0x01, 0x76, 0x9a, 0x38, 0xd1, 0xf2, 0x95, 0xf6, 0x29, - 0xf6, 0x09, 0xf6, 0x99, 0x26, 0x3b, 0xa1, 0xfb, 0xd7, 0x8b, 0xee, 0xee, 0x9c, 0xe3, 0xe7, 0x79, - 0xf4, 0xb3, 0x7d, 0xe0, 0x74, 0xe5, 0xc7, 0x89, 0x1b, 0x27, 0x52, 0x49, 0x77, 0x29, 0x77, 0x3b, - 0x29, 0xdc, 0x7c, 0x58, 0x55, 0xc4, 0x8c, 0x71, 0x57, 0x4b, 0xca, 0x9a, 0x54, 0x07, 0xf9, 0xf0, - 0xf8, 0x51, 0x28, 0x65, 0xb8, 0xe5, 0xa5, 0x35, 0xc8, 0x3e, 0xbb, 0xbe, 0x28, 0x4a, 0x51, 0xff, - 0xbb, 0x0d, 0xed, 0x0b, 0xc6, 0x16, 0xf4, 0x8b, 0xe2, 0x22, 0x8d, 0xa4, 0xc0, 0xaf, 0xc1, 0xc9, - 0x79, 0x12, 0xf4, 0xac, 0x13, 0x6b, 0xd0, 0x19, 0x0d, 0xc8, 0x7d, 0x89, 0xe4, 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8c, 0x45, 0xe1, 0x19, 0x05, 0x3e, 0x85, 0xa3, 0xa5, 0x14, 0x8a, 0x0b, 0x75, - 0xa3, 0x8a, 0x98, 0xf7, 0x6a, 0x26, 0xa7, 0x55, 0xcd, 0x58, 0x11, 0x73, 0xfc, 0x16, 0x3a, 0x6b, - 0xa5, 0xe2, 0x1b, 0xbe, 0x7f, 0xcf, 0x9e, 0x63, 0x62, 0x9f, 0x3c, 0xe0, 0xe9, 0xbd, 0xb6, 0xb6, - 0xde, 0xb5, 0xfd, 0x4f, 0xd0, 0xd9, 0xdf, 0x20, 0x8d, 0xa5, 0x48, 0xf9, 0x1d, 0xaa, 0xf5, 0xcf, - 0xa8, 0xf6, 0x5f, 0xa8, 0x67, 0x1c, 0x20, 0x92, 0x25, 0x56, 0x3e, 0x3c, 0x3b, 0x9a, 0x18, 0xa8, - 0x85, 0x8e, 0x4a, 0x3f, 0x3e, 0x0d, 0x23, 0xb5, 0xce, 0x02, 0x4d, 0xea, 0x9a, 0x6d, 0x0f, 0xe5, - 0xb3, 0x74, 0xb5, 0x71, 0xef, 0xdb, 0xfc, 0xaf, 0xf6, 0xe3, 0xa9, 0x0e, 0x99, 0x6c, 0x23, 0x2e, - 0x14, 0x19, 0x67, 0x4a, 0x86, 0x5c, 0x90, 0xf3, 0x24, 0x5e, 0x92, 0x7c, 0x18, 0x34, 0x8c, 0xfc, - 0xf9, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x8c, 0xec, 0xbf, 0x36, 0x03, 0x00, 0x00, + // 840 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x5d, 0x6e, 0xdb, 0x46, + 0x17, 0x0d, 0x29, 0xc9, 0xb2, 0xaf, 0x64, 0x63, 0xbe, 0x81, 0x3f, 0x57, 0x51, 0x8a, 0x22, 0x61, + 0x81, 0xc2, 0x2f, 0xa5, 0x60, 0xa5, 0x05, 0x8a, 0x26, 0x28, 0xa0, 0x50, 0x13, 0x87, 0x85, 0x42, + 0xb2, 0x43, 0xca, 0xfd, 0x01, 0x0a, 0x81, 0x92, 0xa6, 0x12, 0x61, 0x99, 0x64, 0x86, 0x23, 0xa2, + 0xdc, 0x40, 0x37, 0xd1, 0x1d, 0x74, 0x15, 0x5d, 0x41, 0x9f, 0xba, 0xa0, 0x82, 0x43, 0x4a, 0x62, + 0x14, 0xc3, 0xb1, 0xdf, 0xee, 0xdf, 0x39, 0x73, 0xee, 0xbd, 0x43, 0x0e, 0x3c, 0x9b, 0xfb, 0x31, + 0xef, 0xc5, 0x3c, 0x12, 0x51, 0x6f, 0x16, 0xdd, 0xdc, 0x44, 0x61, 0x2f, 0xbd, 0x28, 0x2d, 0x5d, + 0x86, 0xf1, 0x69, 0x5e, 0x52, 0xd8, 0x7a, 0x99, 0x48, 0x2f, 0xba, 0x8f, 0x17, 0x51, 0xb4, 0x58, + 0xb1, 0x02, 0x3a, 0x5d, 0xff, 0xd6, 0xf3, 0xc3, 0xac, 0x28, 0xea, 0x7e, 0xb6, 0x9f, 0x9a, 0xaf, + 0xb9, 0x2f, 0x82, 0x0d, 0xa1, 0xf6, 0x8f, 0x0a, 0xc7, 0x6f, 0x3c, 0xcf, 0x21, 0xbf, 0x0b, 0x16, + 0x26, 0x41, 0x14, 0xe2, 0x97, 0x50, 0x4f, 0x19, 0x9f, 0x76, 0x94, 0xa7, 0xca, 0xf9, 0x49, 0xff, + 0x5c, 0xbf, 0xed, 0x44, 0xfd, 0x3d, 0x88, 0x7e, 0xc5, 0xf8, 0x94, 0x4a, 0x14, 0xbe, 0x82, 0xd6, + 0xbb, 0x35, 0xe3, 0x59, 0x22, 0x78, 0x10, 0x2e, 0x3a, 0xea, 0xd3, 0xda, 0x79, 0xab, 0xff, 0xd5, + 0x7d, 0x48, 0x7e, 0xd8, 0xc1, 0x48, 0x28, 0x78, 0x46, 0xab, 0x44, 0xdd, 0xef, 0x00, 0xed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x6c, 0xc3, 0xc9, 0x05, 0x24, 0xbf, 0xf4, 0x17, 0x81, 0x58, 0xae, 0xa7, 0x79, 0x6f, 0x3d, + 0xf9, 0x16, 0x2e, 0xa2, 0x2f, 0x93, 0xf9, 0x75, 0xef, 0xb6, 0x77, 0xf1, 0x45, 0x61, 0xfd, 0xa5, + 0x3e, 0x19, 0xe6, 0x5c, 0xc6, 0x2a, 0x60, 0xa1, 0xd0, 0x07, 0x6b, 0x11, 0x2d, 0x58, 0xa8, 0x5f, + 0xf2, 0x78, 0xa6, 0xa7, 0x17, 0xd3, 0x03, 0x89, 0x7a, 0xfe, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x32, 0xdd, 0xec, 0xee, 0x5b, 0x07, 0x00, 0x00, } diff --git a/dapr/proto/dapr/v1/dapr.pb.go b/dapr/proto/dapr/v1/dapr.pb.go deleted file mode 100644 index 9244fba5..00000000 --- a/dapr/proto/dapr/v1/dapr.pb.go +++ /dev/null @@ -1,1122 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: dapr/proto/dapr/v1/dapr.proto - -package v1 - -import ( - context "context" - fmt "fmt" - v1 "github.com/dapr/go-sdk/dapr/proto/common/v1" - proto "github.com/golang/protobuf/proto" - any "github.com/golang/protobuf/ptypes/any" - duration "github.com/golang/protobuf/ptypes/duration" - empty "github.com/golang/protobuf/ptypes/empty" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// InvokeServiceRequest represents the request message for Service invocation. -type InvokeServiceRequest struct { - // id specifies callee's app id. - // - // This field is required. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // message which will be delivered to callee. - // - // This field is required. - Message *v1.InvokeRequest `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InvokeServiceRequest) Reset() { *m = InvokeServiceRequest{} } -func (m *InvokeServiceRequest) String() string { return proto.CompactTextString(m) } -func (*InvokeServiceRequest) ProtoMessage() {} -func (*InvokeServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{0} -} - -func (m *InvokeServiceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvokeServiceRequest.Unmarshal(m, b) -} -func (m *InvokeServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvokeServiceRequest.Marshal(b, m, deterministic) -} -func (m *InvokeServiceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvokeServiceRequest.Merge(m, src) -} -func (m *InvokeServiceRequest) XXX_Size() int { - return xxx_messageInfo_InvokeServiceRequest.Size(m) -} -func (m *InvokeServiceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InvokeServiceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_InvokeServiceRequest proto.InternalMessageInfo - -func (m *InvokeServiceRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *InvokeServiceRequest) GetMessage() *v1.InvokeRequest { - if m != nil { - return m.Message - } - return nil -} - -type DeleteStateEnvelope struct { - StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - Options *StateOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteStateEnvelope) Reset() { *m = DeleteStateEnvelope{} } -func (m *DeleteStateEnvelope) String() string { return proto.CompactTextString(m) } -func (*DeleteStateEnvelope) ProtoMessage() {} -func (*DeleteStateEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{1} -} - -func (m *DeleteStateEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteStateEnvelope.Unmarshal(m, b) -} -func (m *DeleteStateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteStateEnvelope.Marshal(b, m, deterministic) -} -func (m *DeleteStateEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteStateEnvelope.Merge(m, src) -} -func (m *DeleteStateEnvelope) XXX_Size() int { - return xxx_messageInfo_DeleteStateEnvelope.Size(m) -} -func (m *DeleteStateEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteStateEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteStateEnvelope proto.InternalMessageInfo - -func (m *DeleteStateEnvelope) GetStoreName() string { - if m != nil { - return m.StoreName - } - return "" -} - -func (m *DeleteStateEnvelope) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *DeleteStateEnvelope) GetEtag() string { - if m != nil { - return m.Etag - } - return "" -} - -func (m *DeleteStateEnvelope) GetOptions() *StateOptions { - if m != nil { - return m.Options - } - return nil -} - -type SaveStateEnvelope struct { - StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` - Requests []*StateRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SaveStateEnvelope) Reset() { *m = SaveStateEnvelope{} } -func (m *SaveStateEnvelope) String() string { return proto.CompactTextString(m) } -func (*SaveStateEnvelope) ProtoMessage() {} -func (*SaveStateEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{2} -} - -func (m *SaveStateEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SaveStateEnvelope.Unmarshal(m, b) -} -func (m *SaveStateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SaveStateEnvelope.Marshal(b, m, deterministic) -} -func (m *SaveStateEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_SaveStateEnvelope.Merge(m, src) -} -func (m *SaveStateEnvelope) XXX_Size() int { - return xxx_messageInfo_SaveStateEnvelope.Size(m) -} -func (m *SaveStateEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_SaveStateEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_SaveStateEnvelope proto.InternalMessageInfo - -func (m *SaveStateEnvelope) GetStoreName() string { - if m != nil { - return m.StoreName - } - return "" -} - -func (m *SaveStateEnvelope) GetRequests() []*StateRequest { - if m != nil { - return m.Requests - } - return nil -} - -type GetStateEnvelope struct { - StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Consistency string `protobuf:"bytes,3,opt,name=consistency,proto3" json:"consistency,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStateEnvelope) Reset() { *m = GetStateEnvelope{} } -func (m *GetStateEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetStateEnvelope) ProtoMessage() {} -func (*GetStateEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{3} -} - -func (m *GetStateEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetStateEnvelope.Unmarshal(m, b) -} -func (m *GetStateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetStateEnvelope.Marshal(b, m, deterministic) -} -func (m *GetStateEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStateEnvelope.Merge(m, src) -} -func (m *GetStateEnvelope) XXX_Size() int { - return xxx_messageInfo_GetStateEnvelope.Size(m) -} -func (m *GetStateEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetStateEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStateEnvelope proto.InternalMessageInfo - -func (m *GetStateEnvelope) GetStoreName() string { - if m != nil { - return m.StoreName - } - return "" -} - -func (m *GetStateEnvelope) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *GetStateEnvelope) GetConsistency() string { - if m != nil { - return m.Consistency - } - return "" -} - -type GetStateResponseEnvelope struct { - Data *any.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStateResponseEnvelope) Reset() { *m = GetStateResponseEnvelope{} } -func (m *GetStateResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetStateResponseEnvelope) ProtoMessage() {} -func (*GetStateResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{4} -} - -func (m *GetStateResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetStateResponseEnvelope.Unmarshal(m, b) -} -func (m *GetStateResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetStateResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetStateResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStateResponseEnvelope.Merge(m, src) -} -func (m *GetStateResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetStateResponseEnvelope.Size(m) -} -func (m *GetStateResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetStateResponseEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStateResponseEnvelope proto.InternalMessageInfo - -func (m *GetStateResponseEnvelope) GetData() *any.Any { - if m != nil { - return m.Data - } - return nil -} - -func (m *GetStateResponseEnvelope) GetEtag() string { - if m != nil { - return m.Etag - } - return "" -} - -type GetSecretEnvelope struct { - StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetSecretEnvelope) Reset() { *m = GetSecretEnvelope{} } -func (m *GetSecretEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetSecretEnvelope) ProtoMessage() {} -func (*GetSecretEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{5} -} - -func (m *GetSecretEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetSecretEnvelope.Unmarshal(m, b) -} -func (m *GetSecretEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetSecretEnvelope.Marshal(b, m, deterministic) -} -func (m *GetSecretEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSecretEnvelope.Merge(m, src) -} -func (m *GetSecretEnvelope) XXX_Size() int { - return xxx_messageInfo_GetSecretEnvelope.Size(m) -} -func (m *GetSecretEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetSecretEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_GetSecretEnvelope proto.InternalMessageInfo - -func (m *GetSecretEnvelope) GetStoreName() string { - if m != nil { - return m.StoreName - } - return "" -} - -func (m *GetSecretEnvelope) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *GetSecretEnvelope) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -type GetSecretResponseEnvelope struct { - Data map[string]string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetSecretResponseEnvelope) Reset() { *m = GetSecretResponseEnvelope{} } -func (m *GetSecretResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetSecretResponseEnvelope) ProtoMessage() {} -func (*GetSecretResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{6} -} - -func (m *GetSecretResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetSecretResponseEnvelope.Unmarshal(m, b) -} -func (m *GetSecretResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetSecretResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetSecretResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSecretResponseEnvelope.Merge(m, src) -} -func (m *GetSecretResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetSecretResponseEnvelope.Size(m) -} -func (m *GetSecretResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetSecretResponseEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_GetSecretResponseEnvelope proto.InternalMessageInfo - -func (m *GetSecretResponseEnvelope) GetData() map[string]string { - if m != nil { - return m.Data - } - return nil -} - -type InvokeBindingEnvelope struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InvokeBindingEnvelope) Reset() { *m = InvokeBindingEnvelope{} } -func (m *InvokeBindingEnvelope) String() string { return proto.CompactTextString(m) } -func (*InvokeBindingEnvelope) ProtoMessage() {} -func (*InvokeBindingEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{7} -} - -func (m *InvokeBindingEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvokeBindingEnvelope.Unmarshal(m, b) -} -func (m *InvokeBindingEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvokeBindingEnvelope.Marshal(b, m, deterministic) -} -func (m *InvokeBindingEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvokeBindingEnvelope.Merge(m, src) -} -func (m *InvokeBindingEnvelope) XXX_Size() int { - return xxx_messageInfo_InvokeBindingEnvelope.Size(m) -} -func (m *InvokeBindingEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_InvokeBindingEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_InvokeBindingEnvelope proto.InternalMessageInfo - -func (m *InvokeBindingEnvelope) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *InvokeBindingEnvelope) GetData() *any.Any { - if m != nil { - return m.Data - } - return nil -} - -func (m *InvokeBindingEnvelope) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -type PublishEventEnvelope struct { - Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` - Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PublishEventEnvelope) Reset() { *m = PublishEventEnvelope{} } -func (m *PublishEventEnvelope) String() string { return proto.CompactTextString(m) } -func (*PublishEventEnvelope) ProtoMessage() {} -func (*PublishEventEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{8} -} - -func (m *PublishEventEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PublishEventEnvelope.Unmarshal(m, b) -} -func (m *PublishEventEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PublishEventEnvelope.Marshal(b, m, deterministic) -} -func (m *PublishEventEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_PublishEventEnvelope.Merge(m, src) -} -func (m *PublishEventEnvelope) XXX_Size() int { - return xxx_messageInfo_PublishEventEnvelope.Size(m) -} -func (m *PublishEventEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_PublishEventEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_PublishEventEnvelope proto.InternalMessageInfo - -func (m *PublishEventEnvelope) GetTopic() string { - if m != nil { - return m.Topic - } - return "" -} - -func (m *PublishEventEnvelope) GetData() *any.Any { - if m != nil { - return m.Data - } - return nil -} - -type State struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Options *StateOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *State) Reset() { *m = State{} } -func (m *State) String() string { return proto.CompactTextString(m) } -func (*State) ProtoMessage() {} -func (*State) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{9} -} - -func (m *State) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_State.Unmarshal(m, b) -} -func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_State.Marshal(b, m, deterministic) -} -func (m *State) XXX_Merge(src proto.Message) { - xxx_messageInfo_State.Merge(m, src) -} -func (m *State) XXX_Size() int { - return xxx_messageInfo_State.Size(m) -} -func (m *State) XXX_DiscardUnknown() { - xxx_messageInfo_State.DiscardUnknown(m) -} - -var xxx_messageInfo_State proto.InternalMessageInfo - -func (m *State) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *State) GetValue() *any.Any { - if m != nil { - return m.Value - } - return nil -} - -func (m *State) GetEtag() string { - if m != nil { - return m.Etag - } - return "" -} - -func (m *State) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *State) GetOptions() *StateOptions { - if m != nil { - return m.Options - } - return nil -} - -type StateOptions struct { - Concurrency string `protobuf:"bytes,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` - Consistency string `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"` - RetryPolicy *RetryPolicy `protobuf:"bytes,3,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StateOptions) Reset() { *m = StateOptions{} } -func (m *StateOptions) String() string { return proto.CompactTextString(m) } -func (*StateOptions) ProtoMessage() {} -func (*StateOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{10} -} - -func (m *StateOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StateOptions.Unmarshal(m, b) -} -func (m *StateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StateOptions.Marshal(b, m, deterministic) -} -func (m *StateOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateOptions.Merge(m, src) -} -func (m *StateOptions) XXX_Size() int { - return xxx_messageInfo_StateOptions.Size(m) -} -func (m *StateOptions) XXX_DiscardUnknown() { - xxx_messageInfo_StateOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_StateOptions proto.InternalMessageInfo - -func (m *StateOptions) GetConcurrency() string { - if m != nil { - return m.Concurrency - } - return "" -} - -func (m *StateOptions) GetConsistency() string { - if m != nil { - return m.Consistency - } - return "" -} - -func (m *StateOptions) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy - } - return nil -} - -type RetryPolicy struct { - Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` - Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` - Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RetryPolicy) Reset() { *m = RetryPolicy{} } -func (m *RetryPolicy) String() string { return proto.CompactTextString(m) } -func (*RetryPolicy) ProtoMessage() {} -func (*RetryPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{11} -} - -func (m *RetryPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RetryPolicy.Unmarshal(m, b) -} -func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RetryPolicy.Marshal(b, m, deterministic) -} -func (m *RetryPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryPolicy.Merge(m, src) -} -func (m *RetryPolicy) XXX_Size() int { - return xxx_messageInfo_RetryPolicy.Size(m) -} -func (m *RetryPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_RetryPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_RetryPolicy proto.InternalMessageInfo - -func (m *RetryPolicy) GetThreshold() int32 { - if m != nil { - return m.Threshold - } - return 0 -} - -func (m *RetryPolicy) GetPattern() string { - if m != nil { - return m.Pattern - } - return "" -} - -func (m *RetryPolicy) GetInterval() *duration.Duration { - if m != nil { - return m.Interval - } - return nil -} - -type StateRequest struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Options *StateOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StateRequest) Reset() { *m = StateRequest{} } -func (m *StateRequest) String() string { return proto.CompactTextString(m) } -func (*StateRequest) ProtoMessage() {} -func (*StateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0f3c232bd8a4c7dd, []int{12} -} - -func (m *StateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StateRequest.Unmarshal(m, b) -} -func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StateRequest.Marshal(b, m, deterministic) -} -func (m *StateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateRequest.Merge(m, src) -} -func (m *StateRequest) XXX_Size() int { - return xxx_messageInfo_StateRequest.Size(m) -} -func (m *StateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StateRequest proto.InternalMessageInfo - -func (m *StateRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *StateRequest) GetValue() *any.Any { - if m != nil { - return m.Value - } - return nil -} - -func (m *StateRequest) GetEtag() string { - if m != nil { - return m.Etag - } - return "" -} - -func (m *StateRequest) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *StateRequest) GetOptions() *StateOptions { - if m != nil { - return m.Options - } - return nil -} - -func init() { - proto.RegisterType((*InvokeServiceRequest)(nil), "dapr.proto.dapr.v1.InvokeServiceRequest") - proto.RegisterType((*DeleteStateEnvelope)(nil), "dapr.proto.dapr.v1.DeleteStateEnvelope") - proto.RegisterType((*SaveStateEnvelope)(nil), "dapr.proto.dapr.v1.SaveStateEnvelope") - proto.RegisterType((*GetStateEnvelope)(nil), "dapr.proto.dapr.v1.GetStateEnvelope") - proto.RegisterType((*GetStateResponseEnvelope)(nil), "dapr.proto.dapr.v1.GetStateResponseEnvelope") - proto.RegisterType((*GetSecretEnvelope)(nil), "dapr.proto.dapr.v1.GetSecretEnvelope") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry") - proto.RegisterType((*GetSecretResponseEnvelope)(nil), "dapr.proto.dapr.v1.GetSecretResponseEnvelope") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry") - proto.RegisterType((*InvokeBindingEnvelope)(nil), "dapr.proto.dapr.v1.InvokeBindingEnvelope") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry") - proto.RegisterType((*PublishEventEnvelope)(nil), "dapr.proto.dapr.v1.PublishEventEnvelope") - proto.RegisterType((*State)(nil), "dapr.proto.dapr.v1.State") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.dapr.v1.State.MetadataEntry") - proto.RegisterType((*StateOptions)(nil), "dapr.proto.dapr.v1.StateOptions") - proto.RegisterType((*RetryPolicy)(nil), "dapr.proto.dapr.v1.RetryPolicy") - proto.RegisterType((*StateRequest)(nil), "dapr.proto.dapr.v1.StateRequest") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.dapr.v1.StateRequest.MetadataEntry") -} - -func init() { proto.RegisterFile("dapr/proto/dapr/v1/dapr.proto", fileDescriptor_0f3c232bd8a4c7dd) } - -var fileDescriptor_0f3c232bd8a4c7dd = []byte{ - // 896 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x8e, 0xdb, 0x44, - 0x14, 0x5e, 0x7b, 0x13, 0x76, 0x73, 0xb2, 0x45, 0xed, 0x10, 0x50, 0xd6, 0xa5, 0x10, 0x4c, 0x11, - 0x5b, 0x44, 0x67, 0xb5, 0x5b, 0xa1, 0xa2, 0x02, 0x17, 0xdd, 0x26, 0xaa, 0xf8, 0x6d, 0xe4, 0x20, - 0x84, 0xb8, 0x29, 0x13, 0xe7, 0xe0, 0x58, 0xeb, 0xcc, 0x98, 0xf1, 0xd8, 0x52, 0x24, 0x9e, 0xa3, - 0x5c, 0x73, 0xc1, 0x0d, 0x8f, 0xc3, 0x4b, 0xf0, 0x0e, 0x5c, 0x21, 0x8f, 0x7f, 0xe2, 0xc6, 0x4e, - 0xba, 0xdb, 0x05, 0x89, 0x2b, 0x8f, 0x67, 0xce, 0xcf, 0x37, 0xdf, 0xcc, 0x7c, 0xe7, 0xc0, 0xad, - 0x19, 0x0b, 0xe5, 0x71, 0x28, 0x85, 0x12, 0xc7, 0x7a, 0x98, 0x9c, 0xe8, 0x2f, 0xd5, 0x53, 0x84, - 0xac, 0xc6, 0x54, 0x0f, 0x93, 0x13, 0xeb, 0xd0, 0x13, 0xc2, 0x0b, 0x30, 0x73, 0x9a, 0xc6, 0x3f, - 0x1d, 0x33, 0xb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 0xfd, 0x0f, 0xf3, 0x66, 0xea, 0x47, 0x1f, 0x05, 0x3e, - 0x72, 0x45, 0x1f, 0xc6, 0x4a, 0x78, 0xc8, 0xe9, 0x63, 0x19, 0xba, 0x34, 0x39, 0x99, 0xbe, 0xa2, - 0x8d, 0xef, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x14, 0xc2, 0x84, 0x30, 0xdd, 0x0b, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DaprClient is the client API for Dapr service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DaprClient interface { - PublishEvent(ctx context.Context, in *PublishEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) - InvokeService(ctx context.Context, in *InvokeServiceRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) - InvokeBinding(ctx context.Context, in *InvokeBindingEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) - GetState(ctx context.Context, in *GetStateEnvelope, opts ...grpc.CallOption) (*GetStateResponseEnvelope, error) - GetSecret(ctx context.Context, in *GetSecretEnvelope, opts ...grpc.CallOption) (*GetSecretResponseEnvelope, error) - SaveState(ctx context.Context, in *SaveStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) - DeleteState(ctx context.Context, in *DeleteStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) -} - -type daprClient struct { - cc *grpc.ClientConn -} - -func NewDaprClient(cc *grpc.ClientConn) DaprClient { - return &daprClient{cc} -} - -func (c *daprClient) PublishEvent(ctx context.Context, in *PublishEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/PublishEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClient) InvokeService(ctx context.Context, in *InvokeServiceRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) { - out := new(v1.InvokeResponse) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/InvokeService", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClient) InvokeBinding(ctx context.Context, in *InvokeBindingEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/InvokeBinding", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClient) GetState(ctx context.Context, in *GetStateEnvelope, opts ...grpc.CallOption) (*GetStateResponseEnvelope, error) { - out := new(GetStateResponseEnvelope) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/GetState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClient) GetSecret(ctx context.Context, in *GetSecretEnvelope, opts ...grpc.CallOption) (*GetSecretResponseEnvelope, error) { - out := new(GetSecretResponseEnvelope) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/GetSecret", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClient) SaveState(ctx context.Context, in *SaveStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/SaveState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClient) DeleteState(ctx context.Context, in *DeleteStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/dapr.proto.dapr.v1.Dapr/DeleteState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DaprServer is the server API for Dapr service. -type DaprServer interface { - PublishEvent(context.Context, *PublishEventEnvelope) (*empty.Empty, error) - InvokeService(context.Context, *InvokeServiceRequest) (*v1.InvokeResponse, error) - InvokeBinding(context.Context, *InvokeBindingEnvelope) (*empty.Empty, error) - GetState(context.Context, *GetStateEnvelope) (*GetStateResponseEnvelope, error) - GetSecret(context.Context, *GetSecretEnvelope) (*GetSecretResponseEnvelope, error) - SaveState(context.Context, *SaveStateEnvelope) (*empty.Empty, error) - DeleteState(context.Context, *DeleteStateEnvelope) (*empty.Empty, error) -} - -// UnimplementedDaprServer can be embedded to have forward compatible implementations. -type UnimplementedDaprServer struct { -} - -func (*UnimplementedDaprServer) PublishEvent(ctx context.Context, req *PublishEventEnvelope) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method PublishEvent not implemented") -} -func (*UnimplementedDaprServer) InvokeService(ctx context.Context, req *InvokeServiceRequest) (*v1.InvokeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvokeService not implemented") -} -func (*UnimplementedDaprServer) InvokeBinding(ctx context.Context, req *InvokeBindingEnvelope) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvokeBinding not implemented") -} -func (*UnimplementedDaprServer) GetState(ctx context.Context, req *GetStateEnvelope) (*GetStateResponseEnvelope, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") -} -func (*UnimplementedDaprServer) GetSecret(ctx context.Context, req *GetSecretEnvelope) (*GetSecretResponseEnvelope, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSecret not implemented") -} -func (*UnimplementedDaprServer) SaveState(ctx context.Context, req *SaveStateEnvelope) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SaveState not implemented") -} -func (*UnimplementedDaprServer) DeleteState(ctx context.Context, req *DeleteStateEnvelope) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteState not implemented") -} - -func RegisterDaprServer(s *grpc.Server, srv DaprServer) { - s.RegisterService(&_Dapr_serviceDesc, srv) -} - -func _Dapr_PublishEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PublishEventEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).PublishEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/PublishEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).PublishEvent(ctx, req.(*PublishEventEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dapr_InvokeService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvokeServiceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).InvokeService(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/InvokeService", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).InvokeService(ctx, req.(*InvokeServiceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dapr_InvokeBinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvokeBindingEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).InvokeBinding(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/InvokeBinding", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).InvokeBinding(ctx, req.(*InvokeBindingEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dapr_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetStateEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).GetState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/GetState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).GetState(ctx, req.(*GetStateEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dapr_GetSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetSecretEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).GetSecret(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/GetSecret", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).GetSecret(ctx, req.(*GetSecretEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dapr_SaveState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveStateEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).SaveState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/SaveState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).SaveState(ctx, req.(*SaveStateEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dapr_DeleteState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteStateEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprServer).DeleteState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.dapr.v1.Dapr/DeleteState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprServer).DeleteState(ctx, req.(*DeleteStateEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -var _Dapr_serviceDesc = grpc.ServiceDesc{ - ServiceName: "dapr.proto.dapr.v1.Dapr", - HandlerType: (*DaprServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PublishEvent", - Handler: _Dapr_PublishEvent_Handler, - }, - { - MethodName: "InvokeService", - Handler: _Dapr_InvokeService_Handler, - }, - { - MethodName: "InvokeBinding", - Handler: _Dapr_InvokeBinding_Handler, - }, - { - MethodName: "GetState", - Handler: _Dapr_GetState_Handler, - }, - { - MethodName: "GetSecret", - Handler: _Dapr_GetSecret_Handler, - }, - { - MethodName: "SaveState", - Handler: _Dapr_SaveState_Handler, - }, - { - MethodName: "DeleteState", - Handler: _Dapr_DeleteState_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "dapr/proto/dapr/v1/dapr.proto", -} diff --git a/dapr/proto/daprclient/v1/daprclient.pb.go b/dapr/proto/daprclient/v1/daprclient.pb.go deleted file mode 100644 index 6e2f9f9a..00000000 --- a/dapr/proto/daprclient/v1/daprclient.pb.go +++ /dev/null @@ -1,791 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: dapr/proto/daprclient/v1/daprclient.proto - -package v1 - -import ( - context "context" - fmt "fmt" - v1 "github.com/dapr/go-sdk/dapr/proto/common/v1" - proto "github.com/golang/protobuf/proto" - any "github.com/golang/protobuf/ptypes/any" - duration "github.com/golang/protobuf/ptypes/duration" - empty "github.com/golang/protobuf/ptypes/empty" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type CloudEventEnvelope struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - SpecVersion string `protobuf:"bytes,4,opt,name=specVersion,proto3" json:"specVersion,omitempty"` - DataContentType string `protobuf:"bytes,5,opt,name=data_content_type,json=dataContentType,proto3" json:"data_content_type,omitempty"` - Topic string `protobuf:"bytes,6,opt,name=topic,proto3" json:"topic,omitempty"` - Data *any.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudEventEnvelope) Reset() { *m = CloudEventEnvelope{} } -func (m *CloudEventEnvelope) String() string { return proto.CompactTextString(m) } -func (*CloudEventEnvelope) ProtoMessage() {} -func (*CloudEventEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{0} -} - -func (m *CloudEventEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventEnvelope.Unmarshal(m, b) -} -func (m *CloudEventEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventEnvelope.Marshal(b, m, deterministic) -} -func (m *CloudEventEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventEnvelope.Merge(m, src) -} -func (m *CloudEventEnvelope) XXX_Size() int { - return xxx_messageInfo_CloudEventEnvelope.Size(m) -} -func (m *CloudEventEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_CloudEventEnvelope proto.InternalMessageInfo - -func (m *CloudEventEnvelope) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *CloudEventEnvelope) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *CloudEventEnvelope) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *CloudEventEnvelope) GetSpecVersion() string { - if m != nil { - return m.SpecVersion - } - return "" -} - -func (m *CloudEventEnvelope) GetDataContentType() string { - if m != nil { - return m.DataContentType - } - return "" -} - -func (m *CloudEventEnvelope) GetTopic() string { - if m != nil { - return m.Topic - } - return "" -} - -func (m *CloudEventEnvelope) GetData() *any.Any { - if m != nil { - return m.Data - } - return nil -} - -type BindingEventEnvelope struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BindingEventEnvelope) Reset() { *m = BindingEventEnvelope{} } -func (m *BindingEventEnvelope) String() string { return proto.CompactTextString(m) } -func (*BindingEventEnvelope) ProtoMessage() {} -func (*BindingEventEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{1} -} - -func (m *BindingEventEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BindingEventEnvelope.Unmarshal(m, b) -} -func (m *BindingEventEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BindingEventEnvelope.Marshal(b, m, deterministic) -} -func (m *BindingEventEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_BindingEventEnvelope.Merge(m, src) -} -func (m *BindingEventEnvelope) XXX_Size() int { - return xxx_messageInfo_BindingEventEnvelope.Size(m) -} -func (m *BindingEventEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_BindingEventEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_BindingEventEnvelope proto.InternalMessageInfo - -func (m *BindingEventEnvelope) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *BindingEventEnvelope) GetData() *any.Any { - if m != nil { - return m.Data - } - return nil -} - -func (m *BindingEventEnvelope) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -type BindingResponseEnvelope struct { - Data *any.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - To []string `protobuf:"bytes,2,rep,name=to,proto3" json:"to,omitempty"` - State []*State `protobuf:"bytes,3,rep,name=state,proto3" json:"state,omitempty"` - Concurrency string `protobuf:"bytes,4,opt,name=concurrency,proto3" json:"concurrency,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BindingResponseEnvelope) Reset() { *m = BindingResponseEnvelope{} } -func (m *BindingResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*BindingResponseEnvelope) ProtoMessage() {} -func (*BindingResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{2} -} - -func (m *BindingResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BindingResponseEnvelope.Unmarshal(m, b) -} -func (m *BindingResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BindingResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *BindingResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_BindingResponseEnvelope.Merge(m, src) -} -func (m *BindingResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_BindingResponseEnvelope.Size(m) -} -func (m *BindingResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_BindingResponseEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_BindingResponseEnvelope proto.InternalMessageInfo - -func (m *BindingResponseEnvelope) GetData() *any.Any { - if m != nil { - return m.Data - } - return nil -} - -func (m *BindingResponseEnvelope) GetTo() []string { - if m != nil { - return m.To - } - return nil -} - -func (m *BindingResponseEnvelope) GetState() []*State { - if m != nil { - return m.State - } - return nil -} - -func (m *BindingResponseEnvelope) GetConcurrency() string { - if m != nil { - return m.Concurrency - } - return "" -} - -type GetTopicSubscriptionsEnvelope struct { - Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetTopicSubscriptionsEnvelope) Reset() { *m = GetTopicSubscriptionsEnvelope{} } -func (m *GetTopicSubscriptionsEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetTopicSubscriptionsEnvelope) ProtoMessage() {} -func (*GetTopicSubscriptionsEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{3} -} - -func (m *GetTopicSubscriptionsEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTopicSubscriptionsEnvelope.Unmarshal(m, b) -} -func (m *GetTopicSubscriptionsEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTopicSubscriptionsEnvelope.Marshal(b, m, deterministic) -} -func (m *GetTopicSubscriptionsEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTopicSubscriptionsEnvelope.Merge(m, src) -} -func (m *GetTopicSubscriptionsEnvelope) XXX_Size() int { - return xxx_messageInfo_GetTopicSubscriptionsEnvelope.Size(m) -} -func (m *GetTopicSubscriptionsEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetTopicSubscriptionsEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_GetTopicSubscriptionsEnvelope proto.InternalMessageInfo - -func (m *GetTopicSubscriptionsEnvelope) GetTopics() []string { - if m != nil { - return m.Topics - } - return nil -} - -type GetBindingsSubscriptionsEnvelope struct { - Bindings []string `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetBindingsSubscriptionsEnvelope) Reset() { *m = GetBindingsSubscriptionsEnvelope{} } -func (m *GetBindingsSubscriptionsEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetBindingsSubscriptionsEnvelope) ProtoMessage() {} -func (*GetBindingsSubscriptionsEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{4} -} - -func (m *GetBindingsSubscriptionsEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Unmarshal(m, b) -} -func (m *GetBindingsSubscriptionsEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Marshal(b, m, deterministic) -} -func (m *GetBindingsSubscriptionsEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Merge(m, src) -} -func (m *GetBindingsSubscriptionsEnvelope) XXX_Size() int { - return xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Size(m) -} -func (m *GetBindingsSubscriptionsEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetBindingsSubscriptionsEnvelope.DiscardUnknown(m) -} - -var xxx_messageInfo_GetBindingsSubscriptionsEnvelope proto.InternalMessageInfo - -func (m *GetBindingsSubscriptionsEnvelope) GetBindings() []string { - if m != nil { - return m.Bindings - } - return nil -} - -type State struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Options *StateOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *State) Reset() { *m = State{} } -func (m *State) String() string { return proto.CompactTextString(m) } -func (*State) ProtoMessage() {} -func (*State) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{5} -} - -func (m *State) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_State.Unmarshal(m, b) -} -func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_State.Marshal(b, m, deterministic) -} -func (m *State) XXX_Merge(src proto.Message) { - xxx_messageInfo_State.Merge(m, src) -} -func (m *State) XXX_Size() int { - return xxx_messageInfo_State.Size(m) -} -func (m *State) XXX_DiscardUnknown() { - xxx_messageInfo_State.DiscardUnknown(m) -} - -var xxx_messageInfo_State proto.InternalMessageInfo - -func (m *State) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *State) GetValue() *any.Any { - if m != nil { - return m.Value - } - return nil -} - -func (m *State) GetEtag() string { - if m != nil { - return m.Etag - } - return "" -} - -func (m *State) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *State) GetOptions() *StateOptions { - if m != nil { - return m.Options - } - return nil -} - -type StateOptions struct { - Concurrency string `protobuf:"bytes,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` - Consistency string `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"` - RetryPolicy *RetryPolicy `protobuf:"bytes,3,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StateOptions) Reset() { *m = StateOptions{} } -func (m *StateOptions) String() string { return proto.CompactTextString(m) } -func (*StateOptions) ProtoMessage() {} -func (*StateOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{6} -} - -func (m *StateOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StateOptions.Unmarshal(m, b) -} -func (m *StateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StateOptions.Marshal(b, m, deterministic) -} -func (m *StateOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateOptions.Merge(m, src) -} -func (m *StateOptions) XXX_Size() int { - return xxx_messageInfo_StateOptions.Size(m) -} -func (m *StateOptions) XXX_DiscardUnknown() { - xxx_messageInfo_StateOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_StateOptions proto.InternalMessageInfo - -func (m *StateOptions) GetConcurrency() string { - if m != nil { - return m.Concurrency - } - return "" -} - -func (m *StateOptions) GetConsistency() string { - if m != nil { - return m.Consistency - } - return "" -} - -func (m *StateOptions) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy - } - return nil -} - -type RetryPolicy struct { - Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` - Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` - Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RetryPolicy) Reset() { *m = RetryPolicy{} } -func (m *RetryPolicy) String() string { return proto.CompactTextString(m) } -func (*RetryPolicy) ProtoMessage() {} -func (*RetryPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_bb919fe08a3c35cb, []int{7} -} - -func (m *RetryPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RetryPolicy.Unmarshal(m, b) -} -func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RetryPolicy.Marshal(b, m, deterministic) -} -func (m *RetryPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryPolicy.Merge(m, src) -} -func (m *RetryPolicy) XXX_Size() int { - return xxx_messageInfo_RetryPolicy.Size(m) -} -func (m *RetryPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_RetryPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_RetryPolicy proto.InternalMessageInfo - -func (m *RetryPolicy) GetThreshold() int32 { - if m != nil { - return m.Threshold - } - return 0 -} - -func (m *RetryPolicy) GetPattern() string { - if m != nil { - return m.Pattern - } - return "" -} - -func (m *RetryPolicy) GetInterval() *duration.Duration { - if m != nil { - return m.Interval - } - return nil -} - -func init() { - proto.RegisterType((*CloudEventEnvelope)(nil), "dapr.proto.daprclient.v1.CloudEventEnvelope") - proto.RegisterType((*BindingEventEnvelope)(nil), "dapr.proto.daprclient.v1.BindingEventEnvelope") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry") - proto.RegisterType((*BindingResponseEnvelope)(nil), "dapr.proto.daprclient.v1.BindingResponseEnvelope") - proto.RegisterType((*GetTopicSubscriptionsEnvelope)(nil), "dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope") - proto.RegisterType((*GetBindingsSubscriptionsEnvelope)(nil), "dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope") - proto.RegisterType((*State)(nil), "dapr.proto.daprclient.v1.State") - proto.RegisterMapType((map[string]string)(nil), "dapr.proto.daprclient.v1.State.MetadataEntry") - proto.RegisterType((*StateOptions)(nil), "dapr.proto.daprclient.v1.StateOptions") - proto.RegisterType((*RetryPolicy)(nil), "dapr.proto.daprclient.v1.RetryPolicy") -} - -func init() { - proto.RegisterFile("dapr/proto/daprclient/v1/daprclient.proto", fileDescriptor_bb919fe08a3c35cb) -} - -var fileDescriptor_bb919fe08a3c35cb = []byte{ - // 835 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x8e, 0xdb, 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xa7, 0x70, 0xc0, 0x69, 0xce, 0x22, 0xec, 0xd8, 0xca, 0x66, - 0x34, 0x84, 0xa0, 0x23, 0xca, 0x0c, 0x3b, 0x6d, 0x65, 0x55, 0x32, 0x1a, 0x40, 0x9f, 0x67, 0x38, - 0x7a, 0x89, 0x19, 0x4f, 0x28, 0x71, 0x3a, 0xca, 0x55, 0x37, 0xa1, 0x7b, 0xf0, 0x56, 0x1c, 0x8a, - 0xf0, 0x32, 0xa2, 0x44, 0x60, 0x22, 0x2e, 0x55, 0x88, 0xae, 0xc2, 0xbd, 0x29, 0x1d, 0xe7, 0xda, - 0xfe, 0x42, 0x46, 0x3b, 0x81, 0xae, 0xa0, 0x59, 0x12, 0x39, 0x07, 0xca, 0xaf, 0x15, 0x34, 0x84, - 0x8e, 0x04, 0x3a, 0x87, 0x03, 0x6b, 0xd8, 0x9f, 0x9c, 0xf8, 0x9a, 0x08, 0xbf, 0x22, 0xc2, 0x7f, - 0x4c, 0xca, 0x40, 0x21, 0xbc, 0x7f, 0x2d, 0x38, 0x39, 0x4b, 0x48, 0x9c, 0x90, 0xc5, 0xab, 0x25, - 0x22, 0xe8, 0x90, 0x70, 0x89, 0x4d, 0x91, 0x4a, 0x5e, 0x85, 0xb5, 0xf7, 0x85, 0x45, 0x3f, 0x42, - 0x6f, 0x89, 0x45, 0xa8, 0xd0, 0xed, 0x41, 0x7b, 0xd8, 0x9f, 0x7c, 0xed, 0x37, 0xf5, 0xd7, 0xdf, - 0x76, 0xbf, 0xff, 0xbd, 0x39, 0x3e, 0x25, 0x82, 0x95, 0xc1, 0x2a, 0x9a, 0xfb, 0x15, 0xbc, 0xf1, - 0x8a, 0x0b, 0xdd, 0x86, 0xf6, 0x35, 0x2e, 0x4d, 0x9e, 0x52, 0x94, 0x9c, 0x14, 0x61, 0x9a, 0x57, - 0xcd, 0xd0, 0xca, 0x23, 0xfb, 0x4b, 0xcb, 0xfb, 0xdb, 0x82, 0x77, 0xcc, 0x6d, 0x01, 0xe6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0xd0, 0x97, 0x7e, 0xde, 0x1c, 0x64, - 0xf3, 0xeb, 0xe8, 0x36, 0x50, 0xe1, 0xb5, 0xce, 0x96, 0x00, 0x89, 0x0e, 0xe0, 0x17, 0xe3, 0xb3, - 0xdb, 0x37, 0xf3, 0xf1, 0x4c, 0x22, 0xf9, 0x4f, 0xa3, 0x45, 0x22, 0xae, 0xf2, 0xb9, 0xec, 0xb7, - 0xfa, 0x41, 0x18, 0x2d, 0xe8, 0x7d, 0x1e, 0x5f, 0x8f, 0x9a, 0xfe, 0x22, 0xfe, 0xb2, 0xef, 0xca, - 0x18, 0xbe, 0x0e, 0xe2, 0x3f, 0xce, 0x05, 0x5d, 0x60, 0xe2, 0x5f, 0xb0, 0x2c, 0xf2, 0x8b, 0xf1, - 0xfc, 0x40, 0x1d, 0xf9, 0xe2, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x1d, 0x8a, 0x4e, 0x86, - 0x08, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DaprClientClient is the client API for DaprClient service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DaprClientClient interface { - OnInvoke(ctx context.Context, in *v1.InvokeRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) - GetTopicSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetTopicSubscriptionsEnvelope, error) - GetBindingsSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetBindingsSubscriptionsEnvelope, error) - OnBindingEvent(ctx context.Context, in *BindingEventEnvelope, opts ...grpc.CallOption) (*BindingResponseEnvelope, error) - OnTopicEvent(ctx context.Context, in *CloudEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) -} - -type daprClientClient struct { - cc *grpc.ClientConn -} - -func NewDaprClientClient(cc *grpc.ClientConn) DaprClientClient { - return &daprClientClient{cc} -} - -func (c *daprClientClient) OnInvoke(ctx context.Context, in *v1.InvokeRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) { - out := new(v1.InvokeResponse) - err := c.cc.Invoke(ctx, "/dapr.proto.daprclient.v1.DaprClient/OnInvoke", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClientClient) GetTopicSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetTopicSubscriptionsEnvelope, error) { - out := new(GetTopicSubscriptionsEnvelope) - err := c.cc.Invoke(ctx, "/dapr.proto.daprclient.v1.DaprClient/GetTopicSubscriptions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClientClient) GetBindingsSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetBindingsSubscriptionsEnvelope, error) { - out := new(GetBindingsSubscriptionsEnvelope) - err := c.cc.Invoke(ctx, "/dapr.proto.daprclient.v1.DaprClient/GetBindingsSubscriptions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClientClient) OnBindingEvent(ctx context.Context, in *BindingEventEnvelope, opts ...grpc.CallOption) (*BindingResponseEnvelope, error) { - out := new(BindingResponseEnvelope) - err := c.cc.Invoke(ctx, "/dapr.proto.daprclient.v1.DaprClient/OnBindingEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daprClientClient) OnTopicEvent(ctx context.Context, in *CloudEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/dapr.proto.daprclient.v1.DaprClient/OnTopicEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DaprClientServer is the server API for DaprClient service. -type DaprClientServer interface { - OnInvoke(context.Context, *v1.InvokeRequest) (*v1.InvokeResponse, error) - GetTopicSubscriptions(context.Context, *empty.Empty) (*GetTopicSubscriptionsEnvelope, error) - GetBindingsSubscriptions(context.Context, *empty.Empty) (*GetBindingsSubscriptionsEnvelope, error) - OnBindingEvent(context.Context, *BindingEventEnvelope) (*BindingResponseEnvelope, error) - OnTopicEvent(context.Context, *CloudEventEnvelope) (*empty.Empty, error) -} - -// UnimplementedDaprClientServer can be embedded to have forward compatible implementations. -type UnimplementedDaprClientServer struct { -} - -func (*UnimplementedDaprClientServer) OnInvoke(ctx context.Context, req *v1.InvokeRequest) (*v1.InvokeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OnInvoke not implemented") -} -func (*UnimplementedDaprClientServer) GetTopicSubscriptions(ctx context.Context, req *empty.Empty) (*GetTopicSubscriptionsEnvelope, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTopicSubscriptions not implemented") -} -func (*UnimplementedDaprClientServer) GetBindingsSubscriptions(ctx context.Context, req *empty.Empty) (*GetBindingsSubscriptionsEnvelope, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBindingsSubscriptions not implemented") -} -func (*UnimplementedDaprClientServer) OnBindingEvent(ctx context.Context, req *BindingEventEnvelope) (*BindingResponseEnvelope, error) { - return nil, status.Errorf(codes.Unimplemented, "method OnBindingEvent not implemented") -} -func (*UnimplementedDaprClientServer) OnTopicEvent(ctx context.Context, req *CloudEventEnvelope) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method OnTopicEvent not implemented") -} - -func RegisterDaprClientServer(s *grpc.Server, srv DaprClientServer) { - s.RegisterService(&_DaprClient_serviceDesc, srv) -} - -func _DaprClient_OnInvoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1.InvokeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprClientServer).OnInvoke(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.daprclient.v1.DaprClient/OnInvoke", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprClientServer).OnInvoke(ctx, req.(*v1.InvokeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DaprClient_GetTopicSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprClientServer).GetTopicSubscriptions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.daprclient.v1.DaprClient/GetTopicSubscriptions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprClientServer).GetTopicSubscriptions(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _DaprClient_GetBindingsSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprClientServer).GetBindingsSubscriptions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.daprclient.v1.DaprClient/GetBindingsSubscriptions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprClientServer).GetBindingsSubscriptions(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _DaprClient_OnBindingEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BindingEventEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprClientServer).OnBindingEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.daprclient.v1.DaprClient/OnBindingEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprClientServer).OnBindingEvent(ctx, req.(*BindingEventEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -func _DaprClient_OnTopicEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloudEventEnvelope) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaprClientServer).OnTopicEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/dapr.proto.daprclient.v1.DaprClient/OnTopicEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaprClientServer).OnTopicEvent(ctx, req.(*CloudEventEnvelope)) - } - return interceptor(ctx, in, info, handler) -} - -var _DaprClient_serviceDesc = grpc.ServiceDesc{ - ServiceName: "dapr.proto.daprclient.v1.DaprClient", - HandlerType: (*DaprClientServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "OnInvoke", - Handler: _DaprClient_OnInvoke_Handler, - }, - { - MethodName: "GetTopicSubscriptions", - Handler: _DaprClient_GetTopicSubscriptions_Handler, - }, - { - MethodName: "GetBindingsSubscriptions", - Handler: _DaprClient_GetBindingsSubscriptions_Handler, - }, - { - MethodName: "OnBindingEvent", - Handler: _DaprClient_OnBindingEvent_Handler, - }, - { - MethodName: "OnTopicEvent", - Handler: _DaprClient_OnTopicEvent_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "dapr/proto/daprclient/v1/daprclient.proto", -} diff --git a/dapr/proto/runtime/v1/appcallback.pb.go b/dapr/proto/runtime/v1/appcallback.pb.go new file mode 100644 index 00000000..875d03e6 --- /dev/null +++ b/dapr/proto/runtime/v1/appcallback.pb.go @@ -0,0 +1,733 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: dapr/proto/runtime/v1/appcallback.proto + +package runtime + +import ( + context "context" + fmt "fmt" + v1 "github.com/dapr/go-sdk/dapr/proto/common/v1" + proto "github.com/golang/protobuf/proto" + empty "github.com/golang/protobuf/ptypes/empty" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// BindingEventConcurrency is the kind of concurrency +type BindingEventResponse_BindingEventConcurrency int32 + +const ( + // SEQUENTIAL sends data to output bindings specified in "to" sequentially. + BindingEventResponse_SEQUENTIAL BindingEventResponse_BindingEventConcurrency = 0 + // PARALLEL sends data to output bindings specified in "to" in parallel. + BindingEventResponse_PARALLEL BindingEventResponse_BindingEventConcurrency = 1 +) + +var BindingEventResponse_BindingEventConcurrency_name = map[int32]string{ + 0: "SEQUENTIAL", + 1: "PARALLEL", +} + +var BindingEventResponse_BindingEventConcurrency_value = map[string]int32{ + "SEQUENTIAL": 0, + "PARALLEL": 1, +} + +func (x BindingEventResponse_BindingEventConcurrency) String() string { + return proto.EnumName(BindingEventResponse_BindingEventConcurrency_name, int32(x)) +} + +func (BindingEventResponse_BindingEventConcurrency) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{2, 0} +} + +// TopicEventRequest message is compatiable with CloudEvent spec v1.0 +// https://github.com/cloudevents/spec/blob/v1.0/spec.md +type TopicEventRequest struct { + // id identifies the event. Producers MUST ensure that source + id + // is unique for each distinct event. If a duplicate event is re-sent + // (e.g. due to a network error) it MAY have the same id. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // source identifies the context in which an event happened. + // Often this will include information such as the type of the + // event source, the organization publishing the event or the process + // that produced the event. The exact syntax and semantics behind + // the data encoded in the URI is defined by the event producer. + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + // The type of event related to the originating occurrence. + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + // The version of the CloudEvents specification. + SpecVersion string `protobuf:"bytes,4,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"` + // The content type of data value. + DataContentType string `protobuf:"bytes,5,opt,name=data_content_type,json=dataContentType,proto3" json:"data_content_type,omitempty"` + // The content of the event. + Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` + // The pubsub topic which publisher sent to. + Topic string `protobuf:"bytes,6,opt,name=topic,proto3" json:"topic,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TopicEventRequest) Reset() { *m = TopicEventRequest{} } +func (m *TopicEventRequest) String() string { return proto.CompactTextString(m) } +func (*TopicEventRequest) ProtoMessage() {} +func (*TopicEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{0} +} + +func (m *TopicEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopicEventRequest.Unmarshal(m, b) +} +func (m *TopicEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopicEventRequest.Marshal(b, m, deterministic) +} +func (m *TopicEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicEventRequest.Merge(m, src) +} +func (m *TopicEventRequest) XXX_Size() int { + return xxx_messageInfo_TopicEventRequest.Size(m) +} +func (m *TopicEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TopicEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicEventRequest proto.InternalMessageInfo + +func (m *TopicEventRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *TopicEventRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *TopicEventRequest) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *TopicEventRequest) GetSpecVersion() string { + if m != nil { + return m.SpecVersion + } + return "" +} + +func (m *TopicEventRequest) GetDataContentType() string { + if m != nil { + return m.DataContentType + } + return "" +} + +func (m *TopicEventRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *TopicEventRequest) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +// BindingEventRequest represents input bindings event. +type BindingEventRequest struct { + // Requried. The name of the input binding component. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Required. The payload that the input bindings sent + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // The metadata set by the input binging components. + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingEventRequest) Reset() { *m = BindingEventRequest{} } +func (m *BindingEventRequest) String() string { return proto.CompactTextString(m) } +func (*BindingEventRequest) ProtoMessage() {} +func (*BindingEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{1} +} + +func (m *BindingEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingEventRequest.Unmarshal(m, b) +} +func (m *BindingEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingEventRequest.Marshal(b, m, deterministic) +} +func (m *BindingEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingEventRequest.Merge(m, src) +} +func (m *BindingEventRequest) XXX_Size() int { + return xxx_messageInfo_BindingEventRequest.Size(m) +} +func (m *BindingEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BindingEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingEventRequest proto.InternalMessageInfo + +func (m *BindingEventRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *BindingEventRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *BindingEventRequest) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +// BindingEventResponse includes operations to save state or +// send data to output bindings optionally. +type BindingEventResponse struct { + // The name of state store where states are saved. + StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` + // The state key values which will be stored in store_name. + States []*v1.StateSaveRequest `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"` + // The list of output bindings. + To []string `protobuf:"bytes,3,rep,name=to,proto3" json:"to,omitempty"` + // The content which will be sent to "to" output bindings. + Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` + // The concurrency of output bindings to send data to + // "to" output bindings list. The default is SEQUENTIAL. + Concurrency BindingEventResponse_BindingEventConcurrency `protobuf:"varint,5,opt,name=concurrency,proto3,enum=dapr.proto.runtime.v1.BindingEventResponse_BindingEventConcurrency" json:"concurrency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingEventResponse) Reset() { *m = BindingEventResponse{} } +func (m *BindingEventResponse) String() string { return proto.CompactTextString(m) } +func (*BindingEventResponse) ProtoMessage() {} +func (*BindingEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{2} +} + +func (m *BindingEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingEventResponse.Unmarshal(m, b) +} +func (m *BindingEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingEventResponse.Marshal(b, m, deterministic) +} +func (m *BindingEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingEventResponse.Merge(m, src) +} +func (m *BindingEventResponse) XXX_Size() int { + return xxx_messageInfo_BindingEventResponse.Size(m) +} +func (m *BindingEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BindingEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingEventResponse proto.InternalMessageInfo + +func (m *BindingEventResponse) GetStoreName() string { + if m != nil { + return m.StoreName + } + return "" +} + +func (m *BindingEventResponse) GetStates() []*v1.StateSaveRequest { + if m != nil { + return m.States + } + return nil +} + +func (m *BindingEventResponse) GetTo() []string { + if m != nil { + return m.To + } + return nil +} + +func (m *BindingEventResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *BindingEventResponse) GetConcurrency() BindingEventResponse_BindingEventConcurrency { + if m != nil { + return m.Concurrency + } + return BindingEventResponse_SEQUENTIAL +} + +// ListTopicSubscriptionsResponse is the message including the list of the subscribing topics. +type ListTopicSubscriptionsResponse struct { + // The list of topics. + Subscriptions []*TopicSubscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListTopicSubscriptionsResponse) Reset() { *m = ListTopicSubscriptionsResponse{} } +func (m *ListTopicSubscriptionsResponse) String() string { return proto.CompactTextString(m) } +func (*ListTopicSubscriptionsResponse) ProtoMessage() {} +func (*ListTopicSubscriptionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{3} +} + +func (m *ListTopicSubscriptionsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListTopicSubscriptionsResponse.Unmarshal(m, b) +} +func (m *ListTopicSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListTopicSubscriptionsResponse.Marshal(b, m, deterministic) +} +func (m *ListTopicSubscriptionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListTopicSubscriptionsResponse.Merge(m, src) +} +func (m *ListTopicSubscriptionsResponse) XXX_Size() int { + return xxx_messageInfo_ListTopicSubscriptionsResponse.Size(m) +} +func (m *ListTopicSubscriptionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListTopicSubscriptionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListTopicSubscriptionsResponse proto.InternalMessageInfo + +func (m *ListTopicSubscriptionsResponse) GetSubscriptions() []*TopicSubscription { + if m != nil { + return m.Subscriptions + } + return nil +} + +// TopicSubscription represents topic and metadata. +type TopicSubscription struct { + // The name of topic which will be subscribed + Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` + Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TopicSubscription) Reset() { *m = TopicSubscription{} } +func (m *TopicSubscription) String() string { return proto.CompactTextString(m) } +func (*TopicSubscription) ProtoMessage() {} +func (*TopicSubscription) Descriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{4} +} + +func (m *TopicSubscription) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopicSubscription.Unmarshal(m, b) +} +func (m *TopicSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopicSubscription.Marshal(b, m, deterministic) +} +func (m *TopicSubscription) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicSubscription.Merge(m, src) +} +func (m *TopicSubscription) XXX_Size() int { + return xxx_messageInfo_TopicSubscription.Size(m) +} +func (m *TopicSubscription) XXX_DiscardUnknown() { + xxx_messageInfo_TopicSubscription.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicSubscription proto.InternalMessageInfo + +func (m *TopicSubscription) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +func (m *TopicSubscription) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +// ListInputBindingsResponse is the message including the list of input bindings. +type ListInputBindingsResponse struct { + // The list of input bindings. + Bindings []string `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListInputBindingsResponse) Reset() { *m = ListInputBindingsResponse{} } +func (m *ListInputBindingsResponse) String() string { return proto.CompactTextString(m) } +func (*ListInputBindingsResponse) ProtoMessage() {} +func (*ListInputBindingsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_830251cb323c018d, []int{5} +} + +func (m *ListInputBindingsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListInputBindingsResponse.Unmarshal(m, b) +} +func (m *ListInputBindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListInputBindingsResponse.Marshal(b, m, deterministic) +} +func (m *ListInputBindingsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListInputBindingsResponse.Merge(m, src) +} +func (m *ListInputBindingsResponse) XXX_Size() int { + return xxx_messageInfo_ListInputBindingsResponse.Size(m) +} +func (m *ListInputBindingsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListInputBindingsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListInputBindingsResponse proto.InternalMessageInfo + +func (m *ListInputBindingsResponse) GetBindings() []string { + if m != nil { + return m.Bindings + } + return nil +} + +func init() { + proto.RegisterEnum("dapr.proto.runtime.v1.BindingEventResponse_BindingEventConcurrency", BindingEventResponse_BindingEventConcurrency_name, BindingEventResponse_BindingEventConcurrency_value) + proto.RegisterType((*TopicEventRequest)(nil), "dapr.proto.runtime.v1.TopicEventRequest") + proto.RegisterType((*BindingEventRequest)(nil), "dapr.proto.runtime.v1.BindingEventRequest") + proto.RegisterMapType((map[string]string)(nil), "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry") + proto.RegisterType((*BindingEventResponse)(nil), "dapr.proto.runtime.v1.BindingEventResponse") + proto.RegisterType((*ListTopicSubscriptionsResponse)(nil), "dapr.proto.runtime.v1.ListTopicSubscriptionsResponse") + proto.RegisterType((*TopicSubscription)(nil), "dapr.proto.runtime.v1.TopicSubscription") + proto.RegisterMapType((map[string]string)(nil), "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry") + proto.RegisterType((*ListInputBindingsResponse)(nil), "dapr.proto.runtime.v1.ListInputBindingsResponse") +} + +func init() { + proto.RegisterFile("dapr/proto/runtime/v1/appcallback.proto", fileDescriptor_830251cb323c018d) +} + +var fileDescriptor_830251cb323c018d = []byte{ + // 751 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xef, 0x6e, 0x12, 0x41, + 0x10, 0xe7, 0x0e, 0x8a, 0x30, 0x50, 0x6c, 0xd7, 0xb6, 0x9e, 0x67, 0x34, 0xf4, 0x34, 0x4a, 0x6a, + 0x3c, 0xa4, 0xfe, 0x69, 0x63, 0x13, 0x13, 0x8a, 0xc4, 0x34, 0xc1, 0xb6, 0x1e, 0xa8, 0x89, 0x5f, + 0xc8, 0x71, 0xac, 0x78, 0x01, 0x76, 0xd7, 0xbb, 0xbd, 0x4b, 0x48, 0x7c, 0x22, 0xdf, 0x40, 0x9f, + 0xc0, 0x8f, 0xbe, 0x8b, 0x2f, 0x60, 0x76, 0xef, 0x0a, 0x47, 0x0a, 0xa4, 0x7e, 0xf0, 0xdb, 0xec, + 0xfc, 0xf9, 0xed, 0xcc, 0x6f, 0x66, 0x67, 0xe1, 0x61, 0xdf, 0x66, 0x5e, 0x95, 0x79, 0x94, 0xd3, + 0xaa, 0x17, 0x10, 0xee, 0x8e, 0x71, 0x35, 0xac, 0x55, 0x6d, 0xc6, 0x1c, 0x7b, 0x34, 0xea, 0xd9, + 0xce, 0xd0, 0x94, 0x46, 0xb4, 0x2d, 0x1c, 0x23, 0xd9, 0x8c, 0x1d, 0xcd, 0xb0, 0xa6, 0xdf, 0x1e, + 0x50, 0x3a, 0x18, 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0xde, 0x7e, 0x6d, 0x33, 0x2f, 0x31, 0x04, 0xe7, 0x02, + 0xc5, 0xff, 0xf4, 0x6c, 0xe0, 0xf2, 0x2f, 0x41, 0x4f, 0x34, 0xb5, 0x2a, 0xbf, 0xa2, 0x01, 0x7d, + 0xec, 0xf7, 0x87, 0xd5, 0x85, 0x7f, 0xde, 0x51, 0x2c, 0x7e, 0x57, 0xcb, 0x02, 0xcd, 0x4c, 0xc0, + 0x99, 0xf5, 0x80, 0xd3, 0x01, 0x26, 0xe6, 0x1b, 0x8f, 0x39, 0x66, 0x58, 0xeb, 0x65, 0x65, 0xf0, + 0xd3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x56, 0x4f, 0x4a, 0x8f, 0x3e, 0x07, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// AppCallbackClient is the client API for AppCallback service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AppCallbackClient interface { + // Invokes service method with InvokeRequest. + OnInvoke(ctx context.Context, in *v1.InvokeRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) + // Lists all topics subscribed by this app. + ListTopicSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error) + // Subscribes events from Pubsub + OnTopicEvent(ctx context.Context, in *TopicEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Lists all input bindings subscribed by this app. + ListInputBindings(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListInputBindingsResponse, error) + // Listens events from the input bindings + // + // User application can save the states or send the events to the output + // bindings optionally by returning BindingEventResponse. + OnBindingEvent(ctx context.Context, in *BindingEventRequest, opts ...grpc.CallOption) (*BindingEventResponse, error) +} + +type appCallbackClient struct { + cc *grpc.ClientConn +} + +func NewAppCallbackClient(cc *grpc.ClientConn) AppCallbackClient { + return &appCallbackClient{cc} +} + +func (c *appCallbackClient) OnInvoke(ctx context.Context, in *v1.InvokeRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) { + out := new(v1.InvokeResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.AppCallback/OnInvoke", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *appCallbackClient) ListTopicSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error) { + out := new(ListTopicSubscriptionsResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *appCallbackClient) OnTopicEvent(ctx context.Context, in *TopicEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.AppCallback/OnTopicEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *appCallbackClient) ListInputBindings(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListInputBindingsResponse, error) { + out := new(ListInputBindingsResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.AppCallback/ListInputBindings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *appCallbackClient) OnBindingEvent(ctx context.Context, in *BindingEventRequest, opts ...grpc.CallOption) (*BindingEventResponse, error) { + out := new(BindingEventResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.AppCallback/OnBindingEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AppCallbackServer is the server API for AppCallback service. +type AppCallbackServer interface { + // Invokes service method with InvokeRequest. + OnInvoke(context.Context, *v1.InvokeRequest) (*v1.InvokeResponse, error) + // Lists all topics subscribed by this app. + ListTopicSubscriptions(context.Context, *empty.Empty) (*ListTopicSubscriptionsResponse, error) + // Subscribes events from Pubsub + OnTopicEvent(context.Context, *TopicEventRequest) (*empty.Empty, error) + // Lists all input bindings subscribed by this app. + ListInputBindings(context.Context, *empty.Empty) (*ListInputBindingsResponse, error) + // Listens events from the input bindings + // + // User application can save the states or send the events to the output + // bindings optionally by returning BindingEventResponse. + OnBindingEvent(context.Context, *BindingEventRequest) (*BindingEventResponse, error) +} + +// UnimplementedAppCallbackServer can be embedded to have forward compatible implementations. +type UnimplementedAppCallbackServer struct { +} + +func (*UnimplementedAppCallbackServer) OnInvoke(ctx context.Context, req *v1.InvokeRequest) (*v1.InvokeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OnInvoke not implemented") +} +func (*UnimplementedAppCallbackServer) ListTopicSubscriptions(ctx context.Context, req *empty.Empty) (*ListTopicSubscriptionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTopicSubscriptions not implemented") +} +func (*UnimplementedAppCallbackServer) OnTopicEvent(ctx context.Context, req *TopicEventRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method OnTopicEvent not implemented") +} +func (*UnimplementedAppCallbackServer) ListInputBindings(ctx context.Context, req *empty.Empty) (*ListInputBindingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListInputBindings not implemented") +} +func (*UnimplementedAppCallbackServer) OnBindingEvent(ctx context.Context, req *BindingEventRequest) (*BindingEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OnBindingEvent not implemented") +} + +func RegisterAppCallbackServer(s *grpc.Server, srv AppCallbackServer) { + s.RegisterService(&_AppCallback_serviceDesc, srv) +} + +func _AppCallback_OnInvoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.InvokeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AppCallbackServer).OnInvoke(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.AppCallback/OnInvoke", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AppCallbackServer).OnInvoke(ctx, req.(*v1.InvokeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AppCallback_ListTopicSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(empty.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AppCallbackServer).ListTopicSubscriptions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AppCallbackServer).ListTopicSubscriptions(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AppCallback_OnTopicEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TopicEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AppCallbackServer).OnTopicEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.AppCallback/OnTopicEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AppCallbackServer).OnTopicEvent(ctx, req.(*TopicEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AppCallback_ListInputBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(empty.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AppCallbackServer).ListInputBindings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.AppCallback/ListInputBindings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AppCallbackServer).ListInputBindings(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AppCallback_OnBindingEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BindingEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AppCallbackServer).OnBindingEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.AppCallback/OnBindingEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AppCallbackServer).OnBindingEvent(ctx, req.(*BindingEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AppCallback_serviceDesc = grpc.ServiceDesc{ + ServiceName: "dapr.proto.runtime.v1.AppCallback", + HandlerType: (*AppCallbackServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "OnInvoke", + Handler: _AppCallback_OnInvoke_Handler, + }, + { + MethodName: "ListTopicSubscriptions", + Handler: _AppCallback_ListTopicSubscriptions_Handler, + }, + { + MethodName: "OnTopicEvent", + Handler: _AppCallback_OnTopicEvent_Handler, + }, + { + MethodName: "ListInputBindings", + Handler: _AppCallback_ListInputBindings_Handler, + }, + { + MethodName: "OnBindingEvent", + Handler: _AppCallback_OnBindingEvent_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "dapr/proto/runtime/v1/appcallback.proto", +} diff --git a/dapr/proto/runtime/v1/dapr.pb.go b/dapr/proto/runtime/v1/dapr.pb.go new file mode 100644 index 00000000..7a12a351 --- /dev/null +++ b/dapr/proto/runtime/v1/dapr.pb.go @@ -0,0 +1,899 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: dapr/proto/runtime/v1/dapr.proto + +package runtime + +import ( + context "context" + fmt "fmt" + v1 "github.com/dapr/go-sdk/dapr/proto/common/v1" + proto "github.com/golang/protobuf/proto" + empty "github.com/golang/protobuf/ptypes/empty" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// InvokeServiceRequest represents the request message for Service invocation. +type InvokeServiceRequest struct { + // Required. Callee's app id. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Required. message which will be delivered to callee. + Message *v1.InvokeRequest `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InvokeServiceRequest) Reset() { *m = InvokeServiceRequest{} } +func (m *InvokeServiceRequest) String() string { return proto.CompactTextString(m) } +func (*InvokeServiceRequest) ProtoMessage() {} +func (*InvokeServiceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{0} +} + +func (m *InvokeServiceRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InvokeServiceRequest.Unmarshal(m, b) +} +func (m *InvokeServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InvokeServiceRequest.Marshal(b, m, deterministic) +} +func (m *InvokeServiceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvokeServiceRequest.Merge(m, src) +} +func (m *InvokeServiceRequest) XXX_Size() int { + return xxx_messageInfo_InvokeServiceRequest.Size(m) +} +func (m *InvokeServiceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InvokeServiceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InvokeServiceRequest proto.InternalMessageInfo + +func (m *InvokeServiceRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *InvokeServiceRequest) GetMessage() *v1.InvokeRequest { + if m != nil { + return m.Message + } + return nil +} + +// GetStateRequest is the message to get key-value states from specific state store. +type GetStateRequest struct { + // The name of state store. + StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` + // The key of the desired state + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + // The read consistency of the state store. + Consistency v1.StateOptions_StateConsistency `protobuf:"varint,3,opt,name=consistency,proto3,enum=dapr.proto.common.v1.StateOptions_StateConsistency" json:"consistency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStateRequest) Reset() { *m = GetStateRequest{} } +func (m *GetStateRequest) String() string { return proto.CompactTextString(m) } +func (*GetStateRequest) ProtoMessage() {} +func (*GetStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{1} +} + +func (m *GetStateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetStateRequest.Unmarshal(m, b) +} +func (m *GetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetStateRequest.Marshal(b, m, deterministic) +} +func (m *GetStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStateRequest.Merge(m, src) +} +func (m *GetStateRequest) XXX_Size() int { + return xxx_messageInfo_GetStateRequest.Size(m) +} +func (m *GetStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStateRequest proto.InternalMessageInfo + +func (m *GetStateRequest) GetStoreName() string { + if m != nil { + return m.StoreName + } + return "" +} + +func (m *GetStateRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *GetStateRequest) GetConsistency() v1.StateOptions_StateConsistency { + if m != nil { + return m.Consistency + } + return v1.StateOptions_CONSISTENCY_UNSPECIFIED +} + +// GetStateResponse is the response conveying the state value and etag. +type GetStateResponse struct { + // The byte array data + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + // The entity tag which represents the specific version of data. + // ETag format is defined by the corresponding data store. + Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStateResponse) Reset() { *m = GetStateResponse{} } +func (m *GetStateResponse) String() string { return proto.CompactTextString(m) } +func (*GetStateResponse) ProtoMessage() {} +func (*GetStateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{2} +} + +func (m *GetStateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetStateResponse.Unmarshal(m, b) +} +func (m *GetStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetStateResponse.Marshal(b, m, deterministic) +} +func (m *GetStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStateResponse.Merge(m, src) +} +func (m *GetStateResponse) XXX_Size() int { + return xxx_messageInfo_GetStateResponse.Size(m) +} +func (m *GetStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStateResponse proto.InternalMessageInfo + +func (m *GetStateResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *GetStateResponse) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +// DeleteStateRequest is the message to delete key-value states in the specific state store. +type DeleteStateRequest struct { + // The name of state store. + StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` + // The key of the desired state + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + // The entity tag which represents the specific version of data. + // The exact ETag format is defined by the corresponding data store. + Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` + // State operation options which includes concurrency/ + // consistency/retry_policy. + Options *v1.StateOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteStateRequest) Reset() { *m = DeleteStateRequest{} } +func (m *DeleteStateRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteStateRequest) ProtoMessage() {} +func (*DeleteStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{3} +} + +func (m *DeleteStateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteStateRequest.Unmarshal(m, b) +} +func (m *DeleteStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteStateRequest.Marshal(b, m, deterministic) +} +func (m *DeleteStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteStateRequest.Merge(m, src) +} +func (m *DeleteStateRequest) XXX_Size() int { + return xxx_messageInfo_DeleteStateRequest.Size(m) +} +func (m *DeleteStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteStateRequest proto.InternalMessageInfo + +func (m *DeleteStateRequest) GetStoreName() string { + if m != nil { + return m.StoreName + } + return "" +} + +func (m *DeleteStateRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *DeleteStateRequest) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +func (m *DeleteStateRequest) GetOptions() *v1.StateOptions { + if m != nil { + return m.Options + } + return nil +} + +// SaveStateRequest is the message to save multiple states into state store. +type SaveStateRequest struct { + // The name of state store. + StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` + // The array of the state key values. + Requests []*v1.StateSaveRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SaveStateRequest) Reset() { *m = SaveStateRequest{} } +func (m *SaveStateRequest) String() string { return proto.CompactTextString(m) } +func (*SaveStateRequest) ProtoMessage() {} +func (*SaveStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{4} +} + +func (m *SaveStateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SaveStateRequest.Unmarshal(m, b) +} +func (m *SaveStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SaveStateRequest.Marshal(b, m, deterministic) +} +func (m *SaveStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SaveStateRequest.Merge(m, src) +} +func (m *SaveStateRequest) XXX_Size() int { + return xxx_messageInfo_SaveStateRequest.Size(m) +} +func (m *SaveStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SaveStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SaveStateRequest proto.InternalMessageInfo + +func (m *SaveStateRequest) GetStoreName() string { + if m != nil { + return m.StoreName + } + return "" +} + +func (m *SaveStateRequest) GetRequests() []*v1.StateSaveRequest { + if m != nil { + return m.Requests + } + return nil +} + +// PublishEventRequest is the message to publish event data to pubsub topic +type PublishEventRequest struct { + // The pubsub topic + Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` + // The data which will be published to topic. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublishEventRequest) Reset() { *m = PublishEventRequest{} } +func (m *PublishEventRequest) String() string { return proto.CompactTextString(m) } +func (*PublishEventRequest) ProtoMessage() {} +func (*PublishEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{5} +} + +func (m *PublishEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublishEventRequest.Unmarshal(m, b) +} +func (m *PublishEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublishEventRequest.Marshal(b, m, deterministic) +} +func (m *PublishEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublishEventRequest.Merge(m, src) +} +func (m *PublishEventRequest) XXX_Size() int { + return xxx_messageInfo_PublishEventRequest.Size(m) +} +func (m *PublishEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PublishEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PublishEventRequest proto.InternalMessageInfo + +func (m *PublishEventRequest) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +func (m *PublishEventRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +// InvokeBindingRequest is the message to send data to output bindings +type InvokeBindingRequest struct { + // The name of the output binding to invoke. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The data which will be sent to output binding. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // The metadata passing to output binding components + // + // Common metadata property: + // - ttlInSeconds : the time to live in seconds for the message. + // If set in the binding definition will cause all messages to + // have a default time to live. The message ttl overrides any value + // in the binding definition. + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InvokeBindingRequest) Reset() { *m = InvokeBindingRequest{} } +func (m *InvokeBindingRequest) String() string { return proto.CompactTextString(m) } +func (*InvokeBindingRequest) ProtoMessage() {} +func (*InvokeBindingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{6} +} + +func (m *InvokeBindingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InvokeBindingRequest.Unmarshal(m, b) +} +func (m *InvokeBindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InvokeBindingRequest.Marshal(b, m, deterministic) +} +func (m *InvokeBindingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvokeBindingRequest.Merge(m, src) +} +func (m *InvokeBindingRequest) XXX_Size() int { + return xxx_messageInfo_InvokeBindingRequest.Size(m) +} +func (m *InvokeBindingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InvokeBindingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InvokeBindingRequest proto.InternalMessageInfo + +func (m *InvokeBindingRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *InvokeBindingRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *InvokeBindingRequest) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +// GetSecretRequest is the message to get secret from secret store. +type GetSecretRequest struct { + // The name of secret store. + StoreName string `protobuf:"bytes,1,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"` + // The name of secret key. + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + // The metadata which will be sent to secret store components. + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSecretRequest) Reset() { *m = GetSecretRequest{} } +func (m *GetSecretRequest) String() string { return proto.CompactTextString(m) } +func (*GetSecretRequest) ProtoMessage() {} +func (*GetSecretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{7} +} + +func (m *GetSecretRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetSecretRequest.Unmarshal(m, b) +} +func (m *GetSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetSecretRequest.Marshal(b, m, deterministic) +} +func (m *GetSecretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSecretRequest.Merge(m, src) +} +func (m *GetSecretRequest) XXX_Size() int { + return xxx_messageInfo_GetSecretRequest.Size(m) +} +func (m *GetSecretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetSecretRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSecretRequest proto.InternalMessageInfo + +func (m *GetSecretRequest) GetStoreName() string { + if m != nil { + return m.StoreName + } + return "" +} + +func (m *GetSecretRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *GetSecretRequest) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +// GetSecretResponse is the response mesage to convey the requested secret. +type GetSecretResponse struct { + // data is the secret value. Some secret store, such as kubernetes secret + // store, can save multiple secrets for single secret key. + Data map[string]string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSecretResponse) Reset() { *m = GetSecretResponse{} } +func (m *GetSecretResponse) String() string { return proto.CompactTextString(m) } +func (*GetSecretResponse) ProtoMessage() {} +func (*GetSecretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_da511bac0105b1e5, []int{8} +} + +func (m *GetSecretResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetSecretResponse.Unmarshal(m, b) +} +func (m *GetSecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetSecretResponse.Marshal(b, m, deterministic) +} +func (m *GetSecretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSecretResponse.Merge(m, src) +} +func (m *GetSecretResponse) XXX_Size() int { + return xxx_messageInfo_GetSecretResponse.Size(m) +} +func (m *GetSecretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetSecretResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSecretResponse proto.InternalMessageInfo + +func (m *GetSecretResponse) GetData() map[string]string { + if m != nil { + return m.Data + } + return nil +} + +func init() { + proto.RegisterType((*InvokeServiceRequest)(nil), "dapr.proto.runtime.v1.InvokeServiceRequest") + proto.RegisterType((*GetStateRequest)(nil), "dapr.proto.runtime.v1.GetStateRequest") + proto.RegisterType((*GetStateResponse)(nil), "dapr.proto.runtime.v1.GetStateResponse") + proto.RegisterType((*DeleteStateRequest)(nil), "dapr.proto.runtime.v1.DeleteStateRequest") + proto.RegisterType((*SaveStateRequest)(nil), "dapr.proto.runtime.v1.SaveStateRequest") + proto.RegisterType((*PublishEventRequest)(nil), "dapr.proto.runtime.v1.PublishEventRequest") + proto.RegisterType((*InvokeBindingRequest)(nil), "dapr.proto.runtime.v1.InvokeBindingRequest") + proto.RegisterMapType((map[string]string)(nil), "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry") + proto.RegisterType((*GetSecretRequest)(nil), "dapr.proto.runtime.v1.GetSecretRequest") + proto.RegisterMapType((map[string]string)(nil), "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry") + proto.RegisterType((*GetSecretResponse)(nil), "dapr.proto.runtime.v1.GetSecretResponse") + proto.RegisterMapType((map[string]string)(nil), "dapr.proto.runtime.v1.GetSecretResponse.DataEntry") +} + +func init() { proto.RegisterFile("dapr/proto/runtime/v1/dapr.proto", fileDescriptor_da511bac0105b1e5) } + +var fileDescriptor_da511bac0105b1e5 = []byte{ + // 718 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xdd, 0x6e, 0xd3, 0x4a, + 0x10, 0xae, 0x93, 0xf4, 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, 0x27, 0x5d, 0xfd, 0x9f, 0xca, 0x77, 0x81, 0x26, + 0xef, 0x02, 0xdd, 0x8b, 0xde, 0x05, 0x6d, 0x8e, 0xe8, 0x50, 0xc9, 0x2c, 0x2c, 0x72, 0x63, 0x0a, + 0xe3, 0xf9, 0xa5, 0x96, 0xc3, 0xf9, 0x0a, 0x96, 0xb2, 0x43, 0x4f, 0x6e, 0x4e, 0x21, 0x9d, 0xb0, + 0x19, 0x72, 0x58, 0x5f, 0x27, 0xe5, 0x8b, 0x27, 0x74, 0x46, 0xf9, 0xc6, 0xe7, 0x38, 0x87, 0xf7, + 0x3d, 0x94, 0xd3, 0xee, 0x23, 0x9b, 0x17, 0x9c, 0x20, 0xb5, 0x7e, 0xd1, 0x46, 0xd6, 0xe6, 0xda, + 0x03, 0x00, 0x8b, 0x49, 0xff, 0xb0, 0xd9, 0x86, 0xa8, 0x19, 0x0f, 0x23, 0x9c, 0xff, 0xe6, 0x8e, + 0x69, 0xf1, 0x93, 0xa0, 0x1b, 0xf5, 0x93, 0x78, 0xdc, 0x1b, 0x26, 0xbb, 0xed, 0xf7, 0x4f, 0x1b, + 0x13, 0x9f, 0xff, 0x9d, 0xd8, 0xfc, 0x5a, 0x58, 0x8f, 0x28, 0xe8, 0xee, 0xc0, 0x42, 0x87, 0xd3, + 0x27, 0x01, 0x67, 0x26, 0x3a, 0x74, 0xdf, 0x73, 0x7b, 0x34, 0x6c, 0x76, 0xff, 0x12, 0xb8, 0xad, + 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xe6, 0x23, 0x3a, 0x44, 0x08, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// DaprClient is the client API for Dapr service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DaprClient interface { + // Invokes a method on a remote Dapr app. + InvokeService(ctx context.Context, in *InvokeServiceRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) + // Gets the state for a specific key. + GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) + // Saves the state for a specific key. + SaveState(ctx context.Context, in *SaveStateRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Deletes the state for a specific key. + DeleteState(ctx context.Context, in *DeleteStateRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Publishes events to the specific topic. + PublishEvent(ctx context.Context, in *PublishEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Invokes binding data to specific output bindings + InvokeBinding(ctx context.Context, in *InvokeBindingRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Gets secrets from secret stores. + GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error) +} + +type daprClient struct { + cc *grpc.ClientConn +} + +func NewDaprClient(cc *grpc.ClientConn) DaprClient { + return &daprClient{cc} +} + +func (c *daprClient) InvokeService(ctx context.Context, in *InvokeServiceRequest, opts ...grpc.CallOption) (*v1.InvokeResponse, error) { + out := new(v1.InvokeResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/InvokeService", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) { + out := new(GetStateResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/GetState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) SaveState(ctx context.Context, in *SaveStateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/SaveState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) DeleteState(ctx context.Context, in *DeleteStateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/DeleteState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) PublishEvent(ctx context.Context, in *PublishEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/PublishEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) InvokeBinding(ctx context.Context, in *InvokeBindingRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/InvokeBinding", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error) { + out := new(GetSecretResponse) + err := c.cc.Invoke(ctx, "/dapr.proto.runtime.v1.Dapr/GetSecret", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DaprServer is the server API for Dapr service. +type DaprServer interface { + // Invokes a method on a remote Dapr app. + InvokeService(context.Context, *InvokeServiceRequest) (*v1.InvokeResponse, error) + // Gets the state for a specific key. + GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) + // Saves the state for a specific key. + SaveState(context.Context, *SaveStateRequest) (*empty.Empty, error) + // Deletes the state for a specific key. + DeleteState(context.Context, *DeleteStateRequest) (*empty.Empty, error) + // Publishes events to the specific topic. + PublishEvent(context.Context, *PublishEventRequest) (*empty.Empty, error) + // Invokes binding data to specific output bindings + InvokeBinding(context.Context, *InvokeBindingRequest) (*empty.Empty, error) + // Gets secrets from secret stores. + GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error) +} + +// UnimplementedDaprServer can be embedded to have forward compatible implementations. +type UnimplementedDaprServer struct { +} + +func (*UnimplementedDaprServer) InvokeService(ctx context.Context, req *InvokeServiceRequest) (*v1.InvokeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvokeService not implemented") +} +func (*UnimplementedDaprServer) GetState(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") +} +func (*UnimplementedDaprServer) SaveState(ctx context.Context, req *SaveStateRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method SaveState not implemented") +} +func (*UnimplementedDaprServer) DeleteState(ctx context.Context, req *DeleteStateRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteState not implemented") +} +func (*UnimplementedDaprServer) PublishEvent(ctx context.Context, req *PublishEventRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method PublishEvent not implemented") +} +func (*UnimplementedDaprServer) InvokeBinding(ctx context.Context, req *InvokeBindingRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvokeBinding not implemented") +} +func (*UnimplementedDaprServer) GetSecret(ctx context.Context, req *GetSecretRequest) (*GetSecretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSecret not implemented") +} + +func RegisterDaprServer(s *grpc.Server, srv DaprServer) { + s.RegisterService(&_Dapr_serviceDesc, srv) +} + +func _Dapr_InvokeService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvokeServiceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).InvokeService(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/InvokeService", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).InvokeService(ctx, req.(*InvokeServiceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).GetState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/GetState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).GetState(ctx, req.(*GetStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_SaveState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SaveStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).SaveState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/SaveState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).SaveState(ctx, req.(*SaveStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_DeleteState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).DeleteState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/DeleteState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).DeleteState(ctx, req.(*DeleteStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_PublishEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublishEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).PublishEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/PublishEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).PublishEvent(ctx, req.(*PublishEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_InvokeBinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvokeBindingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).InvokeBinding(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/InvokeBinding", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).InvokeBinding(ctx, req.(*InvokeBindingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_GetSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSecretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).GetSecret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.proto.runtime.v1.Dapr/GetSecret", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).GetSecret(ctx, req.(*GetSecretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Dapr_serviceDesc = grpc.ServiceDesc{ + ServiceName: "dapr.proto.runtime.v1.Dapr", + HandlerType: (*DaprServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "InvokeService", + Handler: _Dapr_InvokeService_Handler, + }, + { + MethodName: "GetState", + Handler: _Dapr_GetState_Handler, + }, + { + MethodName: "SaveState", + Handler: _Dapr_SaveState_Handler, + }, + { + MethodName: "DeleteState", + Handler: _Dapr_DeleteState_Handler, + }, + { + MethodName: "PublishEvent", + Handler: _Dapr_PublishEvent_Handler, + }, + { + MethodName: "InvokeBinding", + Handler: _Dapr_InvokeBinding_Handler, + }, + { + MethodName: "GetSecret", + Handler: _Dapr_GetSecret_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "dapr/proto/runtime/v1/dapr.proto", +} diff --git a/example/caller/main.go b/example/caller/main.go index a06a6024..6902cb41 100644 --- a/example/caller/main.go +++ b/example/caller/main.go @@ -6,7 +6,7 @@ import ( "os" commonv1pb "github.com/dapr/go-sdk/dapr/proto/common/v1" - pb "github.com/dapr/go-sdk/dapr/proto/dapr/v1" + pb "github.com/dapr/go-sdk/dapr/proto/runtime/v1" "github.com/golang/protobuf/ptypes/any" "google.golang.org/grpc" ) @@ -45,11 +45,9 @@ func main() { fmt.Println(string(resp.GetData().GetValue())) // Publish a message to the topic TopicA - _, err = client.PublishEvent(context.Background(), &pb.PublishEventEnvelope{ + _, err = client.PublishEvent(context.Background(), &pb.PublishEventRequest{ Topic: "TopicA", - Data: &any.Any{ - Value: []byte("Hi from Pub Sub"), - }, + Data: []byte("Hi from Pub Sub"), }) if err != nil { fmt.Println(err) @@ -58,15 +56,13 @@ func main() { } // Save state with the key myKey - _, err = client.SaveState(context.Background(), &pb.SaveStateEnvelope{ + _, err = client.SaveState(context.Background(), &pb.SaveStateRequest{ // statestore is the name of the default redis state store , set up by Dapr CLI StoreName: "statestore", - Requests: []*pb.StateRequest{ + Requests: []*commonv1pb.StateSaveRequest{ { - Key: "myKey", - Value: &any.Any{ - Value: []byte("My State"), - }, + Key: "myKey", + Value: []byte("My State"), }, }, }) @@ -77,7 +73,7 @@ func main() { } // Get state for key myKey - r, err := client.GetState(context.Background(), &pb.GetStateEnvelope{ + r, err := client.GetState(context.Background(), &pb.GetStateRequest{ // statestore is the name of the default redis state store , set up by Dapr CLI StoreName: "statestore", Key: "myKey", @@ -86,11 +82,11 @@ func main() { fmt.Println(err) } else { fmt.Println("Got state!") - fmt.Println(string(r.Data.Value)) + fmt.Println(string(r.Data)) } // Delete state for key myKey - _, err = client.DeleteState(context.Background(), &pb.DeleteStateEnvelope{ + _, err = client.DeleteState(context.Background(), &pb.DeleteStateRequest{ // statestore is the name of the default redis state store , set up by Dapr CLI StoreName: "statestore", Key: "myKey", @@ -102,11 +98,9 @@ func main() { } // Invoke output binding named storage. Make sure you set up a Dapr binding, otherwise this will fail - _, err = client.InvokeBinding(context.Background(), &pb.InvokeBindingEnvelope{ + _, err = client.InvokeBinding(context.Background(), &pb.InvokeBindingRequest{ Name: "storage", - Data: &any.Any{ - Value: []byte("some data"), - }, + Data: []byte("some data"), }) if err != nil { fmt.Println(err) diff --git a/example/client/main.go b/example/client/main.go index 45f5617d..06023250 100644 --- a/example/client/main.go +++ b/example/client/main.go @@ -10,7 +10,7 @@ import ( "github.com/golang/protobuf/ptypes/empty" commonv1pb "github.com/dapr/go-sdk/dapr/proto/common/v1" - pb "github.com/dapr/go-sdk/dapr/proto/daprclient/v1" + pb "github.com/dapr/go-sdk/dapr/proto/runtime/v1" "google.golang.org/grpc" ) @@ -27,7 +27,7 @@ func main() { // create grpc server s := grpc.NewServer() - pb.RegisterDaprClientServer(s, &server{}) + pb.RegisterAppCallbackServer(s, &server{}) fmt.Println("Client starting...") @@ -62,28 +62,30 @@ func (s *server) OnInvoke(ctx context.Context, in *commonv1pb.InvokeRequest) (*c // Dapr will call this method to get the list of topics the app wants to subscribe to. In this example, we are telling Dapr // To subscribe to a topic named TopicA -func (s *server) GetTopicSubscriptions(ctx context.Context, in *empty.Empty) (*pb.GetTopicSubscriptionsEnvelope, error) { - return &pb.GetTopicSubscriptionsEnvelope{ - Topics: []string{"TopicA"}, +func (s *server) ListTopicSubscriptions(ctx context.Context, in *empty.Empty) (*pb.ListTopicSubscriptionsResponse, error) { + return &pb.ListTopicSubscriptionsResponse{ + Subscriptions: []*pb.TopicSubscription{ + {Topic: "TopicA"}, + }, }, nil } -// Dapper will call this method to get the list of bindings the app will get invoked by. In this example, we are telling Dapr +// Dapr will call this method to get the list of bindings the app will get invoked by. In this example, we are telling Dapr // To invoke our app with a binding named storage -func (s *server) GetBindingsSubscriptions(ctx context.Context, in *empty.Empty) (*pb.GetBindingsSubscriptionsEnvelope, error) { - return &pb.GetBindingsSubscriptionsEnvelope{ +func (s *server) ListInputBindings(ctx context.Context, in *empty.Empty) (*pb.ListInputBindingsResponse, error) { + return &pb.ListInputBindingsResponse{ Bindings: []string{"storage"}, }, nil } // This method gets invoked every time a new event is fired from a registerd binding. The message carries the binding name, a payload and optional metadata -func (s *server) OnBindingEvent(ctx context.Context, in *pb.BindingEventEnvelope) (*pb.BindingResponseEnvelope, error) { +func (s *server) OnBindingEvent(ctx context.Context, in *pb.BindingEventRequest) (*pb.BindingEventResponse, error) { fmt.Println("Invoked from binding") - return &pb.BindingResponseEnvelope{}, nil + return &pb.BindingEventResponse{}, nil } // This method is fired whenever a message has been published to a topic that has been subscribed. Dapr sends published messages in a CloudEvents 0.3 envelope. -func (s *server) OnTopicEvent(ctx context.Context, in *pb.CloudEventEnvelope) (*empty.Empty, error) { +func (s *server) OnTopicEvent(ctx context.Context, in *pb.TopicEventRequest) (*empty.Empty, error) { fmt.Println("Topic message arrived") return &empty.Empty{}, nil } diff --git a/go.mod b/go.mod index 8fbd501d..577ce94f 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/dapr/go-sdk -go 1.12 +go 1.14 require ( github.com/golang/protobuf v1.3.2 - google.golang.org/grpc v1.24.0 + google.golang.org/grpc v1.26.0 ) diff --git a/go.sum b/go.sum index 61e1b1b8..fa89b5e2 100644 --- a/go.sum +++ b/go.sum @@ -1,25 +1,50 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 h1:Nw54tB0rB7hY/N0NQvRW8DG4Yk3Q6T9cu9RcFQDu1tc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/grpc v1.24.0 h1:vb/1TCsVn3DcJlQ0Gs1yB1pKI6Do2/QNwxdKqmc/b0s= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.26.0 h1:2dTRdpdFEEhJYQD8EMLB61nnrzSCTbG38PhqdhvOltg= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/protogen.sh b/protogen.sh new file mode 100755 index 00000000..8eeea254 --- /dev/null +++ b/protogen.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +DAPR_PROTO_ROOT=https://raw.githubusercontent.com/dapr/dapr/master/dapr/proto/ + +go install github.com/gogo/protobuf/gogoreplace + +echo "Download proto files from dapr/dapr." +wget -q ${DAPR_PROTO_ROOT}/common/v1/common.proto -O ./dapr/proto/common/v1/common.proto +gogoreplace 'option go_package = "github.com/dapr/dapr/pkg/proto/common/v1;common";' 'option go_package = "github.com/dapr/go-sdk/dapr/proto/common/v1;common";' ./dapr/proto/common/v1/common.proto + +wget -q ${DAPR_PROTO_ROOT}/runtime/v1/appcallback.proto -O ./dapr/proto/runtime/v1/appcallback.proto +gogoreplace 'option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime";' 'option go_package = "github.com/dapr/go-sdk/dapr/proto/runtime/v1;runtime";' ./dapr/proto/runtime/v1/appcallback.proto + +wget -q ${DAPR_PROTO_ROOT}/runtime/v1/dapr.proto -O ./dapr/proto/runtime/v1/dapr.proto +gogoreplace 'option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime";' 'option go_package = "github.com/dapr/go-sdk/dapr/proto/runtime/v1;runtime";' ./dapr/proto/runtime/v1/dapr.proto + +echo "Generating gRPC Proto clients" +protoc -I . ./dapr/proto/common/v1/*.proto --go_out=plugins=grpc:../../../ +protoc -I . ./dapr/proto/runtime/v1/*.proto --go_out=plugins=grpc:../../../ + +echo "Clean up proto files" +rm -f ./dapr/proto/common/v1/*.proto +rm -f ./dapr/proto/runtime/v1/*.proto